:root {
  --sky: #7ec8ff;
  --sky-deep: #3a9de8;
  --sky-soft: #e7f6ff;
  --sun: #ffd56a;
  --sun-deep: #e8b23a;
  --wood: #c48a4a;
  --wood-deep: #8a5528;
  --wood-soft: #f8ead6;
  --wave: #2ec4c6;
  --wave-deep: #178fb8;
  --foam: #e9fff8;
  --ink: #1a2b3c;
  --muted: #4a6070;
  --card: rgba(255, 252, 247, 0.94);
  --ok: #1f7a52;
  --line: rgba(196, 138, 74, 0.32);
  --radius: 20px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 10px 24px rgba(58, 110, 70, 0.05), 0 22px 44px rgba(26, 43, 60, 0.07);
  --max: 1080px;
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", "WenQuanYi Micro Hei", "Droid Sans Fallback", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
}
img { max-width: 100%; }
button, input { font: inherit; }
::selection { background: #ffe3a3; color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 40;
}
.skip:focus { top: 8px; }

.sea {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 236, 176, 0.95), rgba(255, 213, 106, 0) 28%),
    radial-gradient(circle at 12% 0%, #ffffff 0, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #9fd4fb 0%, #d9f1ff 28%, #fff6e4 58%, #c5edf6 100%);
}
.sun {
  position: absolute;
  top: 92px;
  right: 8%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffceb 0%, #ffe08a 42%, rgba(255, 213, 106, 0) 72%);
  filter: blur(0.2px);
  animation: glow 7s ease-in-out infinite;
}
.sun-halo {
  position: absolute;
  top: 68px;
  right: 5%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 150, 0.45), rgba(255, 213, 106, 0) 68%);
  animation: glow 7s ease-in-out infinite reverse;
}
.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  background: linear-gradient(180deg, rgba(255, 248, 232, 0), rgba(126, 214, 206, 0.2) 28%, rgba(46, 180, 196, 0.35) 70%, rgba(23, 143, 184, 0.45));
}
.wave-parallax { position: absolute; left: -8%; width: 116%; transform: translateY(var(--shift, 0px)); }
.p1 { bottom: 78px; }
.p2 { bottom: 36px; }
.p3 { bottom: 0; }
.sea-wave { display: block; width: 100%; height: 70px; }
.p3 .sea-wave { height: 86px; }
.drift { animation: sway 9s ease-in-out infinite; }
.drift.slow { animation-duration: 13s; }
.drift.rev { animation-direction: reverse; animation-duration: 11s; }

@keyframes glow {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.07); opacity: 1; }
}
@keyframes sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3.5%); }
}

.topbar, .statusline, .stage, .wrap, .footer { position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(232, 246, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  flex: 0 0 auto;
}
.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(58, 157, 232, 0.25);
}
.topbar nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.topbar nav a:hover { background: rgba(255, 255, 255, 0.9); }
.topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.lang-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 138, 74, 0.5);
  box-shadow: 0 4px 12px rgba(26, 43, 60, 0.06);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 32px;
}
html[data-lang="zh"] #langZh,
html:not([data-lang]) #langZh,
html[data-lang="en"] #langEn {
  background: linear-gradient(180deg, #ffe7a8, #f0c14d);
  color: #6a4314;
}
html[data-lang="zh"] .t-en,
html:not([data-lang]) .t-en { display: none !important; }
html[data-lang="en"] .t-zh { display: none !important; }
.seal .t-zh, .seal .t-en { display: block; }

.statusline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7a5316;
  background: rgba(255, 244, 214, 0.78);
  border-bottom: 1px solid rgba(232, 178, 58, 0.28);
}

.stage { background: #c5e8ff; overflow: hidden; }
.stage .banner {
  width: 100%;
  height: clamp(156px, 28vw, 320px);
  object-fit: cover;
  object-position: center 48%;
  display: block;
}
.glow {
  position: absolute;
  left: 46%;
  top: 58%;
  width: min(240px, 40vw);
  height: min(240px, 40vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 244, 196, 0.75), rgba(255, 213, 106, 0) 68%);
  animation: glow 6.5s ease-in-out infinite;
  pointer-events: none;
}
.stage-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 42px;
  pointer-events: none;
}
.stage-waves svg { width: 200%; height: 42px; animation: sway 7s ease-in-out infinite; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 14px 20px; }
section[id] { scroll-margin-top: 72px; }

