/* أعماق اللعب — a dive through the casino game catalogue, RTL (ar-JO). Hand-written, no framework. */
:root {
  --abyss: #04122B;
  --trench: #0B2447;
  --trench-2: #0F2E57;
  --pale: #E6F7F5;
  --mist: #A9CBD0;
  --teal: #2EE6C8;
  --teal-dim: rgba(46, 230, 200, .35);
  --coral: #FF7A9C;
  --coral-deep: #E85A80;
  --nacre: #FFF1F4;
  --ink: #04122B;
  --surface-1: #12577F;
  --surface-2: #0C3763;
  --display: 'Lalezar', 'Tajawal', system-ui, sans-serif;
  --body: 'Tajawal', system-ui, 'Segoe UI', sans-serif;
  --r-bubble: 34px 64px 40px 72px / 40px 52px 48px 60px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1.08rem, 1.02rem + .25vw, 1.17rem);
  line-height: 1.85;
  color: var(--pale);
  background: var(--abyss);
  overflow-x: hidden;
}
/* marine snow: two drifting particle layers, fixed behind everything */
body::before, body::after {
  content: ""; position: fixed; inset: -50% 0 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(230,247,245,.55), transparent 60%),
    radial-gradient(1px 1px at 63% 7%, rgba(230,247,245,.45), transparent 60%),
    radial-gradient(1.8px 1.8px at 38% 44%, rgba(46,230,200,.35), transparent 60%),
    radial-gradient(1px 1px at 84% 61%, rgba(230,247,245,.4), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 77%, rgba(230,247,245,.35), transparent 60%);
  background-size: 320px 420px;
  animation: snow 60s linear infinite;
}
body::after { background-size: 520px 610px; opacity: .6; animation-duration: 95s; }
@keyframes snow { to { transform: translateY(50%); } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pale); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4rem); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.12rem; line-height: 1.5; }
bdi[dir="ltr"] { unicode-bidi: isolate; }
p { margin: 0 0 1em; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--coral); color: var(--ink); padding: .6em 1em; border-radius: 99px; font-weight: 700; }
.skip:focus { top: 12px; }
.kicker { font-size: .92rem; font-weight: 700; color: var(--teal); margin-bottom: .9em; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--pale); max-width: 40em; }
.text-link { font-weight: 700; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .55rem var(--gutter);
  background: rgba(4, 18, 43, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 230, 200, .18);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--pale); text-decoration: none; margin-inline-end: auto; }
