:root {
  /* Typography material notes: Roboto Mono* Mono** should be etched into tiny metal strips. Roboto Mono for tide coordinates. */
  --deep-navy: #071A33;
  --steel: #2E5E88;
  --silver: #C5D2DC;
  --coral: #FF6F59;
  --aqua: #45D6C5;
  --sand: #F4D59A;
  --black: #02070D;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Nunito Sans", Arial, sans-serif;
  --mono: "Roboto Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--silver);
  font-family: var(--body);
  background:
    radial-gradient(circle at 18% 12%, rgba(69, 214, 197, 0.16), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(255, 111, 89, 0.14), transparent 25%),
    linear-gradient(145deg, var(--black), var(--deep-navy) 42%, #0a2344 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    radial-gradient(circle, rgba(197, 210, 220, .14) 1px, transparent 1.4px),
    linear-gradient(100deg, transparent, rgba(197, 210, 220, .07), transparent),
    repeating-linear-gradient(8deg, rgba(255,255,255,.03) 0 1px, transparent 1px 8px);
  background-size: 16px 16px, 220px 100%, 100% 18px;
  mix-blend-mode: screen;
}

.case-shell {
  width: min(1480px, 96vw);
  margin: 0 auto;
  padding: 22px 0 48px;
  position: relative;
}

.tray-state {
  margin: 22px 0;
  padding: clamp(14px, 2vw, 28px);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(46, 94, 136, .46), rgba(2, 7, 13, .92)),
    repeating-linear-gradient(90deg, rgba(197,210,220,.05) 0 2px, transparent 2px 12px);
  box-shadow: 0 34px 80px rgba(2, 7, 13, .72), inset 0 2px 2px rgba(197, 210, 220, .24), inset 0 -18px 26px rgba(2, 7, 13, .62);
  border: 1px solid rgba(197, 210, 220, .22);
}

.tray-open { min-height: calc(100vh - 44px); display: flex; flex-direction: column; }

.tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px 18px;
}

.micro-label {
  font-family: var(--mono);
  font-size: clamp(10px, .8vw, 13px);
  letter-spacing: .09em;
  color: var(--aqua);
  text-shadow: 0 0 12px rgba(69, 214, 197, .38);
}

.hinge-line { flex: 1; display: flex; gap: 8px; align-items: center; max-width: 520px; }
.hinge-line::before, .hinge-line::after { content: ""; flex: 1; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--black), var(--steel), var(--silver), var(--steel), var(--black)); box-shadow: inset 0 1px 2px var(--black); }
.hinge-line i { width: 22px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, var(--silver), var(--steel) 45%, var(--black)); box-shadow: 0 2px 8px rgba(0,0,0,.45); }

.bento-tray {
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr .8fr .8fr .9fr;
  grid-template-rows: minmax(230px, 1.2fr) minmax(160px, .72fr) minmax(155px, .62fr);
  gap: clamp(12px, 1.5vw, 22px);
}

.cell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(18px, 2vw, 30px);
  background:
    linear-gradient(145deg, rgba(197, 210, 220, .12), transparent 30%),
    linear-gradient(160deg, rgba(46, 94, 136, .68), rgba(7, 26, 51, .9) 48%, rgba(2, 7, 13, .94));
  box-shadow: inset 0 0 0 3px rgba(2, 7, 13, .68), inset 0 0 0 8px rgba(69, 214, 197, .09), inset 0 20px 24px rgba(197, 210, 220, .08), inset 0 -24px 26px rgba(2, 7, 13, .68), 0 16px 32px rgba(2, 7, 13, .48);
  border: 1px solid rgba(197, 210, 220, .28);
  transform-style: preserve-3d;
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

.cell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 19px;
  border: 2px solid rgba(69, 214, 197, .19);
  box-shadow: inset 0 0 18px rgba(2, 7, 13, .65);
  pointer-events: none;
}

.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 22%, rgba(255,255,255,.18) 28%, transparent 38% 100%),
    radial-gradient(circle at 20% 22%, rgba(255,255,255,.12), transparent 12%),
    radial-gradient(circle at 80% 76%, rgba(69,214,197,.10), transparent 18%);
  opacity: .52;
  pointer-events: none;
}

.interactive-cell:hover { transform: translateY(-4px) rotateX(1.5deg) rotateY(-1.5deg); box-shadow: inset 0 0 0 3px rgba(2,7,13,.7), inset 0 0 0 8px rgba(69,214,197,.18), 0 22px 42px rgba(2,7,13,.62), 0 0 28px rgba(69,214,197,.16); }

