/* Swellbound menus - the design system and every menu screen (menu/dom.js puts them on the page).
   Type: Barlow Condensed (display, labels) + Barlow (UI); both SIL OFL (fonts/OFL.txt).
   Sizing: on a desktop or TV 1em is 16 px at 1920x1080 and scales with the window; on a phone (.ph) it is 16 CSS px.
   Spacing: a 4 px grid (0.25em steps). One panel style, one focus ring (the sun), motion 150-250 ms ease-out. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(../../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(../../fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(../../fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(../../fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url(../../fonts/barlow-latin-700-normal.woff2) format("woff2"); }

#mn {
  --ink: #f4f9fc; --dim: rgba(226, 240, 248, 0.7); --faint: rgba(226, 240, 248, 0.44);
  --night: #05121c; --deep: #0a2233; --panel: rgba(7, 22, 34, 0.74); --panel2: rgba(12, 34, 50, 0.9); --line: rgba(255, 255, 255, 0.12); --glass: rgba(255, 255, 255, 0.07);
  --sun: #ffd166; --sea: #3fd6c6; --ice: #a8dcff; --coral: #ff7a59; --good: #8be36a;
  --disp: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; --ui: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --fast: 150ms; --med: 220ms;
  --r: 0.75em; --pad: 4.5em;
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  position: fixed; inset: 0; z-index: 2; display: none; pointer-events: none; overflow: hidden;   /* (under the touch layer, z 3: its Back button stays on top) */
  font: 500 min(0.8333vw, 1.4815vh) / 1.25 var(--ui); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
