/* THW Design: Wordle practice game, its hint boxes and the game-first hero layout. Needs thw-design.css. */
.thw-ds .top{display:flex;flex-direction:column}
.thw-ds .hero-h1{font-size:28px;margin:14px 0 10px}
.thw-ds .hero{margin-top:22px}
.thw-ds .hero p{margin:0}
.thw-ds .intro{font-size:15px;line-height:1.5;color:var(--mut);max-width:62ch}
.thw-ds .aff{font-size:13px;line-height:1.4;color:var(--mut);margin-top:8px!important;font-weight:500;max-width:62ch}

.thw-ds .game{display:flex;flex-direction:column;align-items:center;gap:10px}
.thw-ds .ghead{text-align:center}
.thw-ds .gh{font-size:22px}
.thw-ds .gsub{margin:2px 0 0;font-size:13.5px;line-height:1.35;color:var(--mut)}
.thw-ds .bar{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:330px}
.thw-ds .count{font:700 14px/1 var(--body);padding:11px 14px;border-radius:10px;background:var(--y);color:#111;border:2.5px solid #111;box-shadow:3px 3px 0 var(--sh);font-variant-numeric:tabular-nums}
.thw-ds .tools{display:flex;gap:10px}
.thw-ds .board{position:relative}
.thw-ds .grid{display:grid;gap:6px;perspective:700px}
.thw-ds .row{display:flex;gap:6px}
.thw-ds .tile{width:50px;height:50px;border-radius:8px;border:2.5px solid var(--tEb);display:flex;align-items:center;justify-content:center;font:400 27px/1 var(--display);text-transform:uppercase;background:var(--tE);color:var(--ink)}
.thw-ds .tile.g,.thw-ds .tile.y,.thw-ds .tile.x{border-color:var(--tline);box-shadow:3px 3px 0 var(--sh);color:var(--onTile)}
.thw-ds .tile.g{background:var(--g)}.thw-ds .tile.y{background:var(--y)}.thw-ds .tile.x{background:var(--x)}
@keyframes thw-flip{0%{transform:rotateX(90deg)}100%{transform:rotateX(0)}}
@keyframes thw-pop{0%{transform:scale(1) rotate(0)}45%{transform:scale(1.15) rotate(-6deg)}100%{transform:scale(1) rotate(0)}}
@keyframes thw-slap{0%{transform:scale(1.3) rotate(-4deg);opacity:0}100%{transform:scale(1) rotate(-1.5deg);opacity:1}}
@keyframes thw-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.thw-ds .tile.flip{animation:thw-flip .4s ease-out both}
.thw-ds .tile.pop{animation:thw-pop .45s ease-out both}
.thw-ds .inputs{display:flex;gap:6px;margin:4px 0 0}
.thw-ds .inputs.shake{animation:thw-shake .35s}
.thw-ds .ib{width:50px;height:52px;border-radius:8px;border:2.5px solid var(--line);background:var(--surf);color:var(--ink);font:400 26px/1 var(--display);text-align:center;text-transform:uppercase;outline:none;padding:0;margin:0;caret-color:transparent;-webkit-appearance:none;appearance:none}
.thw-ds .ib:focus{background:var(--blue);color:#111;border-color:#111;box-shadow:3px 3px 0 var(--sh)}
.thw-ds .btns{display:flex;gap:12px;width:100%;max-width:330px}
.thw-ds .btn{flex:1;min-height:50px;padding:0 16px;border-radius:12px;border:2.5px solid var(--line);font:700 16px/1 var(--body);cursor:pointer;box-shadow:4px 4px 0 var(--sh);transition:transform .1s,box-shadow .1s}
.thw-ds .btn:active:not([disabled]){transform:translate(3px,3px);box-shadow:1px 1px 0 var(--sh)}
.thw-ds .btn.p{background:var(--acc);color:#111;border-color:#111}
.thw-ds .btn.s{background:var(--surf);color:var(--ink)}
.thw-ds .btn[disabled]{opacity:.45;box-shadow:none;cursor:not-allowed}
.thw-ds .msg{width:100%;max-width:330px;border-radius:14px;padding:16px;background:var(--y);color:#111;border:3px solid #111;box-shadow:5px 5px 0 var(--sh);text-align:center;animation:thw-slap .35s ease-out both;transform:rotate(-1.5deg)}
.thw-ds .msg.lost{background:var(--lilac)}
.thw-ds .msg h3{font:400 28px/1.1 var(--display)}
.thw-ds .msg p{margin:4px 0 10px;font-size:15px;font-weight:500}
.thw-ds .mini{display:flex;gap:5px;justify-content:center}
.thw-ds .mini span{width:34px;height:34px;border-radius:6px;border:2px solid #111;display:flex;align-items:center;justify-content:center;font:400 20px/1 var(--display);background:#fff;color:#111}
.thw-ds .toast{position:absolute;top:8px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);font-weight:600;font-size:14px;padding:10px 14px;border-radius:10px;white-space:nowrap;z-index:5;pointer-events:none}

.thw-ds .hints-wrap{margin-top:28px}
.thw-ds .hh{font-size:24px;margin-bottom:12px}
.thw-ds .hints{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.thw-ds .hb{background:var(--surf);border:2.5px solid var(--line);border-radius:12px;padding:12px;box-shadow:4px 4px 0 var(--sh);min-width:0}
.thw-ds .hb h3{display:inline-block;font:700 11.5px/1 var(--body);text-transform:uppercase;letter-spacing:.07em;color:#111;background:var(--mint);border:2px solid #111;border-radius:6px;padding:5px 7px;margin:0 0 10px}
.thw-ds .hb.wide{grid-column:1/-1}
.thw-ds .hb.m h3{background:var(--y)}.thw-ds .hb.i h3{background:var(--x)}.thw-ds .hb.n h3{background:var(--blue)}.thw-ds .hb.r h3{background:var(--acc)}.thw-ds .hb.c h3{background:var(--lilac)}
.thw-ds .slots,.thw-ds .chips{display:flex;flex-wrap:wrap;gap:6px}
.thw-ds .slot{width:40px;height:40px;border-radius:7px;border:2px dashed var(--tEb);display:flex;align-items:center;justify-content:center;font:400 21px/1 var(--display)}
.thw-ds .slot.on{background:var(--g);color:#111;border:2px solid #111}
.thw-ds .ch{min-width:38px;height:38px;padding:0 8px;border-radius:7px;border:2px solid #111;display:inline-flex;align-items:center;justify-content:center;font:400 20px/1 var(--display);color:#111}
.thw-ds .ch.y{background:var(--y)}.thw-ds .ch.x{background:var(--x)}.thw-ds .ch.c{background:var(--surf2);color:var(--ink);border-color:var(--line)}
.thw-ds .ch small{font:600 11px/1 var(--body);color:var(--mut);margin-left:4px}
.thw-ds .none{font-size:14px;color:var(--mut);min-height:38px;display:flex;align-items:center}
.thw-ds .big{font:400 40px/1 var(--display);font-variant-numeric:tabular-nums}
.thw-ds .big small{font:600 13px/1 var(--body);color:var(--mut);margin-left:6px}
.thw-ds .pw{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;max-height:132px;overflow-y:auto;padding:2px}
.thw-ds .pw span{font:400 15px/1 var(--display);letter-spacing:.06em;padding:6px 8px;border-radius:7px;border:2px solid var(--line);background:var(--surf2)}
.thw-ds .word{min-height:44px;padding:0 14px;border-radius:10px;border:2px solid var(--line);background:var(--surf);color:var(--ink);font:400 17px/1 var(--display);letter-spacing:.06em;cursor:pointer;box-shadow:3px 3px 0 var(--sh)}
.thw-ds .word:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--sh)}

@media (max-width:599px){.thw-ds .hb.c,.thw-ds .hb.r{grid-column:1/-1}}
@media (min-width:960px){
  .thw-ds .top{display:grid;grid-template-columns:minmax(0,1fr) 520px;grid-template-areas:"h1 game" "hero game" "hints game";grid-template-rows:auto auto 1fr;column-gap:56px;align-items:start;padding-top:48px}
  .thw-ds .hero-h1{grid-area:h1;font-size:68px;line-height:1;margin:8px 0 0}
  .thw-ds .hero{grid-area:hero;margin-top:18px}
  .thw-ds .intro{font-size:18px}
  .thw-ds .aff{font-size:14px;margin-top:12px!important;display:inline-block;background:var(--surf);border:2px solid var(--line);border-radius:10px;padding:10px 12px}
  .thw-ds .game{grid-area:game;background:var(--surf);border:3px solid var(--line);border-radius:20px;padding:28px;box-shadow:8px 8px 0 var(--sh);gap:14px}
  .thw-ds .gh{font-size:28px}
  .thw-ds .gsub{font-size:15px}
  .thw-ds .hints-wrap{grid-area:hints;margin-top:32px}
  .thw-ds .hh{font-size:30px}
  .thw-ds .tile{width:68px;height:68px;font-size:36px;border-radius:10px;border-width:3px}
  .thw-ds .grid,.thw-ds .row,.thw-ds .inputs{gap:9px}
  .thw-ds .ib{width:68px;height:62px;font-size:32px}
  .thw-ds .bar,.thw-ds .btns,.thw-ds .msg{max-width:376px}
}
