/* aong.dev: the island portfolio. The 3D scene is js/isle/world.js; this is everything drawn over it.
   Fonts are self-hosted (SIL Open Font License 1.1, see fonts/LICENSE-manrope.txt, LICENSE-inconsolata.txt and LICENSE-pixelify-sans.txt). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(../fonts/inconsolata-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/pixelify-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/pixelify-sans-latin-600-normal.woff2) format("woff2"); }

/* Layout: the scene fills the window; one glass panel per stop sits to one side of it, the name top-left, a small
   glass pill of controls top-right. Colours come in two sets: light glass with dark ink, dark glass with pale ink. */
@property --glass-fill { syntax: "<number>"; inherits: true; initial-value: 0.6; }
:root {
  --ink: #0a2a3d;
  --ink-soft: rgba(10, 42, 61, 0.8);
  --ink-faint: rgba(10, 42, 61, 0.6);
  --tint: 255, 255, 255;         /* the colour inside the glass */
  --glass-fill: 0.6;
  --wash: rgba(10, 42, 61, 0.07);     /* chips, hovered rows */
  --wash-2: rgba(10, 42, 61, 0.13);
  --rule: rgba(10, 42, 61, 0.14);
  --solid: #0a2a3d;              /* the main button */
  --on-solid: #ffffff;
  --accent: #b4560a;
  --on: #0f9d8a;
  --shade: rgba(2, 24, 40, 0.3);
  --over: #f4fbff;               /* text set straight on the scene */
  --over-shadow: rgba(0, 35, 60, 0.55);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inconsolata", ui-monospace, "Cascadia Mono", Consolas, monospace;   /* titles */
  --pixel: "Pixelify Sans", "Inconsolata", ui-monospace, monospace;            /* titles of anything Balatro */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #f4fbff;
  --ink-soft: rgba(240, 250, 255, 0.8);
  --ink-faint: rgba(240, 250, 255, 0.58);
  --tint: 8, 30, 48;
  --glass-fill: 0.52;
  --wash: rgba(255, 255, 255, 0.1);
  --wash-2: rgba(255, 255, 255, 0.17);
  --rule: rgba(255, 255, 255, 0.14);
  --solid: #ffffff;
  --on-solid: #06283b;
  --accent: #ffd27a;
  --on: #35c4b0;
  --shade: rgba(2, 24, 40, 0.5);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 500 16px/1.5 var(--sans); transition: color 0.6s;
  /* what shows before the scene is ready, or when there is no WebGL */
  background: linear-gradient(#2f7fc4 0%, #8ecbe6 42%, #1fa3a8 43%, #0b4a6b 100%) fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
html { overflow-x: clip; }
/* the browser's own scrollbar, as a thin pill of glass floating over the scene */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: linear-gradient(90deg, rgba(4, 30, 48, 0.18), rgba(4, 30, 48, 0.32)); }
::-webkit-scrollbar-thumb { min-height: 48px; border: 4px solid transparent; border-radius: 999px; background: rgba(255, 255, 255, 0.62) padding-box; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(10, 42, 61, 0.18); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.85); }
::-webkit-scrollbar-thumb:active { background-color: #fff; }
::-webkit-scrollbar-corner { background: transparent; }
:root[data-theme="dark"] ::-webkit-scrollbar-track { background: linear-gradient(90deg, rgba(0, 10, 20, 0.35), rgba(0, 10, 20, 0.55)); }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background-color: rgba(220, 240, 255, 0.42); }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background-color: rgba(220, 240, 255, 0.7); }
/* Firefox has no pseudo-elements for it, only two colours */
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.65) rgba(4, 30, 48, 0.3); } }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 8px 14px; border-radius: 999px; background: #fff; color: #0b3550; text-decoration: none; }
.skip:focus { top: 12px; }

#world { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; }
/* a wash of water across the screen for the moment the camera passes through the surface */
#veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(rgba(190, 240, 240, 0.5), rgba(20, 150, 170, 0.6)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ------------------------------------------------------------------ liquid glass
   A clear, tinted pane: the scene behind is blurred and made richer, the rim catches light along the top-left and
   lets a little out along the bottom-right, and a soft sheen follows the pointer. The dark tint keeps text readable
   over bright sky and sand alike. */
