/* Common interface across the game selector, board, room and learning pages. */
@media screen {
 :root{--wc-ink:#f7f4ff;--wc-muted:#c8c4da;--wc-accent:#89e6f4;--wc-panel:#222444;--wc-edge:#646584;color-scheme:dark}
 body{font-family:'DM Sans',system-ui,sans-serif;color:var(--wc-ink)}
 button,select,input,summary{font-family:inherit}
 :is(a,button,select,input,summary):focus-visible{outline:2px solid var(--wc-accent);outline-offset:2px}
 :is(.cell, .card):focus-visible{outline-offset:-3px}
 body:has(main form fieldset),body:has(#entry),body:has(.book),body:has(.cards){background:radial-gradient(ellipse at 14% 0,#342c62,transparent 65%),#101230}
 main:has(form fieldset)>h1,#entry h1,.book>h1,.game-heading h1{
  font-family:'DM Sans',system-ui,sans-serif;font-weight:700;line-height:1;letter-spacing:-.055em;
  background:linear-gradient(100deg,#91f4ff 12%,#aeacff 60%,#ff86bb);background-clip:text;color:transparent
 }
 main:has(form fieldset)>h1 span,.game-heading h1 span{color:#ff819b}
 main:has(form fieldset) .friend,#entry .primary{background:var(--wc-accent);color:#181a33;border-color:transparent}
 main:has(form fieldset) input:checked+span{background:#293950;color:#b8f5ff;border-color:var(--wc-accent)}
 .book nav,main:has(.cards) nav,main:has(form fieldset) nav{flex-wrap:wrap;row-gap:.35rem}
 .book nav a,main:has(.cards) nav a,main:has(form fieldset) nav a{display:inline-flex;align-items:center;min-height:44px}
 #sendInvite{width:min(25rem,calc(100% - 2rem));max-height:85svh;overflow:auto}
 #sendInvite button,#entry button,#again,#invite{min-height:44px}
 #table{min-width:0}#table iframe{min-height:0}
 .wc-home-footer{max-width:100%}
 body:has(>.wc-home-footer)>main:has(.layout){width:100%}
 body:has(>.wc-home-footer)>main:has(form fieldset){margin:auto}
 .book img{max-width:100%;height:auto}
}