.hero-well { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, rgba(197,210,220,.17), rgba(69,214,197,.08) 28%, rgba(7,26,51,.84) 54%, rgba(2,7,13,.92)), repeating-linear-gradient(112deg, rgba(197,210,220,.07) 0 1px, transparent 1px 9px); }
.lure-tile h2, .side-compartment h2, .current-channel h2, .map-fragment h2, .section-title h2 { margin: 0 0 10px; font-family: var(--display); letter-spacing: .04em; font-size: clamp(34px, 4vw, 68px); color: var(--silver); text-shadow: 0 2px 0 var(--black), 0 -1px 0 rgba(255,255,255,.22); }
.cell p { position: relative; z-index: 2; margin: 0; line-height: 1.45; color: rgba(197, 210, 220, .86); font-size: clamp(14px, 1.25vw, 18px); }

.trace-border { position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: conic-gradient(from var(--angle, 0deg), var(--aqua), var(--coral), var(--silver), var(--aqua)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: traceSpin 3.8s linear infinite; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes traceSpin { to { --angle: 360deg; } }

.wordmark { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(6px, 1vw, 14px); margin: 18px 0; perspective: 900px; }
.wordmark span { display: grid; place-items: center; min-height: clamp(105px, 18vw, 220px); border-radius: 24px; font-family: var(--display); font-size: clamp(76px, 15vw, 190px); line-height: .8; color: var(--deep-navy); background: linear-gradient(150deg, var(--silver), var(--steel) 35%, #12385c 58%, var(--black)); text-shadow: 0 -2px 0 rgba(255,255,255,.38), 0 4px 0 rgba(2,7,13,.88), 0 14px 18px rgba(2,7,13,.6); box-shadow: inset 0 6px 6px rgba(255,255,255,.18), inset 0 -12px 14px rgba(2,7,13,.65), 0 10px 22px rgba(2,7,13,.5); animation: risePebble .9s cubic-bezier(.22,1,.36,1) both, bobFloat 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .08s); }
.wordmark span:nth-child(1) { --i: 1; } .wordmark span:nth-child(2) { --i: 2; } .wordmark span:nth-child(3) { --i: 3; } .wordmark span:nth-child(4) { --i: 4; } .wordmark span:nth-child(5) { --i: 5; } .wordmark span:nth-child(6) { --i: 6; }
@keyframes risePebble { from { transform: translateY(30px) rotateX(18deg); opacity: 0; } to { transform: translateY(0) rotateX(0); opacity: 1; } }
@keyframes bobFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.dock-note { width: min(560px, 88%); padding: 13px 16px; border-radius: 12px; background: rgba(244, 213, 154, .92); color: var(--deep-navy) !important; box-shadow: 0 10px 18px rgba(2,7,13,.4), inset 0 0 12px rgba(255,255,255,.22); transform: rotate(-1.3deg); }
.waterline { position: absolute; left: 24px; right: 24px; top: 34%; height: 2px; background: linear-gradient(90deg, transparent, var(--aqua), transparent); box-shadow: 0 0 20px var(--aqua); animation: tide 5s ease-in-out infinite; }
@keyframes tide { 50% { transform: translateY(15px); opacity: .55; } }

.latch { position: absolute; z-index: 3; top: 18px; width: 54px; height: 18px; border-radius: 5px; background: linear-gradient(180deg, var(--silver), var(--steel), var(--black)); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 5px 10px rgba(0,0,0,.4); animation: latchSnap .9s .6s both; }
.latch-left { left: 20px; transform-origin: left center; } .latch-right { right: 20px; transform-origin: right center; }
@keyframes latchSnap { from { rotate: 0deg; } to { rotate: -10deg; } }

.coral-tile { background: linear-gradient(150deg, rgba(255,111,89,.28), rgba(46,94,136,.78), rgba(2,7,13,.95)); }
.pebble-bin { background: linear-gradient(150deg, rgba(69,214,197,.17), rgba(46,94,136,.72), rgba(2,7,13,.95)); }
.screw { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--silver), var(--steel) 42%, var(--black) 78%); box-shadow: inset 0 -2px 3px rgba(0,0,0,.7); }
.s1 { top: 18px; right: 22px; } .s2 { bottom: 18px; left: 22px; }
.enamel-fish { position: relative; z-index: 2; width: 132px; height: 72px; margin: 14px auto; border-radius: 55% 45% 48% 52%; background: linear-gradient(90deg, var(--coral), #ff9b72); box-shadow: inset 0 4px rgba(255,255,255,.25), inset 0 -7px rgba(2,7,13,.25), 0 8px 18px rgba(2,7,13,.45); }
.enamel-fish::before { content: ""; position: absolute; right: -30px; top: 16px; border-left: 38px solid var(--coral); border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.enamel-fish span, .enamel-fish::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; background: var(--silver); opacity: .95; transform: skewX(-8deg); }
.enamel-fish span { left: 38px; } .enamel-fish::after { left: 72px; }

.pebble-row { display: flex; gap: 12px; margin: 10px 0 22px; }
.pebble-row b { width: 64px; height: 58px; display: grid; place-items: center; border-radius: 48% 52% 45% 55%; font-family: var(--display); font-size: 42px; color: var(--black); background: radial-gradient(circle at 30% 25%, var(--silver), var(--aqua) 35%, var(--steel) 74%); box-shadow: inset 0 5px rgba(255,255,255,.22), inset 0 -8px rgba(2,7,13,.38); }

.side-compartment { grid-row: span 2; background: linear-gradient(100deg, rgba(2,7,13,.95) 0 15px, rgba(46,94,136,.72) 15px, rgba(7,26,51,.94)); }
.hinge-plate { position: absolute; left: 0; top: 18%; bottom: 18%; width: 20px; background: linear-gradient(180deg, var(--silver), var(--steel), var(--silver)); box-shadow: inset -4px 0 6px rgba(2,7,13,.55); }
.vertical { position: absolute; left: -30px; top: 50%; rotate: -90deg; }
.paper-tag { position: relative; z-index: 2; margin: 44px 0 20px 12px; padding: 18px; border-radius: 8px; background: var(--sand); color: var(--deep-navy); transform: rotate(2deg); box-shadow: 0 12px 20px rgba(0,0,0,.36), inset 0 0 18px rgba(255,255,255,.28); font-weight: 900; }

.current-channel { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 20px; }
.channel-track { position: relative; height: 72px; border-radius: 999px; background: linear-gradient(90deg, rgba(2,7,13,.78), rgba(69,214,197,.16), rgba(2,7,13,.78)); box-shadow: inset 0 0 0 4px rgba(69,214,197,.22), inset 0 14px 18px rgba(2,7,13,.75); }
.channel-track i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--aqua); top: 28px; box-shadow: 0 0 18px var(--aqua); animation: bubbleRun 4s linear infinite; }
.channel-track i:nth-child(2) { animation-delay: -1s; width: 10px; height: 10px; } .channel-track i:nth-child(3) { animation-delay: -2.1s; background: var(--coral); } .channel-track i:nth-child(4) { animation-delay: -3.2s; width: 12px; height: 12px; }
@keyframes bubbleRun { from { left: 8%; opacity: 0; } 15% { opacity: 1; } to { left: 88%; opacity: 0; } }
.mono-readout { font-family: var(--mono); color: var(--aqua) !important; font-size: 12px !important; }

.map-fragment { background: linear-gradient(150deg, rgba(244,213,154,.22), rgba(46,94,136,.72), rgba(2,7,13,.95)); }
.reef-map { position: relative; z-index: 2; height: 110px; border-radius: 16px; background: var(--sand); box-shadow: inset 0 0 22px rgba(46,94,136,.34), 0 12px 24px rgba(2,7,13,.44); transform: rotate(-2deg); }
.reef-map span { position: absolute; border-radius: 50%; border: 3px solid var(--steel); opacity: .7; }
.reef-map span:nth-child(1) { width: 70px; height: 42px; left: 22px; top: 18px; } .reef-map span:nth-child(2) { width: 88px; height: 58px; right: 24px; bottom: 16px; } .reef-map span:nth-child(3) { width: 42px; height: 42px; left: 45%; top: 35%; border-color: var(--coral); }

.fish-shadow, .ambient-fish::before, .ambient-fish::after, .closing-fish, .tetra-streak { position: absolute; width: 58px; height: 24px; border-radius: 58% 42% 45% 55%; background: var(--coral); filter: drop-shadow(0 0 10px rgba(255,111,89,.35)); }
.fish-shadow::after, .ambient-fish::before, .ambient-fish::after, .closing-fish::after, .tetra-streak::after { content: ""; position: absolute; right: -15px; top: 4px; border-left: 18px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; color: inherit; }
.fish-one { z-index: 1; right: 12%; bottom: 18%; opacity: .45; animation: swimWell 8s ease-in-out infinite; }
@keyframes swimWell { 50% { transform: translateX(-220px) translateY(-55px) scale(.8); background: var(--aqua); } }
.ambient-fish { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.ambient-fish::before { content: ""; left: -80px; top: 24vh; opacity: .46; animation: ambientSwim 16s linear infinite; }
.ambient-fish::after { content: ""; left: -80px; top: 72vh; opacity: .36; background: var(--aqua); animation: ambientSwim 21s linear infinite -7s; }
@keyframes ambientSwim { to { transform: translateX(calc(100vw + 150px)) translateY(-40px); } }
.tetra-streak { width: 42px; height: 7px; right: 20%; top: 24px; background: var(--aqua); animation: dart 2.8s ease-in-out infinite; }
.t2 { top: auto; bottom: 28px; animation-delay: -1.3s; background: var(--coral); }
@keyframes dart { 50% { transform: translateX(-160px); opacity: .2; } }

.drawer-state { transform: translateY(40px); opacity: .35; transition: transform .7s ease, opacity .7s ease; }
.drawer-state.revealed { transform: translateY(0); opacity: 1; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.drawer-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.specimen-drawer { min-height: 112px; border: 0; border-radius: 18px; padding: 14px; color: var(--silver); text-align: left; cursor: pointer; background: linear-gradient(150deg, rgba(46,94,136,.86), rgba(2,7,13,.95)); box-shadow: inset 0 0 0 3px rgba(2,7,13,.65), inset 0 0 0 7px rgba(197,210,220,.1), 0 12px 20px rgba(2,7,13,.36); transition: transform .25s ease, box-shadow .25s ease; }
.specimen-drawer span { display: block; font-family: var(--mono); color: var(--aqua); margin-bottom: 18px; }
.specimen-drawer b { font-family: var(--display); font-size: 30px; letter-spacing: .04em; }
.specimen-drawer.active, .specimen-drawer:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 3px rgba(2,7,13,.65), inset 0 0 0 7px rgba(69,214,197,.25), 0 18px 26px rgba(2,7,13,.5), 0 0 20px rgba(69,214,197,.18); }
.specimen-display { margin-top: 16px; min-height: 84px; border-radius: 20px; padding: 22px; color: var(--deep-navy); background: linear-gradient(135deg, var(--sand), #ffe6ad); box-shadow: inset 0 0 18px rgba(255,255,255,.24), 0 14px 24px rgba(2,7,13,.42); font-size: clamp(18px, 2vw, 28px); font-weight: 900; }

.closing-plate { margin-bottom: 0; min-height: 54vh; display: grid; place-items: center; }
.metal-plate { position: relative; width: min(980px, 100%); padding: clamp(28px, 5vw, 74px); border-radius: 28px; text-align: center; overflow: hidden; background: linear-gradient(135deg, var(--silver), var(--steel) 38%, var(--deep-navy) 72%, var(--black)); box-shadow: inset 0 7px 8px rgba(255,255,255,.2), inset 0 -22px 28px rgba(2,7,13,.68), 0 36px 65px rgba(2,7,13,.58); }
.metal-plate::before { content: ""; position: absolute; inset: 10px; border: 3px solid rgba(69,214,197,.48); border-radius: 20px; box-shadow: 0 0 22px rgba(69,214,197,.22); }
.metal-plate h2 { margin: 12px 0; font-family: var(--display); font-size: clamp(72px, 13vw, 170px); letter-spacing: .04em; color: var(--deep-navy); text-shadow: 0 -2px 0 rgba(255,255,255,.42), 0 5px 0 rgba(2,7,13,.55); }
.metal-plate p { position: relative; z-index: 2; margin: 0 auto; max-width: 560px; color: var(--silver); font-size: 18px; }
.closing-fish { right: 14%; top: 22%; animation: closeSlip 5s ease-in-out infinite; }
@keyframes closeSlip { 50% { transform: translateX(-360px) rotate(-6deg); background: var(--coral); } }

.hover-note { position: fixed; z-index: 5; right: 22px; bottom: 20px; max-width: 340px; padding: 14px 16px; border-radius: 14px; background: rgba(2,7,13,.86); border: 1px solid rgba(69,214,197,.42); color: var(--sand); box-shadow: 0 12px 28px rgba(0,0,0,.45), inset 0 0 18px rgba(69,214,197,.08); font-family: var(--mono); font-size: 12px; transform: translateY(0); transition: opacity .25s ease, transform .25s ease; }

@media (max-width: 980px) {
  .bento-tray { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-well, .current-channel { grid-column: 1 / -1; }
  .side-compartment { grid-row: auto; }
  .current-channel { grid-template-columns: 1fr; }
  .drawer-strip { grid-template-columns: repeat(3, 1fr); }
  .tray-header, .section-title { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .case-shell { width: 94vw; padding-top: 8px; }
  .bento-tray, .drawer-strip { grid-template-columns: 1fr; }
  .wordmark { gap: 5px; }
  .wordmark span { border-radius: 14px; min-height: 82px; font-size: 58px; }
  .hover-note { left: 14px; right: 14px; }
}
