/* SnackAttack — the page is one long dive from the surface to the sea floor */

:root {
  --foam: #F2FCFF;
  --sky-top: #62CBF4;
  --sky-low: #D3F4FF;
  --lagoon: #17B6DC;
  --reef: #0A6FBC;
  --deep: #0A3482;
  --trench: #08205A;
  --abyss: #040D2A;
  --ink: #06224A;
  --coral: #FF5D73;
  --sun: #FFD23F;
  --glow: #7CFFD9;
  --pink: #FF6F9C;
  --violet: #B58CFF;
  --amber: #FFB454;
  --brass: #C9963B;

  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', 'Arial Black', system-ui, sans-serif;
  --body: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --pixel: 'Silkscreen', ui-monospace, monospace;

  /* The hero logo is a scene: its waterline is where the sky ends and the ocean begins */
  --logo-h: min(clamp(420px, 70svh, 780px), 110vw);
  --logo-w: calc(var(--logo-h) * 640 / 730);
  --logo-top: 64px;
  --water-at: 0.674; /* waterline as a fraction of the logo's height (492 / 730) */
  --waterline: calc(var(--logo-top) + var(--logo-h) * var(--water-at));

  --drift: cubic-bezier(.45, .05, .55, .95);
  --spring: cubic-bezier(.2, 1.5, .4, 1);
  --depth: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--sky-top); }

