  :root {
    --abyss: #010509; --line: #071520; --paper: #f4edda; --foam: #eafcff; --ink: #e7f4fa; --muted: #8ea6b3;
    --glow: #7fe3ff; --glow-rgb: 127, 227, 255; --lure: #ffe7a0;
    --twitch: #9146ff; --tt-cyan: #25f4ee; --tt-pink: #fe2c55; --discord: #5865f2; --pearl: #ff9cc7;
    --display: Gluten, "Nunito", system-ui, sans-serif; --body: Nunito, system-ui, sans-serif; --hand: "Patrick Hand", "Nunito", cursive;
    --cx: 50vw; --cy: 40vh; --cr: 0px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { color-scheme: dark; background: var(--abyss); }
  body { min-height: 100svh; background: var(--abyss); color: var(--ink); font-family: var(--body); overflow-x: hidden; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
  .ico { width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; flex: none; display: inline-block; }
  .i-twitch { --m: url(icons/twitch.svg); }
  .i-tiktok { --m: url(icons/tiktok.svg); }
  .i-discord { --m: url(icons/discord.svg); }
  .i-heart { --m: url(icons/heart.svg); }
  .i-arrow { --m: url(icons/arrow-up-right.svg); }
  .i-sound { --m: url(icons/audio-lines.svg); }
  .i-gear { --m: url(icons/settings.svg); }
  .i-x { --m: url(icons/x.svg); }

  /* background world: decorative, mostly hidden in the dark */
  .world { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: radial-gradient(110% 70% at 50% -5%, #0a2c3e, #04141f 45%, var(--abyss) 85%); }
  .world > svg, .snow { position: absolute; }
  .snow { width: 2px; height: 2px; border-radius: 50%; background: rgba(200, 240, 255, .7); animation: fall linear infinite; }
  @keyframes fall { from { transform: translateY(-10vh); } to { transform: translateY(110vh); } }
  .dark { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: rgba(1, 5, 9, .95); -webkit-mask: radial-gradient(circle var(--cr) at var(--cx) var(--cy), transparent 0 28%, #000 100%); mask: radial-gradient(circle var(--cr) at var(--cx) var(--cy), transparent 0 28%, #000 100%); }
  .tint { position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle var(--cr) at var(--cx) var(--cy), rgba(var(--glow-rgb), .14), transparent 65%); }
  .lure { position: fixed; z-index: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--lure); box-shadow: 0 0 10px 3px rgba(255, 231, 160, .7); animation: lure 3.2s ease-in-out infinite; pointer-events: none; }
  @keyframes lure { 0%, 100% { opacity: .9; } 45% { opacity: .15; } 55% { opacity: .95; } }
  .ping { position: fixed; z-index: 1; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(var(--glow-rgb), .8); pointer-events: none; animation: ping 1.1s ease-out forwards; }
  @keyframes ping { to { transform: scale(14); opacity: 0; } }

  /* the scene */
  .stage { position: relative; z-index: 2; width: min(100vw, 160svh); aspect-ratio: 16 / 10; container-type: inline-size; }
  .stage > * { position: absolute; }
  .boil { filter: url(#boil); }
  .brand { left: 5%; top: 5%; }
  .logo { font: 900 clamp(56px, 7.6cqw, 132px)/.9 var(--display); color: var(--foam); letter-spacing: .01em; -webkit-text-stroke: clamp(6px, .75cqw, 12px) var(--line); paint-order: stroke fill; text-shadow: 0 0 30px rgba(var(--glow-rgb), .35); display: flex; }
  .logo span { display: inline-block; animation: hop 3.2s ease-in-out infinite; }
  .logo span:nth-child(odd) { --tilt: -5deg; } .logo span:nth-child(even) { --tilt: 4deg; }
  .logo span:nth-child(2) { animation-delay: .15s; } .logo span:nth-child(3) { animation-delay: .3s; } .logo span:nth-child(4) { animation-delay: .45s; } .logo span:nth-child(5) { animation-delay: .6s; } .logo span:nth-child(6) { animation-delay: .75s; }
  @keyframes hop { 0%, 100% { transform: rotate(var(--tilt)) translateY(0); } 50% { transform: rotate(calc(var(--tilt) * -1)) translateY(-6%); } }
  .logo .three { color: var(--glow); text-shadow: 0 0 24px rgba(var(--glow-rgb), .9); }
  .tagline { margin-top: .6em; font: clamp(17px, 1.5cqw, 26px)/1.2 var(--hand); color: #bfe6f2; transform: rotate(-2deg); transform-origin: left; }

  .note { left: 5%; top: 33%; width: 23%; padding: 1.6cqw 1.5cqw 1.3cqw; border-radius: 6px 18px 10px 16px; background: var(--paper); color: #1c3346; font: clamp(16px, 1.34cqw, 22px)/1.35 var(--hand); transform: rotate(-2.5deg); box-shadow: 0 0 0 3px var(--line), 0 8px 0 var(--line), 0 0 40px rgba(244, 237, 218, .12); }
  .note b { font-weight: 400; color: #0f6f93; }
  .note .star { position: absolute; top: -1.5cqw; right: -1.2cqw; width: 3.6cqw; min-width: 36px; transform: rotate(18deg); }

  .controls { position: fixed; z-index: 10; top: 16px; right: 16px; display: flex; gap: 10px; }
  .iconbtn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--line); background: var(--foam); border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s; }
  .iconbtn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line); }
  .iconbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
  .iconbtn[aria-pressed="true"] { background: var(--glow); }
  .iconbtn:focus-visible, .obj:focus-visible { outline: 3px solid var(--glow); outline-offset: 4px; border-radius: 14px; }

  /* ten */
  .ten { left: 0; top: 0; width: 9cqw; min-width: 96px; z-index: 2; pointer-events: none; will-change: transform; }
  .ten .body { width: 100%; display: block; animation: bob 3.6s ease-in-out infinite; filter: url(#boil) drop-shadow(0 0 22px rgba(var(--glow-rgb), .55)); transition: transform .35s ease; }
  .ten.right .body { transform: scaleX(-1); }
  @keyframes bob { 50% { translate: 0 -8%; } }
  .ten .belly { animation: belly 3.6s ease-in-out infinite; }
  @keyframes belly { 50% { opacity: .7; } }
  .ten .lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: blink 5s infinite; }
  @keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
  .art { left: 36%; top: 3%; width: 28%; z-index: 1; }
  .art img { position: relative; display: block; width: 100%; -webkit-mask: linear-gradient(#000 68%, transparent 97%); mask: linear-gradient(#000 68%, transparent 97%); filter: drop-shadow(0 0 26px rgba(var(--glow-rgb), .22)); animation: breathe 7s ease-in-out infinite; transition: filter .4s ease; }
  .art:hover img { filter: drop-shadow(0 0 36px rgba(var(--glow-rgb), .45)); }
  @keyframes breathe { 50% { translate: 0 -1.2%; } }
  .art-glow { position: absolute; inset: 8% 14% 26%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-rgb), .30), rgba(var(--glow-rgb), .06) 55%, transparent 72%); animation: pulse 6s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .6; transform: scale(1.06); } }
  .say { position: absolute; left: 76%; top: 36%; width: max-content; max-width: 15cqw; min-width: 150px; padding: .6em .85em .55em; border-radius: 22px; background: var(--foam); color: #173247; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); font: clamp(15px, 1.2cqw, 20px)/1.2 var(--hand); }
  .say small { display: flex; align-items: center; gap: 6px; font: 800 clamp(10px, .75cqw, 12px)/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #1b8db3; margin-bottom: 3px; }
  .say::before, .say::after { content: ""; position: absolute; border-radius: 50%; background: var(--foam); border: 3px solid var(--line); }
  .say::before { width: 16px; height: 16px; left: -22px; top: 4px; }
  .say::after { width: 9px; height: 9px; left: -36px; top: -8px; }
  .live { width: 8px; height: 8px; border-radius: 50%; background: #1fcf85; animation: dim 2s ease-in-out infinite; }
  @keyframes dim { 50% { opacity: .3; } }
  
  /* link objects */
  .obj { display: block; color: inherit; text-decoration: none; cursor: pointer; z-index: 4; }
  .obj .ill { display: block; width: 100%; overflow: visible; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  .obj .glowy { transition: filter .35s ease, opacity .35s ease; }
  .obj:hover .ill, .obj:focus-visible .ill, .obj.lit .ill { transform: translateY(-4%) scale(1.05) rotate(-1.5deg); }
  .tag { position: absolute; display: flex; align-items: center; gap: .6em; padding: .55em .8em .5em .55em; border-radius: 16px; background: var(--foam); color: #13293a; border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line); white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease; }
  .tag::before { content: ""; position: absolute; left: var(--sx, 30%); top: var(--sy, -22px); width: 3px; height: 22px; background: repeating-linear-gradient(var(--line) 0 5px, transparent 5px 9px); }
  .obj:hover .tag, .obj:focus-visible .tag, .obj.lit .tag { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 0 var(--line), 0 0 30px color-mix(in srgb, var(--c) 45%, transparent); }
  .obj:active .tag { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
  .tag .badge { width: 2.3em; height: 2.3em; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); border: 3px solid var(--line); flex: none; }
  .tag b { display: block; font: 800 clamp(18px, 1.55cqw, 26px)/1 var(--display); letter-spacing: .01em; }
  .tag em { display: block; font: normal clamp(15px, 1.2cqw, 20px)/1.1 var(--hand); color: #45657a; margin-top: 3px; }
  .tag .ico.i-arrow { width: 1.1em; height: 1.1em; color: #45657a; transition: transform .2s; }
  .obj:hover .tag .i-arrow { transform: translate(2px, -2px); color: #13293a; }

  .tw { --c: var(--twitch); left: 7%; top: 60%; width: 17%; }
  .tw .tag { left: 88%; top: 30%; }
  .tw .tag::before { width: 22px; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px); left: -25px; top: 50%; }
  .tw .screen { filter: drop-shadow(0 0 14px rgba(145, 70, 255, .9)); }
  .tw .rec { animation: dim 1.4s steps(1) infinite; }
  .tt { --c: #fe2c55; left: 77%; top: 7%; width: 10%; }
  .tt .ill { animation: jelly 4.5s ease-in-out infinite; }
  @keyframes jelly { 50% { translate: 0 -7%; } }
  .tt .tent { transform-origin: top; animation: sway 3s ease-in-out infinite alternate; }
  @keyframes sway { from { transform: skewX(-6deg); } to { transform: skewX(6deg); } }
  .tt .tag { right: 108%; top: 26%; }
  .tt .tag::before { width: 22px; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px); left: calc(100% + 3px); top: 50%; }
  .tt .glowy { filter: drop-shadow(0 0 16px rgba(37, 244, 238, .55)); }
  .dc { --c: var(--discord); left: 70%; top: 42%; width: 17%; }
  .dc .school { transform-origin: 110px 85px; animation: orbit 16s linear infinite; }
  @keyframes orbit { to { transform: rotate(360deg); } }
  .dc .fish { animation: wig .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: right; }
  @keyframes wig { to { transform: rotate(8deg); } }
  .dc .tag { left: 18%; top: 96%; --sx: 45%; }
  .sp { --c: #ff5fa2; left: 40%; top: 66%; width: 14%; }
  .sp .pearl { filter: drop-shadow(0 0 14px rgba(255, 156, 199, .95)); animation: pearl 2.6s ease-in-out infinite; }
  @keyframes pearl { 50% { filter: drop-shadow(0 0 4px rgba(255, 156, 199, .5)); } }
  .sp .heart { animation: float 3s ease-in infinite; }
  @keyframes float { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
  .sp .tag { left: 96%; top: 42%; }
  .sp .tag::before { width: 22px; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px); left: -25px; top: 50%; }

  .foot { left: 0; right: 0; bottom: 2.2%; text-align: center; font: clamp(14px, 1.05cqw, 18px) var(--hand); color: var(--muted); }

  /* intro */
  .intro .stage > *:not(.ten) { opacity: 0; translate: 0 10px; }
  .stage > * { transition: opacity .8s ease, translate .8s ease; }
  .intro .ten { opacity: 0; }
  .flicker .ten { animation: flicker .9s steps(1) forwards; }
  @keyframes flicker { 0% { opacity: 0; } 15% { opacity: .9; } 25% { opacity: .1; } 40% { opacity: 1; } 50% { opacity: .3; } 65%, 100% { opacity: 1; } }

  /* phones: the scene becomes a dive you scroll through */
  @media (max-width: 900px), (max-height: 560px) {
    body { display: block; }
    .stage { width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: auto; container-type: normal; display: flex; flex-direction: column; padding: 18px 16px 28px; gap: 10px; }
    .stage > * { position: relative; left: auto; top: auto; right: auto; bottom: auto; }
    .controls { position: absolute; }
    .brand { padding-right: 110px; }
    .logo { font-size: clamp(40px, 20vw - 22px, 56px); }
    .art { order: 1; width: 78%; max-width: 300px; align-self: center; margin-top: 4px; }
    .ten { position: absolute; top: 112px; right: 6px; width: 92px; min-width: 0; z-index: 2; transform: none !important; }
    .say { position: relative; left: auto; top: auto; margin: -38px auto 8px; width: fit-content; max-width: 290px; min-width: 0; text-align: center; }
    .say small { justify-content: center; }
    .say::before { left: 42%; top: -20px; bottom: auto; }
    .say::after { left: 50%; top: -34px; bottom: auto; }
    .obj { order: 2; width: 100%; display: flex; align-items: center; gap: 14px; min-height: 130px; }
    .obj .ill { width: 40%; flex: none; }
    .obj:nth-of-type(even) { flex-direction: row-reverse; }
    .tag { position: relative; left: auto !important; right: auto !important; top: auto !important; flex: 1; min-width: 0; white-space: normal; }
    .tag::before { display: none; }
    .tt .ill { width: 28%; margin: 0 6%; }
    .note { order: 3; width: auto; margin: 22px 6px 8px; padding: 18px 18px 16px; }
    .note .star { width: 40px; top: -18px; right: -10px; }
    .foot { order: 4; margin-top: 16px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .boil, .ten .body { filter: none; } }

  .brand, .note, .art { z-index: 3; }
  .note p { margin: 0; }
  .art img { height: auto; }

/* owner settings: a big paper note */
.settings { margin: auto; width: min(560px, calc(100% - 24px)); max-height: 90svh; padding: 0; border: 3px solid var(--line); border-radius: 20px; background: var(--paper); color: #1c3346; box-shadow: 0 8px 0 var(--line), 0 0 60px rgba(var(--glow-rgb), .15); overflow: auto; }
.settings::backdrop { background: rgba(1, 5, 9, .72); backdrop-filter: blur(3px); }
.settings form { display: grid; gap: 14px; padding: 20px 22px 22px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; }
.settings-head h2 { font: 800 30px/1 var(--display); color: #13293a; }
.settings-x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--line); background: var(--foam); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--line); cursor: pointer; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font: 20px/1 var(--hand); color: #13293a; }
.field small { font-size: 15px; color: #5b7788; margin-left: 6px; }
.field input, .field textarea { width: 100%; font: 600 16px/1.4 var(--body); color: #13293a; background: #fffaf0; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field textarea:focus-visible, .settings button:focus-visible { outline: 3px solid #1fa9d6; outline-offset: 2px; }
.field-links { border: 0; display: grid; gap: 10px; }
.field-links legend { font: 800 20px/1 var(--display); color: #13293a; margin-bottom: 8px; }
.linkrow { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.settings-msg { font: 18px/1.3 var(--hand); color: #45657a; flex: 1; min-width: 180px; }
.settings-msg[data-tone="error"] { color: #b3261e; }
.settings-msg[data-tone="ok"] { color: #13795b; }
.publish { font: 800 22px/1 var(--display); color: var(--line); background: var(--glow); border: 3px solid var(--line); border-radius: 14px; padding: 12px 22px; box-shadow: 0 5px 0 var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.publish:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--line); }
.publish:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.publish[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 520px) { .linkrow { grid-template-columns: 1fr; } }
