:root {
  --sky: #d7f3ee;
  --sky-2: #8ecfc8;
  --panel: #fffaf3;
  --panel-2: #f3eadc;
  --ink: #1c2430;
  --muted: #5c6754;
  --amber: #ffb703;
  --amber-2: #ffc83d;
  --amber-sh: #c48400;
  --honey: #e09a00;
  --sea: #0f766e;
  --coral: #ff6b6b;
  --lilac: #c4a1ff;
  --teal: #2ec4b6;
  --gold: #ffd166;
  --night: #102033;
  --night-2: #173049;
  --night-3: #21405f;
  --nline: rgba(255, 255, 255, 0.12);
  --cream: #e9dcc9;
  --font: "Nunito", system-ui, sans-serif;
  --display: "Lilita One", "Nunito", system-ui, sans-serif;
  --mono: "Space Grotesk", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 0;
  font: 800 16px var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s;
}
.btn:active { transform: translateY(3px); }
.btn.amber { background: var(--amber-2); color: var(--ink); box-shadow: 0 5px 0 var(--amber-sh); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #0c1016; }
.btn.huge {
  padding: 18px 40px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: 18px;
  box-shadow: 0 7px 0 var(--amber-sh);
}
.btn.wide { width: 100%; }
.btn[aria-disabled="true"], a[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.press { animation: press 1.8s ease-in-out infinite; }
@keyframes press {
  50% { box-shadow: 0 7px 0 var(--amber-sh), 0 0 0 12px rgba(255, 183, 3, 0); }
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--ink);
  text-decoration: none;
}
.icon-btn svg { width: 18px; height: 18px; }

.hud {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 12px;
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(28, 36, 48, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.12);
}
.hud-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.hud-logo img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.hud-logo b { font-family: var(--display); font-size: 18px; letter-spacing: 0.08em; color: var(--sea); font-weight: 400; }
.hud-links { display: flex; gap: 18px; margin-left: 8px; }
.hud-links a { text-decoration: none; font-weight: 700; color: var(--muted); }
.hud-links a:hover { color: var(--ink); }
.hud-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.title-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px max(20px, calc((100vw - 1180px) / 2)) 78px;
  background:
    radial-gradient(circle at 78% 42%, rgba(255, 214, 140, 0.45), transparent 28%),
    linear-gradient(180deg, #7ec9c4 0%, var(--sky) 46%, #c5ebe4 100%);
  overflow: hidden;
}
.title-screen::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 110px;
  background: linear-gradient(transparent, var(--night));
  pointer-events: none;
  z-index: 1;
}
.stage { position: absolute; inset: 0; z-index: 0; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.no-webgl #hero3d { display: none; }

.say {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, calc(-100% - 12px));
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  font: 800 16px var(--font);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 0 rgba(28, 36, 48, 0.16);
}
.say::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: translateX(-50%) rotate(45deg);
}
.say[hidden] { display: none; }
.say.pop { animation: saypop 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes saypop {
  from { opacity: 0; transform: translate(-50%, calc(-100% - 2px)) scale(0.7); }
}

.skin-pick {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, 8px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 14px;
  background: rgba(255, 250, 243, 0.96);
  border: 2px solid rgba(28, 36, 48, 0.1);
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(28, 36, 48, 0.08), 0 12px 24px rgba(16, 32, 51, 0.12);
  font: 800 13px var(--font);
  color: var(--ink);
  white-space: nowrap;
}
.swatches { display: flex; gap: 6px; }
.swatches button {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--c);
  box-shadow: 0 0 0 1.5px rgba(28, 36, 48, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.swatches button:hover { transform: translateY(-2px); }

.title-card {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 34px 26px 22px;
  background: rgba(255, 250, 243, 0.95);
  border: 3px solid #fff;
  border-radius: 28px;
  box-shadow: 0 10px 0 rgba(28, 36, 48, 0.08), 0 24px 50px rgba(16, 32, 51, 0.18);
}
.card-wax { position: absolute; top: -8px; width: 108px; height: auto; pointer-events: none; }
.card-wax.l { left: -8px; }
.card-wax.r { right: -8px; transform: scaleX(-1); }
.season {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--night);
  color: var(--amber);
  font: 700 12px var(--mono);
  letter-spacing: 0.12em;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.title-mark {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 36px;
  background: var(--cream);
  filter: drop-shadow(0 8px 0 rgba(28, 36, 48, 0.06));
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-7px) rotate(-2deg); } }
.title-card h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #c56a12;
  text-shadow: 0 4px 0 #f6e2bf;
}
.sub { margin: 0; font-size: 18px; font-weight: 700; }
.sub b { background: linear-gradient(transparent 62%, rgba(255, 183, 3, 0.55) 62%); }
.chips { display: flex; gap: 8px; width: 100%; }
.chips span {
  flex: 1;
  display: grid;
  padding: 6px 8px 8px;
  border-radius: 12px;
  background: var(--panel-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips b { font: 700 22px var(--mono); color: var(--ink); letter-spacing: -0.03em; }
.no-wallet { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.ca {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--night);
  color: #fff;
  border-radius: 14px;
  text-align: left;
  box-shadow: inset 0 0 0 2px rgba(255, 183, 3, 0.28);
}
.ca-label { font: 700 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.ca code { font: 13px/1.4 var(--mono); word-break: break-all; }
.ca.pending code { font: 700 16px var(--font); }
.ca-copy {
  justify-self: start;
  margin-top: 4px;
  padding: 7px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  font: 800 13px var(--font);
  cursor: pointer;
}
.soc-row { display: flex; gap: 8px; width: 100%; }
.soc {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--ink);
  font: 800 15px var(--font);
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(28, 36, 48, 0.1);
}
.soc svg { width: 16px; height: 16px; }
.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.92);
  text-decoration: none;
  font-size: 14px;
  animation: bob 1.6s ease-in-out infinite;
}