body {
  margin: 0;
  font: 400 1.125rem/1.55 var(--body);
  color: var(--foam);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
svg { display: block; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { position: relative; z-index: 1; width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ---------- Nav: doubles as the rail the claw hangs from ---------- */

.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: rgba(6, 34, 74, .78);
  border: 2px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; border-radius: 999px; }
.brand-mark { height: 60px; width: auto; aspect-ratio: 96 / 115; margin-left: 8px; color: #fff; overflow: visible; transition: transform .3s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-word { font: 400 1.5rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.brand-word b { font-weight: 400; }
.brand-word b:first-child { color: var(--sun); }
.nav nav { display: flex; gap: 2px; }
.nav nav a {
  padding: .5em .95em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; color: #fff;
  transition: background-color .2s;
}
.nav nav a:hover { background: rgba(255, 255, 255, .16); }

/* ---------- Sky ---------- */

.sky {
  position: relative; z-index: 1;
  height: var(--waterline);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-low) 88%);
}
.sky-decor { position: absolute; inset: 0; overflow: hidden; }
.sun {
  position: absolute; left: 8%; top: 16%;
  width: clamp(90px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #FFF6C9 0 38%, #FFE27A 58%, rgba(255, 226, 122, 0) 70%);
  box-shadow: 0 0 90px 40px rgba(255, 240, 170, .55);
  animation: sun-pulse 7s var(--drift) infinite alternate;
}
.cloud {
  position: absolute; width: 190px; height: 54px; border-radius: 60px; background: #fff; opacity: .92;
  animation: cloud-drift 70s linear infinite alternate;
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 78px; height: 78px; left: 28px; top: -36px; }
.cloud::after { width: 58px; height: 58px; left: 92px; top: -24px; }
.c1 { top: 30%; left: 72%; }
.c2 { top: 52%; left: 12%; scale: .7; animation-duration: 95s; animation-direction: alternate-reverse; }
.c3 { top: 18%; left: 44%; scale: .5; opacity: .75; animation-duration: 120s; }

.backwave { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; overflow: hidden; }
.backwave svg { width: 200%; min-width: 2400px; height: 100%; fill: #0E9CCB; animation: wave-slide 16s linear infinite reverse; }

/* ---------- The logo scene ---------- */

.logo-layer {
  position: absolute; left: 50%;
  width: var(--logo-w); height: var(--logo-h);
  transform: translateX(-50%);
  overflow: visible; pointer-events: none;
}
.logo-back { top: var(--logo-top); z-index: 2; }
.logo-front { top: calc(var(--logo-h) * var(--water-at) * -1); z-index: 3; }

.claw-enter { animation: claw-drop 1.25s cubic-bezier(.3, 1.25, .5, 1) .2s both; }
.claw-idle { transform-origin: 363px -700px; animation: claw-sway 6s var(--drift) 2s infinite; }
.shark-enter { animation: shark-breach .9s var(--spring) 1.05s both; }
.shark-idle { transform-origin: 279px 492px; animation: shark-lunge 6s var(--drift) 2s infinite; }
.splash-enter { transform-origin: 279px 512px; animation: splash-up .7s var(--spring) 1.12s both; }
.splash-idle { transform-origin: 279px 510px; animation: splash-breathe 3s var(--drift) infinite alternate; }
.wm-enter { transform-origin: 320px 632px; animation: wm-pop .75s var(--spring) 1.4s both; }
.wm-idle { transform-origin: 320px 632px; animation: wm-float 5.5s var(--drift) infinite alternate; }

@keyframes claw-drop { from { transform: translateY(-520px); } to { transform: none; } }
@keyframes claw-sway {
  0%, 100% { transform: rotate(0) translateY(0); }
  18% { transform: rotate(1.3deg) translateY(0); }
  52% { transform: rotate(-1.3deg) translateY(0); }
  68% { transform: rotate(.4deg) translateY(0); }
  75% { transform: rotate(.2deg) translateY(-20px); }
  86% { transform: rotate(0) translateY(3px); }
}
@keyframes shark-breach { from { transform: translate(-64px, 362px); } to { transform: none; } }
@keyframes shark-lunge {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(-2px, 9px) rotate(-1.2deg); }
  62% { transform: translate(1px, 17px) rotate(.8deg); }
  70% { transform: translate(2px, 20px) rotate(.6deg); }
  77% { transform: translate(5px, -24px) rotate(0); }
  86% { transform: translate(0, 5px) rotate(0); }
}
@keyframes splash-up { from { transform: scale(.2, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-breathe { from { transform: scale(1, 1); } to { transform: scale(1.03, .9); } }
@keyframes wm-pop { from { transform: scale(.5) translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wm-float { from { transform: translateY(-4px) rotate(-.5deg); } to { transform: translateY(5px) rotate(.6deg); } }
@keyframes sun-pulse { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes cloud-drift { from { transform: translateX(-6vw); } to { transform: translateX(10vw); } }
@keyframes wave-slide { to { transform: translateX(-50%); } }

/* ---------- Ocean ---------- */

.ocean {
  position: relative; z-index: 2;
  overflow-x: clip;
  background:
    linear-gradient(180deg, #17B6DC 0, #0E93CF 200px, #0A74C0 560px, rgba(10, 111, 188, 0) 1500px),
    linear-gradient(180deg, #0A6FBC 0%, #0A55A8 24%, #0A3482 48%, #08205A 72%, #040D2A 100%);
}

.surface { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(100% - 1px); height: 46px; overflow: hidden; pointer-events: none; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; min-width: 2400px; height: 100%; }
.wave-a { fill: #17B6DC; animation: wave-slide 10s linear infinite; }
.wave-a .crest { fill: none; stroke: #fff; stroke-width: 4; vector-effect: non-scaling-stroke; opacity: .9; }
.wave-b { fill: #7FE3F5; opacity: .75; bottom: 9px; animation: wave-slide 15s linear infinite reverse; }

/* Light and bubbles stay pinned to the viewport while you're underwater */
.fx { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; pointer-events: none; }
.fx-back { z-index: 0; }
.fx-front { z-index: 6; }
#bubbles { width: 100%; height: 100%; display: block; }

.rays {
  position: absolute; inset: -6% -30% 0;
  opacity: calc(.95 - var(--depth) * 1.5);
  background:
    repeating-linear-gradient(102deg, rgba(255,255,255,0) 0 6%, rgba(255,255,255,.17) 8.5% 10.5%, rgba(255,255,255,0) 14% 23%),
    repeating-linear-gradient(97deg, rgba(255,255,255,0) 0 10%, rgba(255,255,255,.1) 13% 17%, rgba(255,255,255,0) 21% 31%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.45) 50%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.45) 50%, transparent 92%);
  transform-origin: 50% 0;
  animation: rays-sway 13s var(--drift) infinite alternate;
}
@keyframes rays-sway { from { transform: translateX(-5%) skewX(-5deg); } to { transform: translateX(5%) skewX(6deg); } }

/* The pattern is drawn once on an oversized layer and only ever translated, so it never repaints */
.caustics {
  position: absolute; inset: 0; overflow: hidden;
  opacity: calc(.42 - var(--depth) * .5);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.caustics::before {
  content: ''; position: absolute; inset: -600px 0 0 -600px;
  will-change: transform;
  animation: caustic-a 40s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.01 0.015' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -7 0 0 0 1'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 600px 600px;
}
.caustics-b { opacity: calc(.3 - var(--depth) * .4); }
.caustics-b::before { inset: -840px -840px 0 0; background-size: 840px 840px; animation: caustic-b 57s linear infinite; }
@keyframes caustic-a { to { transform: translate3d(600px, 600px, 0); } }
@keyframes caustic-b { to { transform: translate3d(-840px, 840px, 0); } }

.ocean > section { position: relative; z-index: 2; padding-block: clamp(72px, 10vh, 128px); }

h2 {
  font: 400 clamp(2.75rem, 7vw, 5rem)/.95 var(--display);
  letter-spacing: .005em;
  margin-bottom: .32em;
  text-shadow: 0 5px 0 rgba(4, 22, 56, .45);
  text-wrap: balance;
}
.lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 500; max-width: 46ch; }

/* Content surfaces out of the murk once, when it scrolls into view */
.js .reveal { opacity: 0; filter: blur(14px); transform: scale(.985); transition: opacity 1s ease, filter 1.1s ease, transform 1.2s var(--drift); }
.js .reveal.in { opacity: 1; filter: none; transform: none; }

/* ---------- Buttons: chunky like arcade buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .82em 1.5em;
  font: 600 1.1rem/1 var(--body); text-decoration: none;
  color: var(--ink); background: var(--sun);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn-foam { background: var(--foam); }

/* ---------- Intro (just under the surface) ---------- */

.ocean > .intro { padding-top: calc(var(--logo-h) * (1 - var(--water-at)) + 34px); padding-bottom: clamp(70px, 11vh, 130px); text-align: center; }
.intro-copy { animation: copy-in .9s ease 1.75s both; }
@keyframes copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tagline {
  font: 400 clamp(1.7rem, 3.8vw, 2.7rem)/1.08 var(--display);
  max-width: 19ch; margin: 0 auto .45em;
  text-shadow: 0 4px 0 rgba(4, 22, 56, .4);
  text-wrap: balance;
}
.sub { max-width: 42ch; margin: 0 auto 1.7em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Sea life ---------- */

.school { position: absolute; z-index: 0; left: 0; width: 220px; height: 110px; pointer-events: none; animation: swim-right 36s linear infinite; }
.school.left { animation-name: swim-left; }
.fish { position: absolute; width: 46px; height: 28px; overflow: visible; animation: wiggle .8s ease-in-out infinite alternate; }
.school.left .fish { scale: -1 1; }
.fish:nth-child(1) { left: 60%; top: 40%; }
.fish:nth-child(2) { left: 30%; top: 12%; width: 36px; animation-delay: -.3s; }
.fish:nth-child(3) { left: 24%; top: 62%; width: 40px; animation-delay: -.5s; }
.fish:nth-child(4) { left: 0; top: 34%; width: 32px; animation-delay: -.2s; }
.fish:nth-child(5) { left: 78%; top: 76%; width: 30px; animation-delay: -.6s; }
.fish:nth-child(6) { left: 82%; top: 4%; width: 34px; animation-delay: -.4s; }
@keyframes swim-right { from { transform: translateX(-280px); } to { transform: translateX(100vw); } }
@keyframes swim-left { from { transform: translateX(100vw); } to { transform: translateX(-280px); } }
@keyframes wiggle { from { rotate: -6deg; translate: 0 -3px; } to { rotate: 6deg; translate: 0 3px; } }

.s-intro { bottom: 0; color: var(--sun); animation-duration: 30s; animation-delay: -6s; }
.s-menu { top: -34px; color: var(--pink); animation-duration: 44s; animation-delay: -20s; }
.s-parties { top: -34px; color: var(--glow); animation-duration: 40s; animation-delay: -12s; opacity: .85; }

.jelly { position: absolute; z-index: 0; width: clamp(48px, 6vw, 84px); aspect-ratio: 80 / 124; height: auto; overflow: visible; animation: jelly-rise 16s var(--drift) infinite alternate; }
.jelly use { transform-box: fill-box; transform-origin: 50% 0; animation: jelly-pulse 2.8s var(--drift) infinite alternate; }
.j1 { left: 2%; top: 30%; color: var(--pink); filter: drop-shadow(0 0 16px var(--pink)); }
.j2 { right: 2.5%; top: 10%; color: var(--glow); filter: drop-shadow(0 0 16px var(--glow)); animation-duration: 21s; animation-delay: -8s; scale: .75; }
.j3 { left: 48%; bottom: 1%; color: var(--violet); filter: drop-shadow(0 0 16px var(--violet)); animation-duration: 18s; animation-delay: -4s; scale: .6; }
@keyframes jelly-rise { from { transform: translate(0, 36px) rotate(-5deg); } to { transform: translate(18px, -48px) rotate(6deg); } }
@keyframes jelly-pulse { from { transform: scale(1, 1); } to { transform: scale(1.1, .9); } }

/* ---------- Menu ---------- */

/* One big aquarium window: fish blur as they pass behind it */
.tank {
  margin-top: clamp(36px, 4.5vw, 56px);
  padding: clamp(20px, 3.4vw, 44px);
  border-radius: clamp(26px, 4vw, 44px);
  border: 3px solid rgba(255, 255, 255, .38);
  background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.07));
  -webkit-backdrop-filter: blur(10px) saturate(1.25); backdrop-filter: blur(10px) saturate(1.25);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 34px 60px -34px rgba(3,16,45,.75);
}
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); }
html:not(.js) .tabs { display: none; }
.tabs button {
  font: 600 1.05rem/1 var(--body); color: #fff;
  padding: .7em 1.15em; border-radius: 999px; cursor: pointer;
  background: rgba(6, 34, 74, .35); border: 2px solid rgba(255,255,255,.35);
  transition: background-color .2s, color .2s, transform .12s;
}
.tabs button:hover { background: rgba(6, 34, 74, .6); }
.tabs button:active { transform: scale(.96); }
.tabs button[aria-selected="true"] { background: var(--foam); color: var(--ink); border-color: var(--foam); }

.panel[hidden] { display: none; }
html:not(.js) .panel + .panel { margin-top: 40px; }
.panel-note { font-weight: 500; color: #D6F4FF; margin-bottom: 22px; }
.panel-note a { text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dishes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px clamp(28px, 5vw, 64px); }
.dish-top { display: flex; align-items: baseline; gap: 10px; }
.dish h3 { font: 600 1.22rem/1.25 var(--body); }
.dots { flex: 1; min-width: 20px; border-bottom: 3px dotted rgba(255,255,255,.4); transform: translateY(-5px); }
.price { font-weight: 600; font-size: 1.15rem; color: var(--sun); }
.dish p { color: #DDF5FF; text-wrap: pretty; }
.js .panel.swap .dish { animation: dish-in .55s var(--drift) both; }
.js .panel.swap .dish:nth-child(2) { animation-delay: 50ms; }
.js .panel.swap .dish:nth-child(3) { animation-delay: 100ms; }
.js .panel.swap .dish:nth-child(4) { animation-delay: 150ms; }
.js .panel.swap .dish:nth-child(5) { animation-delay: 200ms; }
.js .panel.swap .dish:nth-child(6) { animation-delay: 250ms; }
@keyframes dish-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Arcade: where the light comes from neon instead of the sun ---------- */

.arcade-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.arcade h2 { text-shadow: 0 0 18px rgba(124,255,217,.8), 0 0 64px rgba(124,255,217,.5), 0 5px 0 rgba(4,22,56,.6); }
.games { margin-top: 38px; display: grid; gap: 20px; }
.games li { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.games h3 { font: 600 1.25rem/1.3 var(--body); }
.games p { color: #D3E6FF; max-width: 44ch; text-wrap: pretty; }
.pip { width: 14px; height: 14px; margin-top: .5em; border-radius: 50%; background: var(--glow); box-shadow: 0 0 14px 3px var(--glow); animation: pip-blink 2.4s ease-in-out infinite alternate; }
.games li:nth-child(2) .pip { background: var(--pink); box-shadow: 0 0 14px 3px var(--pink); animation-delay: -.6s; }
.games li:nth-child(3) .pip { background: var(--sun); box-shadow: 0 0 14px 3px var(--sun); animation-delay: -1.2s; }
.games li:nth-child(4) .pip { background: var(--violet); box-shadow: 0 0 14px 3px var(--violet); animation-delay: -1.8s; }
@keyframes pip-blink { from { opacity: .55; } to { opacity: 1; } }

.tokens { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px; }
.token {
  width: 112px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #FFEE9C, var(--sun) 58%, #E5AE0A);
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.35), 0 6px 0 var(--ink);
}
.token b { font: 400 1.75rem/1 var(--display); }
.token span { font-size: .85rem; font-weight: 600; line-height: 1.2; }

.cabinet {
  justify-self: center;
  width: min(100%, 410px);
  padding: 14px 14px 10px;
  border-radius: 30px 30px 22px 22px;
  background: linear-gradient(180deg, #FF6F83, #D8375F);
  box-shadow: 0 0 0 4px var(--ink), 0 0 70px rgba(255, 93, 115, .5), 0 34px 50px -24px rgba(0,0,0,.7);
}
.cabinet-marquee {
  font: 400 1.25rem/1 var(--pixel); text-align: center;
  color: var(--sun); background: var(--ink);
  padding: 12px; border-radius: 16px;
  text-shadow: 0 0 12px rgba(255, 210, 63, .85);
}
.claw-game { width: 100%; height: auto; margin-top: 10px; border-radius: 14px; border: 4px solid var(--ink); background: #081F5C; }
.prize { transition: opacity .25s; }
.cabinet-panel { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 0 8px; }
.joy, .drop {
  font: 600 1.1rem/1 var(--body); color: var(--ink); cursor: pointer;
  border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.joy { width: 58px; height: 58px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.joy svg { width: 26px; height: 26px; fill: var(--ink); }
.drop { height: 58px; padding: 0 2em; border-radius: 999px; background: var(--glow); }
.joy:active, .drop:active, .joy.held { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.drop:disabled { opacity: .6; cursor: default; }
.cabinet-msg { min-height: 3.1em; padding: 4px 8px 6px; text-align: center; font-weight: 500; font-size: 1rem; line-height: 1.4; color: #fff; }

/* ---------- Bar: the one warm light this deep, from a ship's lantern ---------- */

.bar { isolation: isolate; }
.bar::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 74% 42%, rgba(255, 168, 70, .16), transparent 72%);
}
.bar-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.bar h2 { color: #FFE9C7; text-shadow: 0 0 22px rgba(255, 180, 84, .65), 0 0 70px rgba(255, 150, 40, .35), 0 5px 0 rgba(4, 22, 56, .6); }

.happy-hour {
  margin-top: 34px; padding: 22px 26px; max-width: 470px;
  border-radius: 22px;
  border: 2px solid rgba(255, 196, 120, .5);
  background: rgba(255, 180, 84, .09);
}
.happy-hour h3, .drinks-head { font: 400 1.7rem/1.1 var(--display); color: var(--amber); }
.hh-when { font-weight: 600; font-size: 1.15rem; margin: 6px 0; }
.happy-hour p:last-child { color: #F6E6CF; }
.bar-note { margin-top: 22px; max-width: 46ch; font-size: 1rem; color: #CBD7F2; }

.bar-side { position: relative; padding-top: 150px; }
.lantern-wrap { position: absolute; top: 0; left: 50%; width: 84px; translate: -50% 0; }
.lantern { position: relative; width: 100%; height: auto; overflow: visible; transform-origin: 50% -180px; animation: lantern-sway 7s var(--drift) infinite alternate; }
.lantern .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame 1.4s ease-in-out infinite alternate; }
.lantern-glow {
  position: absolute; left: 50%; top: 84px; width: 440px; height: 440px; translate: -50% -50%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 200, 120, .62), rgba(255, 160, 60, .2) 38%, transparent 68%);
  mix-blend-mode: screen;
  animation: flicker 5s ease-in-out infinite;
}
@keyframes lantern-sway { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
@keyframes flame { from { transform: scale(1, 1); } to { transform: scale(.88, 1.08); } }
@keyframes flicker { 0%, 100% { opacity: .9; } 22% { opacity: 1; } 38% { opacity: .8; } 55% { opacity: .96; } 72% { opacity: .85; } 86% { opacity: 1; } }

.drinks {
  position: relative;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: clamp(24px, 3.4vw, 36px);
  border: 2px solid rgba(255, 196, 120, .45);
  background: radial-gradient(120% 55% at 50% 0, rgba(255, 180, 84, .2), transparent 72%), rgba(4, 12, 40, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 2px 0 rgba(255, 214, 160, .25), 0 34px 60px -30px rgba(0, 0, 0, .7);
}
.drinks-head { margin-bottom: 18px; }
.drinks .dishes { grid-template-columns: 1fr; gap: 18px; }
.drinks .dish p { color: #E3E9F8; }
.bar .price { color: var(--amber); }
.zero-proof { margin: 22px 0 30px; padding-top: 18px; border-top: 2px dotted rgba(255, 255, 255, .22); font-weight: 500; color: #F6E6CF; }
.pours { display: grid; gap: 12px; }
.pours li { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 1.12rem; }

/* ---------- Parties: packages printed on prize tickets ---------- */

.tickets { margin-top: clamp(36px, 4.5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 32px); align-items: stretch; }
.ticket-holder { filter: drop-shadow(0 22px 22px rgba(2, 10, 32, .55)); transition: transform .35s var(--spring); }
.ticket-holder:hover { transform: translateY(-8px) rotate(-1deg); }
.ticket {
  --notch: 118px;
  position: relative; height: 100%;
  padding: 28px 30px 32px; border-radius: 20px;
  color: var(--ink); background: var(--sun);
  -webkit-mask:
    radial-gradient(circle 15px at 0 var(--notch), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 15px at 100% var(--notch), #0000 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 15px at 0 var(--notch), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 15px at 100% var(--notch), #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket::before { content: ''; position: absolute; left: 26px; right: 26px; top: var(--notch); border-top: 3px dashed rgba(6, 34, 74, .4); }
.t-coral { background: var(--coral); }
.t-mint { background: var(--glow); }
.ticket header { height: calc(var(--notch) - 28px); }
.ticket h3 { font: 400 2.3rem/1 var(--display); }
.ticket header p { font-weight: 600; margin-top: 4px; }
.ticket-price { font: 400 3.4rem/1 var(--display); margin: 24px 0 14px; }
.ticket-price span { font: 600 1.1rem/1 var(--body); }
.ticket ul { display: grid; gap: 9px; font-weight: 500; line-height: 1.35; }
.ticket ul li { padding-left: 1.3em; position: relative; }
.ticket ul li::before { content: ''; position: absolute; left: 0; top: .42em; width: .58em; height: .58em; border-radius: 50%; background: var(--ink); }
.party-cta { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-weight: 500; }

/* ---------- Visit ---------- */

.visit-grid { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.visit h3 { font: 400 1.7rem/1.1 var(--display); color: var(--glow); margin-bottom: 14px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 2px dotted rgba(255,255,255,.28); }
.hours dd { font-weight: 600; white-space: nowrap; }
.hours-note { margin-top: 14px; font-size: 1rem; color: #CBD7F2; max-width: 40ch; }
.visit address, .visit p { line-height: 1.6; }
.visit a { color: #fff; text-decoration-color: var(--glow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.visit a:hover { color: var(--glow); }

/* ---------- Sea floor ---------- */

.seafloor { position: relative; z-index: 2; height: clamp(250px, 32vw, 400px); }
.dune { position: absolute; left: 0; bottom: 0; width: 100%; }
.dune-back { height: 66%; fill: #0B2A63; }
.dune-front { height: 36%; }
.kelp { position: absolute; bottom: 20%; width: clamp(110px, 16vw, 220px); height: auto; aspect-ratio: 220 / 300; overflow: visible; }
.kelp-l { left: 0; }
.kelp-r { right: 0; scale: -1 1; }
.kelp path { fill: none; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s var(--drift) infinite alternate; }
.kelp path:nth-child(2) { animation-duration: 7.5s; animation-delay: -2s; }
.kelp path:nth-child(3) { animation-duration: 5.2s; animation-delay: -3.5s; }
@keyframes sway { from { transform: rotate(-6deg) skewX(4deg); } to { transform: rotate(6deg) skewX(-4deg); } }
.chest-wrap { position: absolute; right: 21%; bottom: 13%; width: clamp(84px, 11vw, 150px); }
.chest { width: 100%; height: auto; aspect-ratio: 160 / 126; overflow: visible; }
.chest-bubbles i {
  position: absolute; bottom: 62%; left: 38%;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.14);
  animation: chest-rise 5s linear infinite;
}
.chest-bubbles i:nth-child(2) { left: 56%; width: 8px; height: 8px; animation-delay: -1.3s; animation-duration: 6s; }
.chest-bubbles i:nth-child(3) { left: 46%; width: 15px; height: 15px; animation-delay: -2.7s; animation-duration: 7s; }
.chest-bubbles i:nth-child(4) { left: 64%; width: 7px; height: 7px; animation-delay: -3.9s; }
@keyframes chest-rise {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  12% { opacity: .9; }
  50% { transform: translate(10px, -150px) scale(1); }
  100% { transform: translate(-8px, -320px) scale(1.1); opacity: 0; }
}
.floor-star { position: absolute; left: 27%; bottom: 9%; width: clamp(38px, 5vw, 64px); height: auto; aspect-ratio: 1; rotate: 14deg; overflow: visible; }
.fine { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: var(--ink); font-weight: 600; font-size: .95rem; }

/* ---------- Depth gauge ---------- */

.gauge {
  position: fixed; z-index: 40; right: 16px; top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.submerged .gauge { opacity: 1; }
.gauge-track { position: relative; width: 4px; height: 170px; border-radius: 4px; background: rgba(255,255,255,.28); }
.gauge-dot { position: absolute; left: 50%; top: calc(var(--depth) * 100%); width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
.gauge-read { font: 600 .9rem/1 var(--body); color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1240px) { .gauge { display: none; } }

@media (max-width: 900px) {
  .arcade-grid, .bar-grid { grid-template-columns: 1fr; }
  .bar-side { max-width: 560px; }
  .tickets { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .visit-grid { grid-template-columns: 1fr; }
  .dishes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --logo-top: 58px; }
  body { font-size: 1.06rem; }
  .wrap { width: calc(100% - 36px); }
  .brand-word { display: none; }
  .brand-mark { height: 52px; margin-left: 6px; }
  .nav nav a { padding: .5em .45em; font-size: .9rem; }
  .bar-side { padding-top: 130px; }
  .lantern-wrap { width: 72px; }
  .sun { left: 4%; top: 22%; }
  .c1 { left: 64%; scale: .6; }
  .c3 { display: none; }
  .token { width: 98px; }
  .chest-wrap { right: 10%; }
}

@media (max-width: 380px) {
  .brand-mark { height: 44px; margin-left: 4px; }
  .nav nav a { padding: .5em .32em; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; filter: none; transform: none; }
}