.brand-name { font-family: var(--display); font-size: 1.55rem; line-height: 1.2; }
.brand-name em { margin-inline-start: .25em; }
.brand-name em { font-style: normal; color: var(--teal); }
.logo-mark { flex: none; filter: drop-shadow(0 0 6px rgba(46,230,200,.35)); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .3rem; }
.menu a { display: block; padding: .45em .8em; border-radius: 99px; color: var(--pale); text-decoration: none; font-size: .98rem; }
.menu a:hover { background: rgba(46,230,200,.12); color: var(--teal); }
.menu a[aria-current="page"] { background: var(--teal); color: var(--ink); font-weight: 700; }
.menu-btn { display: none; }
@media (max-width: 899px) {
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
    font: 700 .95rem var(--body); color: var(--pale);
    background: var(--trench); border: 1px solid var(--teal-dim); border-radius: 99px; padding: .4em 1em; cursor: pointer;
  }
  .menu-lure { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
  .menu-btn[aria-expanded="true"] .menu-lure { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
  .menu { flex-basis: 100%; }
  .js .menu { display: none; }
  .js .menu.open { display: block; padding: .4rem 0 .8rem; }
  .js .menu.open ul { flex-direction: column; }
  .js .menu.open a { padding: .7em 1em; font-size: 1rem; }
  .menu:not(.open) ul { font-size: .9rem; }
}

/* ---------- home: surface ---------- */
.surface {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 860px);
  display: grid; align-items: end;
  padding: clamp(5rem, 14vh, 9rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
}
.surface-art { position: absolute; inset: 0; z-index: -2; }
.surface-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scaleX(-1); }
.surface::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(4,18,43,.88) 0%, rgba(4,18,43,.55) 42%, rgba(4,18,43,0) 75%), linear-gradient(0deg, var(--surface-2) 0%, transparent 30%); }
.surface-panel {
  max-width: 40rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: rgba(11, 36, 71, .84);
  border: 1px solid rgba(46,230,200,.28);
  border-radius: var(--r-bubble);
  box-shadow: 0 0 60px rgba(46,230,200,.12), inset 0 1px 0 rgba(230,247,245,.08);
}
.surface-panel h1 { color: var(--pale); text-shadow: 0 0 28px rgba(46,230,200,.35); }
.dive-cta {
  display: inline-flex; align-items: center; gap: .8em; margin-top: .4rem;
  padding-block: .85em; padding-inline: 1em 1.5em; min-height: 48px;
  background: var(--coral); color: var(--ink); font-weight: 700; text-decoration: none;
  border-radius: 99px; border-end-start-radius: 30px;
  box-shadow: 0 10px 30px rgba(255,122,156,.3);
  transition: transform .2s, box-shadow .2s;
}
.dive-cta:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 4px 18px rgba(255,122,156,.45); }
.dive-arrow { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); position: relative; }
.dive-arrow::after { content: ""; position: absolute; left: 9px; top: 7px; width: 9px; height: 9px; border-right: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral); transform: rotate(45deg); }
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bubbles i { position: absolute; bottom: -40px; width: var(--s, 12px); height: var(--s, 12px); border-radius: 50%; border: 1.5px solid rgba(230,247,245,.45); background: radial-gradient(circle at 30% 30%, rgba(230,247,245,.35), transparent 60%); animation: rise var(--t, 14s) linear infinite; animation-delay: var(--d, 0s); left: var(--x, 50%); }
.bubbles i:nth-child(1) { --x: 8%; --s: 10px; --t: 13s; }
.bubbles i:nth-child(2) { --x: 22%; --s: 18px; --t: 17s; --d: -6s; }
.bubbles i:nth-child(3) { --x: 35%; --s: 8px; --t: 11s; --d: -3s; }
.bubbles i:nth-child(4) { --x: 51%; --s: 14px; --t: 19s; --d: -9s; }
.bubbles i:nth-child(5) { --x: 63%; --s: 22px; --t: 21s; --d: -2s; }
.bubbles i:nth-child(6) { --x: 72%; --s: 9px; --t: 12s; --d: -7s; }
.bubbles i:nth-child(7) { --x: 81%; --s: 16px; --t: 16s; --d: -11s; }
.bubbles i:nth-child(8) { --x: 90%; --s: 11px; --t: 14s; --d: -4s; }
.bubbles i:nth-child(9) { --x: 96%; --s: 7px; --t: 10s; --d: -8s; }
@keyframes rise { to { transform: translate3d(14px, -110vh, 0); opacity: 0; } }

/* ---------- home: shallows (answer + buoys) ---------- */
.shallows {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  background: linear-gradient(180deg, var(--surface-2), #0B2F5A);
  display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr);
  max-width: none;
}
.shallows > * { width: min(100%, 1080px); margin-inline: auto; }
.answer-bubble {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--trench);
  border-radius: var(--r-bubble);
  border: 1px solid rgba(46,230,200,.25);
  position: relative;
}
.answer-bubble h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: var(--teal); }
.answer-bubble p { font-size: 1.1rem; margin: 0; max-width: 46em; }
.buoys { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.buoys li {
  position: relative; padding-block: 1.4rem 1.2rem; padding-inline: 4.4rem 1.3rem;
  background: rgba(11,36,71,.9); border-radius: 26px 60px 26px 60px;
  border: 1px solid rgba(255,122,156,.3);
  display: grid;
}
.buoys li::before { content: ""; position: absolute; inset-inline-start: 1.1rem; top: 1.3rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd0dc, var(--coral) 45%, var(--coral-deep)); box-shadow: 0 0 0 4px rgba(255,122,156,.18); }
.buoys li::after { content: ""; position: absolute; inset-inline-start: 2.2rem; top: 3.6rem; bottom: 1rem; width: 2px; background: linear-gradient(var(--coral), transparent); opacity: .6; }
.buoy-value { font-family: var(--display); font-size: 1.8rem; line-height: 1.3; color: var(--pale); order: 2; }
.buoy-label { font-size: .92rem; font-weight: 700; color: var(--coral); order: 1; }
.buoy-note { font-size: .92rem; color: var(--mist); order: 3; margin-top: .3rem; }

