/* sd.css — Sedecordle site styles. Loaded after css/style.css and the engine CSS (static/css/sedecordle.css).
   html.sd-new     = new look (default); html.sd-classic = the original look (localStorage sd_ui = classic);
   html.sd-dark    = dark theme (engine: body.dark); html.sd-cb = colour-blind colours; html.sd-kb-one = keyboard
   colours of the selected board; html.sd-scroll = boards scroll inside their box (phones, small screens).
   Classic-look rules only give the new controls a neutral look that matches the old design. */

/* ---------- fonts (self-hosted Nunito, variable weight; Greek uses the system font) ---------- */
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/fonts/nunito-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/fonts/nunito-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(/fonts/nunito-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- tokens ---------- */
:root{
  --sd-bg:#f3f5fa;--sd-surface:#fff;--sd-surface-2:#eceff5;--sd-ink:#161c2d;--sd-muted:#5f6b80;--sd-border:#e1e5ec;
  --sd-accent:#2f9e62;--sd-accent-ink:#fff;--sd-accent-soft:rgba(47,158,98,.14);--sd-link:#1f7a4a;
  --sd-cell:#e6e9f0;--sd-cur:#d6dbe7;--sd-cur-b:#b9c1d3;--sd-tile-ink:#2b3140;
  --sd-green:#57ac78;--sd-yellow:#e9c601;--sd-grey:#a2a2a2;--sd-key:#d3d9e4;
  --sd-shadow:0 1px 2px rgba(16,24,40,.06),0 4px 14px rgba(16,24,40,.06);
  --sd-radius:14px;
  --sb-thumb:rgba(47,158,98,.55);--sb-thumb-hover:rgba(47,158,98,.8);--sb-track:transparent;
}
html.sd-dark{
  --sd-bg:#111318;--sd-surface:#1a1d24;--sd-surface-2:#242832;--sd-ink:#e9ebf1;--sd-muted:#9ba4b4;--sd-border:#2c313b;
  --sd-accent:#3fb877;--sd-accent-soft:rgba(63,184,119,.16);--sd-link:#6fd39c;
  --sd-cell:#2a2e38;--sd-cur:#363b47;--sd-cur-b:#4a5161;--sd-tile-ink:#e9ebf1;--sd-key:#3a404d;
  --sd-shadow:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.3);
  --sb-thumb:rgba(255,255,255,.28);--sb-thumb-hover:rgba(255,255,255,.45);
}
html.sd-cb{--sd-green:#f5793a;--sd-yellow:#4ca0ec}

/* ---------- scrollbars (pill thumb, no track) ---------- */
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:var(--sb-track)}
::-webkit-scrollbar-thumb{background:var(--sb-thumb);border-radius:999px;border:3px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:var(--sb-thumb-hover);border:3px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-corner{background:transparent}
.sd-dd__panel::-webkit-scrollbar,.qlang__menu::-webkit-scrollbar,.sd-scroll #root .boards-wrapper::-webkit-scrollbar,.Top-window-frame::-webkit-scrollbar,.qpop__card::-webkit-scrollbar,.sd-tablewrap::-webkit-scrollbar{width:14px;height:14px}
.sd-dd__panel::-webkit-scrollbar-thumb,.qlang__menu::-webkit-scrollbar-thumb,.sd-scroll #root .boards-wrapper::-webkit-scrollbar-thumb,.Top-window-frame::-webkit-scrollbar-thumb,.qpop__card::-webkit-scrollbar-thumb,.sd-tablewrap::-webkit-scrollbar-thumb{border:3px solid transparent;border-right-width:6px;background-clip:padding-box}
.sd-dd__panel::-webkit-scrollbar-track,.qlang__menu::-webkit-scrollbar-track,.Top-window-frame::-webkit-scrollbar-track,.qpop__card::-webkit-scrollbar-track{margin:14px 0}
@supports not selector(::-webkit-scrollbar){
  html{scrollbar-color:var(--sb-thumb) var(--sb-track)}
  .sd-dd__panel,.qlang__menu,.sd-scroll #root .boards-wrapper,.Top-window-frame,.qpop__card{scrollbar-width:thin;scrollbar-color:var(--sb-thumb) transparent}
}

/* ---------- old inline styles of the "Play Other Games" block (both looks) ---------- */
.frames_block{display:flex;flex-wrap:wrap;max-width:1000px;margin:auto}
@media (max-width:991px){.frames_block{margin-left:3px;margin-right:3px}}
.we_but{display:inline-flex;min-height:90px;max-height:90px;align-items:center;text-decoration:none;margin:12px;width:calc(25% - 24px);text-align:center;padding:2px 13px;outline:0;font-size:14px;letter-spacing:.5px;font-weight:600;border:1px solid;border-radius:8px;color:#3c4858!important;background-color:#f8f9fc;transition:transform .2s}
@media (max-width:710px){.we_but{width:calc(50% - 24px);font-size:12px;margin-top:5px}}
.we_but:hover{transform:translate(0,-3px)}
.wemage{width:38px;margin-right:10px}
.we_d{margin:auto}

/* ---------- common bits (both looks) ---------- */
[hidden]{display:none!important}
.sd-icon-slot{display:none}
.q-key-backspace{font-size:0!important}
.q-key-backspace::before{content:"";display:block;width:26px;height:22px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M8.5 2h14A2.5 2.5 0 0 1 25 4.5v13a2.5 2.5 0 0 1-2.5 2.5h-14L1.5 11z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 7.5l7 7M19 7.5l-7 7' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M8.5 2h14A2.5 2.5 0 0 1 25 4.5v13a2.5 2.5 0 0 1-2.5 2.5h-14L1.5 11z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 7.5l7 7M19 7.5l-7 7' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.sd-cb .letter-correct{background-color:#f5793a!important}
.sd-cb .letter-elsewhere{background-color:#4ca0ec!important}
html.sd-kb-one #root .Game-keyboard-button[data-sdk]{background-image:none!important}
html.sd-kb-one #root .Game-keyboard-button[data-sdk="n"]{background-color:var(--sd-key)!important}
html.sd-kb-one #root .Game-keyboard-button[data-sdk="a"]{background-color:#8b9099!important;color:#fff}
html.sd-kb-one #root .Game-keyboard-button[data-sdk="e"]{background-color:var(--sd-yellow)!important;color:#fff}
html.sd-kb-one #root .Game-keyboard-button[data-sdk="c"]{background-color:var(--sd-green)!important;color:#fff}
html.sd-dark.sd-kb-one #root .Game-keyboard-button[data-sdk="a"]{background-color:#4b505b!important}
.sd-toast{position:fixed;left:50%;bottom:24px;z-index:200;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:10px 18px;border-radius:999px;background:#1d2330;color:#fff;font:700 15px/1.3 Nunito,system-ui,sans-serif;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:opacity .2s,transform .2s}
.sd-toast.is-on{opacity:1;transform:translate(-50%,0)}
.sd-linkbtn{background:none;border:0;padding:4px 6px;font:inherit;font-size:14px;font-weight:700;color:var(--sd-muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer;border-radius:6px}
.sd-linkbtn:hover{color:var(--sd-ink)}
.sd-lookline{margin:6px 0 0;text-align:center}
.sd-under{text-align:center}
#root .board-item{cursor:pointer}

/* side rails (Ezoic 103/104), new look only, at the screen edges */
#qgame-wrap{position:relative}
.qside{display:none}
html.sd-new[data-qside] .qside{display:block;position:absolute;top:8px;bottom:0;z-index:5;width:160px}
html.sd-new[data-qside="300"] .qside{width:300px}
html.sd-new[data-qside] .qside--l{left:12px}
html.sd-new[data-qside] .qside--r{right:12px}
html.sd-new[data-qside] .qside__in{position:sticky;top:12px}
html.sd-new[data-qside="160"] #root{margin:0 184px}
html.sd-new[data-qside="300"] #root{margin:0 324px}
@media (max-width:1399px){html.sd-new[data-qside] .qside{display:none}html.sd-new[data-qside] #root{margin:0}}
@media (max-width:1699px){html.sd-new[data-qside="300"] .qside{display:none}html.sd-new[data-qside="300"] #root{margin:0}}

/* loader */
.qloader{display:none}
#qgame-wrap.qloading .qloader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;position:absolute;inset:0;min-height:320px;z-index:20;background:var(--sd-bg,#fff)}
.sd-classic #qgame-wrap.qloading .qloader{background:#fff}
#qgame-wrap.qloading{min-height:420px}
.qloader__grid{display:grid;grid-template-columns:repeat(4,14px);gap:5px}
.qloader__grid span{width:14px;height:14px;border-radius:4px;background:var(--sd-cell,#e6e9f0);animation:sdpulse 1.2s ease-in-out infinite}
.qloader__grid span:nth-child(3n){background:#57ac78}.qloader__grid span:nth-child(5n){background:#e9c601}
.qloader__grid span:nth-child(4n+2){animation-delay:.2s}.qloader__grid span:nth-child(4n+3){animation-delay:.4s}.qloader__grid span:nth-child(4n){animation-delay:.6s}
.qloader__text{font:700 15px Nunito,system-ui,sans-serif;color:var(--sd-muted,#5f6b80)}
@keyframes sdpulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.7);opacity:.55}}
@media (prefers-reduced-motion:reduce){.qloader__grid span{animation:none}}

/* ======================================================================
   NEW LOOK
   ====================================================================== */
html.sd-new body{background:var(--sd-bg);color:var(--sd-ink);font-family:Nunito,system-ui,-apple-system,"Segoe UI",sans-serif;margin:0;overflow-x:hidden}
html.sd-new body.dark{background:var(--sd-bg)}
html.sd-new #root{background:transparent}
html.sd-new a{color:var(--sd-link)}
html.sd-new :focus-visible{outline:3px solid var(--sd-accent);outline-offset:2px}

/* header */
html.sd-new .sd-header{position:relative;z-index:50;display:flex;align-items:center;gap:10px;max-width:1240px;height:auto;min-height:60px;margin:0 auto;padding:8px 14px;transform:none;flex-wrap:wrap}
html.sd-new .sd-logo{display:inline-flex;align-items:center;gap:9px;margin:0;padding:4px 6px;height:auto;background:none;color:var(--sd-ink)!important;font-size:21px;font-weight:900;letter-spacing:-.01em;text-decoration:none;border-radius:10px}
html.sd-new .sd-logo:hover{background:var(--sd-surface-2)}
.sd-logo__mark{display:none}
html.sd-new .sd-logo__mark{display:grid;grid-template-columns:repeat(2,12px);gap:3px}
.sd-logo__mark i,.qpop__mark i{display:block;width:12px;height:12px;border-radius:3px;background:#57ac78}
.sd-logo__mark i:nth-child(2),.qpop__mark i:nth-child(2){background:#e9c601}
.sd-logo__mark i:nth-child(3),.qpop__mark i:nth-child(3){background:#a2a2a2}
html.sd-new .sd-icons{margin-left:auto;display:flex;align-items:center;gap:4px;padding:4px;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:999px;box-shadow:var(--sd-shadow)}
html.sd-new .sd-icon,html.sd-new .sd-icons .page-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0;padding:0;border:0;border-radius:999px;background:transparent;color:var(--sd-muted);cursor:pointer}
html.sd-new .sd-icon svg{width:22px;height:22px}
html.sd-new .sd-icons .page-icon svg{width:24px;height:24px;padding:0;background:none;color:inherit;border-radius:0}
html.sd-new .sd-icon:hover,html.sd-new .sd-icons .page-icon:hover{background:var(--sd-surface-2);color:var(--sd-ink)}
html.sd-new .sd-icon[aria-pressed="true"],html.sd-new .qlang.is-open .sd-icon{background:var(--sd-accent-soft);color:var(--sd-accent)}
html.sd-new .App-icon-container{display:inline-flex}
#q_hint{color:#c48a00}
html.sd-dark #q_hint{color:#f0c040}

/* dropdowns (modes, languages) */
.sd-dd,.qlang{position:relative}
html.sd-new .sd-dd__btn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px 0 14px;border:1px solid var(--sd-border);border-radius:999px;background:var(--sd-surface);color:var(--sd-ink);font:800 15px/1 Nunito,system-ui,sans-serif;cursor:pointer;box-shadow:var(--sd-shadow);max-width:230px}
html.sd-new .sd-dd__btn:hover{border-color:var(--sd-cur-b)}
.sd-dd__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sd-dd__arrow{width:16px;height:16px;flex:none;transition:transform .2s}
.sd-dd.is-open .sd-dd__arrow{transform:rotate(180deg)}
.sd-dd__panel{position:absolute;top:calc(100% + 8px);left:0;z-index:80;min-width:220px;max-height:min(70vh,460px);overflow-y:auto;padding:6px;background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);border:1px solid var(--sd-border,#e1e5ec);border-radius:16px;box-shadow:0 16px 40px rgba(16,24,40,.18);animation:sdpop .14s ease-out}
.qlang .sd-dd__panel{left:auto;right:0}
@keyframes sdpop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.sd-dd__panel,.qpop__card{animation:none!important}.sd-dd__arrow{transition:none}}
.sd-dd__list,.qlang__list{list-style:none;margin:0;padding:0}
.sd-dd__list--links{margin-top:6px;padding-top:6px;border-top:1px solid var(--sd-border,#e1e5ec)}
.sd-dd__item,.qlang__item{position:relative;display:block;padding:9px 34px 9px 12px;border-radius:10px;color:var(--sd-ink,#161c2d)!important;font:700 15px/1.25 Nunito,system-ui,sans-serif;text-decoration:none;white-space:nowrap}
.sd-dd__item:hover,.sd-dd__item:focus-visible,.qlang__item:hover,.qlang__item:focus-visible{background:var(--sd-surface-2,#eceff5);outline:none}
.sd-dd__item.is-current,.qlang__item.is-current{background:var(--sd-accent-soft,rgba(47,158,98,.14));color:var(--sd-accent,#2f9e62)!important}
.sd-dd__item.is-current::after,.qlang__item.is-current::after{content:"";position:absolute;right:14px;top:50%;width:6px;height:11px;margin-top:-7px;border:solid currentColor;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
/* new look (quordly.org): left-aligned items, the current one filled with the accent; modes get a grey one-line
   description under the name, languages sit in two columns. sdui.js keeps a panel inside the screen. */
html.sd-new .sd-dd__panel{max-width:calc(100vw - 16px);padding:6px;border-radius:16px;box-shadow:0 1px 2px rgba(16,24,40,.06),0 22px 48px -18px rgba(16,24,40,.45);text-align:left}
html.sd-new.sd-dark .sd-dd__panel{box-shadow:0 1px 2px rgba(0,0,0,.5),0 24px 50px -20px rgba(0,0,0,.9)}
html.sd-new .sd-modes .sd-dd__panel{width:330px;max-height:min(78vh,620px)}
html.sd-new .sd-dd__list{display:grid;gap:2px}
html.sd-new .sd-dd__item,html.sd-new .qlang__item{padding:8px 34px 8px 12px;text-align:left;transition:background-color .14s,color .14s}
html.sd-new .sd-dd__item:hover,html.sd-new .sd-dd__item:focus-visible,html.sd-new .qlang__item:hover,html.sd-new .qlang__item:focus-visible{background:var(--sd-accent-soft);color:var(--sd-accent)!important}
html.sd-new .sd-dd__item:focus-visible,html.sd-new .qlang__item:focus-visible{box-shadow:inset 0 0 0 2px var(--sd-accent)}
html.sd-new .sd-dd__item.is-current,html.sd-new .qlang__item.is-current{background:var(--sd-accent);color:#fff!important}
.sd-dd__name{display:block;overflow:hidden;text-overflow:ellipsis}
.sd-dd__desc{display:block;margin-top:2px;font-size:12.5px;font-weight:600;line-height:1.3;color:var(--sd-muted,#5f6b80);white-space:normal}
html.sd-new .sd-dd__item:hover .sd-dd__desc,html.sd-new .sd-dd__item:focus-visible .sd-dd__desc{color:var(--sd-muted)}
html.sd-new .sd-dd__item.is-current .sd-dd__desc{color:rgba(255,255,255,.86)}
html.sd-new .sd-dd__list--links{margin-top:6px;padding-top:6px}
html.sd-new .sd-dd__list--links .sd-dd__item{padding-top:7px;padding-bottom:7px;font-size:14px;color:var(--sd-muted)!important}
html.sd-new .qlang__menu{width:312px}
html.sd-new .qlang__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
html.sd-new .qlang__item{display:flex;align-items:center;min-height:38px;padding:7px 28px 7px 10px;font-size:13.5px;overflow:hidden;text-overflow:ellipsis}
html.sd-new .qlang__item.is-current::after{right:11px}
@media (max-width:360px){html.sd-new .qlang__item{font-size:12.5px;padding-left:8px}}
@media (prefers-reduced-motion:reduce){html.sd-new .sd-dd__item,html.sd-new .qlang__item{transition:none}}

/* Daily / Unlimited */
html.sd-new .sd-du{display:inline-flex;padding:3px;gap:2px;background:var(--sd-surface-2);border-radius:999px;border:1px solid var(--sd-border)}
.sd-du__opt{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;font:800 14px/1 Nunito,system-ui,sans-serif;text-decoration:none;color:var(--sd-muted)!important;white-space:nowrap}
.sd-du__opt:hover{color:var(--sd-ink)!important}
.sd-du__opt.is-active{background:var(--sd-surface);color:var(--sd-ink)!important;box-shadow:var(--sd-shadow)}

@media (max-width:720px){
  html.sd-new .sd-header{gap:8px;padding:6px 8px;min-height:0}
  html.sd-new .sd-logo{font-size:0;gap:0;padding:6px}
  html.sd-new .sd-logo__mark{grid-template-columns:repeat(2,11px)}
  html.sd-new .sd-dd__btn{height:36px;font-size:14px;padding:0 10px 0 12px;max-width:150px}
  .sd-du__opt{height:30px;padding:0 10px;font-size:13px}
  html.sd-new .sd-icons{order:5;width:100%;justify-content:space-around;margin-left:0;padding:2px 4px}
  html.sd-new .sd-icon,html.sd-new .sd-icons .page-icon{width:36px;height:36px}
}
@media (max-width:360px){.sd-du__opt{padding:0 8px}}

/* mode bar (part B fills it) and mode chips */
html.sd-new .qmode-bar{max-width:900px;margin:0 auto 6px;padding:6px 14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;font-size:14px;color:var(--sd-muted)}
html.sd-new .qmode-bar__head b{color:var(--sd-ink);font-weight:900}
.qmodes-nav{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;max-width:980px;margin:18px auto 6px;padding:0 12px}
.qmodes-nav__label{font-weight:800;color:var(--sd-muted,#5f6b80);font-size:14px}
.qmodes-nav__chip{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--sd-border,#d6dbe5);background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d)!important;font-weight:800;font-size:14px;text-decoration:none}
.qmodes-nav__chip:hover{border-color:var(--sd-accent,#2f9e62)}
.qmodes-nav__chip.is-active{background:var(--sd-accent,#2f9e62);border-color:var(--sd-accent,#2f9e62);color:#fff!important}
/* mode cards under the game (elements/mode-nav.php, part B) */
.sd-mcards{max-width:1080px;margin:20px auto 8px;padding:0 12px;text-align:center}
.sd-mcards__title{font-size:20px;font-weight:900;margin:0 0 12px;color:var(--sd-ink,#161c2d)}
.sd-mcards__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.sd-mcard{display:flex;flex-direction:column;gap:3px;height:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--sd-border,#e1e5ec);background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d)!important;text-decoration:none!important;text-align:left;transition:border-color .15s,transform .15s}
.sd-mcard:hover,.sd-mcard:focus-visible{border-color:var(--sd-accent,#2f9e62);transform:translateY(-1px)}
.sd-mcard:focus-visible{outline:3px solid var(--sd-accent,#2f9e62);outline-offset:2px}
.sd-mcard__name{font-weight:900;font-size:15.5px}
.sd-mcard__tag{font-size:13px;line-height:1.35;color:var(--sd-muted,#5f6b80)}
.sd-mcard.is-current{border-color:var(--sd-accent,#2f9e62);box-shadow:inset 0 0 0 1px var(--sd-accent,#2f9e62)}
@media (max-width:440px){.sd-mcards__list{grid-template-columns:1fr 1fr;gap:8px}.sd-mcard{padding:10px 11px}}
@media (prefers-reduced-motion:reduce){.sd-mcard{transition:none}.sd-mcard:hover{transform:none}}

/* board navigator */
.sd-boardnav{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:900px;margin:0 auto 4px;padding:0 8px}
.sd-boardnav__chips{display:flex;flex-wrap:wrap;justify-content:center;gap:4px}
.sd-chip{min-width:30px;height:28px;padding:0 6px;border:1px solid var(--sd-border,#d6dbe5);border-radius:8px;background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);font:800 13px/1 Nunito,system-ui,sans-serif;cursor:pointer}
.sd-chip:hover{border-color:var(--sd-accent,#2f9e62)}
.sd-chip.is-solved{background:var(--sd-green,#57ac78);border-color:var(--sd-green,#57ac78);color:#fff;opacity:.7}
.sd-chip.is-active{box-shadow:0 0 0 2px var(--sd-accent,#2f9e62);opacity:1}
.sd-chip.is-locked{opacity:.4;cursor:not-allowed;border-style:dashed}
.sd-boardnav__stat{font-size:13px;font-weight:700;color:var(--sd-muted,#5f6b80)}
@media (min-width:900px){html.sd-new:not(.sd-scroll) .sd-boardnav__chips{display:none}}
@media (max-width:440px){.sd-boardnav__chips{gap:3px}.sd-chip{min-width:20px;height:26px;padding:0 2px;font-size:12px;border-radius:6px}}

/* game */
html.sd-new #root .App-container{max-width:none;padding:0 8px}
html.sd-new #root .Game{padding-bottom:0}
html.sd-new #root .Game-options{max-width:900px;min-height:38px;padding:2px 4px;justify-content:center;gap:8px;align-items:center}
html.sd-new #root .Game-options > .App-button-marked:first-child{display:none!important}
html.sd-new #root .App-button{border-radius:999px;font-family:inherit;font-weight:800}
html.sd-new #root .App-button-marked{background:var(--sd-accent);border-color:var(--sd-accent);color:#fff}
html.sd-new #root .game-wrapper{width:100%}
html.sd-new #root .boards-wrapper{display:grid;grid-template-columns:repeat(var(--sd-cols,4),var(--sd-bw,minmax(0,1fr)));justify-content:center;align-items:start;gap:12px;max-height:none;overflow:visible;padding:4px 2px 6px}
html.sd-new #root .board-row{display:contents}
html.sd-new #root .board-row-title{display:none}
html.sd-new #root .board-item{position:relative;flex:none;padding:20px 4px 4px;background:var(--sd-surface);border:2px solid transparent;border-radius:12px;box-shadow:var(--sd-shadow);transition:opacity .25s,border-color .15s}
html.sd-new #root .board-item::before{content:attr(data-n);position:absolute;top:3px;left:8px;font-size:12px;font-weight:900;line-height:14px;color:var(--sd-muted)}
html.sd-new #root .board-item.sd-active{border-color:var(--sd-accent)}
html.sd-new #root .board-item.sd-solved{opacity:.5}
html.sd-new #root .board-item.sd-solved.sd-active{opacity:.8}
html.sd-new #root .board-item.sd-solved::after{content:"";position:absolute;top:5px;right:9px;width:5px;height:9px;border:solid var(--sd-accent);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
html.sd-new #root .row__field{outline:none}
html.sd-new #root .Row-letter{flex:1 1 0;width:auto;min-width:0;height:var(--sd-rh,22px);margin:2px;border-radius:5px;background:var(--sd-cell);border:0;color:var(--sd-tile-ink);font-size:var(--sd-fs,14px);font-weight:900}
html.sd-new #root .Row-current .Row-letter{height:var(--sd-rh,22px);font-size:var(--sd-fs,14px);background:var(--sd-cur);box-shadow:inset 0 0 0 2px var(--sd-cur-b)}
html.sd-new #root .letter-correct{background:var(--sd-green);color:#fff!important;box-shadow:none}
html.sd-new #root .letter-elsewhere{background:var(--sd-yellow);color:#fff!important;box-shadow:none}
html.sd-new #root .letter-absent{background:#9aa0aa;color:#fff!important;box-shadow:none}
html.sd-new.sd-dark #root .letter-absent{background:#4b505b}
html.sd-new.sd-scroll #root .boards-wrapper{max-height:var(--sd-bh,60vh);overflow-y:auto;overscroll-behavior:contain;border-radius:12px}
@media (max-width:559px){
  html.sd-new #root .boards-wrapper{gap:8px}
  html.sd-new #root .board-item.sd-solved .Row:not(.sd-win){display:none!important}
  html.sd-new #root .board-item{padding-top:18px}
}
/* keyboard */
html.sd-new #root .keyboard__container{position:sticky;bottom:0;padding:8px 0 calc(6px + env(safe-area-inset-bottom))!important;background:var(--sd-bg)}
html.sd-new #root .Game-keyboard{max-width:640px}
html.sd-new #root .Game-keyboard-button{min-height:52px;margin:3px;border-radius:8px;font-size:19px;font-weight:900;color:var(--sd-ink);background-color:var(--sd-key);user-select:none;-webkit-tap-highlight-color:transparent}
html.sd-new.sd-dark #root .Game-keyboard-button{color:#fff}
@media (max-width:600px),(max-height:760px){html.sd-new #root .Game-keyboard-button{min-height:46px;font-size:17px;margin:2.5px}}
@media (max-width:380px){html.sd-new #root .Game-keyboard-button{min-height:44px;font-size:15px;margin:2px}}

/* engine pages (about, settings, statistics) and own archive: an in-page sheet as on quordly.org: centred title with
   a rule under it and a plain close cross, no outer card; options, stats and examples sit in their own rounded cards */
html.sd-new #root .App-page,html.sd-new .qcal-page .App-page{width:100%;max-width:620px;margin:2px auto 20px;padding:0 4px;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:left}
html.sd-new .App-page > .App-title{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;max-width:none;height:52px;min-height:52px;margin:0 0 12px;padding:0 48px;background:transparent;border:0;border-bottom:1px solid var(--sd-border);border-radius:0;color:var(--sd-ink);font-size:20px;font-weight:900;letter-spacing:-.01em;line-height:1.2;text-align:center}
html.sd-new .App-button-close{position:absolute;top:8px;right:2px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--sd-muted);cursor:pointer;transition:background-color .15s,color .15s}
html.sd-new .App-button-close::before,html.sd-new .App-button-close::after{content:"";position:absolute;top:50%;left:50%;width:16px;height:2px;margin:0;border-radius:2px;background:currentColor}
html.sd-new .App-button-close::before{transform:translate(-50%,-50%) rotate(45deg)}
html.sd-new .App-button-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
html.sd-new .App-button-close:hover{background:var(--sd-accent-soft);color:var(--sd-accent)}
html.sd-new #root .Settings,html.sd-new #root .App-statistics,html.sd-new #root .App-about{padding:0;background:transparent;color:var(--sd-ink)}

/* settings: each option is a card, the switch sits on its right */
html.sd-new #root .Settings hr,html.sd-new .sd-set-hr{display:none}
html.sd-new #root .Settings-setting{display:block!important;position:relative;margin:0 0 10px;padding:15px 72px 15px 16px;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:16px;text-align:left}
html.sd-new #root .Settings > .Settings-setting:first-child{padding-right:16px}
html.sd-new #root .Settings-setting > div[style]{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0!important}
html.sd-new #root .Settings-param-title{margin:0 0 3px;font-size:16px;font-weight:900;line-height:1.3;text-transform:none;color:var(--sd-ink)}
html.sd-new #root .Settings-param-desc{margin:0;font-size:13.5px;line-height:1.45;color:var(--sd-muted)}
html.sd-new #root .Settings-checkbox{position:absolute;top:50%;right:16px;margin:0;transform:translateY(-50%)}
html.sd-new #root input.App-switch-checkbox{display:block;position:relative;width:46px;height:28px;margin:0;border:0;border-color:transparent!important;border-radius:999px;background:var(--sd-cur) none;cursor:pointer;transition:background-color .18s}
html.sd-new #root input.App-switch-checkbox::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s}
html.sd-new #root input.App-switch-checkbox:checked{background-color:var(--sd-accent)}
html.sd-new #root input.App-switch-checkbox:checked::after{transform:translateX(18px)}
html.sd-new #root .App-button-circle,html.sd-new #root .App-button-circle-fixed{width:42px;height:42px;margin:0;border:1px solid var(--sd-border);border-radius:50%;background:var(--sd-surface-2);color:var(--sd-ink);font:800 16px/1 Nunito,system-ui,sans-serif;cursor:pointer}
html.sd-new #root .App-button-circle:hover,html.sd-new #root .App-button-circle-fixed:hover{background:var(--sd-accent-soft);color:var(--sd-accent)}
html.sd-new #root .App-button-circle:disabled,html.sd-new #root .App-button-circle-fixed:disabled{background:var(--sd-accent);border-color:var(--sd-accent);color:#fff;cursor:default}
.sd-settings-extra .sd-set{position:relative}
.sd-set-hr{border:0;border-top:1px solid var(--sd-border,#e1e5ec);margin:10px 0}
.sd-set__link{display:inline-block;margin-top:6px;font-weight:800}

/* statistics: six stat cards in one grid, the distribution card under them with pill bars */
html.sd-new #root .App-statistics{text-align:center}
html.sd-new #root .stats-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;max-width:none;margin:0;padding:0}
html.sd-new #root .stats-container{display:contents}
html.sd-new #root .stat-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:auto;min-width:0;min-height:0;margin:0;padding:14px 8px 12px;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:16px;color:var(--sd-ink)}
html.sd-new #root .stat-value{font-size:28px;font-weight:900;line-height:1.1;letter-spacing:-.02em;color:var(--sd-ink)}
html.sd-new #root .stat-description{font-size:11px;font-weight:800;line-height:1.3;letter-spacing:.04em;text-transform:uppercase;color:var(--sd-muted)}
html.sd-new #root .stats-chart{grid-column:1/-1;margin:0;padding:16px;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:16px;text-align:left}
html.sd-new #root .chart-title{margin:0 0 12px;font-size:15px;font-weight:900;text-align:left;color:var(--sd-ink)}
html.sd-new #root .stats-chart table{display:block;width:100%;height:auto;border-collapse:collapse}
html.sd-new #root .stats-chart tbody{display:block;width:100%}
html.sd-new #root .stats-chart tr{display:grid;grid-template-columns:40px minmax(0,1fr) 32px;align-items:center;gap:10px;height:auto;margin:0 0 8px}
html.sd-new #root .stats-chart tr:last-child{margin-bottom:0}
html.sd-new #root .stats-chart td{display:block;width:auto;height:auto;padding:0;border:0}
html.sd-new #root .stats-chart .number{font-size:13px;font-weight:800;color:var(--sd-muted)}
html.sd-new #root .stats-chart .amount{font-size:13px;font-weight:800;text-align:right;color:var(--sd-ink)}
html.sd-new #root .stats-chart .percentage{position:relative;display:block;width:100%;height:18px;overflow:hidden;border-radius:999px;background:var(--sd-cell);color:transparent;font-size:0}
html.sd-new #root .stats-chart .percentage span{position:absolute;top:0;bottom:0;left:0;min-width:18px;border-radius:999px;background:var(--sd-accent);font-size:0}
@media (max-width:560px){html.sd-new #root .stats-content{grid-template-columns:repeat(2,minmax(0,1fr))}}
.qstats-tabs{display:flex;justify-content:center;gap:4px;margin:0 auto 8px;padding:3px;width:max-content;background:var(--sd-surface-2,#eceff5);border-radius:999px}
.qstats-tab{border:0;background:none;padding:7px 16px;border-radius:999px;font:800 14px Nunito,system-ui,sans-serif;color:var(--sd-muted,#5f6b80);cursor:pointer}
.qstats-tab.is-active{background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);box-shadow:var(--sd-shadow)}
.qstats-lens{display:flex;justify-content:center;align-items:center;gap:6px;margin:0 0 10px;flex-wrap:wrap}
.qstats-lens:empty{display:none}
.qstats-lens__label{font-size:13px;font-weight:800;color:var(--sd-muted,#5f6b80)}
.qstats-len{min-width:32px;height:30px;border:1px solid var(--sd-border,#d6dbe5);border-radius:8px;background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);font-weight:800;cursor:pointer}
.qstats-len.is-active{background:var(--sd-accent,#2f9e62);border-color:var(--sd-accent,#2f9e62);color:#fff}
html.sd-new .App-statistics .qstats-tabs{margin:0 auto 14px;padding:4px;background:var(--sd-surface);border:1px solid var(--sd-border);box-shadow:none}
html.sd-new .qstats-tab{min-width:104px;padding:7px 18px;font-size:13.5px;transition:background-color .15s,color .15s}
html.sd-new .qstats-tab:hover{color:var(--sd-ink)}
html.sd-new .qstats-tab.is-active,html.sd-new .qstats-tab.is-active:hover{background:var(--sd-accent);color:#fff;box-shadow:none}
html.sd-new .qstats-lens{margin:-4px auto 14px}
html.sd-new .qstats-lens__label{font-size:12px;letter-spacing:.02em;text-transform:uppercase;margin-right:4px}
html.sd-new .qstats-len{min-width:34px;height:30px;border-radius:10px}

/* about: example rows in cards, letters as small coloured tiles */
html.sd-new #root .App-about{display:flex;flex-direction:column;gap:12px;font-size:15.5px;line-height:1.6;text-align:left}
html.sd-new #root .App-about > hr{display:none}
html.sd-new #root .App-about > p{margin:0;padding:0 4px;color:var(--sd-muted)}
html.sd-new #root .App-about table.Game-rows{display:flex;justify-content:center;width:100%;height:auto;margin:0;padding:16px 12px;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:16px;border-collapse:separate}
html.sd-new #root .App-about table.Game-rows tbody{display:flex;justify-content:center}
html.sd-new #root .App-about tr.Row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;width:auto;height:auto}
html.sd-new #root .App-about td{display:block;width:auto;height:auto;padding:0;border:0;background:transparent}
html.sd-new #root .App-about td.Row-letter{display:inline-flex;flex:0 0 34px;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;margin:0;border-radius:7px;background:var(--sd-cell);color:var(--sd-tile-ink);font-size:16px;font-weight:900;line-height:1;text-transform:uppercase}
html.sd-new #root .App-about td.Row-letter.letter-correct{background:var(--sd-green);color:#fff}
html.sd-new #root .App-about td.Row-letter.letter-elsewhere{background:var(--sd-yellow);color:#fff}
html.sd-new #root .App-about td.Row-letter.letter-absent{background:#9aa0aa;color:#fff}
html.sd-new #root .App-about .Row-annotation{width:auto;margin:0 0 0 8px;padding:5px 10px;border:1px solid var(--sd-border);border-radius:999px;background:var(--sd-surface-2);color:var(--sd-muted);font-size:13px;font-weight:800;text-transform:none}
html.sd-new #root .App-about b{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin:0 2px;padding:0 4px;border:0;border-radius:5px;background:#9aa0aa;color:#fff;font-size:12px;font-weight:900;line-height:1;vertical-align:middle;text-transform:uppercase}
html.sd-new #root .App-about b.green-bg{background:var(--sd-green)}
html.sd-new #root .App-about b.yellow-bg{background:var(--sd-yellow)}
html.sd-new #root .App-about strong{display:block;margin:4px 0 0;padding:0;background:transparent;color:var(--sd-muted);font-size:13.5px;font-weight:600}
html.sd-new.sd-dark #root .App-about td.Row-letter.letter-absent,html.sd-new.sd-dark #root .App-about b:not(.green-bg):not(.yellow-bg){background:#4b505b}
@media (prefers-reduced-motion:reduce){html.sd-new #root input.App-switch-checkbox,html.sd-new #root input.App-switch-checkbox::after,html.sd-new .App-button-close{transition:none}}

/* archive calendar */
.qcal-open #root{display:none!important}
.qcal{max-width:420px;margin:0 auto}
.qcal__head{display:flex;align-items:center;justify-content:space-between;margin:4px 0 10px}
.qcal__label{font-weight:900;font-size:18px}
.qcal__nav{width:38px;height:38px;border:1px solid var(--sd-border,#d6dbe5);border-radius:999px;background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.qcal__nav svg{width:18px;height:18px}
.qcal__nav:disabled{opacity:.35;cursor:default}
.qcal__dow,.qcal__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center}
.qcal__dow span{font-size:12px;font-weight:800;color:var(--sd-muted,#5f6b80);padding:2px 0}
.qcal__day{position:relative;aspect-ratio:1;border:1px solid var(--sd-border,#e1e5ec);border-radius:10px;background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);font:800 15px Nunito,system-ui,sans-serif;cursor:pointer;padding:0}
.qcal__day.is-empty{border:0;background:none;cursor:default}
.qcal__day:hover:not(:disabled){border-color:var(--sd-accent,#2f9e62)}
.qcal__day:disabled{opacity:.35;cursor:default}
.qcal__day.is-today{box-shadow:inset 0 0 0 2px var(--sd-accent,#2f9e62)}
.qcal__day.is-selected{background:var(--sd-accent-soft,rgba(47,158,98,.14))}
.qcal__day.is-won{background:#57ac78;border-color:#57ac78;color:#fff}
.qcal__day.is-done{background:#9aa0aa;border-color:#9aa0aa;color:#fff}
.qcal__day.is-progress{background:#f6e7a3;border-color:#e9c601}
.qcal__badge{position:absolute;right:3px;top:3px;width:11px;height:11px}
.qcal__badge svg{width:100%;height:100%;display:block}
.qcal__badge--dot{width:7px;height:7px;border-radius:50%;background:#c49a00;right:5px;top:5px}
.qcal__foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}
.qcal__today{height:38px;padding:0 16px;border:0;border-radius:999px;background:var(--sd-accent,#2f9e62);color:#fff;font:800 14px Nunito,system-ui,sans-serif;cursor:pointer}
.qcal__legend{display:flex;gap:10px;font-size:12px;font-weight:700;color:var(--sd-muted,#5f6b80)}
.qcal__legend span{display:inline-flex;align-items:center;gap:4px}
.qcal__swatch{width:11px;height:11px;border-radius:3px;display:inline-block}
.qcal__swatch.is-won{background:#57ac78}.qcal__swatch.is-done{background:#9aa0aa}.qcal__swatch.is-progress{background:#f6e7a3;border:1px solid #e9c601}
/* new look: month in a pill bar, days as soft tiles, results as a small round badge (quordly.org) */
html.sd-new .qcal{max-width:none;padding:0 0 6px}
html.sd-new .qcal__head{gap:8px;margin:0 0 12px;padding:4px;background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:999px}
html.sd-new .qcal__label{flex:1;text-align:center;font-size:15px}
html.sd-new .qcal__nav{width:36px;height:36px;border:0;background:transparent;transition:background-color .15s,color .15s}
html.sd-new .qcal__nav:hover:not(:disabled){background:var(--sd-accent-soft);color:var(--sd-accent)}
html.sd-new .qcal__dow,html.sd-new .qcal__grid{gap:6px}
html.sd-new .qcal__dow{margin:0 0 6px}
html.sd-new .qcal__dow span{font-size:11px;text-transform:uppercase}
html.sd-new .qcal__day{aspect-ratio:auto;height:46px;border:0;border-radius:12px;background:var(--sd-surface);color:var(--sd-ink);font-weight:800;transition:background-color .14s,color .14s,box-shadow .14s}
html.sd-new .qcal__day:hover:not(:disabled):not(.is-empty){background:var(--sd-accent-soft);color:var(--sd-accent)}
html.sd-new .qcal__day.is-empty{background:transparent}
html.sd-new .qcal__day:disabled{background:transparent;opacity:.35}
html.sd-new .qcal__day.is-today{box-shadow:inset 0 0 0 2px var(--sd-accent)}
html.sd-new .qcal__day.is-won,html.sd-new .qcal__day.is-done,html.sd-new .qcal__day.is-progress{background:var(--sd-surface);color:var(--sd-ink)}
html.sd-new .qcal__day.is-won{box-shadow:inset 0 0 0 1px var(--sd-green)}
html.sd-new .qcal__day.is-done{box-shadow:inset 0 0 0 1px #9aa0aa}
html.sd-new .qcal__day.is-progress{box-shadow:inset 0 0 0 1px var(--sd-yellow)}
html.sd-new .qcal__day.is-today.is-won,html.sd-new .qcal__day.is-today.is-done,html.sd-new .qcal__day.is-today.is-progress{box-shadow:inset 0 0 0 2px var(--sd-accent)}
html.sd-new .qcal__day.is-selected,html.sd-new .qcal__day.is-selected:hover{background:var(--sd-accent)!important;color:#fff!important}
html.sd-new .qcal__badge{top:4px;right:5px;display:flex;align-items:center;justify-content:center;width:14px;height:14px;padding:2px;border-radius:50%;color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}
html.sd-new .qcal__day.is-won .qcal__badge{background:var(--sd-green)}
html.sd-new .qcal__day.is-done .qcal__badge{background:#9aa0aa}
html.sd-new .qcal__badge--dot,html.sd-new .qcal__day.is-progress .qcal__badge{width:10px;height:10px;top:6px;right:7px;padding:0;background:var(--sd-yellow)}
html.sd-new .qcal__day.is-selected .qcal__badge{box-shadow:0 0 0 1.5px rgba(255,255,255,.9)}
html.sd-new .qcal__foot{flex-direction:column;justify-content:center;gap:12px;margin-top:16px}
html.sd-new .qcal__today{height:auto;padding:8px 18px;border:1px solid var(--sd-border);background:var(--sd-surface);color:var(--sd-ink);font-size:13.5px;transition:background-color .15s,color .15s}
html.sd-new .qcal__today:hover{background:var(--sd-accent-soft);color:var(--sd-accent)}
html.sd-new .qcal__legend{flex-wrap:wrap;justify-content:center;gap:14px}
html.sd-new .qcal__legend span{gap:6px}
html.sd-new .qcal__swatch{width:10px;height:10px;border:0;border-radius:50%}
html.sd-new .qcal__swatch.is-won{background:var(--sd-green)}
html.sd-new .qcal__swatch.is-progress{background:var(--sd-yellow)}
@media (max-width:440px){html.sd-new .qcal__dow,html.sd-new .qcal__grid{gap:4px}html.sd-new .qcal__day{height:40px;border-radius:10px;font-size:14px}}
@media (prefers-reduced-motion:reduce){html.sd-new .qcal__day,html.sd-new .qcal__nav,html.sd-new .qcal__today{transition:none}}

/* end-of-game window: centred title over a rule, as the in-page sheets */
html.sd-new #root .Top-window-background{position:fixed;inset:0;z-index:90;display:flex;align-items:flex-start;justify-content:center;padding:64px 12px 20px;background:rgba(10,14,22,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
html.sd-new #root .Top-window-frame{display:flex;flex-direction:column;width:min(460px,100%);max-height:min(86vh,760px);margin:0 auto;overflow:auto;border:1px solid var(--sd-border);border-radius:22px;background:var(--sd-surface);color:var(--sd-ink);box-shadow:0 28px 64px -22px rgba(0,0,0,.5);animation:sdpop .16s ease-out}
html.sd-new #root .Top-window-title{position:relative;display:flex;flex:none;align-items:center;justify-content:center;height:54px;min-height:54px;margin:0;padding:0 48px;background:var(--sd-surface);border:0;border-bottom:1px solid var(--sd-border);border-radius:22px 22px 0 0;color:var(--sd-ink);font-size:18px;font-weight:900}
html.sd-new #root .Top-window-content{height:auto;width:100%;padding:18px 22px 22px;background:var(--sd-surface);color:var(--sd-ink)}
html.sd-new #root .Top-window-frame .App-button-close{top:9px;right:9px}
@media (max-height:640px){html.sd-new #root .Top-window-background{padding-top:16px}}
html.sd-new #root .Game-result-answer{background:var(--sd-surface-2);border:1px solid var(--sd-border);border-radius:10px;color:var(--sd-ink);font-weight:800;line-height:1.5}
html.sd-new #root .Game-result-content > span{color:var(--sd-ink)}
.sd-share-res{display:inline-flex!important;align-items:center;gap:8px;justify-content:center;margin:8px auto 4px}
.sd-share-res svg{width:18px;height:18px}
html.sd-new #root .sd-share-res{background:var(--sd-surface-2);color:var(--sd-ink);border:1px solid var(--sd-border)}

/* popups (bookmark, hint) */
.qpop{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(10,14,22,.55)}
.qpop.is-open{display:flex}
.qpop__card{position:relative;width:min(420px,100%);max-height:calc(100vh - 32px);overflow-y:auto;padding:22px 20px 18px;background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.35);text-align:center;font-family:Nunito,system-ui,sans-serif;animation:sdpop .16s ease-out}
.qpop__x{position:absolute;top:10px;right:10px;width:36px;height:36px;border:0;border-radius:999px;background:var(--sd-surface-2,#eceff5);color:var(--sd-muted,#5f6b80);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.qpop__x svg{width:18px;height:18px}
.qpop__mark{display:inline-grid;grid-template-columns:repeat(2,16px);gap:4px;margin:4px 0 10px}
.qpop__mark i{width:16px;height:16px;border-radius:4px}
.qpop__mark--hint{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:14px;background:#fff4cc;color:#b07c00}
.qpop__mark--hint svg{width:28px;height:28px}
.qpop__title{font-size:21px;font-weight:900;margin-bottom:6px}
.qpop__text{font-size:15px;color:var(--sd-muted,#5f6b80);margin-bottom:12px;line-height:1.45}
.qpop__hint{display:none;margin:0 0 12px;padding:8px 10px;border-radius:10px;background:var(--sd-surface-2,#eceff5);font-weight:800}
.qpop__actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.qpop__btn{height:42px;padding:0 18px;border-radius:999px;border:1px solid var(--sd-border,#d6dbe5);background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);font:800 15px Nunito,system-ui,sans-serif;cursor:pointer}
.qpop__btn--add{background:var(--sd-accent,#2f9e62);border-color:var(--sd-accent,#2f9e62);color:#fff}
.qpop__btn:disabled{opacity:.6;cursor:default}
.qpop__x:hover{background:var(--sd-accent-soft,rgba(47,158,98,.14));color:var(--sd-accent,#2f9e62)}
.qhint-pop .qpop__card{width:min(520px,100%)}
/* rules window of a mode page (pages/index.php template, js/sdui.js) */
.sd-rules .qpop__card{width:min(460px,100%);padding:24px 22px 16px}
.sd-rules .qpop__title{margin:0 28px 2px}
.sd-rules__tag{margin:0 0 14px;font-size:14px;font-weight:700;color:var(--sd-muted,#5f6b80)}
.sd-rules__list{display:grid;gap:8px;margin:0 0 16px;padding:0;list-style:none;text-align:left}
.sd-rules__list li{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:14px;background:var(--sd-surface-2,#eceff5);font-size:14.5px;line-height:1.45}
.sd-rules__n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-top:-1px;border-radius:8px;background:var(--sd-accent,#2f9e62);color:#fff;font-size:13px;font-weight:900}
.sd-rules__t b{font-weight:900}
.sd-rules__list li:first-child b{padding:0 5px;border-radius:5px;background:var(--sd-green,#57ac78);color:#fff}
.sd-rules__list li:first-child b + b{background:var(--sd-yellow,#e9c601)}
.sd-rules__card:focus{outline:none}
.sd-rules__go{min-width:160px}
.sd-rules__more{display:block;margin:10px auto 0}
@media (max-width:420px),(max-height:760px){
  .sd-rules{padding:10px}
  .sd-rules .qpop__card{max-height:calc(100vh - 20px);padding:16px 14px 12px}
  .sd-rules .qpop__mark{margin:0 0 6px;grid-template-columns:repeat(2,12px);gap:3px}
  .sd-rules .qpop__mark i{width:12px;height:12px;border-radius:3px}
  .sd-rules .qpop__title{font-size:19px;line-height:1.2}
  .sd-rules__tag{margin-bottom:10px;font-size:13px}
  .sd-rules__list{gap:6px;margin-bottom:12px}
  .sd-rules__list li{gap:8px;padding:8px 10px;font-size:13.5px;line-height:1.4}
  .sd-rules__n{width:22px;height:22px;font-size:12px}
  .sd-rules__more{margin-top:6px}
}
.qmode-bar__rules{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:3px 10px 3px 7px;border:1px solid var(--sd-border,#d6dbe5);border-radius:999px;background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);font:800 13px/1.2 Nunito,system-ui,sans-serif;vertical-align:middle;cursor:pointer}
.qmode-bar__rules svg{width:16px;height:16px;color:var(--sd-accent,#2f9e62)}
.qmode-bar__rules:hover{border-color:var(--sd-accent,#2f9e62);color:var(--sd-accent,#2f9e62)}
.qhint-pick-label{font-weight:800;margin:-4px 0 8px}
.qhint-pick{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:12px}
.qhint-board{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 4px;border:2px solid var(--sd-border,#e1e5ec);border-radius:10px;background:var(--sd-surface,#fff);cursor:pointer;font:inherit;color:var(--sd-ink,#161c2d)}
.qhint-board.is-picked{border-color:var(--sd-accent,#2f9e62);box-shadow:0 0 0 3px var(--sd-accent-soft,rgba(47,158,98,.14))}
.qhint-board:disabled{opacity:.5;cursor:default}
.qhint-board__name{font-weight:900;font-size:12px}
.qhint-board__tiles{display:flex;gap:2px}
.qhint-tile{display:inline-flex;align-items:center;justify-content:center;width:14px;height:16px;border-radius:3px;background:var(--sd-cell,#e6e9f0);font-style:normal;font-weight:900;font-size:10px;color:#fff}
.qhint-tile.is-on{background:#57ac78}
.qhint-msg{margin:0 0 12px;font-size:14px;font-weight:700;color:var(--sd-muted,#5f6b80)}
.qhint-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px;margin:2px auto 6px;padding:0 10px;font:800 13px Nunito,system-ui,sans-serif;color:var(--sd-muted,#5f6b80)}
.qhint-strip__board{display:inline-flex;align-items:center;gap:2px}
.qhint-strip__board b{margin-right:3px;color:var(--sd-ink,#161c2d)}
.qhint-strip .qhint-tile{width:18px;height:20px;font-size:11px}
@media (max-width:420px){.qhint-tile{width:11px;height:14px;font-size:9px}.qhint-pick{gap:4px}}

/* page content */
html.sd-new .sd-intro{padding:28px 0 8px}
html.sd-new .sedecordle-h1{color:var(--sd-ink);letter-spacing:-.01em}
html.sd-new .sedecordle-h2{color:var(--sd-muted)}
html.sd-new .sd-modeintro{text-align:left;font-size:17px;line-height:1.6}
html.sd-new .sd-howto .section-title{background:var(--sd-surface);border:1px solid var(--sd-border);border-radius:20px;padding:22px 22px 10px;box-shadow:var(--sd-shadow)}
html.sd-new .sedecordle_step .number{flex:none;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:var(--sd-green);color:#fff;font-size:19px;margin:0}
html.sd-new .sedecordle_text{line-height:1.55;font-size:17px}
.sd-content{max-width:820px;margin:0 auto;padding:0 16px}
.sd-sec{margin:22px 0;line-height:1.65;font-size:17px}
.sd-sec h2{font-size:26px;font-weight:900;margin:0 0 10px;line-height:1.25}
.sd-sec h3{font-size:20px;font-weight:800;margin:18px 0 8px}
.sd-sec ul,.sd-sec ol{padding-left:22px}
.sd-sec li{margin:4px 0}
.sd-tablewrap{overflow-x:auto;margin:12px 0;border-radius:12px;border:1px solid var(--sd-border,#e1e5ec)}
.sd-tablewrap table{border-collapse:collapse;width:100%;min-width:420px;background:var(--sd-surface,#fff)}
.sd-tablewrap th,.sd-tablewrap td{padding:9px 12px;border-bottom:1px solid var(--sd-border,#e1e5ec);text-align:left;font-size:15px}
.sd-tablewrap th{background:var(--sd-surface-2,#eceff5);font-weight:800}
.sd-tablewrap tr:last-child td{border-bottom:0}
.faq_item{margin:8px 0;background:var(--sd-surface,#fff);border:1px solid var(--sd-border,#e1e5ec);border-radius:14px;overflow:hidden}
.faq_q{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;font-weight:800;font-size:17px;cursor:pointer;list-style:none}
.faq_q::-webkit-details-marker{display:none}
.faq_ico{flex:none;width:12px;height:12px;border:solid var(--sd-muted,#5f6b80);border-width:0 2.5px 2.5px 0;transform:rotate(45deg);margin-top:-6px;transition:transform .2s}
.faq_item[open] .faq_ico{transform:rotate(-135deg);margin-top:4px}
.faq_a{padding:0 16px 12px;line-height:1.6}
@media (prefers-reduced-motion:reduce){.faq_ico{transition:none}}
html.sd-new .sd-games .we_but{background-color:var(--sd-surface)!important;border-color:var(--sd-border);color:var(--sd-ink)!important;box-shadow:var(--sd-shadow);border-radius:14px}
html.sd-new .sd-games .spcb_head{color:var(--sd-ink)}
.sd-share__btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.sd-share__btn{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:999px;border:1px solid var(--sd-border,#d6dbe5);background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d);cursor:pointer;text-decoration:none;transition:transform .15s}
.sd-share__btn:hover{transform:translateY(-2px);border-color:var(--sd-accent,#2f9e62);color:var(--sd-accent,#2f9e62)}
.sd-share__btn svg{width:22px;height:22px}
html.sd-new .sd-share__h{font-weight:900}
html.sd-new .sd-share__p{color:var(--sd-muted)}

/* footer */
.sd-footer{margin-top:30px}
html.sd-new .sd-footer{background:var(--sd-surface);border-top:1px solid var(--sd-border);padding:28px 0 18px;color:var(--sd-muted)}
.sd-footer__inner{max-width:1100px;margin:0 auto;padding:0 18px}
.sd-footer__cols{display:flex;flex-wrap:wrap;gap:22px 48px;justify-content:center;text-align:left}
.sd-footer__h{margin:0 0 8px;font-weight:900;color:var(--sd-ink,#202942);font-size:15px}
.sd-footer ul{list-style:none;margin:0;padding:0}
.sd-footer__col li{margin:5px 0}
.sd-footer a{color:var(--sd-muted,#202942);text-decoration:none;font-size:15px}
.sd-footer a:hover{color:var(--sd-ink,#000);text-decoration:underline}
.sd-footer__langs{margin:22px 0 10px;padding-top:14px;border-top:1px solid var(--sd-border,#d9dee7)}
.sd-footer__langs ul{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px}
.sd-footer__langs a{font-size:14px}
.sd-footer__langs a[aria-current]{color:var(--sd-ink,#000);font-weight:800}
.sd-footer__copy{text-align:center;font-size:13px;margin:8px 0 0}

/* text pages (legal, 404 and pages of part C) */
.sd-page{max-width:860px;margin:0 auto;padding:10px 18px 30px;line-height:1.65;font-size:17px}
html.sd-new .sd-page h1{font-size:34px;font-weight:900;line-height:1.2;margin:10px 0 14px}
html.sd-new .sd-page h2{font-size:24px;font-weight:900;margin:22px 0 8px}
html.sd-new .sd-page h3{font-size:19px;font-weight:800;margin:18px 0 6px}
.sd-crumbs{font-size:14px;color:var(--sd-muted,#5f6b80);margin:6px 0 0}
.sd-crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.sd-crumbs li+li::before{content:"/";margin:0 6px 0 2px;color:var(--sd-border,#c5ccd8)}
.sd-crumbs a{color:inherit}
.sd-card{background:var(--sd-surface,#fff);border:1px solid var(--sd-border,#e1e5ec);border-radius:var(--sd-radius,14px);padding:18px 20px;box-shadow:var(--sd-shadow)}
.sd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 22px;border-radius:999px;border:0;background:var(--sd-accent,#2f9e62);color:#fff!important;font:800 16px Nunito,system-ui,sans-serif;text-decoration:none;cursor:pointer}
.sd-btn:hover{filter:brightness(1.06)}
.sd-btn--ghost{background:var(--sd-surface,#fff);color:var(--sd-ink,#161c2d)!important;border:1px solid var(--sd-border,#d6dbe5)}
.sd-legal__rev{color:var(--sd-muted,#5f6b80);font-size:14px;margin:-6px 0 14px}
.sd-legal__body > :first-child{margin-top:0}
.sd-legal__body > :last-child{margin-bottom:0}
.sd-legal__body h3{font-size:19px;font-weight:800;margin:20px 0 6px}
.sd-legal__body ul,.sd-legal__body ol{padding-left:22px}
.sd-legal__body a{color:var(--sd-link,#1f7a4a)}
.sd-adslot{margin:18px auto 0;text-align:center}
.sd-adslot:empty{display:none}
.sd-e404{text-align:center;padding:50px 18px 30px}
.sd-e404__code{font-size:72px;font-weight:900;line-height:1;color:var(--sd-accent,#2f9e62);margin:0 0 8px}
html.sd-new .footer.sd-footer{background:var(--sd-surface)}
html.sd-new .fb-input{background:var(--sd-surface);color:var(--sd-ink);border:1px solid var(--sd-border);border-radius:10px}

/* ======================================================================
   CLASSIC LOOK — the old page; new controls get a plain look
   ====================================================================== */
html.sd-classic .sd-header{position:relative;z-index:50;height:auto;min-height:37px;max-width:760px;flex-wrap:wrap;gap:4px;padding:2px 10px}
html.sd-classic .sd-logo__text{display:inline}
html.sd-classic .sd-dd__panel{max-width:calc(100vw - 16px);text-align:left}
html.sd-classic .sd-modes .sd-dd__panel{width:290px}
html.sd-classic .sd-icons{gap:0}
html.sd-classic .sd-dd__btn{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 10px;border:0;border-radius:7px;background:#ebedf3;color:#69758e;font:700 14px Nunito,sans-serif;cursor:pointer}
html.sd-classic .sd-du{display:inline-flex;gap:2px}
html.sd-classic .sd-du__opt{height:34px;padding:0 9px;border-radius:7px;background:#ebedf3;color:#69758e!important;font-weight:700}
html.sd-classic .sd-du__opt.is-active{background:#57ac78;color:#fff!important;box-shadow:none}
html.sd-classic .sd-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-left:4px;padding:6px;border:0;border-radius:7px;background:#ebedf3;color:#69758e;cursor:pointer}
html.sd-classic .sd-icon svg{width:22px;height:22px}
html.sd-classic #q_giveup{display:none!important}
html.sd-classic.sd-dark .sd-dd__btn,html.sd-classic.sd-dark .sd-du__opt:not(.is-active),html.sd-classic.sd-dark .sd-icon{background:#3a3f4a;color:#c7ccd6!important}
html.sd-classic .sd-boardnav{margin-top:2px}
html.sd-classic .sd-chip{border-radius:5px;height:26px}
html.sd-classic .qmode-bar{margin:4px auto;font-size:14px}
html.sd-classic body.dark .sd-footer,html.sd-classic.sd-dark .sd-footer{background:#2a2d35;color:#c7ccd6}
html.sd-classic.sd-dark body{color:#e6e8ee}
html.sd-classic.sd-dark .sd-footer a,html.sd-classic.sd-dark .sd-footer__h{color:#c7ccd6}
html.sd-classic .sd-footer{background:rgba(231,235,241,.58);padding:20px 0 10px}
html.sd-classic .sd-footer a{color:#202942}
html.sd-classic.sd-dark{--sd-surface:#2a2d35;--sd-surface-2:#3a3f4a;--sd-ink:#e6e8ee;--sd-muted:#b6bcc8;--sd-border:#454b57}
html.sd-classic:not(.sd-dark){--sd-bg:#fff}
@media (max-width:560px){html.sd-classic .sd-logo__text{font-size:15px}}
