@font-face {
  font-family: Bitter;
  src: url("fonts/Bitter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #10171c;
  --surface: #19232b;
  --paper: #f9efdd;
  --gold: #ffca78;
  --muted: #bdc5c6;
  --rule: #37454c;
  --display: Bitter, Georgia, "Songti SC", "Songti TC", "Noto Serif CJK SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "PingFang TC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(1.15rem, 5.5vw, 5rem);
  background: var(--night);
  color: var(--paper);
  font: 100%/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.13; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(78rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: absolute; top: .7rem; left: var(--gutter); z-index: 10; padding: .55rem 1rem; background: var(--gold); color: var(--night); transform: translateY(-170%); }
.skip-link:focus { transform: none; }
.mast { position: relative; z-index: 3; border-bottom: 1px solid #ffffff18; background: #10171c; }
.mast-inner, .brand, .main-nav, .language summary { display: flex; align-items: center; }
.mast-inner { min-height: 4.5rem; justify-content: space-between; gap: 1rem; }
.brand { gap: .55rem; font: 600 1.65rem/1 var(--display); letter-spacing: -.06em; }
.brand img { width: 1.95rem; height: 1.95rem; object-fit: contain; }
.main-nav { gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .9375rem; font-weight: 550; }
.section-link, .language summary, .get-app { min-height: 44px; display: inline-flex; align-items: center; }
.section-link { color: #dce0dd; }
.language { position: relative; }
.language summary { gap: .42rem; cursor: pointer; list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.chevron { width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.language[open] .chevron { transform: translateY(1px) rotate(225deg); }
.language-list { position: absolute; z-index: 4; top: 100%; right: -.5rem; width: 10rem; padding: .35rem; border: 1px solid var(--rule); border-radius: .5rem; background: #1c2831; box-shadow: 0 .7rem 1.6rem #0006; }
.language-list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: .45rem .7rem; border-radius: .25rem; }
.language-list a[aria-current] { color: var(--gold); }
.language-list a[aria-current]::after { content: ""; width: .5rem; height: .26rem; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.get-app { padding: .45rem 1.05rem; background: var(--gold); color: #302311; border-radius: .4rem; font-weight: 650; }
.collection { background: radial-gradient(ellipse at 84% 23%, #1c2e38 0, transparent 61%), var(--night); }
.hero-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  grid-template-areas: "intro exhibit" "stores exhibit" "picker exhibit";
  grid-template-rows: 1fr auto 1fr;
  align-content: center; column-gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(1.8rem, 3.5vw, 3.4rem);
}
.introduction { grid-area: intro; align-self: end; }
.display { font-size: clamp(3.05rem, 5.15vw, 4.95rem); line-height: 1.055; letter-spacing: -.058em; }
.display span { display: block; }
.introduction .display span + span { color: var(--gold); }
.intro { max-width: 30rem; margin-top: 1.25rem; color: #c8ced0; font-size: clamp(1.03rem, 1.35vw, 1.2rem); line-height: 1.6; }
.hero-stores { grid-area: stores; align-self: start; margin-top: 1.55rem; }
.store-links { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.store { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.15rem; padding: .35rem .85rem; color: var(--paper); background: #141e25; border: 1px solid #657176; border-radius: .45rem; white-space: nowrap; }
.store svg { flex: none; width: 1.4rem; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: .75rem; }
.store strong { font-size: 1.07rem; font-weight: 620; }
.picker { grid-area: picker; align-self: start; min-width: 0; padding: 0; border: 0; margin: clamp(1.6rem, 3vw, 2.5rem) 0 0; }
.picker legend { padding: 0; font: 550 .875rem/1.4 var(--sans); color: var(--muted); margin-bottom: .65rem; }
.choices { display: grid; grid-template-columns: .92fr 1.13fr 1fr; gap: .4rem; }
.choice { position: relative; display: grid; align-content: center; min-height: 3.65rem; padding: .48rem clamp(.45rem, .9vw, .85rem); border: 1px solid var(--rule); border-radius: .46rem; background: #172127; cursor: pointer; }
.choice-input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.choice:has(:checked) { border-color: #bf9a64; background: #2b2b25; box-shadow: inset 0 -2px var(--gold); }
.choice:has(:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice-group { color: #acb7ba; font-size: .8rem; line-height: 1.4; }
.choice strong { color: #e6e6de; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.choice:has(:checked) strong { color: var(--gold); }
.exhibit { grid-area: exhibit; align-self: center; min-width: 0; scroll-margin-top: 1.25rem; }
.phone-stage { --glow: 57 143 175; position: relative; isolation: isolate; display: grid; place-items: center; }
.hero-layout:has(#pick-woolly-mammoth:checked) .phone-stage { --glow: 157 134 102; }
.hero-layout:has(#pick-nine-tailed-fox:checked) .phone-stage { --glow: 135 142 92; }
.phone-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 43%, rgb(var(--glow) / .33), rgb(var(--glow) / .09) 47%, transparent 72%); pointer-events: none; }
.phone-frame {
  --bezel: .38rem; --corner: 2.25rem;
  position: relative; width: min(100%, 17.4rem); width: min(100%, clamp(15.5rem, min(27vw, 36svh), 18rem));
  padding: var(--bezel); border: 2px solid #78848b; border-radius: var(--corner);
  background: linear-gradient(128deg, #313b40, #0a0e11 18%, #141d22 75%, #414b4e);
  box-shadow: inset 0 0 0 1px #c9d1cf55, 0 0 0 1px #060a0d, 0 1.15rem 2.3rem -.7rem #03080cba;
}
.phone-frame::before, .phone-frame::after { content: ""; position: absolute; width: 3px; background: linear-gradient(90deg,#414c53,#9aa3a7,#4c565b); border-radius: 2px; }
.phone-frame::before { left: -4px; top: 21%; height: 5.8%; box-shadow: 0 2.55rem #68747a; }
.phone-frame::after { right: -4px; top: 30%; height: 9%; }
.phone-screen { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 390 / 844; border-radius: calc(var(--corner) - var(--bezel) - 2px); background: #10171c; }
.phone-screen::before, .phone-screen::after { content: ""; position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); pointer-events: none; }
.phone-screen::before { top: 1%; width: .36rem; height: .36rem; border-radius: 50%; background: #10191f; box-shadow: 0 0 0 1px #080c0ec9; }
.phone-screen::after { bottom: .7%; width: 24%; height: 2px; border-radius: 2px; background: #f6f2e6aa; }
.phone-panel { display: none; position: absolute; inset: 0; border-radius: inherit; }
.hero-layout:has(#pick-blue-whale:checked) #plate-blue-whale,
.hero-layout:has(#pick-woolly-mammoth:checked) #plate-woolly-mammoth,
.hero-layout:has(#pick-nine-tailed-fox:checked) #plate-nine-tailed-fox { display: block; }
@supports not selector(:has(*)) {
  .phone-panel:first-child, .phone-panel.current-screen { display: block; }
  .choice-input { position: static; width: 1rem; height: 1rem; margin: 0; clip-path: none; accent-color: var(--gold); }
}
.phone-capture { width: 100%; height: 100%; object-fit: contain; }
/* Match the five equally spaced controls in the Flutter capture, above its bottom inset. */
.phone-controls { position: absolute; inset-inline: 2.05%; bottom: 1.4%; height: max(44px, 7.6%); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.phone-action { border-radius: .4rem; }
.phone-action:focus-visible { outline-offset: -2px; background: #ffca781c; }
.features { border-block: 1px solid var(--rule); background: #151e24; padding-block: clamp(2.5rem, 5vw, 4.75rem); }
.features h2 { font-size: clamp(2.1rem, 3.8vw, 3.15rem); line-height: 1.13; letter-spacing: -.045em; }
.feature-grid, .field-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); }
.feature-grid { margin-top: clamp(1.3rem, 2.5vw, 2rem); }
.preview-map, .preview-dive { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2.06; border: 1px solid #536168; border-radius: .65rem; }
.preview-map { background: #152a33; }
.preview-map img { width: 100%; height: 100%; object-fit: cover; }
.preview-map::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(135deg, #071719ad, transparent 45%); }
.preview-map img, .preview-dive img { position: absolute; z-index: -2; }
.preview-heading, .map-date, .dive-depth, .dive-zone, .dive-species { position: absolute; left: clamp(.85rem, 1.5vw, 1.35rem); }
.preview-heading { top: .85rem; display: inline-flex; gap: .45rem; align-items: center; color: #f6efe1; font-size: .91rem; font-weight: 650; }
.preview-heading svg { width: 1.05rem; height: 1.05rem; }
.map-date { bottom: .8rem; color: #e9e0cf; font-size: .825rem; background: #14262bea; padding: .17rem .45rem; border-radius: .2rem; }
.place-marker { position: absolute; top: 48%; left: 50%; display: flex; align-items: center; gap: .45rem; font-size: .87rem; font-weight: 650; color: #fff0d5; text-shadow: 0 1px 3px #111; }
.place-marker::before { content: ""; width: .5rem; height: .5rem; border-radius: 100%; background: var(--gold); box-shadow: 0 0 0 4px #ffca7840, 0 0 0 5px #ffca788a; }
.preview-dive { background: linear-gradient(108deg,#102d3d,#091b2d 72%,#071829); border-color: #3d636a; }
.preview-dive img { height: 113%; width: 68%; top: -5%; right: -.5%; object-fit: contain; mix-blend-mode: lighten; }
.preview-dive .preview-heading { color: #b2e7e0; }
.dive-depth { right: 1rem; left: auto; top: .68rem; color: #f7f3e6; font: 600 clamp(1.1rem, 2vw, 1.5rem)/1.25 var(--display); }
.dive-zone { top: 2.85rem; color: #b2e7e0; font-size: .86rem; }
.dive-species { bottom: .95rem; display: grid; color: #f5edda; }
.dive-species strong { font: 600 clamp(1.1rem, 2.3vw, 1.75rem)/1.25 var(--display); }
.dive-species i { margin-top: .1rem; font: italic .88rem/1.3 Georgia, serif; color: #bbd9da; }
.feature h3 { margin-top: 1.25rem; font-size: clamp(1.45rem, 2.35vw, 2rem); letter-spacing: -.035em; }
.feature > p, .field-tools dd { color: var(--muted); line-height: 1.65; }
.feature > p { margin-top: .6rem; max-width: 52ch; }
.field-tools { margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.field-tools dt { display: flex; align-items: center; gap: .6rem; font: 600 1.16rem/1.4 var(--display); }
.field-tools svg { width: 1.15rem; height: 1.15rem; color: var(--gold); }
.field-tools dd { margin-top: .38rem; max-width: 49ch; }
.download { padding-block: clamp(2.4rem, 4.5vw, 4.25rem); }
.download-inner { padding: clamp(1.35rem, 3vw, 2.6rem); background: linear-gradient(115deg,#1e2a30,#19232b 70%); border: 1px solid #746347; border-radius: .8rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.download-copy { display: flex; align-items: center; gap: clamp(.85rem, 1.7vw, 1.6rem); }
.app-icon { width: clamp(3rem, 5.4vw, 4.5rem); height: auto; border-radius: 21%; }
.download-copy :is(h1, h2) { font-size: clamp(1.72rem, 3vw, 2.55rem); letter-spacing: -.045em; }
.download-copy p { margin-top: .45rem; color: var(--muted); }
.download-actions { display: grid; grid-template-columns: auto auto; grid-template-areas: "qr stores"; align-items: center; gap: clamp(.8rem, 2.3vw, 2rem); }
.download-actions .store-links { grid-area: stores; align-items: stretch; flex-direction: column; }
.scan { grid-area: qr; width: 9rem; padding: .25rem .25rem .5rem; background: var(--paper); color: var(--night); border-radius: .5rem; text-align: center; }
.scan-code { width: 100%; height: auto; }
.scan figcaption { font-weight: 650; font-size: .825rem; line-height: 1.3; }
.foot { border-top: 1px solid var(--rule); min-height: 4.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot span { color: var(--paper); font: 600 1.1rem var(--display); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a[aria-current] { color: var(--paper); }
.support-page { max-width: 72ch; padding-block: clamp(2rem, 5vw, 4.5rem); }
.support-contact h1 { font-size: clamp(2.6rem, 5.3vw, 4rem); letter-spacing: -.045em; }
.support-contact h2 { margin-top: 2rem; font-size: 1.25rem; }
.support-contact p, .privacy-policy p { margin-top: .85rem; color: var(--muted); line-height: 1.7; }
.support-page a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.support-email { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.1rem; font-weight: 600; }
.privacy-policy h1 { font-size: clamp(1.75rem, 3.25vw, 2.6rem); letter-spacing: -.035em; }
.privacy-policy p { max-width: 67ch; }
.privacy-policy p:last-of-type { margin-top: 1.3rem; font-size: .9rem; }
.app-prompt { width: min(26rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: clamp(1.35rem, 4vw, 2rem); border: 1px solid #78664c; border-radius: 1rem; color: var(--paper); background: var(--surface); box-shadow: 0 1.5rem 5rem #0008; }
.app-prompt:not([open]) { display: none; }
.app-prompt::backdrop { background: #080e14c9; }
html:has(.app-prompt[open]) { overflow: hidden; }
.app-prompt .app-icon { width: 3.25rem; }
.app-prompt h2 { margin-top: 1.15rem; font-size: clamp(1.65rem, 5vw, 2.05rem); letter-spacing: -.035em; }
.app-prompt p { margin-block: .65rem 1.35rem; color: var(--muted); }
.prompt-close { position: absolute; inset: .6rem .6rem auto auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; }
:root:lang(zh) { --display: Bitter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
:root:lang(zh-Hant) { --display: Bitter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
:lang(zh) .display, :lang(zh) .download-copy h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: -.02em; line-height: 1.22; }
@media (hover: hover) {
  .section-link:hover, .foot a:hover { color: var(--gold); }
  .choice:hover strong { color: var(--gold); }
  .language-list a:hover, .prompt-close:hover { background: #ffffff0e; }
  .phone-action:hover { background: #ffca7822; box-shadow: inset 0 0 0 1px #ffca7880; }
  .get-app:hover { background: #ffda9f; }
  .store:hover { border-color: var(--gold); background: #253139; }
}
@media (prefers-reduced-motion: no-preference) {
  .phone-capture { animation: appear .2s ease-out; }
  @keyframes appear { from { opacity: .65; } to { opacity: 1; } }
}
@media (max-width: 64rem) and (min-width: 47.01rem) {
  .hero-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); column-gap: 1.7rem; }
  .display { font-size: clamp(2.7rem, 5vw, 3.45rem); }
  .choice strong { font-size: .85rem; }
  .download-inner { gap: 1.15rem; }
}
@media (max-width: 47rem) {
  .section-link { display: none; }
  .mast-inner { min-height: 3.8rem; }
  .brand { font-size: 1.45rem; }
  .hero-layout { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "intro" "picker" "exhibit" "stores"; padding-block: 1.8rem 2.2rem; row-gap: 0; }
  .display { font-size: clamp(2.65rem, 9vw, 4rem); }
  .intro { margin-top: .8rem; font-size: 1rem; max-width: 37rem; }
  .exhibit { margin-top: 1.3rem; scroll-margin-top: 7rem; }
  .phone-frame { --bezel: .3rem; --corner: 1.95rem; width: min(100%, clamp(15.5rem, 67vw, 17rem)); }
  .picker { margin-top: 1rem; }
  .picker legend { margin-bottom: .45rem; }
  .hero-stores { margin: 1rem auto 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature > p { max-width: none; }
  .feature h3 { margin-top: 1rem; }
  .download-inner { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .download-actions { justify-content: start; grid-template-areas: "stores qr"; column-gap: 1rem; }
  .scan { width: 8.4rem; }
}
@media (max-width: 35rem) {
  .field-tools { grid-template-columns: 1fr; gap: 1.2rem; }
  .choice strong { font-size: .86rem; }
  .main-nav { gap: .75rem; }
  .brand img { width: 1.7rem; height: 1.7rem; }
  .get-app { padding-inline: .7rem; }
  .download-inner { padding: 1.1rem; }
  .preview-map, .preview-dive { aspect-ratio: 1.8; }
  .place-marker { font-size: .8rem; }
}
@media (max-width: 22.5rem) {
  .wrap { width: calc(100% - 1.75rem); }
  .app-prompt .store-links { align-items: stretch; flex-direction: column; }
  .download-actions { column-gap: .65rem; }
  .scan { width: 7rem; padding-inline: 0; overflow: hidden; }
  .store { padding-inline: .58rem; }
}
@media (forced-colors: active) {
  .choice:has(:checked), .get-app { outline: 2px solid Highlight; outline-offset: -2px; }
  .place-marker::before { border: 2px solid Highlight; }
}