.night {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 140, 90, 0.16), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(46, 196, 182, 0.14), transparent 26%),
    radial-gradient(circle at 70% 80%, rgba(255, 183, 3, 0.08), transparent 24%),
    var(--night);
  overflow: hidden;
}
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 120px 120px;
}
.drips { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 0; pointer-events: none; }
.drips svg {
  position: absolute;
  top: 0;
  width: 54px;
  height: auto;
  transform-origin: top center;
  animation: ooze 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.25));
}
.drips svg:nth-child(1) { left: 6%; width: 46px; }
.drips svg:nth-child(2) { left: 48%; width: 34px; animation-delay: -1.6s; }
.drips svg:nth-child(3) { right: 8%; animation-delay: -3s; }
@keyframes ooze { 50% { transform: scaleY(1.06); } }

.block { position: relative; z-index: 1; padding: 84px max(20px, calc((100vw - 1120px) / 2)); scroll-margin-top: 92px; }
.block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--night);
  font: 700 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker { margin: 0; font: 700 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.fine { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.62); }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  font: 700 12px var(--mono);
}

.flow {
  display: grid;
  grid-template-columns: 1fr 86px 1fr 100px 1.15fr 100px 1fr;
  align-items: stretch;
  gap: 0;
}
.node {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 2px;
  min-height: 188px;
  padding: 18px 12px;
  border-radius: 20px;
  background: var(--night-2);
  border: 2px solid var(--nline);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28);
}
.node b { font-size: 18px; }
.node small { color: rgba(255, 255, 255, 0.66); font-size: 13px; font-weight: 700; }
.n-ico { width: 64px; height: 64px; margin-bottom: 6px; }
.art { width: 64px; height: 64px; display: block; }
.jar-node { border-color: var(--amber); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28), 0 0 28px rgba(255, 183, 3, 0.18); }
.you { border-color: var(--coral); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28), 0 0 28px rgba(255, 107, 107, 0.2); }
.pipe { position: relative; align-self: center; height: 14px; margin: 0 6px; border-radius: 99px; background: var(--night-3); }
.pipe i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, var(--amber) 0 12px, transparent 12px 26px);
  animation: flow 0.9s linear infinite;
}
@keyframes flow { to { background-position: 26px 0; } }
.pipe span {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 96px;
  transform: translateX(-50%);
  text-align: center;
  font: 700 10px/1.25 var(--mono);
  color: rgba(255, 255, 255, 0.62);
}
.bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-bottom: 22px; }
.bars span {
  position: relative;
  width: 42px;
  height: var(--h);
  display: grid;
  place-items: start center;
  padding-top: 4px;
  border-radius: 8px 8px 4px 4px;
  font: 700 12px var(--mono);
  color: var(--night);
}
.bars em { position: absolute; bottom: -18px; font: 800 11px var(--font); font-style: normal; color: rgba(255, 255, 255, 0.72); }
.b1 { background: var(--amber); }
.b2 { background: var(--coral); }
.b3 { background: var(--teal); }
.split small { margin-top: 16px; }

