/* Updates page: hero, big feature cards with art, item grid, stat cards. Colours come from theme tokens, so dark and pastel themes both work. */
.u-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92svh, 920px); padding: 4.5rem 0 5.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  background:
    radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--aqua) 30%, transparent), transparent 72%),
    radial-gradient(45% 40% at 88% 30%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.u-hero-inner { position: relative; z-index: 2; }
.u-kicker { font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-2); font-weight: 700; }
.u-hero h1 {
  margin: .35rem 0 .9rem; font-size: clamp(3.6rem, 14vw, 10rem); line-height: .92; font-weight: 800;
  letter-spacing: -.025em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 55%, var(--aqua)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.u-date { display: inline-block; padding: .4rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .95rem; font-weight: 600; backdrop-filter: blur(8px); }
.u-tagline { max-width: 48ch; margin: 1.1rem auto 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.5; }
.u-hero-chest {
  position: relative; z-index: 1; width: min(560px, 78vw); height: auto; margin-top: -.5rem;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) drop-shadow(0 0 60px color-mix(in srgb, var(--gold) 35%, transparent));
}
.u-scroll { position: absolute; z-index: 3; bottom: 1.2rem; left: 50%; margin-left: -14px; color: var(--muted); }
.u-bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.u-bubbles span {
  position: absolute; bottom: -40px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--aqua-2) 55%, transparent);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--aqua-2) 35%, transparent), transparent 65%);
  opacity: 0;
}

.u-section { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.u-h2 { text-align: center; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 0 0 clamp(1.8rem, 4vw, 3rem); }

/* Accents */
.u-ac-aqua { --ac: var(--aqua); --ac2: var(--gold); }
.u-ac-gold { --ac: var(--gold); --ac2: #ff9d5c; }
.u-ac-rose { --ac: #f58fb0; --ac2: var(--aqua); }

.u-feature {
  display: grid; grid-template-columns: 1fr; margin-bottom: 1.5rem; position: relative; overflow: hidden;
  border-radius: 32px; border: 1px solid color-mix(in srgb, var(--ac) 30%, var(--line));
  background:
    radial-gradient(80% 90% at 85% 5%, color-mix(in srgb, var(--ac) 26%, transparent), transparent 66%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 90px -50px color-mix(in srgb, var(--ac) 55%, transparent);
}
@media (min-width: 900px) {
  .u-feature { grid-template-columns: 1.05fr 1fr; min-height: 460px; }
  .u-feature:nth-of-type(even) .u-art { order: -1; }
}
.u-copy { padding: clamp(1.6rem, 4vw, 3.4rem); display: grid; align-content: center; justify-items: start; gap: 1rem; position: relative; z-index: 1; }
.u-tag {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--ac) 65%, transparent); color: color-mix(in srgb, var(--ac) 70%, var(--text));
  background: color-mix(in srgb, var(--ac) 12%, transparent);
}
.u-copy h3 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
.u-copy h3 em {
  display: block; font-style: normal;
  background: linear-gradient(90deg, var(--ac), var(--ac2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.u-copy p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 1.05rem; max-width: 46ch; }
.u-points { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .6rem; max-width: 46ch; }
.u-points li { position: relative; padding-left: 1.5rem; line-height: 1.45; }
.u-points li::before { content: ""; position: absolute; left: 0; top: .42em; width: .7rem; height: .7rem; border-radius: 50%; background: linear-gradient(135deg, var(--ac), var(--ac2)); }
.u-link { margin-top: .4rem; }

/* Art */
.u-art { position: relative; min-height: 320px; display: grid; place-items: center; padding: 1.5rem; }
.u-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ac) 38%, transparent), transparent 68%); filter: blur(10px); }
.u-art--chest img {
  position: relative; width: min(100%, 500px); height: auto;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px color-mix(in srgb, var(--gold) 30%, transparent));
  transition: transform .6s var(--ease);
}
.u-feature:hover .u-art--chest img { transform: translateY(-6px) rotate(-1.5deg) scale(1.02); }