.glass {
  position: relative; isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.1)),
    rgba(var(--tint), var(--glass-fill));
  -webkit-backdrop-filter: blur(26px) saturate(1.45) brightness(1.04);
  backdrop-filter: blur(26px) saturate(1.45) brightness(1.04);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.8), inset 1px 0 0.5px rgba(255, 255, 255, 0.4),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.24), inset -1px 0 0.5px rgba(255, 255, 255, 0.16),
    inset 0 0 26px rgba(255, 255, 255, 0.1), inset 0 -18px 30px -18px rgba(120, 230, 255, 0.18),
    0 18px 50px -12px var(--shade), 0 2px 6px rgba(2, 24, 40, 0.16);
  transition: background-color 0.6s, box-shadow 0.6s, --glass-fill 0.5s;
}
.glass::before { /* the bright rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass::after { /* the sheen under the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.2), transparent 70%);
}
.glass:hover::after { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { --glass-fill: 0.82; } }
/* Liquid glass (js/isle/glass.js, Chromium): the pane bends the scene at its rim, so it can be clearer, and it
   gets the bright edge and soft inner glow of a thick slab of glass: a hard highlight along the top-left, a
   fainter one bottom-right where the light leaves, and a dim band just inside the rim. */
.glass.is-liquid { --glass-fill: 0.4;
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, 0.26), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(255, 255, 255, 0.1), transparent 60%),
    rgba(var(--tint), var(--glass-fill));
  box-shadow:
    inset 1.5px 1.5px 0.5px -0.5px rgba(255, 255, 255, 0.95), inset -1px -1px 0.5px -0.5px rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 18px rgba(255, 255, 255, 0.12), inset 0 -10px 24px -14px rgba(160, 235, 255, 0.35),
    0 18px 50px -12px var(--shade), 0 2px 6px rgba(2, 24, 40, 0.16); }
:root[data-theme="dark"] .glass.is-liquid { --glass-fill: 0.42; }

/* ------------------------------------------------------------------ top: the name on the left, controls on the right */
.top { position: fixed; z-index: 30; top: calc(14px + env(safe-area-inset-top)); left: max(var(--pad), env(safe-area-inset-left)); right: max(var(--pad), env(safe-area-inset-right)); display: flex; align-items: center; justify-content: space-between; pointer-events: none; transition: opacity 0.8s var(--ease); }
.top > * { pointer-events: auto; }
.brand { font: 700 26px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--over); text-shadow: 0 1px 14px var(--over-shadow), 0 1px 2px var(--over-shadow); padding: 4px 2px 8px; transition: opacity 0.3s; }
.brand:hover { opacity: 0.8; }
.bar { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 5px; border-radius: 999px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ink-soft); transition: background 0.25s, color 0.25s, scale 0.2s var(--ease); }
.icon-btn:hover { background: var(--wash-2); color: var(--ink); }
.icon-btn:active { background: var(--wash-2); }
.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ settings */
.settings {
  position: fixed; z-index: 31; top: 68px; right: var(--pad); width: min(300px, calc(100% - 24px)); padding: 16px 18px 18px; border-radius: 22px; transform-origin: top right; transition: opacity 0.25s, scale 0.3s var(--ease), translate 0.3s var(--ease);
}
.settings[hidden] { display: block; visibility: hidden; opacity: 0; scale: 0.94; translate: 0 -8px; transition: opacity 0.2s, scale 0.2s, translate 0.2s, visibility 0s 0.2s; }
.settings-title { font: 700 18px/1 var(--display); margin-bottom: 12px; }
.set { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.set-col { flex-direction: column; align-items: stretch; gap: 9px; }
.set-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.set-note { font-size: 12.5px; color: var(--ink-faint); min-height: 1.2em; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex: none; width: 128px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { order: 2; margin-left: auto; width: 36px; height: 21px; border-radius: 999px; background: var(--wash-2); box-shadow: inset 0 1px 2px rgba(0, 20, 30, 0.25); position: relative; transition: background 0.25s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 20, 30, 0.4); transition: translate 0.3s var(--ease); }
.switch input:checked + .switch-ui { background: var(--on); }
.switch input:checked + .switch-ui::after { translate: 15px 0; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--ink); outline-offset: 2px; }
input[type="range"] { flex: 1; min-width: 0; height: 22px; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--wash-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--wash-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -5.5px; border-radius: 50%; background: var(--solid); box-shadow: 0 1px 4px rgba(0, 20, 30, 0.4); }
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--solid); box-shadow: 0 1px 4px rgba(0, 20, 30, 0.4); }
input[type="range"]:disabled { opacity: 0.4; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 3px; border-radius: 999px; background: var(--wash-2); box-shadow: inset 0 1px 2px rgba(0, 20, 30, 0.2); }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-5 { grid-template-columns: repeat(5, 1fr); }
.seg button { border: 0; background: none; padding: 6px 0; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background 0.25s, color 0.25s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--solid); color: var(--on-solid); box-shadow: 0 1px 5px rgba(0, 20, 30, 0.3); }