#mn.on { display: block; }
#mn.ph { font-size: 16px; --pad: 14px; }
:where(#mn) * { box-sizing: border-box; }
:where(#mn) .ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:where(#mn) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; touch-action: manipulation; }
:where(#mn) [data-h] { cursor: pointer; pointer-events: auto; }
.mn-s { position: absolute; inset: 0; isolation: isolate; display: flex; flex-direction: column; padding: calc(var(--st) + 2.5em) calc(var(--sr) + var(--pad)) calc(var(--sb) + 2.25em) calc(var(--sl) + var(--pad)); animation: mn-in var(--med) var(--ease) both; }
#mn.ph .mn-s { padding: calc(var(--st) + 10px) calc(var(--sr) + 14px) calc(var(--sb) + 10px) calc(var(--sl) + 14px); }
.mn-s[inert] { opacity: 0.0; }
@keyframes mn-in { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }
.mn-scroll { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; pointer-events: auto; }
.mn-scroll::-webkit-scrollbar { display: none; }
.mn-scroll.y { touch-action: pan-y; overflow-x: hidden; } .mn-scroll.x { touch-action: pan-x; overflow-y: hidden; }
/* scrims: the 3D scene stays the picture; type sits on a soft gradient, never on a box in the middle */
.mn-scrim { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.mn-scrim.bottom { background: linear-gradient(to top, rgba(3, 12, 20, 0.92) 0%, rgba(3, 12, 20, 0.55) 34%, rgba(3, 12, 20, 0) 62%), linear-gradient(to bottom, rgba(3, 12, 20, 0.6) 0%, rgba(3, 12, 20, 0) 26%); }
.mn-scrim.left { background: linear-gradient(to right, rgba(3, 12, 20, 0.95) 0%, rgba(3, 12, 20, 0.88) 42%, rgba(3, 12, 20, 0.4) 72%, rgba(3, 12, 20, 0.15) 100%); }
.mn-scrim.full { background: rgba(3, 12, 20, 0.82); }
.mn-scrim.modal { pointer-events: auto; }
.mn-bg { position: absolute; inset: -4%; z-index: -2; background: var(--night) center / cover no-repeat; filter: blur(1.6em) saturate(1.15) brightness(0.62); transition: background-image 400ms linear; pointer-events: none; }

/* ---- type */
.mn-label { font: 700 0.875em / 1 var(--disp); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.mn-h1 { font: 800 italic 3.5em / 0.95 var(--disp); letter-spacing: 0.01em; text-transform: uppercase; margin: 0; }
.mn-h2 { font: 700 1.75em / 1 var(--disp); letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.mn-sub { font: 500 1.125em / 1.3 var(--ui); color: var(--dim); }
#mn.ph .mn-h1 { font-size: 30px; } #mn.ph .mn-h2 { font-size: 20px; } #mn.ph .mn-sub { font-size: 15px; } #mn.ph .mn-label { font-size: 13px; }

/* ---- the top bar: a back button, a title, things on the right */
.mn-top { display: flex; align-items: center; gap: 1.5em; min-height: 3.5em; flex: none; }
#mn.tch .mn-top { padding-left: 62px; min-height: 48px; }     /* the on-screen Back button sits top left (touch.js) */
.mn-top .grow { flex: 1; min-width: 0; }
.mn-ib { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-width: 3em; height: 3em; padding: 0 0.9em; border-radius: 1.5em; background: var(--panel); border: 1px solid var(--line); font: 700 1em var(--disp); letter-spacing: 0.1em; text-transform: uppercase; transition: background var(--fast) var(--ease), border-color var(--fast), transform var(--fast) var(--ease); }
#mn.ph .mn-ib { min-width: 44px; height: 44px; border-radius: 22px; font-size: 14px; }
.mn-ib:hover, .mn-ib.on { background: var(--panel2); border-color: var(--sun); color: var(--sun); }
.mn-ib.sun { background: var(--sun); color: #0b2233; border-color: transparent; }
.mn-ib.sun.on, .mn-ib.sun:hover { background: #ffe29a; color: #0b2233; box-shadow: 0 0 0 0.2em rgba(255, 209, 102, 0.35); }

/* ---- button and key pictures, and the hint row along the bottom (never on a touch screen) */
.mn-hints { display: flex; align-items: center; gap: 1.75em; flex: none; margin-top: 1em; font: 600 1em var(--ui); color: var(--dim); }
#mn.k-touch .mn-hints, #mn.ph .mn-hints { display: none; }
.mn-hint { display: inline-flex; align-items: center; gap: 0.5em; }
.mn-g { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75em; height: 1.75em; border-radius: 0.875em; font: 700 0.95em / 1 var(--disp); color: var(--ink); border: 0.12em solid rgba(244, 249, 252, 0.75); background: rgba(5, 18, 28, 0.75); padding: 0 0.3em; font-style: normal; }
.mn-g.key { border-radius: 0.35em; background: rgba(244, 249, 252, 0.94); color: #0b2233; border-color: transparent; padding: 0 0.45em; letter-spacing: 0.02em; }
.mn-g.fA { border-color: #7ed957; color: #7ed957; } .mn-g.fB { border-color: #ff6b5e; color: #ff6b5e; } .mn-g.fX { border-color: #58b7ff; color: #58b7ff; } .mn-g.fY { border-color: #ffd166; color: #ffd166; }
.mn-g .ic { width: 0.95em; height: 0.95em; stroke-width: 2.6; }
.mn-g.wide { border-radius: 0.5em; padding: 0 0.5em; }

/* ---- title: the wordmark, then one row of picture tiles (Continue, Race, Surf, Snow, Online) */
.mn-title { justify-content: space-between; }
.mn-brand { display: flex; align-items: center; gap: 1em; }
.mn-brand svg { width: 5em; height: 5em; fill: none; stroke: var(--sun); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0.15em 0.4em rgba(0, 0, 0, 0.5)); }
.mn-word { font: 800 italic 6em / 0.85 var(--disp); letter-spacing: 0.015em; text-transform: uppercase; text-shadow: 0 0.04em 0.3em rgba(0, 0, 0, 0.45); margin: 0; }
.mn-mtiles { display: flex; gap: 1.25em; align-items: flex-end; }
.mn-mode { position: relative; flex: 1 1 0; min-width: 0; height: 15em; border-radius: var(--r); overflow: hidden; background: var(--deep); transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), flex-grow var(--med) var(--ease), filter var(--med); box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.4); filter: brightness(0.78) saturate(0.9); }
.mn-mode.cont { flex-grow: 1.7; }
.mn-mode img, .mn-mode video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.mn-mode::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 12, 20, 0.88) 0%, rgba(3, 12, 20, 0.15) 55%, rgba(3, 12, 20, 0) 100%); }
.mn-mode .cap { position: absolute; left: 1.25em; right: 1.25em; bottom: 1.1em; z-index: 1; display: flex; align-items: flex-end; gap: 0.75em; }
.mn-mode .cap .ic { width: 2em; height: 2em; margin-bottom: 0.2em; }
.mn-mode .name { font: 800 italic 2.75em / 0.9 var(--disp); text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-mode .mn-label { display: block; margin-bottom: 0.45em; color: var(--sun); }
.mn-mode .live { position: absolute; top: 1em; left: 1.1em; z-index: 1; display: inline-flex; align-items: center; gap: 0.45em; padding: 0.3em 0.7em; border-radius: 1em; background: rgba(3, 12, 20, 0.7); font: 700 0.875em var(--disp); letter-spacing: 0.1em; text-transform: uppercase; color: var(--good); }
.mn-mode .live::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--good); }
.mn-mode.on { transform: translateY(-0.6em) scale(1.03); filter: none; box-shadow: 0 0 0 0.22em var(--sun), 0 1.2em 2.6em rgba(0, 0, 0, 0.55); z-index: 1; }
.mn-mode.on img { transform: scale(1.06); }
.mn-corner { display: flex; gap: 0.6em; align-items: center; }
.mn-hold { position: relative; }
.mn-hold i { position: absolute; left: 0; bottom: 0; height: 0.2em; background: var(--sun); border-radius: 0.1em; }
#mn.ph .mn-word { font-size: 44px; } #mn.ph .mn-brand svg { width: 44px; height: 44px; }
#mn.ph .mn-mode .name { font-size: 26px; } #mn.ph .mn-mode .cap { left: 12px; right: 12px; bottom: 10px; gap: 8px; } #mn.ph .mn-mode .cap .ic { width: 22px; height: 22px; }
#mn.ph .mn-mode.on { transform: none; }
@media (orientation: portrait) {
  #mn.ph .mn-mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #mn.ph .mn-mode { height: 124px; } #mn.ph .mn-mode.cont { grid-column: 1 / 3; height: 170px; }
  #mn.ph .mn-title .mn-top { flex-direction: column; align-items: flex-start; gap: 10px; padding-left: 0; padding-top: 56px; }
}
@media (orientation: landscape) {
  #mn.ph .mn-mtiles { gap: 8px; } #mn.ph .mn-mode { height: min(170px, 46vh); }
  #mn.ph .mn-word { font-size: 38px; }
}

/* ---- level select: tabs and the setup pills on top, rows of picture tiles under them */
.mn-tabs { display: inline-flex; gap: 0.25em; padding: 0.25em; border-radius: 2em; background: var(--panel); border: 1px solid var(--line); transition: border-color var(--fast); }
.mn-tabs.on { border-color: var(--sun); box-shadow: 0 0 0 0.15em rgba(255, 209, 102, 0.3); }
.mn-tab { display: inline-flex; align-items: center; gap: 0.5em; height: 2.75em; padding: 0 1.25em; border-radius: 1.4em; font: 700 1.25em var(--disp); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); transition: background var(--fast) var(--ease), color var(--fast); }
.mn-tab.sel { background: var(--ink); color: #0b2233; }
#mn.ph .mn-tab { height: 44px; padding: 0 13px; font-size: 15px; } #mn.ph .mn-tab .ic { display: none; }
.mn-pills { display: flex; gap: 0.5em; align-items: center; }
.mn-pill { display: inline-flex; flex-direction: column; justify-content: center; gap: 0.2em; height: 3.25em; min-width: 5.5em; padding: 0 1em; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: background var(--fast) var(--ease), border-color var(--fast), transform var(--fast) var(--ease); }
.mn-pill b { font: 700 1.2em / 1 var(--disp); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.mn-pill .mn-label { font-size: 0.72em; color: var(--faint); white-space: nowrap; }
.mn-pill.dim b { color: var(--faint); }
.mn-pill.on, .mn-pill:hover { border-color: var(--sun); background: var(--panel2); }
.mn-pill.on { box-shadow: 0 0 0 0.15em rgba(255, 209, 102, 0.3); transform: translateY(-0.1em); }
.mn-pill.on .mn-label { color: var(--sun); }
.mn-pill i { position: absolute; }
.mn-hero { flex: none; margin: 1.25em 0 0.25em; min-height: 5.6em; }
.mn-hero .mn-sub { margin-top: 0.5em; max-width: 46em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-rows { flex: 1; min-height: 0; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 1em; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.25em, #000 calc(100% - 2em), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 1.25em, #000 calc(100% - 2em), transparent 100%); }
.mn-row { margin-top: 1.25em; }
.mn-row > .mn-label { display: flex; align-items: baseline; gap: 0.75em; margin-bottom: 0.7em; transition: color var(--fast); }
.mn-row.on > .mn-label { color: var(--sun); }
.mn-row > .mn-label small { font: 500 0.95em var(--ui); letter-spacing: 0; text-transform: none; color: var(--faint); }
.mn-strip { display: flex; gap: 1em; margin: 0 calc(-1 * var(--pad)); padding: 0.6em var(--pad) 0.9em; scroll-padding: 0 var(--pad); }
.mn-tile { position: relative; flex: none; width: 21em; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--deep); box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.35); transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), filter var(--med); filter: brightness(0.86); }
.mn-tile img, .mn-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mn-tile video { opacity: 0; transition: opacity 300ms; } .mn-tile video.play { opacity: 1; }
.mn-tile::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to top, rgba(3, 12, 20, 0.9), rgba(3, 12, 20, 0)); }
.mn-tile .name { position: absolute; left: 0.6em; right: 0.6em; bottom: 0.45em; z-index: 1; font: 700 1.5em / 1 var(--disp); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.mn-tile .badge { position: absolute; top: 0.6em; left: 0.6em; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2em; height: 2em; border-radius: 50%; background: rgba(3, 12, 20, 0.72); color: var(--sun); }
.mn-tile .badge .ic { width: 1.1em; height: 1.1em; }
.mn-tile.on { transform: scale(1.06); filter: none; box-shadow: 0 0 0 0.2em var(--sun), 0 0.9em 2.2em rgba(0, 0, 0, 0.55); z-index: 1; }
.mn-art { position: absolute; inset: 0; }
.mn-art.race { background: linear-gradient(180deg, #7fc4e8 0%, #cfeaf5 38%, #1d8fb0 40%, #0a3d5c 100%); }
.mn-art.surf { background: linear-gradient(180deg, #f3c9a8 0%, #f7e3cf 38%, #1b9aa0 40%, #0a3d4c 100%); }
.mn-art.snow { background: linear-gradient(180deg, #3d7fc8 0%, #b9d6f2 45%, #f4f8fc 46%, #dfe9f3 100%); }
.mn-art .ic { position: absolute; left: 50%; top: 44%; width: 3.2em; height: 3.2em; margin: -1.6em; color: rgba(255, 255, 255, 0.9); }
.mn-acts { display: flex; gap: 0.75em; margin-top: 1.25em; flex: none; }
.mn-act { display: inline-flex; align-items: center; gap: 0.6em; height: 3.5em; padding: 0 1.5em; border-radius: 1.75em; background: var(--panel2); border: 1px solid var(--line); font: 700 1.3em var(--disp); letter-spacing: 0.08em; text-transform: uppercase; transition: transform var(--fast) var(--ease), box-shadow var(--fast), background var(--fast); }
.mn-act.pri { background: var(--sun); color: #0b2233; border-color: transparent; }
.mn-act.on { box-shadow: 0 0 0 0.18em var(--sun), 0 0.5em 1.4em rgba(0, 0, 0, 0.45); transform: translateY(-0.12em); }
.mn-act.pri.on { box-shadow: 0 0 0 0.18em var(--ink), 0 0.5em 1.4em rgba(0, 0, 0, 0.45); }
#mn.ph .mn-levels .mn-top, #mn.ph .mn-quick .mn-top { flex-wrap: wrap; gap: 8px; }
#mn.ph .mn-pills { order: 3; width: 100%; overflow-x: auto; margin: 0 -14px; padding: 0 14px; width: calc(100% + 28px); scrollbar-width: none; pointer-events: auto; touch-action: pan-x; }
#mn.ph .mn-pill { height: 44px; min-width: 0; padding: 0 12px; flex: none; } #mn.ph .mn-pill b { font-size: 15px; } #mn.ph .mn-pill .mn-label { font-size: 10.5px; }
#mn.ph .mn-hero { display: none; }
#mn.ph .mn-row { margin-top: 12px; } #mn.ph .mn-row > .mn-label { margin-bottom: 6px; }
#mn.ph .mn-strip { flex-wrap: wrap; gap: 8px; padding: 2px 14px 4px; overflow: visible; }
#mn.ph .mn-tile { width: calc((100% - 8px) / 2); } #mn.ph .mn-tile .name { font-size: 17px; }
#mn.ph .mn-tile.on { transform: none; box-shadow: 0 0 0 2px var(--sun); }
#mn.ph .mn-act { height: 48px; font-size: 16px; flex: 1; justify-content: center; padding: 0 10px; }
@media (orientation: landscape) { #mn.ph .mn-tile { width: calc((100% - 24px) / 4); } #mn.ph .mn-levels .mn-top, #mn.ph .mn-quick .mn-top { flex-wrap: nowrap; } #mn.ph .mn-pills { order: 0; width: auto; flex: 1; min-width: 0; margin: 0; padding: 0; } }

/* ---- the Snow side: what you ride down the left, its places along the foot, the mountain behind (a live flyover on a desktop) */
.mn-snow { flex: 1; min-height: 0; display: flex; align-items: center; }
.mn-snow .mn-col { width: 20em; }
.mn-snowmenu .mn-rw.cur { border-color: rgba(255, 209, 102, 0.5); }
.mn-snowmenu .mn-hero { display: block; margin: 0; min-height: 0; }
.mn-snowmenu .mn-hero .mn-h1 { font-size: 4.5em; margin-top: 0.12em; }
.mn-snowmenu > .mn-strip { flex: none; padding-top: 1.1em; }
#mn.ph .mn-snowmenu .mn-hero { display: none; }
#mn.ph .mn-snowmenu > .mn-strip { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 8px 14px 4px; }
#mn.ph .mn-snowmenu .mn-tile { width: 150px; flex: none; }
#mn.ph .mn-snow .mn-col { width: 190px; flex: none; } #mn.ph .mn-snow { align-items: flex-start; padding-top: 6px; overflow: hidden; }
@media (orientation: portrait) { #mn.ph .mn-snow .mn-col { width: 100%; } #mn.ph .mn-snowmenu .mn-tile { width: 170px; } }
@media (orientation: landscape) { #mn.ph .mn-snow .mn-list { flex-direction: row; flex-wrap: wrap; } #mn.ph .mn-snow .mn-col { width: 100%; } #mn.ph .mn-snow .mn-rw { flex: 1 1 22%; min-width: 0; } }

/* ---- lists of rows: the pause menus, settings, race setup */
.mn-two { flex-direction: row; gap: 1.5em; align-items: stretch; }
.mn-s.mn-two { padding-top: calc(var(--st) + 3em); }
.mn-col { display: flex; flex-direction: column; width: 25em; flex: none; min-height: 0; }
.mn-col.wide { width: 31em; }
.mn-col .mn-h1 { margin-bottom: 0.15em; font-size: 3em; }
.mn-col .mn-label.head { margin: 0 0 0.9em; min-height: 1em; }
.mn-list { display: flex; flex-direction: column; gap: 0.4em; flex: 0 1 auto; min-height: 0; padding: 0.3em; margin: -0.3em; }
.mn-rw { position: relative; display: flex; align-items: center; gap: 0.85em; min-height: 3.25em; padding: 0 1.1em; border-radius: var(--r); background: rgba(9, 28, 42, 0.72); border: 1px solid transparent; transition: background var(--fast) var(--ease), border-color var(--fast), transform var(--fast) var(--ease), color var(--fast); flex: none; }
.mn-rw .lb { font: 600 1.2em / 1.1 var(--ui); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-rw.act .lb { font: 700 1.45em / 1 var(--disp); letter-spacing: 0.07em; text-transform: uppercase; }
.mn-rw .ic { color: var(--dim); width: 1.4em; height: 1.4em; }
.mn-rw .val { display: inline-flex; align-items: center; justify-content: center; gap: 0.35em; font: 700 1.2em / 1 var(--disp); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.mn-rw .val canvas { width: 1.5em; height: 1.5em; }
.mn-rw .ar + .val { min-width: 7.5em; }
.mn-rw .ar { display: inline-flex; align-items: center; justify-content: center; width: 2em; height: 2.6em; color: var(--faint); border-radius: 0.5em; }
.mn-rw .ar .ic { width: 1.1em; height: 1.1em; color: inherit; stroke-width: 2.6; }
.mn-rw .ar:hover { color: var(--sun); background: var(--glass); }
.mn-rw.dim .lb, .mn-rw.dim .val { color: var(--faint); }
.mn-rw .tint { position: absolute; left: 0.3em; top: 22%; bottom: 22%; width: 0.22em; border-radius: 0.11em; }
.mn-rw .bar { position: relative; width: 7.5em; height: 0.4em; border-radius: 0.2em; background: rgba(255, 255, 255, 0.16); }
.mn-rw .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0.2em; background: var(--sea); }
.mn-rw .bar b { position: absolute; top: 50%; width: 1.1em; height: 1.1em; margin: -0.55em; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.mn-rw.on { background: var(--panel2); border-color: var(--sun); box-shadow: 0 0 0 0.12em rgba(255, 209, 102, 0.28); transform: translateX(0.25em); }
.mn-rw.on .ic { color: var(--sun); } .mn-rw.on .ar { color: var(--sun); }
.mn-rw.pri { background: var(--sun); color: #0b2233; } .mn-rw.pri .ic { color: #0b2233; } .mn-rw.pri.on { border-color: var(--ink); background: #ffe29a; }
.mn-rw.pri .lb small, .mn-rw .lb small { display: block; font: 500 0.6em / 1.2 var(--ui); letter-spacing: 0; text-transform: none; opacity: 0.75; margin-top: 0.2em; }
.mn-note { margin: 0 0 0.9em; padding: 0.7em 1em; border-radius: var(--r); background: rgba(255, 209, 102, 0.14); border: 1px solid rgba(255, 209, 102, 0.5); color: var(--sun); font: 600 1.05em / 1.3 var(--ui); }
#mn.ph .mn-two { gap: 12px; } #mn.ph .mn-s.mn-two { padding-top: calc(var(--st) + 10px); }
#mn.ph .mn-col, #mn.ph .mn-col.wide { width: auto; flex: 1 1 0; min-width: 0; }
#mn.ph .mn-col .mn-h1 { font-size: 28px; padding-left: 62px; min-height: 48px; display: flex; align-items: center; margin: 0 0 6px; }
#mn.ph .mn-col .mn-label.head { display: none; }
#mn.ph .mn-rw { min-height: 48px; padding: 0 12px; gap: 10px; } #mn.ph .mn-rw .lb { font-size: 16px; } #mn.ph .mn-rw.act .lb { font-size: 18px; } #mn.ph .mn-rw .val { font-size: 16px; }
#mn.ph .mn-rw .ar + .val { min-width: 0; }
#mn.ph .mn-rw .ar { width: 44px; height: 46px; margin: 0 -6px; } #mn.ph .mn-rw.on { transform: none; } #mn.ph .mn-rw .bar { width: 90px; }
#mn.ph .mn-s.mn-two > .mn-col.wide .mn-list { padding-top: 54px; }
@media (orientation: portrait) { #mn.ph .mn-col .mn-h1.sp { display: none; } #mn.ph .mn-two { flex-direction: column; overflow-y: auto; pointer-events: auto; touch-action: pan-y; } #mn.ph .mn-col, #mn.ph .mn-col.wide { flex: none; } #mn.ph .mn-col .mn-list { overflow: visible; } #mn.ph .mn-s.mn-two > .mn-col.wide .mn-list { padding-top: 0.3em; } }

/* ---- controls: one card a button */
.mn-keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1em; max-width: 72em; margin-top: 2em; }
.mn-key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; min-height: 9.5em; padding: 1em; border-radius: var(--r); background: var(--glass); }
.mn-key .gl { display: inline-flex; gap: 0.3em; font-size: 1.9em; align-items: center; flex-wrap: wrap; justify-content: center; }
.mn-key .mn-label { color: var(--ink); font-size: 1.05em; }
#mn.ph .mn-keys { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; } #mn.ph .mn-key { min-height: 84px; padding: 8px; gap: 8px; } #mn.ph .mn-key .gl { font-size: 18px; }
@media (orientation: landscape) { #mn.ph .mn-keys { grid-template-columns: repeat(5, 1fr); } #mn.ph .mn-key { min-height: 70px; } }
.mn-seat .tap { display: none; } #mn.k-touch .mn-seat .tap { display: block; font-size: 1.2em; } #mn.k-touch .mn-seat .join { display: none; }
@media (orientation: landscape) { #mn.ph .mn-modes .mn-sub { display: none; } }

/* the Controls board: tabs on top, the cards under them */
.mn-board .mn-top { gap: 1em; flex-wrap: wrap; } .mn-board .mn-tab { height: 2.6em; font-size: 1.05em; padding: 0 1em; } .mn-board .mn-keys { max-width: none; grid-template-columns: repeat(6, 1fr); margin-top: 1.5em; }
.mn-board .mn-key { min-height: 8.5em; } .mn-board .mn-key .gl .ic { width: 1.4em; height: 1.4em; } .mn-board .mn-key .mn-label { display: inline-flex; align-items: center; gap: 0.4em; text-align: center; letter-spacing: 0.08em; } .mn-board .mn-key .mn-label .ic { width: 1.1em; height: 1.1em; opacity: 0.7; }
#mn.ph .mn-board .mn-tab span, #mn.ph .mn-board .mn-ib span { display: none; } #mn.ph .mn-board .mn-tab .ic { display: block; } #mn.ph .mn-board .mn-top { gap: 6px; } #mn.ph .mn-board .mn-h2 { display: none; }
#mn.ph .mn-board .mn-keys { grid-template-columns: repeat(3, 1fr); } #mn.ph .mn-board .mn-key .mn-label { font-size: 11.5px; }
@media (orientation: landscape) { #mn.ph .mn-board .mn-keys { grid-template-columns: repeat(5, 1fr); } }
/* the lesson card: top of the player's own view, never the middle */
.mn-s.mn-hud { animation: none; padding: 0; pointer-events: none; }
.mn-lesson { position: absolute; display: flex; justify-content: center; pointer-events: none; }
.mn-lesson .card { margin-top: calc(var(--st) + 1.5em); max-width: calc(100% - 2em); padding: 0.9em 1.6em 1em; border-radius: var(--r); background: rgba(7, 22, 34, 0.86); border: 1px solid rgba(255, 209, 102, 0.7); text-align: center; }
.mn-lesson .card.low { margin-top: calc(var(--st) + 7.5em); }
.mn-lesson .mn-label { display: flex; gap: 0.8em; justify-content: center; color: var(--sun); } .mn-lesson .mn-label b { color: var(--dim); } .mn-lesson .mn-label i { font-style: normal; color: var(--good); }
.mn-lesson .line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35em; margin-top: 0.45em; font: 700 2em / 1.15 var(--disp); letter-spacing: 0.04em; text-transform: uppercase; } .mn-lesson .line .mn-g { font-size: 0.85em; }
.mn-lesson .mn-sub { margin-top: 0.3em; font-size: 1.05em; }
/* the lesson as a picture (Surf School): the line on the wave, a word or two, the buttons, a pip a lesson */
.mn-lesson .card.vis { font-size: 1.12em; display: flex; align-items: center; gap: 1em; padding: 0.55em 1.3em 0.55em 0.7em; border-radius: 1.2em; border-width: 2px; text-align: left; transition: border-color 200ms, box-shadow 200ms; }
.mn-lesson .card.vis.bare { padding-left: 1.3em; } #mn.ph .mn-lesson .card.vis.bare { padding-left: 14px; }
.mn-lesson .card.vis.ok { border-color: var(--good); box-shadow: 0 0 0 0.3em rgba(139, 227, 106, 0.28); animation: mn-okpop 420ms var(--ease); }
@keyframes mn-okpop { from { transform: scale(1.09); } to { transform: scale(1); } }
.mn-lesson .face { width: 10em; height: 5em; flex: none; } .mn-lesson .tick { width: 3em; height: 3em; display: grid; place-items: center; color: var(--good); } .mn-lesson .tick .ic { width: 2.2em; height: 2.2em; stroke-width: 3; }
.mn-lesson .col { display: flex; flex-direction: column; gap: 0.4em; min-width: 0; }
.mn-lesson .pips { display: flex; gap: 0.3em; } .mn-lesson .pips u { width: 0.95em; height: 0.3em; border-radius: 0.15em; background: rgba(244, 249, 252, 0.22); text-decoration: none; } .mn-lesson .pips u.on { background: var(--sun); } .mn-lesson .pips u.now { background: var(--ink); animation: mn-pip 1s ease-in-out infinite alternate; }
@keyframes mn-pip { from { opacity: 0.45; } to { opacity: 1; } }
.mn-lesson .card.vis .line { margin-top: 0; justify-content: flex-start; flex-wrap: nowrap; white-space: nowrap; font-size: 1.9em; gap: 0.4em; } .mn-lesson .card.vis .line small { font: 700 0.6em / 1 var(--disp); color: var(--dim); letter-spacing: 0.1em; }
.mn-stick { position: relative; display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; flex: none; } .mn-stick svg { position: absolute; inset: 0; width: 100%; height: 100%; } .mn-stick circle { fill: rgba(5, 18, 28, 0.8); stroke: rgba(244, 249, 252, 0.8); stroke-width: 2; } .mn-stick path { fill: var(--sun); }
.mn-stick b { position: relative; font: 700 0.62em / 1 var(--disp); color: var(--ink); font-style: normal; }
/* a phone: sideways the card sits under the top row of buttons, the lesson's film docked on its right (clips.js); upright, under the top row */
#mn.ph .mn-lesson .card.vis { font-size: 1em; padding: 4px 12px 4px 6px; gap: 8px; max-width: calc(100% - 300px); } #mn.ph .mn-lesson .card.vis .line { font-size: 18px; } #mn.ph .mn-lesson .face { width: 88px; height: 44px; }
#mn.ph .mn-lesson .card.vis.film { width: 244px; max-width: none; margin-right: 100px; box-sizing: border-box; overflow: hidden; }
#mn.ph .mn-lesson .card { margin-top: calc(var(--st) + 8px); padding: 6px 14px 8px; } #mn.ph .mn-lesson .card.low { margin-top: calc(var(--st) + 62px); } #mn.ph .mn-lesson .line { font-size: 19px; } #mn.ph .mn-lesson .mn-sub { font-size: 13px; }
#mn.ph .mn-lesson .card.vis, #mn.ph .mn-lesson .card.vis.low { margin-top: calc(var(--st) + 64px); }
#mn.ph .mn-lesson .card.vis.tall { margin-top: calc(var(--st) + 150px); width: auto; max-width: calc(100% - 120px); margin-right: 56px; }

/* ---- loading: the place you are going, its name, a thin line that moves */
.mn-loading { justify-content: flex-end; background: var(--night); padding-bottom: calc(var(--sb) + 4em); }
.mn-loading .mn-bg { filter: blur(0.5em) saturate(1.1) brightness(0.72); inset: -2%; animation: mn-drift 9s ease-out both; }
@keyframes mn-drift { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.mn-loading .mn-h1 { font-size: 5.5em; } #mn.ph .mn-loading .mn-h1 { font-size: 40px; }
.mn-loading .mn-label { margin-bottom: 0.9em; color: var(--sun); }
.mn-line { position: absolute; left: 0; right: 0; bottom: 0; height: 0.25em; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.mn-line i { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--sun); border-radius: 0.2em; animation: mn-run 1.3s var(--ease) infinite; }
.mn-line i.real { left: 0; animation: none; transition: width 300ms linear; }
@keyframes mn-run { from { left: -30%; } to { left: 100%; } }
.mn-mark { width: 4em; height: 4em; fill: none; stroke: var(--sun); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1em; }

/* ---- results and standings: your place, big; the table, small */
.mn-res { display: flex; gap: 3em; align-items: flex-end; flex: none; margin-top: 0.5em; }
.mn-res.top { align-items: flex-start; margin-top: 2em; } .mn-res.top .mn-h1 { font-size: 5em; margin-top: 0.15em; }
.mn-place .big { font: 800 italic 11em / 0.8 var(--disp); letter-spacing: -0.01em; margin: 0.08em 0 0.05em; text-shadow: 0 0.04em 0.3em rgba(0, 0, 0, 0.4); }
.mn-place .big.win { color: var(--sun); }
.mn-place .big sup { font-size: 0.32em; vertical-align: top; margin-left: 0.1em; text-transform: uppercase; position: relative; top: 0.25em; }
.mn-place .time, .rec { display: inline-flex; align-items: center; gap: 0.4em; font: 700 2em / 1 var(--disp); letter-spacing: 0.04em; margin-right: 1em; }
.rec { color: var(--sun); font-size: 1.4em; text-transform: uppercase; }
.mn-table { display: flex; flex-direction: column; gap: 0.3em; width: 30em; padding-bottom: 0.4em; }
.mn-table.wide { width: 40em; }
.mn-st { display: flex; align-items: center; gap: 0.8em; height: 2.6em; padding: 0 1em; border-radius: 0.6em; background: rgba(9, 28, 42, 0.72); font: 600 1.1em var(--ui); animation: mn-in 300ms var(--ease) both; }
.mn-st:nth-child(2) { animation-delay: 60ms; } .mn-st:nth-child(3) { animation-delay: 120ms; } .mn-st:nth-child(4) { animation-delay: 180ms; } .mn-st:nth-child(n+5) { animation-delay: 240ms; }
.mn-st.lg { height: 3.4em; font-size: 1.3em; }
.mn-st b { font: 800 italic 1.5em var(--disp); width: 1.2em; }
.mn-st i { width: 0.8em; height: 0.8em; border-radius: 50%; flex: none; box-shadow: 0 0 0 0.12em rgba(255, 255, 255, 0.6); }
.mn-st span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-st em { font: 700 1.15em var(--disp); font-style: normal; letter-spacing: 0.04em; }
.mn-st em small { color: var(--sun); font-size: 0.85em; margin-left: 0.4em; }
.mn-st.me { background: var(--panel2); box-shadow: inset 0 0 0 0.1em rgba(255, 209, 102, 0.7); }
.mn-results .mn-rows { margin-top: 0.5em; }
#mn.ph .mn-res { gap: 14px; padding-left: 0; align-items: center; } #mn.ph .mn-place .big { font-size: 84px; } #mn.ph .mn-place .time { font-size: 22px; }
#mn.ph .mn-table, #mn.ph .mn-table.wide { width: auto; flex: 1; min-width: 0; } #mn.ph .mn-st { height: 36px; font-size: 15px; } #mn.ph .mn-st.lg { height: 42px; font-size: 16px; }
.mn-results > .mn-top { display: none; }
@media (orientation: portrait) { #mn.ph .mn-res { flex-direction: column; align-items: stretch; padding-top: 50px; } }
@media (orientation: landscape) { #mn.ph.tch .mn-res { padding-left: 62px; } }

.mn-facts { display: flex; gap: 2em; margin-top: 0.8em; font-size: 1.3em; } .mn-facts span { display: flex; flex-direction: column; gap: 0.35em; } .mn-facts b { font: 700 1.9em / 1 var(--disp); } .mn-facts i { font-style: normal; font-size: 0.8em; }
.mn-surfsum .mn-res { margin-top: 1.5em; }
#mn.ph .mn-facts { gap: 14px; flex-wrap: wrap; } #mn.ph .mn-facts b { font-size: 20px; } #mn.ph .mn-surfsum { overflow-y: auto; pointer-events: auto; touch-action: pan-y; }

/* ---- seats, race setup, the online lobby */
.mn-seats { display: flex; gap: 1.5em; justify-content: center; align-items: stretch; flex: 1; min-height: 0; margin: 1.5em 0 0.5em; }
.mn-seat { --acc: var(--sun); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8em; width: 34em; max-width: 48%; padding: 1.5em; border-radius: 1.25em; background: var(--panel); border: 0.15em solid var(--acc); text-align: center; transition: border-color var(--fast), transform var(--med) var(--ease); }
#mn .mn-seat.empty { border: 0.15em dashed rgba(255, 255, 255, 0.25); color: var(--dim); text-align: center; align-items: center; }
.mn-seat.empty > .ic { width: 4em; height: 4em; opacity: 0.6; } .mn-seat .join { display: inline-flex; gap: 0.5em; font-size: 1.4em; }
.mn-seat.ready { border-color: var(--good); } .mn-seat.ready .mn-act { background: rgba(139, 227, 106, 0.2); color: var(--good); border-color: transparent; }
.mn-seat .pick { display: flex; align-items: center; gap: 1em; } .mn-seat .ar { display: inline-flex; align-items: center; justify-content: center; width: 3em; height: 3em; border-radius: 50%; background: var(--glass); color: var(--sun); }
.mn-seat.ready .ar { visibility: hidden; }
.mn-craft { width: 15em; height: 7.6em; filter: drop-shadow(0 0.4em 0.6em rgba(0, 0, 0, 0.4)); }
.mn-seg { display: flex; gap: 0.3em; padding: 0.3em; border-radius: 2em; background: rgba(0, 0, 0, 0.3); }
.mn-seg button { height: 2.6em; padding: 0 1.1em; border-radius: 1.3em; font: 700 1.05em var(--disp); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.mn-seg button.sel { background: var(--sea); color: #06222c; }
#mn.ph .mn-seats { gap: 10px; margin: 8px 0 0; } #mn.ph .mn-seat { padding: 10px; gap: 6px; width: auto; flex: 1; max-width: none; } #mn.ph .mn-craft { width: 120px; height: 61px; } #mn.ph .mn-seat .ar { width: 44px; height: 44px; }
#mn.ph .mn-seg button { height: 40px; padding: 0 9px; font-size: 13px; } #mn.ph .mn-seat .mn-act { flex: none; width: 100%; }
@media (orientation: portrait) { #mn.ph .mn-seats { flex-direction: column; } }
.mn-side { flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: 3em; }
.mn-shot { position: relative; width: min(100%, 52em); aspect-ratio: 16 / 9; border-radius: 1.25em; overflow: hidden; box-shadow: 0 1em 3em rgba(0, 0, 0, 0.5); background: var(--deep); }
.mn-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mn-shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 3em 1.5em 1.2em; background: linear-gradient(to top, rgba(3, 12, 20, 0.9), transparent); }
.mn-cuplist { display: flex; flex-wrap: wrap; gap: 0.6em; justify-content: flex-end; max-width: 52em; }
.mn-tile.sm { width: 12em; filter: none; } .mn-tile.sm .name { font-size: 1.05em; }
#mn.ph .mn-side { display: none; }
@media (orientation: landscape) { #mn.ph .mn-side { display: flex; padding: 54px 0 0; align-items: flex-start; } #mn.ph .mn-tile.sm { width: 88px; } #mn.ph .mn-tile.sm .name { font-size: 11px; } }
.mn-room { display: flex; gap: 2em; flex: 1; min-height: 0; margin-top: 1.25em; }
.mn-players { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5em; }
.mn-pl { display: flex; align-items: center; gap: 1em; min-height: 4.6em; padding: 0 1.25em; border-radius: var(--r); background: var(--glass); border: 1px solid transparent; flex: none; }
.mn-pl .mn-craft { width: 6.4em; height: 3.25em; flex: none; } .mn-pl .nm { flex: 1; min-width: 0; font: 700 1.6em var(--disp); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-pl .nm .ic { width: 0.8em; height: 0.8em; color: var(--sun); } .mn-pl .stt { font: 700 1em var(--disp); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); } .mn-pl .stt.ok { color: var(--good); } .mn-pl .stt .ic { width: 1.6em; height: 1.6em; }
.mn-pl.me { background: var(--panel2); border-color: rgba(255, 209, 102, 0.7); } .mn-pl.away { opacity: 0.5; }
#mn .mn-pl.invite { border: 1px dashed rgba(255, 255, 255, 0.3); color: var(--sea); } .mn-pl.invite > .ic { width: 2em; height: 2em; margin: 0 1em; }
.mn-status { font: 600 1.1em var(--ui); color: var(--dim); min-height: 1.4em; margin-top: 0.8em; }
.mn-count { text-align: center; padding: 1em; } .mn-count b { display: block; font: 800 italic 14em / 1 var(--disp); color: var(--sun); }
#mn.ph .mn-room { gap: 10px; margin-top: 8px; } #mn.ph .mn-pl { min-height: 52px; padding: 0 10px; gap: 8px; } #mn.ph .mn-pl .nm { font-size: 18px; } #mn.ph .mn-pl .mn-craft { width: 64px; height: 33px; }
#mn.ph .mn-room .mn-col.wide .mn-list { padding-top: 0.3em; } #mn.ph .mn-count b { font-size: 96px; }
@media (orientation: portrait) { #mn.ph .mn-room { flex-direction: column; overflow-y: auto; pointer-events: auto; touch-action: pan-y; } #mn.ph .mn-players { flex: none; overflow: visible; } }

/* the online name boxes (online-app.js, dropin-app.js), in the menus' type; the small one waits while a menu is up */
html #ol-edge-name, html #ol-name form { font-family: "Barlow", system-ui, sans-serif; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(7, 22, 34, 0.92); border-radius: 12px; }
html #ol-edge-name input, html #ol-name input { font-family: "Barlow", system-ui, sans-serif; background: #05121c; border-radius: 8px; }
html #ol-edge-name button, html #ol-name button { font: 700 15px "Barlow Condensed", system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 99px; min-height: 44px; padding: 0 16px; }
html #ol-edge-name label, html #ol-name label { font: 700 14px "Barlow Condensed", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(226, 240, 248, 0.7); }
html.mn-on #ol-edge-name:not(.menu) { visibility: hidden; }
html #ol-edge-name.menu { top: 50%; transform: translate(-50%, -50%); padding: 18px; z-index: 9; box-shadow: 0 0 0 100vmax rgba(3, 12, 20, 0.6); }

/* the touch layer's own Back button, dressed to match while a menu is up */
html.mn-on #tc.menu { pointer-events: none; }     /* taps fall through the touch layer to the menu; its own buttons still take theirs */
html.mn-on #tc .padbtn, html.mn-on #tc .dpadbox, html.mn-on #tc .okbtn { display: none !important; }     /* every DOM menu is tappable: no on-screen d-pad */
html.mn-on #tc .tb.back { background: rgba(7, 22, 34, 0.74); border: 1px solid rgba(255, 255, 255, 0.16); }
@media (prefers-reduced-motion: reduce) { #mn *, .mn-s { transition: none !important; animation: none !important; } }