.vault {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 64px;
  padding: 28px;
  border-radius: 28px;
  background: var(--night-2);
  border: 2px solid var(--nline);
}
.tank {
  position: relative;
  height: 250px;
  border-radius: 24px 24px 32px 32px;
  background: #0c1828;
  border: 4px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.goo {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, #ffe7a3, var(--amber) 40%, #c48400);
  box-shadow: 0 0 36px rgba(255, 183, 3, 0.45);
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe { 50% { height: 32%; } }
.goo::before {
  content: "";
  position: absolute;
  left: -40%;
  top: -10px;
  width: 180%;
  height: 22px;
  background: radial-gradient(circle at 20% 100%, #ffe7a3 12px, transparent 13px) 0 0 / 48px 22px repeat-x;
  animation: wave 2.6s linear infinite;
}
@keyframes wave { to { transform: translateX(48px); } }
.glass { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.16), transparent 24%, transparent 78%, rgba(255,255,255,.08)); }
.tank-label {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font: 700 12px var(--mono);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}
.vault-info h3 {
  margin: 6px 0 8px;
  font: 700 clamp(32px, 4vw, 46px) var(--mono);
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 183, 3, 0.35);
}
.vault-info p { margin: 0; max-width: 58ch; color: rgba(255, 255, 255, 0.74); }
.team-zero {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  align-items: baseline;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 107, 107, 0.12);
  border: 2px solid rgba(255, 107, 107, 0.4);
}
.team-zero b { font: 700 24px var(--mono); color: #ffb4b4; }
.team-zero small { grid-column: 1 / -1; color: rgba(255, 255, 255, 0.6); font-size: 12px; }

.quests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quest { background: #fffaf3; color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); }
.quest img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.quest-body { position: relative; padding: 22px 16px 16px; }
.q-num {
  position: absolute;
  top: -18px;
  left: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--amber-2);
  box-shadow: 0 4px 0 var(--amber-sh);
  font-family: var(--display);
  font-size: 18px;
}
.q-ico {
  position: absolute;
  top: -36px;
  right: 10px;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 6px 6px rgba(28, 36, 48, 0.25));
}
.quest h3 { margin: 6px 0 4px; font-size: 22px; }
.quest p { margin: 0; color: #5c6570; font-size: 15px; font-weight: 700; }
.quest.reward { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 0 0 3px var(--gold); }
.quest.reward .q-num { background: var(--gold); box-shadow: 0 4px 0 #b88a1c; }

.game-window {
  margin: 36px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #145e68, #0c3d48);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.gw-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f3eadc;
  color: var(--muted);
}
.gw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e07a7a; }
.gw-bar i:nth-child(2) { background: #f0c24d; }
.gw-bar i:nth-child(3) { background: #7dcaa4; }
.gw-bar span { margin-left: 8px; font: 700 12px var(--mono); }
.meters { margin-left: auto !important; color: var(--ink); }
.pier-wrap { display: grid; grid-template-columns: 1fr 72px; gap: 12px; padding: 14px; }
.pier { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cell { aspect-ratio: 1; border-radius: 10px; }
.cell.water { background: transparent; }
.cell.plank {
  border: 0;
  padding: 0;
  cursor: pointer;
  background:
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(#e4c091, #c4925a);
  box-shadow: inset 0 -4px 0 rgba(80, 42, 12, 0.25);
  display: grid;
  place-items: center;
}
.cell.plank:hover { filter: brightness(1.06); }
.cell.lamp { cursor: default; }
.pile-art, .lamp-art { width: 62%; height: 62%; display: block; position: relative; }
.pile-art {
  background: radial-gradient(circle at 30% 40%, #fff6d0, #f0c24d 40%, transparent 42%),
    linear-gradient(#d7b48a, #a87848);
  border-radius: 40% 50% 45% 55%;
  box-shadow: 0 0 12px rgba(255, 214, 120, 0.9), 10px -4px 0 -2px #c4a574;
  transform: rotate(-8deg);
}
.lamp-art {
  background: linear-gradient(#fff1c2, #ffb703);
  border-radius: 6px 6px 8px 8px;
  box-shadow: 0 0 14px rgba(255, 183, 3, 0.85);
}
.lamp-art::before {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  top: -8px;
  height: 10px;
  background: #8d5a32;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.toy-jar {
  position: relative;
  border-radius: 16px 16px 20px 20px;
  background: #061018;
  border: 3px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
#toy-goo {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 25%;
  background: linear-gradient(#ffe7a3, #e09a00);
  transition: height 0.35s ease;
}
.toy-jar span {
  position: absolute;
  top: 8px;
  left: 0; right: 0;
  text-align: center;
  font: 700 10px var(--mono);
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.7);
}
.toy-help {
  margin: 0;
  padding: 0 16px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}
.toy-help button {
  border: 0;
  background: none;
  color: var(--amber);
  font: 800 14px var(--font);
  cursor: pointer;
  text-decoration: underline;
}

.wax-rule {
  position: relative;
  z-index: 1;
  height: 14px;
  margin: 0 auto;
  width: min(520px, 70%);
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #f0c24d, #ffe7a3, #f0c24d, transparent);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.3));
}

.items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item {
  position: relative;
  overflow: hidden;
  padding: 22px 16px 16px;
  border-radius: 22px;
  background: var(--night-2);
  border: 3px solid;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.2s;
}
.item:hover { transform: translateY(-6px) rotate(-0.6deg); }
.item::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%);
  transform: translateX(-40%);
  transition: transform 0.7s;
  pointer-events: none;
}
.item:hover::after { transform: translateX(40%); }
.item h3 { margin: 8px 0 6px; font-size: 22px; }
.item p { margin: 0 0 14px; color: rgba(255,255,255,.74); font-size: 15px; font-weight: 700; }
.item-ico {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.rarity {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 99px;
  font: 700 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night);
}
.type { display: inline-block; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.1); font: 700 11px var(--mono); letter-spacing: 0.08em; }
.common { border-color: #b7ad9e; }
.common .rarity { background: #e7dccb; }
.rare { border-color: var(--teal); }
.rare .rarity { background: var(--teal); }
.epic { border-color: var(--lilac); }
.epic .rarity { background: var(--lilac); }
.legendary { border-color: var(--gold); background: linear-gradient(165deg, #3a2e16, var(--night-2) 55%); }
.legendary .rarity { background: var(--gold); }

.sheet { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.sheet-card, .live { padding: 22px; border-radius: 22px; background: var(--night-2); border: 2px solid var(--nline); }
.sheet-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.sheet-head img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.sheet-head b { display: block; font: 700 28px var(--mono); color: var(--amber); }
.sheet-head small { color: rgba(255,255,255,.62); font-weight: 700; }
.attrs { display: grid; gap: 12px; margin: 0; }
.attrs div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.attrs dt { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-weight: 700; }
.dt-ico { width: 22px; height: 22px; }
.attrs dd { margin: 0; font: 700 16px var(--mono); }
.attrs i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--night-3); position: relative; overflow: hidden; }
.attrs i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--teal)); }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.live { position: relative; min-height: 108px; }
.live span { color: rgba(255,255,255,.62); font-size: 14px; font-weight: 700; }
.live b { display: block; margin-top: 8px; font: 700 34px var(--mono); }
.live-ico { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; }
.live-grid .fine { grid-column: 1 / -1; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--night-2); border: 2px solid var(--nline); border-radius: 16px; padding: 4px 18px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-weight: 800;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--amber);
  color: var(--night);
  font-weight: 800;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: rgba(255,255,255,.74); }

.final {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 80px 20px 64px;
  text-align: center;
}
.final img {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  object-fit: cover;
  animation: bob 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.25);
}
.final h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); letter-spacing: 0.02em; }
.final-soc-lead { margin: 8px 0 0; font: 700 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.soc-row.big { width: min(420px, 100%); }
.soc-row.big .soc {
  background: var(--night-2);
  color: #fff;
  border: 2px solid var(--nline);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}
.foot {
  position: relative;
  z-index: 1;
  padding: 22px max(20px, calc((100vw - 900px) / 2)) 36px;
  border-top: 1px solid var(--nline);
  color: rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 700;
}
.foot p { margin: 0; }

@media (max-width: 1080px) {
  .hud-links { display: none; }
  .flow { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .node { width: min(420px, 100%); min-height: 0; }
  .pipe { width: 14px; height: 54px; margin: 8px 0 22px; }
  .pipe i { background: repeating-linear-gradient(180deg, var(--amber) 0 12px, transparent 12px 26px); animation-name: flowv; }
  .pipe span { top: auto; bottom: -18px; width: max-content; }
  @keyframes flowv { to { background-position: 0 26px; } }
  .quests, .items { grid-template-columns: 1fr 1fr; }
  .sheet { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .title-screen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100svh;
    padding: 78px 12px 28px;
  }
  .stage { position: relative; inset: auto; height: 250px; width: 100%; }
  .skin-pick { top: auto !important; bottom: 6px; left: 50% !important; }
  .scroll-hint { display: none; }
  .title-card { margin-top: 16px; padding: 28px 16px 16px; }
  .btn.huge { width: 100%; padding: 16px; font-size: 22px; }
  .hud { gap: 8px; padding: 6px; }
  .hud-logo b, .icon-btn { display: none; }
  .hud .btn { padding: 9px 12px; font-size: 14px; }
  .skin-pick { font-size: 12px; padding: 6px 8px 6px 10px; }
  .swatches button { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .quests, .items, .live-grid { grid-template-columns: 1fr; }
  .vault { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tank { width: 150px; height: 200px; }
  .team-zero { justify-items: center; }
  .block { padding-top: 64px; padding-bottom: 48px; }
  .block-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pier { gap: 4px; }
  .pier-wrap { grid-template-columns: 1fr 56px; padding: 10px; }
  .card-wax { width: 78px; }
  .drips svg:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
