.game-shell.theme-wordgrid .play:has(.wordline-room){background:#f0edf5;color:#372e49}
.page-game .game-shell.theme-wordgrid.wide .play:has(.wordline-room){width:min(97%,91rem);min-height:calc(100dvh - 53px);justify-content:flex-start;padding:clamp(.7rem,2.7dvh,1.8rem) clamp(.72rem,3vw,2rem)}
.game-shell .play .wordline-room{--wl-ink:#322a46;--wl-accent:#574571;--wl-paper:#faf7ee;--wl-border:#c4b7d5;width:100%;max-width:74rem;margin-inline:auto;min-width:0;text-align:start}
.game-shell .play .wordline-room p{margin-inline:0;max-width:none;color:#584b63;overflow-wrap:anywhere}
.game-shell .play .wordline-meta{margin:0 0 .18rem;font-weight:720;color:#654a89}
.game-shell .play .wordline-room h2{margin:0 0 .8rem;font-size:clamp(1.52rem,min(4vw,6.1dvh),3.25rem);line-height:1.12;color:var(--wl-ink);outline:0;overflow-wrap:anywhere}
.wordline-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(.55rem,2.6vw,1.9rem);align-items:start;min-width:0}
.wordline-grid{display:grid;grid-template-columns:minmax(4rem,.85fr) repeat(3,minmax(0,1fr));gap:clamp(.15rem,.54vw,.41rem);padding:clamp(.32rem,1vw,.72rem);border-radius:.5rem;background:#e1d9eb;min-width:0;align-items:stretch}
.wordline-letter{display:grid;place-items:center;color:#4e3966;font-size:clamp(1rem,2.2vw,1.8rem);line-height:1.25}
.wordline-category{align-self:center;color:#493a5b;font-size:clamp(.75rem,1.25vw,1rem);line-height:1.18;overflow-wrap:anywhere}
.wordline-cell{display:grid;align-content:center;justify-items:center;gap:.1rem;min-width:0;min-height:clamp(64px,14dvh,112px);padding:.25rem .2rem;border:1px solid #a995bd;border-radius:.28rem;background:#fbf9fc;color:#524765;font:inherit;line-height:1.15;overflow-wrap:anywhere;text-align:center}
button.wordline-cell{cursor:pointer}button.wordline-cell:disabled{cursor:default;opacity:1}
.wordline-cell:not([class*=team]) > span{font-size:1.55rem;color:#9a85b4}
.wordline-cell > strong{font-size:clamp(.76rem,1.4vw,1.08rem)}
.wordline-cell > small{font-size:.72rem;font-weight:700}
.wordline-cell.team-0{background:#fce4bd;border-color:#aa6840;color:#633825}
.wordline-cell.team-1{background:#d1e6e6;border-color:#46798b;color:#254b64}
.wordline-cell.current,.wordline-cell.winning{border-color:#805697;box-shadow:inset 0 0 0 2px #805697}
.wordline-cell.winning{box-shadow:inset 0 0 0 2px #774888,inset 0 0 0 4px #fbefa5}
.wordline-console{min-width:0;border-block:1px solid var(--wl-border);padding:.4rem 0 .6rem}
.wordline-proposal{display:grid;gap:.1rem;padding:.35rem .52rem;border-left:3px solid #8b658f;background:#f8efdf}
.wordline-proposal > b{font-size:clamp(1.12rem,2.25vw,1.7rem);color:#503753;overflow-wrap:anywhere}
.wordline-proposal > p{margin:0}
.wordline-last{border-left:3px solid #a888ad;padding:.23rem .43rem}
.wordline-actions{display:flex;flex-wrap:wrap;gap:.36rem .55rem;align-items:center;margin:.45rem 0}
.game-shell .play .wordline-room button,.game-shell .play .wordline-console [name=word],.game-shell .play .wordline-console [name=note]{min-height:44px}
.wordline-room .button.cta{color:#fff;background:var(--wl-accent);border-color:var(--wl-accent)}
.wordline-room .button.secondary{color:#49375e;background:#fdfbfb;border-color:#b298bc}
.wordline-room input:focus-visible,.wordline-room button:focus-visible{outline:3px solid #975c50;outline-offset:2px}
.wordline-console form{margin:0;display:block}
.game-shell .play .wordline-console form > label{display:grid;gap:.22rem;margin:.4rem 0;color:var(--wl-ink)}
.game-shell .play .wordline-console [name=word],.game-shell .play .wordline-console [name=note]{width:100%;margin:0;padding:.4rem .55rem;min-width:0;background:#fff;color:var(--wl-ink);border-color:#ac91ba}
.wordline-console fieldset{border:0;padding:0;margin:.38rem 0 .48rem}
.wordline-console fieldset legend{font-weight:730;color:var(--wl-ink);padding:0;margin-bottom:.18rem}
.wordline-console fieldset > div{display:flex;gap:.38rem;flex-wrap:wrap}
.game-shell .play .wordline-console fieldset label{display:flex;align-items:center;gap:.36rem;min-height:44px;padding:.3rem .54rem;margin:0;border:1px solid #b39bc1;border-radius:.34rem;background:#faf6f9;cursor:pointer}
.wordline-console [data-wordline-auto-initial]{font-weight:700;color:#3e6853}
.wordline-console [role=alert]{font-weight:675;color:#824329;margin:.2rem 0}
.wordline-console [data-wordline-record]{padding:.3rem .45rem;border-left:3px solid #a58db4;background:#f7f3f7}
.wordline-console [data-wordline-record] p{margin:.25rem 0}
.wordline-console [data-wordline-record-word]{color:var(--wl-ink);overflow-wrap:anywhere}
@media(max-width:730px){.wordline-layout{grid-template-columns:minmax(0,1fr)}.wordline-grid{width:100%;box-sizing:border-box}.wordline-cell{min-height:66px}}
@media(max-width:380px){.wordline-grid{grid-template-columns:minmax(3.35rem,.78fr) repeat(3,minmax(0,1fr))}.wordline-cell{padding:.27rem .08rem}.wordline-room .button{max-width:100%}}

.page-game .game-shell.theme-wordgrid:has(.wordline-room) {
  --wordline-surface:#fff4e0;
  background:linear-gradient(142deg,#fff6e7,#efdbc0);
}
.page-game .game-shell.theme-wordgrid:has(.wordline-room) .game-toolbar {
  background:#f8e9d2;color:#623924;border-color:#be946f;
}
.theme-wordgrid:has(.wordline-room) .game-toolbar .button {
  background:#fff6e5;color:#623924;border-color:#b28c68;
}
.game-shell.theme-wordgrid .play:has(.wordline-room) {background:transparent}
.game-shell .play .wordline-room {
  --wl-ink:#4a3224;--wl-accent:#8d422b;--wl-border:#c4a27f;
}
.game-shell .play .wordline-room p {color:#574130}
.game-shell .play .wordline-room .wordline-meta {color:#824b30}
.wordline-room > header {
  padding-bottom:.35rem;
  margin-bottom:clamp(.5rem,1.2vw,1rem);
  border-bottom:2px solid #ba8055;
}
.game-shell .play .wordline-room h2 {
  font-family:Georgia,"Noto Serif SC",SimSun,serif;
  letter-spacing:-.026em;
}
.wordline-layout {
  grid-template-columns:minmax(0,1.65fr) minmax(245px,1fr);
  gap:clamp(.8rem,2.3vw,2rem);
}
.wordline-grid {
  border:1px solid #bb936a;border-radius:12px;
  padding:clamp(.42rem,1.45vw,1.15rem);
  gap:clamp(.24rem,.65vw,.55rem);
  background:repeating-linear-gradient(133deg,#835c270b 0 1px,transparent 1px 4px),linear-gradient(#f7e7ca,#ebd1ac);
  box-shadow:inset 0 0 0 2px #fff9e8,0 5px 0 #ad876b4a;
}
.wordline-letter {color:#643824;font-size:clamp(1.45rem,3vw,2.5rem);font-family:Georgia,serif}
.wordline-category {color:#5e3e2a;hyphens:auto}
.wordline-grid :is(.wordline-letter,.wordline-category).is-current {
  background:#fff1c7;box-shadow:inset 0 -2px #a7652a;border-radius:.3rem;
}
.game-shell .play .wordline-room .wordline-grid .wordline-cell {
  min-height:clamp(78px,13dvh,122px);
  border-color:#b28c6b;border-radius:.55rem;
  background:#fff8e7;color:#56412e;
  transition:background-color .15s,border-color .15s;
}
.game-shell .play .wordline-room .wordline-grid button.wordline-cell:not(:disabled):hover {
  background:#fff0ca;border-color:#9c603b;
}
.wordline-cell:not([class*=team]) > span {color:#82543b}
.game-shell .play .wordline-room .wordline-grid .team-0 {
  background:#efc4aa;border-color:#a96047;color:#65341f;
}
.game-shell .play .wordline-room .wordline-grid .team-1 {
  background:#c9e0ec;border-color:#5e8b9e;color:#23485b;
}
.game-shell .play .wordline-room .wordline-cell.current {
  background:#ffe5b4;border-color:#98501e;
  box-shadow:inset 0 0 0 2px #ba723c;
}
.game-shell .play .wordline-room .wordline-cell.winning {
  border-color:#815220;
  box-shadow:inset 0 0 0 2px #85541c,inset 0 0 0 5px #f8d477;
}
.wordline-console {
  border-block:0;border-inline-start:1px solid #b8805e;
  padding:.35rem 0 .35rem clamp(.65rem,2vw,1.4rem);
}
.wordline-proposal,.wordline-last,.wordline-console [data-wordline-record] {
  border-color:#ad734c;background:#fff5e3;
}
.wordline-proposal > b {color:#663b26}
.game-shell.theme-wordgrid .play .wordline-room .button.cta {
  background:var(--wl-accent);color:#fff5e3;border-color:var(--wl-accent);
}
.game-shell.theme-wordgrid .play .wordline-room .button.cta:hover {background:#763823}
.wordline-room .button.secondary {
  color:#623c28;background:#fff5e3;border-color:#b58b69;
}
.game-shell .play .wordline-console :is([name=word],[name=note]) {border-color:#ac8768;background:#fffaf0}
.game-shell .play .wordline-console fieldset label {border-color:#b69d7c;background:#fff6e4}
.game-shell .play .wordline-console fieldset label:has(input:checked) {background:#f3dbab;border-color:#805638}
.wordline-console input[type=radio] {accent-color:#8d422b}
@media(max-width:730px) {
  .wordline-layout {grid-template-columns:minmax(0,1fr)}
  .wordline-console {border-inline-start:0;border-top:1px solid #b8805e;padding:.5rem 0 0}
  .game-shell .play .wordline-room .wordline-grid .wordline-cell {min-height:clamp(56px,16vw,86px)}
}
@media(prefers-reduced-motion:reduce) {
  .game-shell .play .wordline-room .wordline-grid .wordline-cell {transition:none}
}
