/* ================================================================== design session 2 (2026-11-30) */
/* one left rail: home, play and the three worlds big; the rest below a divider. The header keeps back, logo, cube, you */
.switchbar { display: none !important; }
.rail { position: fixed; left: 0; top: 92px; bottom: 0; width: 232px; z-index: 25; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; background: rgba(21,23,27,.96); scrollbar-width: none; }
body.scrolled .rail { top: 64px; }
.rail a { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 16px; color: var(--muted); font-weight: 500; }
.rail a .ico { font-size: 22px; flex: 0 0 auto; }
.rail .rhome, .rail .rplay { padding: 12px 14px; font: 800 16px Unbounded, sans-serif; color: var(--milk); }
.rail .rplay { background: var(--milk); color: var(--ink); } .rail .rplay .ico i.on { background: var(--arcade); }
.rail .rhome.on, .rail .rhome:hover { background: var(--card); }
.rail .rworld { position: relative; overflow: hidden; height: 64px; padding: 0 16px 0 92px; font: 800 17px Unbounded, sans-serif; color: var(--milk); background: var(--card); }
.rail .rworld .wart { position: absolute; left: -8px; top: -14px; bottom: -14px; width: 110px; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
.rail .rworld .wart svg { width: 100%; height: 100%; display: block; }
.rail .rworld span:last-child { position: relative; }
.rail .rworld.on { background: var(--world); color: var(--world-ink); }
.rail .rdiv { height: 1px; background: var(--faint); margin: 10px 6px; flex: 0 0 auto; }
.rail .rsmall { padding: 9px 14px; font-size: 15px; } .rail .rsmall:hover, .rail .rsmall.on { background: var(--card); color: var(--milk); }
.rail .rsmall:nth-of-type(1) .ico i.on { background: var(--blue); } .rail .rsmall:nth-of-type(2) .ico i.on { background: var(--edu); }
.rail a.rsmall .ico i.on { background: var(--music); }
@media (min-width: 901px) {
  body { padding-left: 232px; padding-bottom: 40px; }
  .top { margin-left: -232px; padding-left: 28px; }
}
.top .chips { margin-left: auto; }

/* focus: a frame and a small zoom; the row never jumps (Switch, Netflix) */
.row .tile.focus, .row .tile:focus-visible, .row .tile:hover { width: 230px; height: 230px; transform: scale(1.06); box-shadow: var(--focus); z-index: 2; }
.row { min-height: 0; padding-top: 22px; padding-bottom: 26px; }
.stagehome .row { min-height: 0; }

/* the cube dock: a small icon with the battery; opens for a few seconds when you turn the cube, or on a click */
.dock { width: auto; padding: 8px; transition: width .25s, padding .25s; }
.dock .dock-cube { height: 0; width: 0; transition: height .25s, width .25s; }
.dock .dock-cal { display: none; }
.dock .dock-hide { display: none; }
.dock .dock-mini { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 6px 8px; }
.dock .dock-mini .ico { font-size: 26px; } .dock .dock-mini b { font-family: Handjet, monospace; font-size: 22px; }
.dock.open { width: 196px; padding: 10px; }
.dock.open .dock-cube { height: 150px; width: 100%; } .dock.open .dock-cal { display: flex; } .dock.open .dock-mini { display: none; } .dock.open .dock-hide { display: block; }
.dock-show { display: none !important; }

/* front page: today, challenge, summary, tip, events */
.hubcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.hubcards .panel h3 { display: flex; gap: 10px; align-items: center; } .hubcards .panel .ico { font-size: 22px; }
.tipcube { height: 150px; border-radius: 16px; background: var(--ink2); margin: 10px 0; }
.events { display: grid; gap: 10px; }
.event { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--card); }
.event .eico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 48px; background: var(--world, var(--card2)); color: var(--world-ink, var(--milk)); }
.event .eico .ico { font-size: 22px; } .event .eico .ico i.on { background: currentColor; }
.event b { display: block; } .event span { color: var(--muted); font-size: 14px; } .event em { margin-left: auto; font-style: normal; color: var(--muted); font-family: Handjet, monospace; font-size: 18px; }
.event.post-ev { display: block; padding: 0; overflow: hidden; } .event.post-ev .img { aspect-ratio: 16/6; background-size: cover; background-position: center; } .event.post-ev .img svg { width: 100%; height: 100%; display: block; } .event.post-ev .body { padding: 16px 18px; }

/* guided first start */
.welcome { min-height: calc(100vh - 92px); display: grid; place-items: center; padding: 30px 16px; }
.welcome .box { width: min(720px, 100%); text-align: center; }
.welcome h1 { font-size: clamp(36px, 5vw, 64px); margin: 14px 0 12px; }
.welcome p { font-size: 20px; color: var(--muted); }
.welcome .dots { display: flex; gap: 8px; justify-content: center; } .welcome .dots i { width: 12px; height: 12px; border-radius: 4px; background: var(--card2); } .welcome .dots i.on { background: var(--music); }
.welcome .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 22px 0; }
.welcome .choices button { padding: 22px; border-radius: 20px; background: var(--card); font: 800 17px Unbounded, sans-serif; }
.welcome .choices button:hover, .welcome .choices button.focus { background: var(--milk); color: var(--ink); }
body.welcoming .rail, body.welcoming .tabbar { display: none; } body.welcoming { padding-left: 0; } body.welcoming .top { margin-left: 0; }

@media (max-width: 900px) { .rail { display: none; } }
.hubcards .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .hubcards .stat { padding: 10px 12px; } .hubcards .stat b { font-size: 28px; }
.hubcards .seq span { min-width: 44px; padding: 7px 8px; font-size: 14px; }
