.home-header {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  padding-block:18px; gap:12px; border-bottom:1px solid #e3dccd;
}
.home-header .logo { color:#262938; text-decoration:none; justify-self:start; }
.home-tabs { display:flex; gap:3px; padding:4px; background:#f1ebdf; border:1px solid #e2dacb; border-radius:14px; }
.home-tabs a {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px;
  border-radius:10px; padding:7px 15px; font-weight:800; font-size:.88rem; line-height:1.25; color:#59585c;
}
.home-tabs a[aria-selected="true"] { background:#2d343c; color:#fffaf1; box-shadow:0 2px 4px #29333b24; }
.home-header .parents-link { justify-self:end; color:#59585c; font-size:.85rem; font-weight:750; text-decoration:none; padding:10px 0; }
.home-header .parents-link:hover,.lobby-more a:hover { text-decoration:underline; text-underline-offset:3px; }
.tab-grid { position:relative; display:inline-block; width:14px; height:14px; }
.tab-grid::before { position:absolute; content:""; width:5.5px; height:5.5px; top:0; left:0; border-radius:1.5px; background:currentColor; box-shadow:8px 0 currentColor,0 8px currentColor,8px 8px currentColor; }
.tab-monster { display:inline-block; width:15px; height:12px; border:1.6px solid currentColor; border-radius:6px 6px 4px 4px; position:relative; }
.tab-monster::after { content:""; display:block; position:absolute; top:3px; left:2.5px; width:2.5px; height:2.5px; border-radius:50%; background:currentColor; box-shadow:4.5px 0 currentColor; }
.lobby-panel { padding:clamp(18px,2.5vw,32px) 0 16px; }
.lobby-panel h1 { color:#282b39; font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif; font-weight:900; font-size:clamp(2.15rem,4.65vw,3.6rem); line-height:1.06; letter-spacing:-.063em; margin:0 0 clamp(16px,2vw,23px); }
.lobby-panel h1 span { color:#cd5644; }
.lobby-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,1.8vw,20px); list-style:none; padding:0; margin:0; }
.lobby-grid li { min-width:0; }
.lobby-card {
  --tone:#e0f1d9; --accent:#264a42;
  display:flex; flex-direction:column; height:100%; color:#292c35; text-decoration:none; overflow:hidden;
  border:1px solid #dbd4c6; border-radius:17px; background:#fffdfa; box-shadow:0 3px 0 #e4ddcf;
  transition:transform .16s ease,box-shadow .16s ease;
}
.lobby-card.excavators { --tone:#ffdc7a; --accent:#4e3d1f; }
.lobby-card.draw { --tone:#e3d5f7; --accent:#55416a; }
.lobby-card.detective { --tone:#ffdac2; --accent:#643d2f; }
.lobby-card.maker { --tone:#c4e8d6; --accent:#264f40; }
.lobby-card img { width:100%; height:auto; aspect-ratio:2.65; display:block; object-fit:cover; object-position:center 48%; background:var(--tone); border-bottom:1px solid #00000010; }
.lobby-card.excavators img { object-position:center 55%; }
.lobby-caption { flex:1; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 16px 15px; }
.lobby-caption h2 { margin:0; font-size:clamp(1.09rem,2.3vw,1.54rem); line-height:1.15; letter-spacing:-.045em; }
.lobby-caption p { margin:3px 0 0; color:#565866; font-size:.9rem; line-height:1.4; }
.play-arrow { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--tone); color:var(--accent); }
.play-arrow::after { content:""; margin-left:3px; border-style:solid; border-width:6px 0 6px 9px; border-color:transparent transparent transparent currentColor; }
.lobby-more { display:flex; flex-wrap:wrap; align-items:center; gap:5px 20px; margin-top:20px; font-size:.84rem; }
.lobby-more a { display:inline-flex; align-items:center; min-height:36px; font-weight:700; color:#5c5763; }
.home-header a:focus-visible,.lobby-panel a:focus-visible { outline:3px solid #2271a5; outline-offset:3px; }
[role="tabpanel"][hidden]{display:none!important}
@media(hover:hover){.lobby-card:hover{transform:translateY(-3px);box-shadow:0 6px 0 #e4ddcf}.lobby-card:hover .play-arrow{filter:brightness(.95)}}
@media(max-width:650px){
  .home-header{grid-template-columns:1fr auto;gap:8px;padding-block:12px}
  .home-tabs{grid-column:1/-1;grid-row:2;justify-self:start}.home-header .parents-link{grid-area:1 / 2}
  .lobby-card img{aspect-ratio:1.67}.lobby-caption{align-items:flex-start;padding:11px;gap:5px}
  .lobby-caption p{font-size:.8rem}.play-arrow{width:25px;height:25px}.play-arrow::after{border-width:4px 0 4px 6px}
}
@media(max-width:425px){.wrap{padding-inline:14px}.lobby-grid{gap:11px}.lobby-card{border-radius:12px}.lobby-caption{position:relative;padding:10px}.lobby-caption h2{font-size:1.03rem}.lobby-card .play-arrow{position:absolute;bottom:calc(100% + 6px);right:6px;width:25px;height:25px;box-shadow:0 1px 4px #35303033}.lobby-more{gap:0 12px}.lobby-panel{padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.lobby-card{transition:none}}
@media print{.home-header,.lobby-more{display:none!important}.lobby-panel{padding:0}}