.u-art--img img { position: relative; width: min(100%, 460px); height: auto; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .4)); transition: transform .6s var(--ease); }
.u-feature:hover .u-art--img img { transform: translateY(-6px) scale(1.02); }
.u-art--keepnet img { position: relative; width: min(100%, 440px); height: auto; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .42)); }
.u-npcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); max-width: 980px; margin: 0 auto; }
.u-npc { --nc: #3b9dff; --nc2: #3fe0c8; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 1rem; min-height: 600px; padding: 2.2rem 1.6rem 0; text-align: center; border-radius: 30px; border: 1px solid color-mix(in srgb, var(--nc) 35%, var(--line)); background: radial-gradient(90% 55% at 50% 100%, color-mix(in srgb, var(--nc) 34%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--nc) 20%, #0b1118), color-mix(in srgb, var(--nc) 7%, #070b10)); box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--nc) 70%, transparent); }
.u-npc--honey { --nc: #f2b53c; --nc2: #ff8f4d; }
.u-npc h3 { margin: 0; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; background: linear-gradient(180deg, color-mix(in srgb, var(--nc) 55%, #fff), var(--nc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-npc p { margin: 0; max-width: 34ch; color: color-mix(in srgb, var(--text) 62%, transparent); font-size: 1.02rem; line-height: 1.5; }
.u-npc p b { color: var(--text); }
.u-npc img { margin-top: auto; width: auto; max-width: 92%; height: min(430px, 56vw); object-fit: contain; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .5)); transition: transform .6s var(--ease); }
.u-npc:hover img { transform: translateY(-6px) scale(1.03); }
@media (max-width: 760px) { .u-npcs { grid-template-columns: 1fr; } .u-npc { min-height: 0; } }
.u-art--atlas img { position: relative; width: min(100%, 440px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .4)); transition: transform .6s var(--ease); }
.u-feature:hover .u-art--atlas img { transform: translateY(-6px) scale(1.03); }
.u-ac-honey { --ac: #f2b53c; --ac2: #ff8f4d; }
.u-ac-sea { --ac: #3b9dff; --ac2: var(--aqua); }
.u-art--booster img { position: relative; width: min(70%, 280px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .4)); transition: transform .6s var(--ease); }
.u-feature:hover .u-art--booster img { transform: translateY(-6px) scale(1.04); }

.u-art--cases { min-height: 360px; }
.u-art--cases img { position: absolute; height: auto; filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .4)); transition: transform .6s var(--ease); }
.u-art--cases .c1 { width: 54%; left: 23%; top: 8%; z-index: 2; }
.u-art--cases .c2 { width: 40%; left: 2%; top: 34%; transform: rotate(-8deg); }
.u-art--cases .c3 { width: 40%; right: 2%; top: 34%; transform: rotate(8deg); }
.u-feature:hover .u-art--cases .c1 { transform: translateY(-8px) scale(1.04); }
.u-feature:hover .u-art--cases .c2 { transform: rotate(-12deg) translateY(-4px); }
.u-feature:hover .u-art--cases .c3 { transform: rotate(12deg) translateY(-4px); }
.medal { position: absolute; z-index: 3; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1b1405; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.medal.m1 { left: 66%; top: 5%; background: linear-gradient(135deg, #ffe58a, #e8a926); }
.medal.m2 { left: 10%; top: 31%; background: linear-gradient(135deg, #f1f5f9, #aab6c3); }
.medal.m3 { right: 10%; top: 31%; background: linear-gradient(135deg, #f3bd8c, #b8743a); }

.u-art--themes { gap: 0; grid-auto-flow: column; }
.u-art--themes::before { display: none; }
.mock { position: relative; width: min(46%, 200px); aspect-ratio: 3 / 4; border-radius: 20px; padding: 14px; display: grid; align-content: start; gap: 9px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .5); }
.mock i, .mock b, .mock u { display: block; border-radius: 6px; }
.mock i { height: 12px; width: 40%; }
.mock b { height: 26px; width: 85%; }
.mock u { height: 8px; width: 70%; }
.mock span { display: flex; gap: 6px; margin-top: 8px; }
.mock em { height: 22px; flex: 1; border-radius: 99px; }
.mock--dark { background: #04131c; transform: rotate(-5deg) translateX(8px); border: 1px solid rgba(126, 233, 242, .25); }
.mock--dark i, .mock--dark b { background: #7ee9f2; }
.mock--dark u { background: rgba(255, 255, 255, .25); }
.mock--dark em { background: rgba(126, 233, 242, .22); }
.mock--light { background: #ffe9ef; transform: rotate(5deg) translateX(-8px) translateY(16px); border: 1px solid rgba(204, 110, 140, .35); z-index: 1; }
.mock--light i, .mock--light b { background: #e0789c; }
.mock--light u { background: rgba(90, 40, 60, .25); }
.mock--light em { background: rgba(224, 120, 156, .25); }

/* Items */
.u-items { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 250px)); justify-content: center; }
.u-item {
  display: grid; justify-items: center; text-align: center; gap: .35rem; padding: 1.4rem 1rem 1.2rem;
  border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface));
  transition: transform .4s var(--ease), border-color .3s;
}
.u-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.u-item img { width: 136px; height: 136px; object-fit: contain; margin-bottom: .4rem; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); }
.u-item-icon { width: 136px; height: 136px; display: grid; place-items: center; color: var(--gold); margin-bottom: .4rem; }
.u-item-icon svg { width: 64px; height: 64px; }
.u-item b { line-height: 1.2; }
.u-item span { color: var(--muted); font-size: .85rem; line-height: 1.35; }

/* Economy */
.u-stats { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .u-stats { grid-template-columns: 1fr 1fr; } }
.u-stat {
  display: grid; gap: .5rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  background: radial-gradient(90% 80% at 90% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 65%), linear-gradient(160deg, var(--surface-2), var(--surface));
}
.u-stat span { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.u-stat b { font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1; font-weight: 800; background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-stat p { margin: 0; line-height: 1.45; }
.u-stat small { color: var(--muted); }
.u-stat { position: relative; }
.u-stat-ic { position: absolute; top: .8rem; right: .8rem; width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
.u-stats--dense { gap: 1rem; }
@media (min-width: 800px) { .u-stats--dense { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.u-stats--dense .u-stat { padding: 1.3rem; border-radius: 24px; align-content: start; }
.u-stats--dense .u-stat span { padding-right: 70px; min-height: 2.4em; }
.u-stats--dense .u-stat b { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

/* Recipe */
.u-recipe { max-width: 760px; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 30px; border: 1px solid color-mix(in srgb, #3b9dff 32%, var(--line)); background: radial-gradient(80% 90% at 85% 0%, color-mix(in srgb, #3b9dff 22%, transparent), transparent 65%), linear-gradient(160deg, var(--surface-2), var(--surface)); }
.u-craft { display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 3vw, 2rem); flex-wrap: wrap; }
.u-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.u-cell { width: clamp(58px, 11vw, 84px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5); }
.u-cell img { width: 78%; height: 78%; object-fit: contain; image-rendering: pixelated; }
.u-cell--result { width: clamp(84px, 16vw, 116px); border-color: color-mix(in srgb, #3b9dff 55%, transparent); background: color-mix(in srgb, #3b9dff 14%, transparent); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .4), 0 0 28px color-mix(in srgb, #3b9dff 35%, transparent); }
.u-cell--result img { width: 86%; height: 86%; image-rendering: auto; }
.u-arrow { width: clamp(40px, 7vw, 64px); color: var(--muted); }
.u-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.u-legend li { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .85rem; }

.u-cols { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .u-cols { grid-template-columns: 1fr 1fr; } }
.u-box { border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); padding: clamp(1.3rem, 3vw, 2rem); }
.u-box h3 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 800; }
.u-box ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .7rem; color: var(--muted); line-height: 1.5; }

.u-closing { padding: 4.5rem 0 3.5rem; text-align: center; color: var(--muted); }
.u-closing p { margin: 0; font-size: 1.05rem; }
.u-archive { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 1rem; }
.u-card { display: grid; gap: .35rem; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 1.2rem; color: var(--text); text-decoration: none; }
.u-card:hover { border-color: var(--aqua); }
.u-card small { color: var(--muted); }
.u-first { color: var(--muted); margin-top: .75rem; }

/* Light (pastel) theme: darker accent text for contrast */
html:not([data-theme="dark"]) .u-copy h3 em { background-image: linear-gradient(90deg, color-mix(in srgb, var(--ac) 55%, #000), color-mix(in srgb, var(--ac2) 55%, #000)); }
html:not([data-theme="dark"]) .u-stat b { background-image: linear-gradient(90deg, color-mix(in srgb, var(--gold) 50%, #000), color-mix(in srgb, var(--gold) 70%, #000)); }
html:not([data-theme="dark"]) .u-kicker { color: color-mix(in srgb, var(--aqua) 55%, #000); }
html:not([data-theme="dark"]) .u-item:hover { border-color: color-mix(in srgb, var(--gold) 70%, #000); }
html:not([data-theme="dark"]) .u-hero-chest { filter: drop-shadow(0 26px 30px rgba(120, 60, 80, .35)) drop-shadow(0 0 50px color-mix(in srgb, var(--gold) 30%, transparent)); }

/* Motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .u-hero-chest { animation: u-float 6s ease-in-out infinite; }
  .u-art--chest img { animation: u-float 7s ease-in-out infinite; }
  .u-scroll { animation: u-bob 1.8s ease-in-out infinite; }
  .u-bubbles span { animation: u-rise linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@keyframes u-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1deg); } }
@keyframes u-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes u-rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translateY(-105vh) translateX(24px); opacity: 0; } }

/* Underwater hunting update (diving-2026): hero scene, depth gauge, armory and the harpoon tank. */
.u-lead { max-width: 60ch; margin: -1.6rem auto 2.2rem; text-align: center; color: var(--muted); line-height: 1.55; }
.u-hero-dive { position: relative; z-index: 1; width: min(720px, 94vw); margin-top: .5rem; }
.u-hero-dive svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .35)); }
.u-hero-dive image.px, .u-art--reel image.px { image-rendering: pixelated; }
.u-hero-dive .hd-line { stroke-dasharray: 8 6; filter: drop-shadow(0 0 6px #7ef9ff); }
.u-hero-dive .hd-mark { filter: drop-shadow(0 0 6px #ffd166); }
.u-hero-dive .hd-fish { filter: drop-shadow(0 0 18px rgba(255, 176, 46, .55)); }

.u-wpn { display: block; max-width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); }
.u-fishpx { image-rendering: pixelated; transform: rotate(45deg); }

/* Depth gauge */
.u-dive { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }
@media (max-width: 820px) { .u-dive { grid-template-columns: 1fr; } .u-dive-col { height: 380px; } }
.u-dive-col {
  position: relative; height: clamp(460px, 70vh, 640px); border-radius: 30px; overflow: hidden; cursor: ns-resize; touch-action: none; outline-offset: 4px;
  background: linear-gradient(180deg, #2bb3d6 0%, #0f6f99 22%, #0a4a73 50%, #06294a 75%, #020c1c 100%);
  box-shadow: inset 0 0 0 1px rgba(126, 233, 242, .25), 0 40px 80px -50px rgba(45, 212, 224, .7);
}
.u-dive-col::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 60px, rgba(191, 246, 255, .07) 60px 90px, transparent 90px 170px); mask-image: linear-gradient(180deg, #000, transparent 45%); pointer-events: none; }
.dz { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(191, 246, 255, .3); pointer-events: none; }
.dz--shore { border-top: 0; }
.dz-name { position: absolute; right: 1rem; top: .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(220, 248, 255, .75); }
.dz-fish { position: absolute; left: -12%; opacity: .9; }
.dz-fish img { display: block; width: 40px; height: 40px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.dt { position: absolute; left: .7rem; transform: translateY(-50%); font-size: .7rem; color: rgba(220, 248, 255, .55); font-variant-numeric: tabular-nums; pointer-events: none; }
.dt:first-of-type { transform: none; }
.dl { position: absolute; left: 3.4rem; right: 0; border-top: 2px solid rgba(255, 138, 107, .7); pointer-events: none; }
.dl i { position: absolute; right: 1rem; top: .25rem; font-style: normal; font-size: .7rem; color: #ffc2b0; }
.u-diver { position: absolute; left: 34%; top: 0; z-index: 2; display: flex; align-items: center; gap: .6rem; transform: translateY(-50%); pointer-events: none; transition: top .12s linear; }
.u-diver-dot { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(4, 20, 34, .7); border: 2px solid #7ee9f2; box-shadow: 0 0 0 6px rgba(126, 233, 242, .18), 0 0 30px rgba(126, 233, 242, .55); }
.u-diver-dot img { width: 34px; height: 34px; image-rendering: pixelated; }
.u-diver b { padding: .25rem .7rem; border-radius: 999px; background: rgba(4, 20, 34, .75); color: #e8fbff; font-weight: 800; font-variant-numeric: tabular-nums; }
.u-dive-col:focus-visible .u-diver-dot { border-color: var(--gold); }

.u-dive-panel {
  --zc: #2dd4e0; display: grid; align-content: start; gap: .7rem; padding: clamp(1.3rem, 3vw, 2rem); border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--zc) 35%, var(--line));
  background: radial-gradient(90% 70% at 90% 0%, color-mix(in srgb, var(--zc) 22%, transparent), transparent 66%), linear-gradient(160deg, var(--surface-2), var(--surface));
  transition: border-color .5s, background .5s;
}
.u-dive-panel[data-zone="reef"] { --zc: #4aa8ff; }
.u-dive-panel[data-zone="deep"] { --zc: #c084fc; }
.dp-depth { display: flex; align-items: baseline; gap: .4rem; }
.dp-depth b { font-size: clamp(3.4rem, 8vw, 5.4rem); line-height: .9; font-weight: 800; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--text), var(--zc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-depth span { font-size: 1.4rem; color: var(--muted); font-weight: 700; }
.u-dive-panel h3 { margin: 0; font-size: 1.45rem; }
.u-dive-panel h4 { margin: .6rem 0 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.u-dive-panel p { margin: 0; color: var(--muted); line-height: 1.5; }
.dp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.dp-chips span { padding: .25rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); animation: u-pop .4s var(--ease) both; }
.dp-fish { display: flex; flex-wrap: wrap; gap: .45rem .7rem; min-height: 40px; padding: .2rem .3rem; }
.dp-fish img { width: 38px; height: 38px; animation: u-fade .45s ease both; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.dp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.dp-list li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: .7rem; padding: .4rem .7rem; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); transition: opacity .3s, filter .3s; }
.dp-list li img { width: 28px; height: 28px; image-rendering: pixelated; justify-self: center; }
.dp-list li .u-wpn { width: 52px; height: 26px; object-fit: contain; image-rendering: auto; filter: none; }
.dp-list li small { color: var(--muted); }
.dp-list li.ok { box-shadow: inset 3px 0 0 #5fd38a; }
.dp-list li.no { opacity: .38; filter: grayscale(1); }

/* Armory */
.u-wgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 1.5rem; }
.u-wcard {
  display: grid; gap: .55rem; align-content: start; text-align: left; padding: 1.2rem; border-radius: 24px; cursor: pointer; font: inherit; color: var(--text);
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface));
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.u-wcard:hover { transform: translateY(-4px); }
.u-wcard[aria-pressed="true"] { border-color: var(--aqua); box-shadow: 0 0 0 1px var(--aqua), 0 24px 50px -30px var(--aqua); }
.u-wcard-art { height: 96px; display: grid; place-items: center; margin-bottom: .2rem; }
.u-wcard .u-wpn { max-height: 96px; width: auto; transition: transform .45s var(--ease); }
.u-wcard:hover .u-wpn, .u-wcard[aria-pressed="true"] .u-wpn { transform: rotate(-5deg) scale(1.06); }
.u-wcard > b { font-size: 1.15rem; }
.u-wcard small { color: var(--muted); line-height: 1.35; }
.u-wcard .wcraft { font-size: .78rem; opacity: .8; }
.wbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem .5rem; font-size: .8rem; }
.wbar i { font-style: normal; color: var(--muted); }
.wbar em { grid-column: 1 / -1; order: 3; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); position: relative; overflow: hidden; }
.wbar em::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), #4aa8ff); transition: width 1.1s var(--ease) .2s; }
.u-wcard.in .wbar em::after { width: var(--v); }
.wbar b { font-variant-numeric: tabular-nums; }

/* Tank */
.u-tank { border-radius: 30px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--aqua) 30%, var(--line)); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.u-tank canvas { display: block; width: 100%; height: clamp(320px, 52vw, 480px); cursor: none; touch-action: none; }
.u-tank-hud { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; padding: 1rem 1.3rem; }
.u-tank-hud #tank-msg { flex: 1 1 260px; font-weight: 600; }
.tank-score b { font-size: 1.4rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.u-tank-log { list-style: none; margin: 0; padding: 0 1.3rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.u-tank-log li { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .75rem .2rem .35rem; border-radius: 999px; font-size: .85rem; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); animation: u-pop .45s var(--ease) both; }
.u-tank-log li img { width: 24px; height: 24px; }
.u-tank-note { margin: .8rem 1.3rem 1.2rem; font-size: .82rem; color: var(--muted); }

/* Feature art */
.u-art--reel svg { position: relative; width: min(100%, 460px); height: auto; overflow: visible; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); }
.u-art--reel .ar-line { stroke-dasharray: 6 5; }
.ar-hint { position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #04131c; background: #3fe0c8; }
.u-art--marker { gap: 1rem; }
.am-row { position: relative; display: grid; grid-template-columns: 110px auto; align-items: center; gap: .8rem; padding-top: 18px; }
.am-arrow { position: absolute; left: 44px; top: 0; }
.am-arrow svg { width: 22px; height: 16px; display: block; }
.am-row .u-fishpx { width: 72px; height: 72px; justify-self: center; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.am-row .am-far { opacity: .5; filter: grayscale(.5); }
.am-row small { color: var(--muted); font-weight: 600; line-height: 1.35; }
.am-row small b { color: var(--text); }
.u-art--suits { grid-auto-flow: column; gap: clamp(.4rem, 2vw, 1.4rem); align-items: end; }
.u-art--suits figure { position: relative; margin: 0; display: grid; justify-items: center; gap: .5rem; text-align: center; }
.u-art--suits img { width: auto; height: clamp(80px, 11vw, 120px); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .4)); }
.u-art--suits figure:nth-child(2) img { height: clamp(190px, 26vw, 300px); }
.u-art--suits figure:nth-child(3) img { height: clamp(170px, 24vw, 280px); }
.u-art--suits figcaption { display: grid; gap: .1rem; }
.u-art--suits small { color: var(--muted); }
.ac-card { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1.6rem 2rem; border-radius: 26px; border: 1px solid color-mix(in srgb, #c084fc 45%, var(--line)); background: color-mix(in srgb, #c084fc 10%, var(--surface)); box-shadow: 0 30px 60px -36px #c084fc; }
.ac-card .ac-fish { width: 132px; height: 132px; margin: .4rem 0 .8rem; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); }
.ac-card b { font-size: 1.25rem; color: #d7b3ff; }
.ac-card small { color: var(--text); }
.ac-card span { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.u-item img[src*="/dive/"][src$=".png"] { image-rendering: pixelated; width: 96px; height: 96px; margin: 20px 0 .4rem; }

html:not([data-theme="dark"]) .ac-card b { color: #7a3fc4; }

@media (prefers-reduced-motion: no-preference) {
  .u-hero-dive .hd-ray { animation: u-ray 7s ease-in-out infinite; }
  .u-hero-dive .hd-ray2 { animation-delay: -3s; }
  .u-hero-dive .hd-line, .u-art--reel .ar-line { animation: u-dash 1s linear infinite; }
  .u-hero-dive .hd-fish { animation: u-tug 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .u-hero-dive .hd-mark, .am-arrow { animation: u-bob 1.4s ease-in-out infinite; }
  .u-hero-dive svg { animation: u-float 7s ease-in-out infinite; }
  .dz-fish { animation: u-swim linear infinite; }
  .u-art--reel .ar-fish { animation: u-pull 3.2s var(--ease) infinite; }
  .am-row { animation: u-float 4s ease-in-out infinite; animation-delay: var(--d); }
  .u-art--suits figure { animation: u-float 5s ease-in-out infinite; animation-delay: var(--d); }
  .ac-card { animation: u-float 6s ease-in-out infinite; }
}
@keyframes u-ray { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes u-dash { to { stroke-dashoffset: -14; } }
@keyframes u-tug { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-8px, 4px) rotate(-6deg); } }
@keyframes u-swim { from { left: -12%; } to { left: 105%; } }
@keyframes u-pull { 0%, 15% { transform: translateX(0); } 80%, 100% { transform: translateX(-24px); } }
@keyframes u-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes u-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
