/* Shared layout and touch controls across phones, tablets and desktops. */
.header{height:auto;min-height:94px;display:grid;grid-template-columns:auto minmax(0,1fr) auto}
.header nav{justify-content:center;min-width:0}
.header nav a{display:inline-flex;align-items:center;min-height:44px}
.profile{min-width:0;max-width:250px;min-height:46px}
.profile #player-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar,.edit-icon{flex-shrink:0}
.hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.hero-copy,.hero-art,.section-heading>div,.steps article>div,.bottom-banner>div{min-width:0}
.hero-art{overflow:clip}
.hero-actions,.hero-perks{flex-wrap:wrap}
.hero .eyebrow{overflow-wrap:anywhere}
.button,.filters button,.card-bottom button,.small-button,.close,.delete{min-height:44px}
.close{min-width:44px}
.filters{flex-wrap:wrap}
.filters button{font-size:14px}
.game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.game-card{display:flex;flex-direction:column;min-width:0}
.card-body{display:flex;flex-direction:column;flex:1}
.card-title h4{overflow-wrap:anywhere}
.card-bottom{margin-top:auto;flex-wrap:wrap;gap:10px}
.card-bottom>span{font-size:12px}
.card-bottom button{flex-shrink:0}
.search{flex-shrink:0;min-height:46px}
.search input,dialog input{font-size:16px}
.search:focus-within{outline:2px solid var(--mint);outline-offset:3px}
.room-bar{flex-wrap:wrap}
.room-bar>span{overflow-wrap:anywhere;min-width:0}
.room-players span{max-width:100%;overflow-wrap:anywhere}
.chat{min-width:0}
.chat input{flex:1;width:0;min-height:46px}
.chat .button{flex-shrink:0}
.messages{overscroll-behavior:contain}
.dialog-top .eyebrow{min-width:0;overflow-wrap:anywhere}
.dialog-top .close{flex-shrink:0}
dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:20px}
.document{overflow-wrap:anywhere}
footer{flex-wrap:wrap}
footer>div{flex-wrap:wrap;gap:8px 24px}
footer>div a,.text-link{display:inline-flex;align-items:center;min-height:44px}
#toast{bottom:max(20px,env(safe-area-inset-bottom));overflow-wrap:anywhere}
@media(min-width:1200px){.hero-art{overflow:visible}.hero{column-gap:24px}}
@media(min-width:768px) and (max-width:1199px){
 .header{gap:18px;padding-block:15px}.header nav{gap:18px}
 .brand{font-size:22px}.brand-icon{width:42px;height:42px}
 .profile{max-width:200px}
 .hero{padding-block:50px;column-gap:16px;min-height:500px}
 .hero h1{font-size:clamp(36px,4.5vw,52px)}
 .hero-art{height:360px}
 .hero .eyebrow{font-size:10px;letter-spacing:1.4px}
 .hero-perks{gap:10px 15px}
 .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 .card-body{padding:15px}.card-bottom{flex-direction:column;align-items:stretch}
 .card-bottom button{width:100%}
 .section-heading{align-items:flex-start}.search{width:230px}
 .how{gap:35px}.how h2{font-size:27px}
 .bottom-banner{padding:26px;gap:18px}.bottom-banner>span{display:none}
}
@media(min-width:768px) and (max-width:900px){
 .header{grid-template-columns:1fr auto;padding-block:12px 0;row-gap:5px}
 .header nav{grid-row:2;grid-column:1/-1;justify-content:flex-start;gap:30px}
 .header .profile{grid-column:2;grid-row:1}
 .hero{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
 .controller{scale:.73}.orbit,.orbit-two{scale:.7}
 .tag-top{right:3%;font-size:9px}.tag-bottom{left:3%;font-size:9px;padding:10px}
 .hero-actions{gap:10px}.hero-actions .button{padding-inline:14px;gap:10px}
 .section-heading{display:block}.search{width:100%;margin-top:20px}
}
@media(max-width:767px){
 html{scroll-padding-top:24px}
 .header{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:14px 5% 0;min-height:112px}
 .header .brand{font-size:21px;gap:9px}.brand-icon{width:36px;height:36px;font-size:27px}
 .header .brand small{font-size:10px;letter-spacing:2px}
 .header .profile{grid-column:2;grid-row:1;max-width:clamp(130px,40vw,210px);gap:7px;padding-right:10px}
 .header nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;gap:14px;font-size:14px}
 .hero{grid-template-columns:minmax(0,1fr);padding:38px 0 35px;min-height:0;gap:0}
 .hero h1{font-size:clamp(32px,9.6vw,48px);letter-spacing:-1.5px}
 .hero-copy>p{font-size:16px}.hero-actions{gap:10px}
 .hero-actions .button{flex:1;gap:10px;padding-inline:12px;white-space:nowrap}
 .hero-perks{font-size:12px;gap:8px 15px}
 .hero-art{height:320px;max-width:420px;width:100%;margin:15px auto 0;overflow:hidden}
 .controller{scale:.85}.orbit,.orbit-two{scale:.85}
 .ticker{gap:18px;font-size:11px;overflow:hidden;white-space:nowrap;padding-inline:12px}
 .ticker span:last-of-type,.ticker i:last-child,.ticker span:nth-of-type(3){display:none}
 .games-section{margin-block:38px}.section-heading{display:block}
 .section-heading h2{font-size:26px}.section-heading p{font-size:16px}
 .search{width:100%;margin-top:20px}
 .filters{flex-wrap:wrap;overflow:visible;gap:8px;margin-block:20px;padding:0}
 .filters button{padding:8px 12px}
 .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .card-art{height:135px}.card-body{padding:13px}
 .card-title h4{font-size:16px}.card-title>span{display:none}
 .card-body p{font-size:16px;min-height:80px}
 .card-bottom{flex-direction:column;align-items:stretch;gap:8px}
 .card-bottom button{width:100%;margin:0}
 .development-note{padding:14px;gap:10px;align-items:flex-start}
 .how{grid-template-columns:minmax(0,1fr);gap:28px;margin-block:48px;padding-top:35px}
 .how h2{font-size:26px}.steps article{gap:16px}
 .bottom-banner{padding:24px;gap:15px;flex-direction:column;align-items:flex-start}
 .bottom-banner>span{display:none}.bottom-banner h2{font-size:22px}
 .bottom-banner .button{margin:0;width:100%}
 footer{gap:12px 22px;padding-block:28px;padding-bottom:max(28px,env(safe-area-inset-bottom))}
 footer>div{width:100%;margin:0;font-size:14px}
 .document{margin-block:32px}.document h1{font-size:30px}
 dialog{width:calc(100vw - 24px);padding:20px;border-radius:14px}
 dialog h2{font-size:24px}dialog label{font-size:16px}
 .room-bar{gap:12px}.messages{height:clamp(110px,24dvh,190px)}
}
@media(max-width:359px){
 .header .brand{font-size:18px}.header .brand small{font-size:9px}
 .header .profile{max-width:130px}.profile .edit-icon{display:none}
 .hero-actions{flex-direction:column}.hero-art{height:290px}
 .controller{scale:.72}.tag-bottom{font-size:9px;left:5%}
 .game-grid{grid-template-columns:minmax(0,1fr)}
 .card-art{height:160px}.card-body p{min-height:0}
 .card-title h4{font-size:18px}
}
@media(max-height:600px){
 dialog{max-height:calc(100dvh - 16px);padding-block:16px}
 .messages{height:110px}
}
@media(hover:none){.game-card:hover,.primary:hover{transform:none}}
.email-settings{margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}
.email-settings h3{font-size:17px;margin:0 0 10px}.email-settings label{margin-block:12px}
.email-actions{display:flex;gap:10px;flex-wrap:wrap}.email-actions button{font-size:14px}
#email-state,#email-feedback,#verify-summary,#verify-result{overflow-wrap:anywhere}
#email-state{color:var(--mint)}