/* ------------------------------------------------------------------ the page: one stop per island */
.stop { height: 125vh; height: 125svh; }
.stop.last { height: 125vh; height: 125svh; }
.pinned { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 80px calc(var(--pad) + clamp(0px, 7vw - 30px, 130px)) 40px; }
.side-right .pinned { justify-content: flex-end; }
.js .pinned > * { opacity: 0; translate: 0 26px; filter: blur(6px); pointer-events: none; transition: opacity 0.5s, translate 0.7s var(--ease), filter 0.5s; }
.js .stop.is-on .pinned > * { opacity: 1; translate: 0 0; filter: none; pointer-events: auto; transition-delay: 0.12s; }

.hero .pinned { justify-content: center; align-items: flex-end; padding-bottom: 10vh; }
.hero-text { text-align: center; color: var(--over); text-shadow: 0 2px 30px rgba(0, 40, 70, 0.45), 0 1px 2px rgba(0, 40, 70, 0.3); }
.hero h1 { font: 700 clamp(76px, 13.5vw, 172px) / 0.84 var(--display); letter-spacing: -0.04em; }
.hero-line { margin-top: 18px; font-size: clamp(14px, 1.6vw, 18px); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.hero-line i { font: 700 1.15em/0 var(--display); letter-spacing: 0; padding: 0 0.1em; }
.cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0 !important; display: grid; justify-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; color: var(--over); text-shadow: 0 1px 8px rgba(0, 40, 70, 0.5); }
.cue span { width: 1px; height: 30px; background: linear-gradient(transparent, #fff); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { scale: 1 0; } 55% { scale: 1 1; opacity: 1; } 100% { scale: 1 1; opacity: 0; } }

.panel { width: min(480px, 100%); padding: 30px 30px 26px; border-radius: 32px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow b { color: var(--accent); margin-right: 8px; font-weight: 800; }
.panel h2 { font: 700 clamp(34px, 3.8vw, 46px) / 1.02 var(--display); letter-spacing: -0.03em; margin: 8px 0 12px; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.points { display: grid; gap: 7px; margin: 14px 0 20px; }
.points li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-soft); text-wrap: pretty; overflow-wrap: anywhere; }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead { font-size: 17px; font-weight: 600; text-wrap: pretty; }
.rows { display: grid; margin: 0 -12px; }
.rows li + li { border-top: 1px solid var(--rule); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 16px; background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.4s, box-shadow 0.4s; }
button.row { cursor: pointer; }
.row-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
.row-name { font-size: 16.5px; font-weight: 700; letter-spacing: -0.005em; }
.row-text { font-size: 13.5px; color: var(--ink-soft); text-wrap: pretty; }
.chip { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule); }
.row-go { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wash); transition: background 0.3s, color 0.3s; overflow: hidden; }
.row-go .i { width: 15px; height: 15px; }
.row:not(.row-soon):hover { background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule); }
.row:not(.row-soon):hover .row-go { background: var(--solid); color: var(--on-solid); }
.row:not(.row-soon):active { background: var(--wash-2); }
.row-soon { opacity: 0.86; }
.panel-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; font-weight: 600; }
.panel-foot a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--ink-soft); transition: color 0.25s; }
.panel-foot a:hover { color: var(--ink); }
.panel-foot .i { width: 14px; height: 14px; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 0.4s, box-shadow 0.4s, color 0.4s; }
.btn .i { width: 16px; height: 16px; }
.btn-main { background: var(--solid); color: var(--on-solid); box-shadow: 0 0 0 2px transparent, 0 6px 20px -6px rgba(0, 30, 50, 0.45); }
.btn-main:hover { background: color-mix(in srgb, var(--solid) 84%, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 75%, transparent), 0 6px 20px -6px rgba(0, 30, 50, 0.45); }
.btn-ghost { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.btn-ghost:hover { background: var(--wash-2); box-shadow: inset 0 0 0 1.5px var(--ink-faint); }

/* a category's panel and, in the same place, a closer look at one of its projects */
.deck { width: min(480px, 100%); }
.deck .panel { width: 100%; animation: swap 0.5s var(--ease) both; }
@keyframes swap { from { opacity: 0; translate: 0 14px; } }
.detail h3 { margin: 8px 0 12px; font: 700 clamp(32px, 3.4vw, 42px) / 1.04 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 12px -10px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.4s, box-shadow 0.4s, color 0.4s; }
.back:hover { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.back .i { width: 16px; height: 16px; }

.foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; font-size: 12.5px; color: var(--over); text-shadow: 0 1px 8px var(--over-shadow); translate: 0 0 !important; }
.foot-links { display: flex; justify-content: flex-end; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.to-top { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; color: var(--ink); text-shadow: none; text-decoration: none; font-size: 13.5px; font-weight: 700; }
.to-top .i { width: 16px; height: 16px; }
.to-top:hover { --glass-fill: 0.82; }

/* ------------------------------------------------------------------ labels floating over the islands, the dots and the rope */
.pins { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; pointer-events: auto; opacity: 0; will-change: transform, opacity; }
.pin b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--solid); color: var(--on-solid); font-size: 10.5px; font-weight: 800; }
.pin::after { display: none; }
.pin:hover { --glass-fill: 0.82; }
.dots { position: fixed; z-index: 20; right: 16px; top: 50%; translate: 0 -50%; display: grid; gap: 4px; }
.dots button { width: 22px; height: 16px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dots button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 6px rgba(0, 30, 50, 0.5); transition: height 0.4s var(--ease), background 0.3s; }
.dots button:hover::before { background: #fff; }
.dots button[aria-current]::before { height: 14px; background: #fff; }

/* the progress string, as on the old trail: a dashed rope from each block down to the next, filling in as you
   scroll (main.js). It sits under the blocks. */
.trail { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trail path { fill: none; stroke-linecap: round; }
.trail g { opacity: 0; transition: opacity 0.6s; }
.trail g.is-on { opacity: 1; }
.trail .rope-shade { stroke: rgba(4, 30, 48, 0.35); stroke-width: 6; stroke-dasharray: 10 8; transform: translate(0, 3px); }
.trail .rope { stroke: rgba(255, 255, 255, 0.55); stroke-width: 4; stroke-dasharray: 10 8; }
.trail .walked { stroke: #fff; stroke-width: 4; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)); }
.trail .tie { fill: #fff; stroke: rgba(4, 30, 48, 0.35); stroke-width: 2; }
:root[data-theme="dark"] .trail .walked { stroke: #ffe3a6; filter: drop-shadow(0 0 6px rgba(255, 210, 122, 0.5)); }
:root[data-theme="dark"] .trail .tie { fill: #ffe3a6; }

/* ------------------------------------------------------------------ featured carousel: the current project in the
   middle, the ones before and after smaller and fainter behind it */
.featured .pinned { align-items: flex-end; justify-content: center; padding-bottom: 6vh; overflow-x: clip; }
.carousel { width: min(1000px, 100%); display: grid; gap: 14px; justify-items: center; outline-offset: 8px; border-radius: 30px; }
.carousel h2 { font: 700 26px/1 var(--display); letter-spacing: -0.02em; color: var(--over); text-shadow: 0 1px 14px var(--over-shadow); }
.stage { position: relative; width: 100%; height: 270px; display: flex; align-items: center; justify-content: space-between; touch-action: pan-y; }
.track { position: absolute; inset: 0; }
.feature { position: absolute; left: 50%; top: 0; width: min(470px, 76%); height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 24px 26px 24px; border-radius: 30px;
  translate: calc(-50% + var(--d, 0) * 62%) 0; scale: calc(1 - var(--a, 0) * 0.17); opacity: 0.5; z-index: 1; cursor: pointer; --glass-fill: 0.4;
  transition: translate 0.8s var(--ease), scale 0.8s var(--ease), opacity 0.6s, background-color 0.6s, box-shadow 0.6s, --glass-fill 0.6s; }
.feature > * { pointer-events: none; }
.feature.is-current { opacity: 1; z-index: 3; cursor: default; --glass-fill: 0.74; }
.feature.is-current > * { pointer-events: auto; }
.feature.is-far { opacity: 0; pointer-events: none; z-index: 0; }
.feature::after { display: none; }
.feature h3 { margin: 0; font: 700 34px/1.04 var(--display); letter-spacing: -0.03em; }
/* anything Balatro wears the pixel face, as the game does */
/* every block's title wears the pixel face (Aong, 2026-11-16), so the blocks read as one set */
.panel h2, .detail h3, .feature h3, .carousel h2, .settings-title { font-family: var(--pixel); font-weight: 600; letter-spacing: 0; }
.feature .lead { font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.feature .actions { margin-top: auto; }
.arrow { position: relative; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; }
.arrow::after { display: none; }
.arrow:hover { --glass-fill: 0.88; }
.arrow .i { width: 20px; height: 20px; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 6px rgba(0, 30, 50, 0.4); transition: width 0.4s var(--ease), background 0.3s; }
.carousel-dots span.is-current { width: 22px; background: #fff; }

/* ------------------------------------------------------------------ loading: a small card over a blurred page, never a blank screen */
#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(160, 205, 225, 0.12); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); transition: opacity 0.6s ease, visibility 0s 0.6s, backdrop-filter 0.6s, -webkit-backdrop-filter 0.6s; }
#loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
html:not(.js) #loader { display: none; }
.loader-card { display: grid; gap: 12px; width: min(270px, 80vw); padding: 18px 20px 20px; border-radius: 22px; transition: scale 0.5s var(--ease), opacity 0.4s; }
.is-done .loader-card { scale: 0.94; opacity: 0; }
.loader-text { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.loader-bar { height: 4px; border-radius: 4px; background: var(--wash-2); overflow: hidden; }
#loader-fill { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--solid); transform-origin: left; scale: 0 1; transition: scale 0.35s ease-out; }
.is-busy #loader-fill { scale: 1 1; animation: busy 1.1s ease-in-out infinite; }
.is-busy #loader-pct { display: none; }
@keyframes busy { 0% { translate: -100% 0; } 100% { translate: 100% 0; } }
/* until the first picture is ready, the name, labels and panels wait */
.js body:not(.is-in) .top { opacity: 0; }
.js body:not(.is-in) .dots, .js body:not(.is-in) .pins, .js body:not(.is-in) .trail { visibility: hidden; }
.js body:not(.is-in) .pinned > * { opacity: 0 !important; }
.no-3d #world, .no-3d .pins { display: none; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 760px) {
  .top { top: calc(10px + env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); }
  .brand { font-size: 28px; }
  .settings { top: calc(62px + env(safe-area-inset-top)); right: 12px; max-height: calc(100svh - 74px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; }
  /* the panel sits low, the island shows above it (world.js lifts the picture on narrow screens) */
  .pinned { align-items: flex-end; padding: calc(64px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom)); }
  .side-right .pinned, .side-left .pinned { justify-content: center; }
  .panel { width: 100%; max-width: 540px; padding: 18px 18px 14px; border-radius: 26px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .panel::-webkit-scrollbar { display: none; }
  .eyebrow { font-size: 11px; }
  .panel h2 { margin: 4px 0 8px; font-size: 32px; }
  .points { margin: 8px 0 14px; gap: 4px; }
  .points li { font-size: 14px; }
  .lead { font-size: 15px; }
  .meta { margin-bottom: 8px; }
  .btn { height: 44px; padding: 0 20px; }
  .featured .pinned { padding-bottom: calc(4svh + env(safe-area-inset-bottom)); }
  .carousel h2 { font-size: 22px; }
  .feature h3 { font-size: 28px; }
  .feature { width: 80%; padding: 18px 18px 18px; translate: calc(-50% + var(--d, 0) * 100%) 0; }
  .feature .lead { font-size: 14.5px; }
  .stage { height: 236px; }
  .arrow { width: 40px; height: 40px; margin: 0 -4px; }
  .deck { max-width: 520px; max-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
  .deck .panel { min-height: 0; flex: 0 1 auto; }
  .detail h3 { font-size: 32px; margin: 4px 0 8px; }
  .rows { margin: 0 -10px; }
  .row { padding: 9px 10px; gap: 10px; }
  .row-name { font-size: 15.5px; }
  .row-text { font-size: 13px; line-height: 1.4; }
  .panel-foot { margin-top: 8px; padding-top: 8px; }
  .panel-foot a { min-height: 32px; }
  .last .pinned { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .foot { left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 14px; }
  .hero .pinned { padding-bottom: 20vh; }
  .hero h1 { font-size: clamp(72px, 24vw, 120px); }
  .hero-line { letter-spacing: 0.22em; }
  .cue { bottom: calc(22px + env(safe-area-inset-bottom)); }
  /* the panels fill the width here, so the stop dots and the rope would sit on them; a swipe or scroll moves between stops */
  .dots, .trail { display: none; }
  .foot { grid-template-columns: 1fr auto; }
  .foot .to-top { grid-column: 2; grid-row: 1; height: 36px; }
  .foot > span:first-child { grid-row: 1; }
  .foot-links { grid-column: 1 / -1; justify-content: flex-start; }
  .pin { height: 30px; font-size: 12px; padding-right: 11px; }
  .pin b { width: 20px; height: 20px; }
}
/* phones held sideways: little height, so the panel goes to one side and gets narrower */
@media (max-height: 520px) and (orientation: landscape) {
  .top { top: calc(8px + env(safe-area-inset-top)); }
  .brand { font-size: 24px; }
  .bar { height: 40px; }
  .pinned { align-items: center; padding: 56px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
  .side-right .pinned { justify-content: flex-end; }
  .side-left .pinned { justify-content: flex-start; }
  .panel, .deck { width: min(400px, 52%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 16px 18px 12px; }
  .deck { padding: 0; overflow: visible; display: flex; flex-direction: column; justify-content: center; }
  .deck .panel { width: 100%; }
  .panel h2, .detail h3 { font-size: 28px; margin: 4px 0 6px; }
  .points { margin: 6px 0 10px; gap: 3px; }
  .points li, .row-text { font-size: 13px; }
  .row { padding: 7px 10px; }
  .btn { height: 40px; }
  .hero .pinned { align-items: center; justify-content: center; padding-bottom: 0; }
  .hero h1 { font-size: clamp(64px, 18vh, 110px); }
  .featured .pinned { align-items: center; padding-bottom: 8px; }
  .carousel { gap: 8px; }
  .carousel h2 { display: none; }
  .stage { height: min(220px, calc(100svh - 90px)); }
  .feature { width: min(420px, 60%); padding: 14px 18px; }
  .feature h3 { font-size: 24px; }
  .settings { top: 56px; max-height: calc(100svh - 64px); overflow-y: auto; }
  .dots { display: none; }
}
/* touch screens: bigger targets, and the page settles on a stop when a swipe ends near one */
@media (pointer: coarse) {
  html { scroll-snap-type: y proximity; }
  .stop { scroll-snap-align: start; }
  .bar { height: 48px; padding: 0 4px; }
  .icon-btn { width: 40px; height: 40px; }
  .seg button { padding: 9px 0; font-size: 13px; }
  .set { padding: 11px 0; }
  .back { padding: 9px 14px 9px 8px; }
  input[type="range"] { height: 32px; }
  input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; }
  input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; }
  .glass::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue span { animation: none; }
  .js .pinned > * { translate: 0 0; filter: none; transition: opacity 0.3s; }
  .deck .panel { animation: none; }
  .feature { transition: opacity 0.3s; }
}