.lockup {
  margin-top: -46px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.lockup .logo {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 8px 18px rgba(58, 157, 232, 0.22);
}
.eyebrow, .demo-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff4d4;
  color: var(--wood-deep);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid #f0d48a;
}
.demo-pill { margin: 0 8px 0 0; }
h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.15; }
.lede { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.promises { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.promises span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 700;
}

.wave-rule { margin: 16px 0 0; line-height: 0; }
.wave-rule svg { width: 100%; height: 28px; display: block; }

.card, .band {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.88);
  margin-top: 14px;
}
.card, .band { position: relative; overflow: hidden; }
.card::before, .band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--sky-deep), var(--wave), var(--sun), var(--wood));
}
.card h2, .band h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 1.12rem;
}
.mark { width: 28px; height: 20px; flex: 0 0 auto; }
.section-kicker {
  margin: 0 0 2px;
  color: var(--wood-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.muted { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.en { color: var(--muted); }

.top-grid { display: block; }

.tide-well {
  position: relative;
  height: 196px;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 226, 150, 0.95) 0 18px, rgba(255, 213, 106, 0.35) 22px, transparent 42px),
    linear-gradient(180deg, #8ecff8 0%, #d9f3ff 70%, #eef8ff 100%);
  border: 3px solid #e8c99a;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.4);
}
.cloud { position: absolute; background: rgba(255, 255, 255, 0.75); border-radius: 999px; }
.cloud.c1 { width: 64px; height: 16px; top: 26px; left: 18%; }
.cloud.c2 { width: 40px; height: 12px; top: 42px; left: 24%; }
.sand {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(180deg, #f8e4bc, #e7c98a);
  z-index: 1;
}
.sand::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -9px;
  width: 140%;
  height: 12px;
  background: radial-gradient(ellipse at 12px 12px, transparent 7px, rgba(255, 255, 255, 0.9) 8px, rgba(255, 255, 255, 0) 10px) left center / 24px 12px repeat-x;
  animation: sway 5.5s ease-in-out infinite;
}
.water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  z-index: 2;
  background: linear-gradient(180deg, #8ee4d4 0%, #2ec4c6 46%, #178fb8 100%);
  transition: height 0.5s ease;
}
.wave {
  position: absolute;
  top: -14px;
  left: 0;
  width: 200%;
  height: 18px;
  display: flex;
  animation: sway 6.5s linear infinite;
}
.wave svg { width: 50%; height: 18px; flex: 0 0 50%; }
.water.is-empty .wave { display: none; }
.tier-line {
  position: absolute;
  left: 8px; right: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.55);
  z-index: 3;
}
.open-line {
  position: absolute;
  left: 0; right: 0;
  bottom: 30%;
  z-index: 4;
  border-top: 2px solid var(--sun-deep);
}
.open-line span {
  position: absolute;
  right: 8px;
  top: -12px;
  background: linear-gradient(180deg, #ffe7a8, #f0c14d);
  color: #6a4314;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #fff;
}
.floater {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 3px solid #fff;
  background: #fff;
  z-index: 5;
  box-shadow: 0 6px 14px rgba(26, 43, 60, 0.16);
}
.gauge-readout {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
}
.scale-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}
.scale-row .gold { color: #8a5a10; }
.legend { margin: 6px 0 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(126, 200, 255, 0.35);
}
.stat .label { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.stat .value { font-size: 1.02rem; font-weight: 800; margin-top: 2px; line-height: 1.25; }
.stat .value small { display: block; font-size: 0.7rem; font-weight: 700; color: var(--muted); }

.refund-strip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  background: #fff6e4;
  border: 1px solid #f0d7a2;
  border-radius: 12px;
  padding: 8px 10px;
}
.refund-strip strong {
  flex: 0 0 auto;
  background: var(--sun);
  color: #6a4314;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
}
.refund-strip p { margin: 0; font-size: 0.82rem; line-height: 1.4; }

.mint-layout, .dash { display: grid; gap: 12px; margin-top: 10px; }
.ladder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rung {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.rung b { display: block; font-size: 1.05rem; color: var(--wood-deep); }
.rung span, .rung em { display: block; color: var(--muted); font-size: 0.74rem; font-style: normal; }
.rung em { margin-top: 3px; font-weight: 800; color: #8a5a10; }
.rung.is-now {
  background: linear-gradient(180deg, #fff8e4, #fff);
  border-color: var(--sun-deep);
}
.split-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
  background: #e7f2f8;
}
.seg.team { width: 20%; background: var(--wood); }
.seg.pot { width: 15%; background: var(--sun-deep); }
.seg.lp { width: 65%; background: var(--wave); }
.split-key, .flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
}
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.swatch.team { background: var(--wood); }
.swatch.pot { background: var(--sun-deep); }
.swatch.lp { background: var(--wave); }

.slip {
  background: linear-gradient(180deg, #fffdf8, #fff8ee);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: inset 5px 0 0 var(--wood), 0 8px 18px rgba(138, 85, 40, 0.05);
}
.slip-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.slip h3 { margin: 0; font-size: 1rem; }
.seal {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 50%;
  border: 2px dashed var(--sun-deep);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--wood-deep);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  transform: rotate(-8deg);
  background: rgba(255, 213, 106, 0.3);
}
.qty-row { display: flex; gap: 8px; margin-top: 10px; }
.qty, .tab, .filter, .ghost {
  min-height: 44px;
  border-radius: 12px;
  border: 2px solid #d7e6f2;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.qty { flex: 1; font-size: 1rem; }
.qty[aria-pressed="true"], .filter[aria-pressed="true"], .tab[aria-selected="true"] {
  background: linear-gradient(180deg, #ffe7a8, #f0c14d);
  border-color: #e0b04a;
  color: #6a4314;
}
.quote {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  background: var(--sky-soft);
  border-radius: 12px;
  padding: 8px 10px;
}
.quote div { display: flex; justify-content: space-between; gap: 8px; font-size: 0.84rem; }
.quote dt { color: var(--muted); font-weight: 700; }
.quote dd { margin: 0; font-weight: 800; text-align: right; }
.pending { color: #9a6410; }

.cta {
  display: block;
  width: 100%;
  margin-top: 10px;
  min-height: 50px;
  padding: 8px 12px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, #e0a85c, #b5743a);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(181, 116, 58, 0.28);
}
.cta-en { display: block; font-size: 0.72rem; font-weight: 700; opacity: 0.92; }
.cta.secondary, .ghost {
  background: #fff;
  color: #8aa0b0;
  border: 2px solid #d5e2ec;
  box-shadow: none;
}
.cta.secondary { cursor: not-allowed; }
.cta:hover:not(:disabled) { filter: brightness(1.03); }
.ghost { width: auto; min-height: 36px; padding: 6px 10px; font-size: 0.75rem; color: var(--wood-deep); border-color: var(--line); }
.copy-status { min-height: 1.1em; margin: 6px 0 0; font-size: 0.8rem; font-weight: 800; color: var(--ok); }
.cmd {
  margin: 8px 0 0;
  max-height: 180px;
  overflow: auto;
  background: #fff8ec;
  color: var(--ink);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, "WenQuanYi Micro Hei Mono", Menlo, monospace;
  font-size: 0.73rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.trust-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(126, 200, 255, 0.45);
  padding: 10px;
  box-shadow: 0 6px 14px rgba(26, 43, 60, 0.04);
}
.trust-item svg { width: 32px; height: 32px; display: block; }
.trust-item h3 { margin: 6px 0 3px; font-size: 0.88rem; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }

.nightbar, .steps, .cabins, .triggers { display: grid; gap: 10px; margin-top: 12px; }
.nightbar div, .step, .cabin, .trigger {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(46, 196, 198, 0.28);
  box-shadow: 0 8px 16px rgba(26, 43, 60, 0.04);
}
.nightbar div { padding: 10px 12px; background: linear-gradient(180deg, #f3fbff, #fff); }
.nightbar b { display: block; font-size: 1rem; }
.nightbar span { color: var(--muted); font-size: 0.74rem; }
.step { overflow: hidden; }
.step-art, .cabin-art { background: linear-gradient(180deg, #d7f1ff, #fff6e2); }
.step-art svg, .cabin-art svg { width: 100%; height: auto; display: block; }
.step-body, .cabin-body, .trigger { padding: 10px 12px 12px; }
.step-no { color: var(--wood-deep); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; }
.step h3, .cabin h3, .trigger h3 { margin: 2px 0 4px; font-size: 0.98rem; }
.step p, .cabin p, .trigger p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }

.odds-wrap { margin-top: 10px; overflow-x: auto; }
table.odds, table.data { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
table.data { min-width: 720px; }
table.odds th, table.odds td, table.data th, table.data td {
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid rgba(196, 138, 74, 0.18);
  vertical-align: middle;
}
table.odds th, table.data th { font-size: 0.72rem; color: var(--muted); font-weight: 800; }
table.odds tbody th { color: var(--ink); font-size: 0.86rem; }
.oddbar {
  height: 8px;
  width: min(140px, 28vw);
  border-radius: 999px;
  background: #e7f1f6;
  overflow: hidden;
}
.oddbar span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--wave), var(--sun)); border-radius: inherit; }
tr.sunk .oddbar span { width: 0; }
.ev {
  margin: 10px 0 0;
  background: #fffaf0;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.84rem;
}
.flow { counter-reset: none; }
.flow li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  flex: 1 1 180px;
}
.flow b { display: block; color: var(--wood-deep); }
.tag {
  display: inline-block;
  margin-top: 6px;
  background: var(--foam);
  color: var(--ok);
  border: 1px solid #b7efd8;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 800;
}

.lookup { display: flex; gap: 8px; flex-wrap: wrap; }
.lookup input {
  flex: 1 1 220px;
  min-height: 44px;
  border-radius: 12px;
  border: 2px solid #d7e6f2;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}
.filters, .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.filter, .tab { padding: 0 12px; }
.table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  border: 1px solid rgba(196, 138, 74, 0.2);
  border-radius: 12px;
  background: #fff;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}
.badge.eco { background: #f8ead6; color: #8a5528; }
.badge.biz { background: #e5f4ff; color: #176a9e; }
.badge.cap { background: #fff1c4; color: #8a5a10; }
.badge.sunk, .badge.mute { background: #eef2f5; color: #5c6d7c; }
.badge.ok { background: #e9fff8; color: #1f7a52; }
.badge.wait { background: #fff6e4; color: #9a6410; }
.badge.demo { background: #fff4d4; color: #8a5a10; }

.head-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.head-row h2 { margin-right: auto; }

.trigger .cta { width: auto; min-width: 0; padding: 8px 12px; }
.trigger .cmd { max-height: 120px; }

.feed { list-style: none; margin: 10px 0 0; padding: 0; }
.feed li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(196, 138, 74, 0.18);
  font-size: 0.84rem;
}
.feed time { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.feed b { font-weight: 800; }

.rule, .faq-item { border-top: 1px solid var(--line); }
.rule summary, .faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 2px;
  font-weight: 800;
}
.rule summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }
.rule summary::after, .faq-item summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--wood);
  border-bottom: 2px solid var(--wood);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.rule[open] summary::after, .faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.r-badge {
  flex: 0 0 auto;
  background: var(--wood);
  color: #fff;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 0.72rem;
}
.rule .body, .faq-item .body { padding: 0 2px 12px; font-size: 0.88rem; line-height: 1.5; }
.rule .body p, .faq-item .body p { margin: 0 0 8px; }
.faq-item .body ul { margin: 0 0 8px; padding-left: 1.15rem; }
.faq-item .body li { margin: 0 0 6px; }
.promo { margin: 12px 0 0; }
.promo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(196, 138, 74, 0.28);
}
.promo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.risk {
  margin-top: 14px;
  background: #fff6e8;
  border: 1px solid #f0d7a8;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.risk h2 { margin: 0 0 6px; font-size: 1rem; }
.risk p { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.5; }
.risk p:last-child { margin-bottom: 0; }

.footer { padding: 6px 14px 40px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.brandmark { display: flex; gap: 10px; align-items: center; }
.brandmark img { width: 48px; height: 48px; border-radius: 14px; border: 2px solid #fff; background: #fff; }
.brandmark h2 { margin: 0; font-size: 1.05rem; }
.footer-grid { display: grid; gap: 16px; margin-top: 14px; }
.footer h3 { margin: 0 0 8px; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wood-deep); }
.footer-links, .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--sky-deep); font-weight: 700; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.social.is-placeholder {
  display: inline-block;
  color: #8a5a10;
  background: #fff4d4;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 800;
}
.ca-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.ca-list li { display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: baseline; font-size: 0.8rem; }
.ca-list span:first-child { color: var(--muted); font-weight: 800; }
.ca { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.pending-tag {
  display: inline-block;
  background: #fff1cc;
  color: #8a5a10;
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 800;
}
.fine { margin: 12px 0 0; font-size: 0.8rem; line-height: 1.5; }
.noscript {
  margin: 12px 14px 0;
  padding: 10px 12px;
  background: #fff6e4;
  border-radius: 12px;
}

@media (min-width: 720px) {
  .stats, .nightbar { grid-template-columns: repeat(4, 1fr); }
  .ladder { grid-template-columns: repeat(4, 1fr); }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .cabins { grid-template-columns: repeat(3, 1fr); }
  .triggers { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.9fr; }
}
@media (min-width: 980px) {
  .wrap { padding: 0 20px 28px; }
  .top-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 14px;
    align-items: start;
  }
  .trust-row, .steps { grid-template-columns: repeat(5, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .dash { grid-template-columns: 250px 1fr; align-items: start; }
  .card, .band { padding: 16px 16px 14px; }
}
@media (hover: hover) {
  .trust-item:hover, .step:hover, .cabin:hover, .trigger:hover, .rung:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(26, 43, 60, 0.08);
  }
}
@media (max-width: 720px) {
  .sea .sun, .sea .sun-halo { right: -30px; opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun, .sun-halo, .glow, .drift, .wave, .stage-waves svg, .sand::before { animation: none; }
  .water { transition: none; }
}