/* ---------- home: depth zones ---------- */
.zone { position: relative; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.zone-in { width: min(100%, 1080px); margin-inline: auto; }
.z-sunlit { background: linear-gradient(180deg, #0B2F5A, #0A2550); }
.z-twilight { background: linear-gradient(180deg, #0A2550, #071B3D); }
.z-abyss { background: linear-gradient(180deg, #071B3D, #050F27 85%); }
.z-sonar { background: linear-gradient(180deg, #050F27, var(--abyss)); padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.z-oyster { background: var(--abyss); padding: clamp(2rem, 6vw, 4rem) var(--gutter); }
.z-trench { background: linear-gradient(180deg, var(--abyss), #020A1A); }
.depth-tag { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .3em .8em; margin-bottom: .8rem; padding: .3em 1em; border-radius: 99px; background: rgba(46,230,200,.1); border: 1px solid var(--teal-dim); }
.depth-name { font-family: var(--display); font-size: 1.2rem; color: var(--teal); }
.depth-range { font-size: .88rem; color: var(--mist); }
.zone h2 { max-width: 18em; }
.z-twilight h2 { text-shadow: 0 0 22px rgba(255,122,156,.25); }
.zone-band { margin: 1.4rem 0 2rem; position: relative; border-radius: 120px 40px 140px 30px / 60px 40px 70px 30px; overflow: hidden; box-shadow: 0 0 0 1px rgba(46,230,200,.2), 0 20px 60px rgba(0,0,0,.4); }
.zone-band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.z-abyss .zone-band { border-radius: 30px 140px 40px 120px / 30px 70px 40px 60px; }
.zone-flow { display: grid; gap: 1.2rem; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; align-items: start; }
.zone-flow > * { grid-column: 1 / -1; margin: 0; }
@media (min-width: 860px) {
  .zone-flow > .b-p { grid-column: 1 / span 7; }
  .zone-flow > .b-ul { grid-column: 8 / -1; grid-row: span 2; }
  .zone-flow > .b-tip { grid-column: 1 / span 7; }
  .zone-flow > .b-example { grid-column: 2 / span 6; }
  .zone-flow > .b-table { grid-column: 1 / -1; }
  .z-twilight .zone-flow > .b-p { grid-column: 6 / -1; }
  .z-twilight .zone-flow > .b-example { grid-column: 1 / span 5; grid-row: span 2; }
}
.zone-flow > .b-p { background: rgba(11,36,71,.86); padding: 1.3rem 1.5rem; border-radius: 28px 46px 28px 46px; border: 1px solid rgba(230,247,245,.08); }

/* ---------- blocks (shared) ---------- */
.coral-list { list-style: none; padding-block: 1.3rem; padding-inline: 1.2rem 1.4rem; margin: 0 0 1.2rem; background: linear-gradient(160deg, rgba(255,122,156,.16), rgba(11,36,71,.95) 55%); border-radius: 50px 24px 60px 24px; border: 1px solid rgba(255,122,156,.35); }
.coral-list li { position: relative; padding-inline-start: 1.6rem; margin-bottom: .6rem; }
.coral-list li:last-child { margin-bottom: 0; }
.coral-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: .7rem; height: .7rem; border-radius: 50% 50% 0 50%; background: var(--coral); transform: rotate(45deg); }
.b-ol { padding-inline-start: 1.4rem; }
.b-tip { position: relative; padding-block: 1.4rem 1.2rem; padding-inline: 4.2rem 1.4rem; margin: 0 0 1.2rem; background: rgba(46,230,200,.08); border: 1px solid var(--teal-dim); border-radius: 60px 28px 60px 28px; box-shadow: 0 0 40px rgba(46,230,200,.08); }
.b-tip p:last-child { margin: 0; }
.b-tip-t { font-weight: 700; color: var(--teal); margin-bottom: .3em; }
.jelly { position: absolute; inset-inline-start: 1.1rem; top: 1.2rem; width: 2.2rem; height: 1.6rem; border-radius: 50% 50% 18% 18% / 80% 80% 20% 20%; background: radial-gradient(circle at 50% 30%, rgba(230,247,245,.9), var(--teal) 50%, rgba(46,230,200,.4)); box-shadow: 0 0 18px var(--teal); animation: bob 6s ease-in-out infinite; }
.jelly::after { content: ""; position: absolute; left: 20%; right: 20%; top: 100%; height: 1.3rem; background: repeating-linear-gradient(90deg, rgba(46,230,200,.75) 0 2px, transparent 2px 6px); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
@keyframes bob { 50% { transform: translateY(-5px); } }
.b-example { padding: 1.3rem 1.5rem; margin: 0 0 1.2rem; background: var(--trench); border-radius: 22px; border: 1px dashed rgba(255,122,156,.6); }
.b-example p:last-child { margin: 0; }
.b-ex-t { font-weight: 700; color: var(--coral); margin-bottom: .3em; }
.b-table { overflow-x: auto; margin: 0 0 1.2rem; border-radius: 24px; background: var(--trench); border: 1px solid rgba(46,230,200,.2); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
caption { text-align: start; padding: 1rem 1.2rem .4rem; font-weight: 700; color: var(--teal); }
th, td { padding: .7rem 1.2rem; text-align: start; vertical-align: top; border-top: 1px solid rgba(230,247,245,.1); }
thead th { font-size: .88rem; color: var(--mist); border-top: 0; }
tbody th { color: var(--pale); font-weight: 700; }
tbody tr:hover { background: rgba(46,230,200,.05); }
.b-steps { list-style: none; padding: 0; margin: 0 0 1.2rem; counter-reset: st; position: relative; }
.b-steps::before { content: ""; position: absolute; inset-inline-start: 19px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--teal), var(--coral)); opacity: .5; }
.b-steps li { position: relative; padding-block: 0 1.1rem; padding-inline: 3.4rem 0; counter-increment: st; }
.step-buoy { position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--trench); border: 2px solid var(--teal); display: grid; place-items: center; }
.step-buoy::before { content: counter(st); font-weight: 700; color: var(--teal); }
.b-steps h3 { margin: .45rem 0 .2rem; }
.b-steps p { margin: 0; color: var(--pale); }

/* glowing words */
.lume { color: var(--teal); text-decoration: none; border-bottom: 1px dotted var(--teal); text-shadow: 0 0 12px rgba(46,230,200,.55); border-radius: 2px; transition: text-shadow .3s, color .3s; }
.lume:hover, .lume:focus-visible { color: var(--pale); text-shadow: 0 0 16px var(--teal), 0 0 4px var(--teal); }

/* ---------- sonar ---------- */
.sonar-station { width: min(100%, 1080px); margin-inline: auto; }
.station-head { max-width: 46rem; margin-bottom: 1.6rem; }
.station-head .b-tip { margin-top: 1rem; }
.sonar { display: grid; gap: 2rem; align-items: center; margin-bottom: 2rem; }
@media (min-width: 900px) { .sonar { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.sonar-scope { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin-inline: auto; }
.sonar-screen {
  position: absolute; inset: 12%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, #0A2C4A 0%, #061A33 62%, #031026 100%);
  box-shadow: 0 0 0 2px rgba(46,230,200,.5), 0 0 0 12px rgba(11,36,71,.9), 0 0 0 13px rgba(46,230,200,.25), 0 0 70px rgba(46,230,200,.25), inset 0 0 50px rgba(0,0,0,.6);
}
.ring { position: absolute; inset: var(--i); border-radius: 50%; border: 1px solid rgba(46,230,200,.22); }
.r1 { --i: 16%; } .r2 { --i: 32%; } .r3 { --i: 44%; }
.cross { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - .5px), rgba(46,230,200,.18) 50%, transparent calc(50% + .5px)), linear-gradient(0deg, transparent calc(50% - .5px), rgba(46,230,200,.18) 50%, transparent calc(50% + .5px)); }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(46,230,200,.55), rgba(46,230,200,.08) 50deg, transparent 80deg); animation: sweep 5s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.sonar-lumi { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); border-radius: 50%; opacity: .92; -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%); mask: radial-gradient(circle, #000 55%, transparent 72%); }
.ping-pulse { position: absolute; left: var(--px, 50%); top: var(--py, 50%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; opacity: 0; }
.sonar.pinging .ping-pulse { animation: ping 1.4s ease-out; }
@keyframes ping { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,230,200,.9), 0 0 0 0 rgba(255,122,156,.6); } 100% { opacity: 0; box-shadow: 0 0 0 90px rgba(46,230,200,0), 0 0 0 150px rgba(255,122,156,0); } }
.sonar-words { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.sonar-words li { position: absolute; left: calc(50% + cos(var(--a)) * var(--r) * 46%); top: calc(50% + sin(var(--a)) * var(--r) * 46%); transform: translate(-50%, -50%); }
.sonar-words button {
  font: 700 .92rem var(--body); color: var(--teal); white-space: nowrap; cursor: pointer;
  padding: .35em .75em; min-height: 32px; border-radius: 99px;
  background: rgba(4,18,43,.82); border: 1px solid var(--teal-dim);
  text-shadow: 0 0 10px rgba(46,230,200,.6);
  transition: background .2s, color .2s, transform .2s;
  animation: drift 7s ease-in-out infinite; animation-delay: calc(var(--a) / 90deg * -1s);
}
@keyframes drift { 50% { transform: translateY(-4px); } }
.sonar-words button:hover { background: var(--trench); color: var(--pale); }
.sonar-words button[aria-pressed="true"] { background: var(--coral); color: var(--ink); text-shadow: none; border-color: var(--coral); }
.sonar-form label { display: block; font-weight: 700; margin-bottom: .4rem; }
.sonar-field { display: flex; flex-wrap: wrap; gap: .5rem; }
.sonar-field input { flex: 1 1 12rem; min-width: 0; min-height: 48px; font: inherit; color: var(--pale); background: var(--trench); border: 1px solid var(--teal-dim); border-radius: 99px; padding: .5em 1.1em; }
.sonar-field input::placeholder { color: #8FB3B8; }
.sonar-field input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sonar-field button { min-height: 48px; font: 700 .95rem var(--body); color: var(--ink); background: var(--teal); border: 0; border-radius: 99px; padding: .5em 1.2em; cursor: pointer; }
.sonar-field button:hover { background: var(--pale); }
.sonar-panel { margin-top: 1.2rem; min-height: 11rem; padding: 1.4rem 1.5rem; background: var(--trench); border-radius: var(--r-bubble); border: 1px solid rgba(46,230,200,.3); }
.sonar-panel.rise { animation: rise-panel .6s cubic-bezier(.2,.8,.2,1); }
@keyframes rise-panel { from { transform: translateY(40px); opacity: 0; } }
.panel-idle { color: var(--mist); margin: 0; }
.panel-term { font-family: var(--display); font-size: 2rem; color: var(--teal); margin: 0 0 .3rem; line-height: 1.35; }
.panel-en { font: 700 .95rem var(--body); color: var(--mist); margin: -.2rem 0 .6rem; text-align: end; }
.panel-def { margin: 0 0 .8rem; }
.zone-chip { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--ink); background: var(--coral); padding: .15em .7em; border-radius: 99px; white-space: nowrap; }
.gloss-all { background: rgba(11,36,71,.6); border-radius: 28px; border: 1px solid rgba(230,247,245,.1); }
.gloss-all summary { cursor: pointer; padding: 1rem 1.4rem; font-weight: 700; color: var(--pale); list-style-position: inside; }
.gloss-all summary span { color: var(--mist); font-weight: 400; }
.gloss { margin: 0; padding: 0 1.4rem 1.2rem; columns: 2 22rem; column-gap: 2rem; }
.gloss-item { break-inside: avoid; padding: .8rem 0; border-top: 1px solid rgba(230,247,245,.08); scroll-margin-top: 90px; }
.gloss-item:target { background: rgba(46,230,200,.08); }
.gloss dt { font-weight: 700; color: var(--teal); }
.gloss dt .en { font-weight: 500; font-size: .85em; color: var(--mist); margin-inline-start: .4em; }
.gloss dd { margin: .2rem 0 0; font-size: .95rem; }

/* ---------- oyster promo ---------- */
.oyster { position: relative; margin: 2rem auto 0; max-width: 920px; padding-top: 96px; }
.oyster-lid {
  position: absolute; left: 6%; right: 6%; top: 0; height: 170px; z-index: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    repeating-conic-gradient(from 270deg at 50% 100%, rgba(255,255,255,.14) 0 4deg, transparent 4deg 12deg),
    radial-gradient(ellipse at 50% 100%, #FFB3C6, var(--coral) 40%, var(--coral-deep) 75%);
  transform-origin: 50% 100%; transform: perspective(700px) rotateX(22deg);
  box-shadow: 0 -10px 40px rgba(255,122,156,.25);
}
.oyster-body {
  position: relative; z-index: 1;
  display: grid; gap: 1.2rem; align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 40px 40px 50% 50% / 40px 40px 26% 26%;
  background: linear-gradient(135deg, #FFE3EA, var(--nacre) 35%, #E5FBF7 65%, #FFE8EE);
  color: var(--ink);
  box-shadow: 0 0 0 6px var(--coral), 0 0 0 7px rgba(255,255,255,.4), 0 30px 80px rgba(255,122,156,.25);
}
@media (min-width: 760px) { .oyster-body { grid-template-columns: 280px 1fr; padding-bottom: 3.5rem; } }
.oyster-pearl img { width: min(280px, 70vw); margin-inline: auto; border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 40px rgba(46,230,200,.55); }
.oyster-who { font-size: .92rem; font-weight: 700; color: #8A1E3F; margin-bottom: .3rem; }
.oyster-code { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.35; color: var(--ink); margin-bottom: .6rem; }
.oyster-code strong { font-weight: 400; color: #0A5E57; }
.oyster-txt { color: #1D2B44; max-width: 32em; }
.bubble-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: .8em 1.6em; border-radius: 99px; text-decoration: none; font-weight: 700;
  color: var(--ink);
  background: radial-gradient(circle at 30% 25%, #fff 0, #B8FFF2 18%, var(--teal) 60%, #16B89E);
  box-shadow: inset 0 -4px 10px rgba(4,18,43,.2), 0 8px 24px rgba(46,230,200,.4);
  transition: transform .25s;
}
.bubble-cta:hover { color: var(--ink); transform: translateY(-4px); }
.bubble-cta:focus-visible { outline-color: var(--ink); }
.oyster-fine { margin: .9rem 0 0; font-size: .88rem; color: #33405A; font-weight: 700; }

/* ---------- fosse: caves ---------- */
.caves-wrap { position: relative; margin: 2rem 0 3rem; padding: clamp(1rem, 3vw, 2rem); border-radius: 40px; overflow: hidden; background: #020A1A; }
.caves-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.caves { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); position: relative; }
.cave a {
  display: flex; flex-direction: column; height: 100%;
  padding: 0 0 1.3rem; text-decoration: none; color: var(--pale);
  background: rgba(11,36,71,.95);
  border-radius: 50% 50% 26px 26px / 130px 130px 26px 26px;
  border: 1px solid var(--teal-dim);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.cave a:hover { transform: translateY(-6px); box-shadow: 0 0 40px rgba(46,230,200,.25); color: var(--pale); }
.cave-mouth { display: block; height: 130px; background-image: image-set(url(../img/guide-caves-800.webp) 1x, url(../img/guide-caves-1600.webp) 2x); background-size: 300% auto; background-position: var(--pos) 55%; -webkit-mask: radial-gradient(ellipse 60% 100% at 50% 100%, #000 60%, transparent 62%); mask: radial-gradient(ellipse 60% 100% at 50% 100%, #000 60%, transparent 62%); }
.cave-label, .cave-title, .cave-go { padding-inline: 1.3rem; }
.cave-label { margin-top: .8rem; font-size: .9rem; font-weight: 700; color: var(--coral); }
.cave-title { font-family: var(--display); font-size: 1.35rem; line-height: 1.45; margin: .3rem 0 .9rem; }
.cave-go { margin-top: auto; font-weight: 700; color: var(--teal); }

/* ---------- faq bubbles ---------- */
.faq { margin-top: 2rem; }
.faq-bubble { margin-bottom: .8rem; background: var(--trench); border-radius: 28px; border-end-start-radius: 8px; border: 1px solid rgba(230,247,245,.1); }
.faq-bubble summary { cursor: pointer; padding-block: 1rem; padding-inline: 1.3rem 3rem; font-weight: 700; position: relative; list-style: none; }
.faq-bubble summary::-webkit-details-marker { display: none; }
.faq-bubble summary::after { content: ""; position: absolute; inset-inline-end: 1.2rem; top: 1.25rem; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--teal); background: radial-gradient(circle at 35% 35%, rgba(230,247,245,.5), transparent 55%); transition: transform .3s; }
.faq-bubble[open] summary::after { transform: scale(1.25); border-color: var(--coral); }
.faq-bubble p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--pale); }

/* ---------- ascent ---------- */
.ascent { padding: clamp(3rem, 8vw, 6rem) var(--gutter); background: linear-gradient(180deg, #020A1A, #0B2F5A 70%, var(--surface-1)); }
.ascent .zone-in { display: grid; gap: 2rem; }
@media (min-width: 760px) { .ascent .zone-in { grid-template-columns: 140px 1fr; } }
.ascent .b-p { max-width: 44em; }
.deco-stop { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--teal); display: grid; place-content: center; text-align: center; background: rgba(4,18,43,.7); box-shadow: 0 0 30px rgba(46,230,200,.3); }
.deco-stop span { font-size: .9rem; color: var(--mist); }
.deco-stop b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--teal); }

/* ---------- depth rail (home) ---------- */
.depth-rail { position: fixed; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); z-index: 20; }
.depth-rail ol { list-style: none; margin: 0; padding: .4rem 0; position: relative; }
.depth-rail ol::before { content: ""; position: absolute; inset-inline-end: 9px; top: 0; bottom: 0; width: 2px; background: linear-gradient(#5FB8D6, var(--teal) 50%, var(--coral)); opacity: .5; border-radius: 2px; }
.depth-rail li { margin: .55rem 0; }
.depth-rail a { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; text-decoration: none; color: var(--mist); font-size: .88rem; min-height: 24px; }
.depth-rail a::after { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--abyss); border: 2px solid var(--teal-dim); transition: all .3s; }
.depth-rail a span { opacity: 0; transform: translateX(-6px); transition: all .25s; background: rgba(4,18,43,.92); padding: .15em .6em; border-radius: 99px; white-space: nowrap; }
.depth-rail a:hover span, .depth-rail a:focus-visible span, .depth-rail a.on span { opacity: 1; transform: none; }
.depth-rail a.on { color: var(--pale); }
.depth-rail a.on::after { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 14px var(--teal); }
.rail-read { margin: 0 0 .4rem; text-align: end; font-family: var(--display); font-size: 1.1rem; color: var(--teal); line-height: 1.1; background: rgba(4,18,43,.85); padding: .3rem .6rem; border-radius: 14px; }
.rail-read small { display: block; font-family: var(--body); font-size: .72rem; color: var(--mist); }
@media (max-width: 899px) {
  .depth-rail { top: auto; bottom: 12px; inset-inline-end: 12px; transform: none; }
  .depth-rail ol { display: none; }
  .rail-read { margin: 0; box-shadow: 0 0 0 1px var(--teal-dim); }
}
@media (min-width: 900px) { .p-home main { padding-inline-end: 0; } .p-home .zone-in, .p-home .shallows > * { width: min(100% - 120px, 1080px); } }

/* ---------- guide pages ---------- */
.cave-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(6rem, 18vw, 12rem) var(--gutter) clamp(2rem, 5vw, 3rem); background: #020A1A; }
.cave-hero-art { position: absolute; inset: 0; z-index: -2; }
.cave-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos) 50%; }
.cave-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--abyss) 4%, rgba(4,18,43,.55) 60%, rgba(4,18,43,.25)); }
.cave-hero-panel { width: min(100%, 1080px); margin-inline: auto; }
.cave-hero-panel > * { max-width: 46rem; }
.cave-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.3rem); }
.cave-hero-panel { padding: clamp(1.3rem, 3vw, 2.2rem); background: rgba(11,36,71,.86); border-radius: var(--r-bubble); border: 1px solid rgba(46,230,200,.25); max-width: 52rem; margin-inline-start: max(0px, calc((100% - 1080px) / 2)); }
.crumbs { font-size: .85rem; color: var(--mist); }
.crumbs a { color: var(--teal); }
.dive-layout { width: min(100% - 2 * var(--gutter), 1080px); margin: clamp(2rem, 5vw, 3.5rem) auto; display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .dive-layout { grid-template-columns: 230px minmax(0, 1fr); } }
.descent-line { align-self: start; }
@media (min-width: 960px) { .descent-line { position: sticky; top: 90px; } }
.descent-t { font-family: var(--display); font-size: 1.2rem; color: var(--teal); margin-bottom: .6rem; }
.descent-line ol { list-style: none; margin: 0; padding: 0; padding-inline-start: 1.4rem; position: relative; }
.descent-line ol::before { content: ""; position: absolute; inset-inline-start: 5px; top: 4px; bottom: 4px; width: 2px; background: repeating-linear-gradient(var(--teal) 0 6px, transparent 6px 10px); opacity: .6; }
.descent-line li { position: relative; margin-bottom: .55rem; font-size: .98rem; line-height: 1.55; }
.descent-line li::before { content: ""; position: absolute; inset-inline-start: -1.4rem; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--abyss); border: 2px solid var(--teal); }
.descent-line a { color: var(--mist); text-decoration: none; }
.descent-line a:hover, .descent-line a.on { color: var(--pale); }
.descent-line li:has(a.on)::before { background: var(--coral); border-color: var(--coral); }
@media (max-width: 959px) { .descent-line { background: var(--trench); border-radius: 28px; padding: 1.2rem 1.4rem; } }
.dive-body { min-width: 0; }
.pearl-answer { position: relative; padding-block: 1.5rem 1.4rem; padding-inline: 5rem 1.6rem; margin-bottom: 2.5rem; background: linear-gradient(135deg, rgba(46,230,200,.14), var(--trench) 60%); border-radius: var(--r-bubble); border: 1px solid var(--teal-dim); }
.pearl-answer::before { content: ""; position: absolute; inset-inline-start: 1.3rem; top: 1.5rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #B8FFF2 30%, var(--teal) 70%); box-shadow: 0 0 24px var(--teal); }
.pearl-t { font-weight: 700; font-size: .95rem; color: var(--teal); margin-bottom: .3rem; }
.pearl-answer p:last-child { margin: 0; font-size: 1.08rem; }
.dive-sec { margin-bottom: 3rem; scroll-margin-top: 90px; }
.dive-sec h2 { display: flex; gap: .7rem; align-items: baseline; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.sec-buoy { flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,122,156,.2); transform: translateY(-.05em); }
.dive-sec > .b-p { max-width: 42em; }
.has-promo .oyster { margin-top: 1rem; }
.faq-guide { margin-bottom: 3rem; }
.faq-guide h2, .more-caves h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.more-caves .caves { margin-bottom: 1.5rem; }

/* ---------- station pages (partner, about, responsible, privacy) ---------- */
.station-hero { width: min(100% - 2 * var(--gutter), 980px); margin: clamp(2rem, 6vw, 4rem) auto 2rem; display: grid; gap: 1.5rem; align-items: center; }
.p-about .station-hero { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .p-about .station-hero { grid-template-columns: 220px 1fr; } }
.station-mascot img { width: 220px; max-width: 60vw; border-radius: 50%; box-shadow: 0 0 0 3px var(--teal-dim), 0 0 60px rgba(46,230,200,.3); }
.station-hero-panel { padding: clamp(1.4rem, 3vw, 2.4rem); background: var(--trench); border-radius: var(--r-bubble); border: 1px solid rgba(46,230,200,.22); }
.station-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.station-body { width: min(100% - 2 * var(--gutter), 980px); margin: 0 auto 4rem; }
.station-sec { margin-bottom: 2.5rem; padding-inline-start: clamp(0rem, 3vw, 2rem); border-inline-start: 2px solid rgba(46,230,200,.18); }
.station-sec h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.station-sec > .b-p { max-width: 44em; }
.stop-mark { display: inline-block; margin-bottom: .6rem; padding: .2em .9em; border-radius: 99px; background: rgba(46,230,200,.12); color: var(--teal); font-weight: 700; font-size: .9rem; }
.p-responsible-gaming .station-sec { border-inline-start-style: dashed; }

/* ---------- glossary page ---------- */
.gloss-page { width: min(100% - 2 * var(--gutter), 1080px); margin: clamp(2rem, 6vw, 4rem) auto; }
.gloss-page > h1 { max-width: 16em; margin-bottom: 2rem; }
.gloss-zones { margin-top: 3rem; }
.zone-cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.zone-card { padding: 1.4rem; border-radius: 30px 60px 30px 60px; background: var(--trench); border: 1px solid rgba(46,230,200,.2); }
.zc-1 { background: linear-gradient(170deg, #12577F, var(--trench) 60%); }
.zc-2 { background: linear-gradient(170deg, #0D3768, var(--trench) 60%); }
.zc-3 { background: linear-gradient(170deg, #071B3D, #050F27); }
.zone-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--teal); }

/* ---------- 404 ---------- */
.lost { width: min(100% - 2 * var(--gutter), 720px); margin: clamp(2rem, 8vw, 5rem) auto; text-align: center; }
.lost-lumi { width: 260px; margin: 0 auto 1rem; border-radius: 50%; box-shadow: 0 0 80px rgba(46,230,200,.3); }
.lost .lead { margin-inline: auto; }
.lost-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.lost-links a { display: inline-block; padding: .7em 1.3em; border-radius: 99px; background: var(--trench); border: 1px solid var(--teal-dim); text-decoration: none; font-weight: 700; }

/* ---------- footer: the sea floor ---------- */
.site-foot { position: relative; background: #020A1A; color: var(--mist); font-size: .92rem; }
.foot-floor { height: 46px; background: radial-gradient(ellipse 40px 28px at 10% 100%, #0B2447 98%, transparent), radial-gradient(ellipse 70px 34px at 32% 100%, #0B2447 98%, transparent), radial-gradient(ellipse 50px 24px at 58% 100%, #0B2447 98%, transparent), radial-gradient(ellipse 90px 40px at 86% 100%, #0B2447 98%, transparent); }
.foot-in { background: #0B2447; padding: 1.5rem var(--gutter) 2.5rem; }
.foot-in > * { max-width: 62rem; margin-inline: auto; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.4rem; color: var(--pale); }
.foot-age { color: var(--pale); }
.age-badge { display: inline-block; margin-inline-end: .4rem; padding: .05em .55em; border-radius: 99px; background: var(--coral); color: var(--ink); font-weight: 700; }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot-links a { color: var(--teal); }
.foot-mail { color: var(--pale); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bubbles { display: none; }
  .sweep { background: conic-gradient(from 40deg, rgba(46,230,200,.4), rgba(46,230,200,.06) 50deg, transparent 80deg); }
}
@media (max-width: 560px) {
  .sonar-scope { aspect-ratio: auto; width: 100%; }
  .sonar-screen { position: relative; inset: auto; width: min(72vw, 260px); aspect-ratio: 1; margin: 0 auto 1.4rem; }
  .sonar-words { position: static; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
  .sonar-words li { position: static; transform: none; left: auto !important; top: auto !important; }
  .sonar-words button { animation: none; min-height: 40px; }
}