.email-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.email-heading-row h3{margin:0;min-width:0}.email-heading-row button{min-height:44px;flex-shrink:0;padding-inline:16px;font-size:14px}

.game-results {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}
.game-results:empty { display: none; }
.search:focus-within { outline: 2px solid var(--mint); outline-offset: 3px; }
.search input:focus-visible { outline: none; }
.game-card:focus-within { border-color: var(--purple); }
.card-bottom button[aria-disabled="true"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card { transition: none; }
  .game-card:hover, .primary:hover { transform: none; }
}

/* Game catalogue and standalone game pages */
.art-arena { --shade: #172c36; --glow: #258d9a66; }
.art-impostor { --shade: #2b203e; --glow: #9651cf66; }
.art-rhythm { --shade: #362039; --glow: #ce4e9866; }
.art-physics { --shade: #332c1d; --glow: #cf963466; }
.art-runner { --shade: #1d3033; --glow: #38a58b66; }
.art-sandbox { --shade: #263121; --glow: #76ad4066; }
.art-rogue { --shade: #292437; --glow: #7556b666; }
.art-escape { --shade: #262a31; --glow: #53797b55; }
.art-clicker { --shade: #352c25; --glow: #ba885666; }
.art-daily { --shade: #223039; --glow: #497fa166; }
.card-title a { text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: .24em; }
.card-title a:hover { color: var(--purple); }
.game-page { max-width: 980px; }
.game-breadcrumb { flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.game-breadcrumb a, .game-page-related a { text-decoration: underline; text-underline-offset: .25em; }
.game-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}
.game-page-hero h1 { line-height: 1.2; margin-block: 6px 14px; }
.game-page-hero .game-page-type { color: var(--purple); font-size: 14px; margin: 0; }
.game-page-hero .card-art { height: clamp(150px, 26vw, 270px); border-radius: 13px; }
.game-page-hero .button { margin-top: 8px; }
.game-page-guide, .game-page-related { margin-top: 32px; }
.game-page-guide ol { padding-inline-start: 1.45em; }
.game-page-guide li + li { margin-top: 8px; }
.game-page-related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.game-page-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 600px) {
  .game-page-hero { grid-template-columns: 1fr; }
}

.game-group + .game-group { margin-top: 32px; }
.game-group > h3 { margin: 0 0 14px; font-size: 1.25rem; }
.card-entries { margin: 0 0 12px; color: #d4c6eb; font-size: 13px; }
.art-garden { --shade: #3d2942; --glow: #e78eaa66; }
.art-speedway { --shade: #202c49; --glow: #5b8cf288; }
.art-postcard { --shade: #293858; --glow: #8bb6e69c; }
.art-cafe { --shade: #493144; --glow: #e7a18588; }
.art-signal { --shade: #233d34; --glow: #42cfab88; }
.art-code { --shade: #29304a; --glow: #8298ed88; }
