:root {
  color-scheme: dark;
  --bg: #071824;
  --paper: #14283a;
  --surface: #0f2232;
  --surface-soft: #18354a;
  --ink: #f1f8fb;
  --muted: #9fb4c3;
  --line: rgba(126, 222, 229, .18);
  --line-strong: rgba(126, 222, 229, .34);
  --navy: #081721;
  --teal: #19c7c3;
  --teal-dark: #79f1e5;
  --gold: #f6bf3f;
  --gold-soft: rgba(246, 191, 63, .14);
  --blue: #49a4ff;
  --blue-soft: rgba(73, 164, 255, .13);
  --green: #58d68d;
  --green-soft: rgba(88, 214, 141, .14);
  --red: #ff7272;
  --red-soft: rgba(255, 114, 114, .14);
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, .24);
  --radius: 8px;
}

.route-diagram {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.route-node {
  min-height: 120px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(126, 222, 229, .18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 53, 74, .92), rgba(8, 23, 33, .96));
  padding: 12px;
}

.route-node span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061520;
  font-size: 13px;
  font-weight: 900;
}

.route-node b,
.route-node small {
  display: block;
}

.route-node small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.route-diagram i {
  align-self: center;
  height: 2px;
  min-width: 16px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.detail-visual .route-diagram {
  grid-template-columns: 1fr;
  gap: 7px;
}

.detail-visual .route-diagram i {
  width: 2px;
  height: 12px;
  justify-self: center;
}

.detail-visual .route-node {
  min-height: 74px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
}

.detail-visual .route-node b,
.detail-visual .route-node small {
  grid-column: 2;
}

.trust-date {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.code-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.code-table-head,
.code-row {
  display: grid;
  grid-template-columns: 42px minmax(178px, 1.05fr) minmax(150px, .9fr) 82px 96px auto;
  gap: 10px;
  align-items: center;
}

.code-table-head {
  min-height: 34px;
  border: 1px solid rgba(126, 222, 229, .18);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .45);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.code-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 40, 58, .96), rgba(11, 28, 43, .96));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  padding: 11px;
}

.compact-code-row {
  grid-template-columns: 34px minmax(0, 1fr) minmax(96px, .7fr) auto;
}

.code-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(25, 199, 195, .12);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.code-row code {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  word-break: break-word;
}

.code-row .small-action {
  min-width: 58px;
  white-space: nowrap;
  padding-inline: 10px;
}

.compact-code-row {
  grid-template-columns: 34px minmax(110px, 1fr) minmax(78px, .62fr) 64px;
}

.code-main small,
.code-row p,
.code-row small {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.code-reward,
.code-checked {
  margin: 0;
}

.code-status {
  display: inline-flex;
  justify-content: center;
  min-height: 28px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.wfl-tool {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.wfl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.wfl-side {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .45);
  padding: 12px;
}

.wfl-versus {
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 191, 63, .3);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: #ffd66d;
  font-weight: 900;
}

.wfl-result {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  padding: 13px;
}

.wfl-result b {
  font-size: 24px;
  line-height: 1;
}

.wfl-result span,
.wfl-result small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wfl-result.win {
  border-color: rgba(88, 214, 141, .42);
  background: rgba(88, 214, 141, .11);
}

.wfl-result.loss {
  border-color: rgba(255, 114, 114, .42);
  background: rgba(255, 114, 114, .11);
}

.wfl-result.fair {
  border-color: rgba(246, 191, 63, .42);
  background: rgba(246, 191, 63, .1);
}

.wfl-result.warning {
  border-color: rgba(246, 191, 63, .48);
  background: linear-gradient(180deg, rgba(246, 191, 63, .14), rgba(11, 28, 43, .96));
}

.value-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.value-table article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .45);
  padding: 10px;
}

.value-table b,
.value-table span,
.value-table small {
  display: block;
}

.value-table span,
.value-table small {
  color: var(--muted);
  font-size: 12px;
}

.redeem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.redeem-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 40, 58, .96), rgba(11, 28, 43, .96));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.redeem-step figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.redeem-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(126, 222, 229, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 222, 229, .08) 1px, transparent 1px),
    radial-gradient(circle at 78% 22%, rgba(246, 191, 63, .2), transparent 30%),
    var(--navy);
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.redeem-visual > span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061520;
  font-weight: 900;
}

.redeem-visual b {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(126, 222, 229, .22);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .7);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 16px;
  box-shadow: var(--shadow-soft);
}

.redeem-visual i {
  display: block;
  width: min(180px, 72%);
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.redeem-visual i:nth-of-type(1) {
  width: min(220px, 82%);
  background: rgba(25, 199, 195, .28);
}

.redeem-visual i:nth-of-type(3) {
  width: min(126px, 52%);
  background: rgba(246, 191, 63, .28);
}

.redeem-visual-2 b {
  color: #ffd66d;
}

.redeem-visual-3 b {
  min-width: 132px;
  text-align: center;
  color: var(--teal-dark);
}

.redeem-step div {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.redeem-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061520;
  font-weight: 900;
}

.redeem-step p {
  margin-bottom: 0;
  font-size: 13px;
}

.expired-block {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(255, 114, 114, .22);
  border-radius: var(--radius);
  background: rgba(255, 114, 114, .07);
  padding: 12px;
}

.expired-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expired-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 114, 114, .28);
  border-radius: var(--radius);
  background: rgba(255, 114, 114, .1);
  color: #ffb5b5;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.image-missing {
  background:
    linear-gradient(135deg, rgba(25, 199, 195, .18), rgba(246, 191, 63, .12)),
    var(--navy);
}

.image-missing:after {
  content: "Blox Fruits";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.72);
  font-weight: 900;
}

.mobile-quickbar {
  display: none;
}

@media (max-width: 1080px) {
  .route-diagram,
  .redeem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 72px;
  }

  .route-diagram,
  .redeem-grid,
  .value-table,
  .wfl-grid {
    grid-template-columns: 1fr;
  }

  .route-diagram i {
    width: 2px;
    height: 14px;
    justify-self: center;
  }

  .code-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .code-table-head {
    display: none;
  }

  .code-reward,
  .code-status,
  .code-checked,
  .code-row button {
    grid-column: 2;
    justify-self: start;
  }

  .wfl-versus {
    min-height: 42px;
  }

  .mobile-quickbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid rgba(126, 222, 229, .28);
    border-radius: var(--radius);
    background: rgba(8, 23, 33, .92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    padding: 6px;
  }

  .mobile-quickbar a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    gap: 2px;
  }

  .mobile-quickbar b {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 18px;
    color: inherit;
    font-size: 11px;
    line-height: 1;
  }

  .mobile-quickbar a.is-active {
    background: linear-gradient(135deg, var(--teal), var(--blue));
    color: #061520;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(126, 222, 229, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 222, 229, .045) 1px, transparent 1px),
    linear-gradient(150deg, rgba(25, 199, 195, .2) 0 18%, transparent 18% 58%, rgba(246, 191, 63, .12) 58% 70%, transparent 70%),
    linear-gradient(180deg, #071824 0%, #0a1f31 48%, #0b1421 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    linear-gradient(120deg, rgba(73, 164, 255, .11), transparent 42%),
    linear-gradient(260deg, rgba(246, 191, 63, .08), transparent 38%);
}

body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(246, 191, 63, .18), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(255, 114, 114, .12), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(25, 199, 195, .16), transparent 30%);
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.24;
}

p {
  color: var(--muted);
  line-height: 1.58;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

main,
.site-header,
.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 23, 33, .82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  padding: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(16, 38, 53, .12);
  border-radius: var(--radius);
  background: var(--navy);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.main-nav a,
.lang-switch button,
.quick-buttons button,
.filters button,
.small-action,
.primary-action,
.secondary-action,
.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.main-nav a:hover,
.small-action:hover,
.secondary-action:hover,
.quick-buttons button:hover,
.filters button:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 199, 195, .62);
  color: var(--ink);
  background: rgba(25, 199, 195, .12);
}

.main-nav a.is-active,
.filters button.is-active,
.lang-switch button.is-active,
.primary-action {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061520;
}

.lang-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 112px;
  gap: 4px;
}

main {
  padding: 18px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.hero-copy,
.hero-media,
.hero-workbench,
.media-strip,
.content-section,
.tool-panel,
.map-panel,
.page-hero {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 40, 58, .92), rgba(12, 28, 42, .92));
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 390px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(8, 23, 33, .96) 0%, rgba(8, 23, 33, .83) 58%, rgba(8, 23, 33, .62) 100%),
    linear-gradient(90deg, rgba(126, 222, 229, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 222, 229, .07) 1px, transparent 1px),
    radial-gradient(circle at 88% 22%, rgba(246, 191, 63, .28), transparent 26%),
    radial-gradient(circle at 76% 72%, rgba(255, 114, 114, .16), transparent 28%),
    linear-gradient(135deg, rgba(25, 199, 195, .22), rgba(73, 164, 255, .12) 46%, rgba(246, 191, 63, .12));
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.kicker,
.eyebrow {
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  color: #bfd2de;
  font-size: 16px;
  line-height: 1.62;
}

.hero-workbench {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 390px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(15, 34, 50, .96), rgba(8, 23, 33, .96)),
    linear-gradient(135deg, rgba(25, 199, 195, .18), rgba(246, 191, 63, .08));
}

.sea-radar {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(126, 222, 229, .22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 34%, rgba(25, 199, 195, .22), transparent 38%),
    linear-gradient(180deg, rgba(5, 18, 29, .68), rgba(5, 18, 29, .34));
  padding: 14px;
}

.radar-track {
  position: relative;
  min-height: 124px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(126, 222, 229, .1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 222, 229, .08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(25, 199, 195, .08), rgba(73, 164, 255, .08));
  background-size: 22px 22px, 22px 22px, auto;
  overflow: hidden;
}

.radar-track:before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 56%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
  opacity: .74;
}

.radar-wave {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(126, 222, 229, .26);
  border-radius: 50%;
  transform: scaleX(1.8);
  opacity: .72;
}

.radar-wave:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(246, 191, 63, .24);
  border-radius: inherit;
}

.radar-pointer {
  position: absolute;
  left: var(--x, 50%);
  top: 53%;
  width: 20px;
  height: 20px;
  border: 3px solid #061520;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(246, 191, 63, .2), 0 0 34px rgba(246, 191, 63, .42);
  transform: translate(-50%, -50%);
  transition: left .24s ease;
  z-index: 2;
}

.radar-island {
  position: absolute;
  top: 53%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(126, 222, 229, .34);
  border-radius: 50%;
  background: rgba(8, 23, 33, .92);
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.radar-island[data-sea="1"] { left: 14%; }
.radar-island[data-sea="2"] { left: 50%; }
.radar-island[data-sea="3"] { left: 86%; }

.radar-island.is-passed,
.radar-island.is-active {
  border-color: rgba(246, 191, 63, .72);
  color: var(--ink);
}

.radar-island.is-active {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061520;
  box-shadow: 0 0 32px rgba(25, 199, 195, .32);
}

.radar-copy {
  display: grid;
  gap: 4px;
}

.radar-copy strong,
.radar-copy span {
  display: block;
}

.radar-copy strong {
  font-size: 18px;
}

.radar-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-media {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  background: var(--navy);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.hero-caption {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(15, 38, 52, .96);
  color: #fff;
  padding: 12px;
}

.hero-caption span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.site-search {
  position: relative;
}

.hero-search {
  margin: 18px 0 14px;
  max-width: 760px;
}

.site-search label,
.field span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 11px 12px;
}

textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 124, 130, .14);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  max-height: 370px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  padding: 8px;
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-item,
.empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.search-item b,
.search-item span {
  display: block;
}

.search-item span,
.empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-actions,
.quick-buttons,
.filters,
.tag-row,
.proof-line,
.hot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-links {
  margin-top: -4px;
}

.hot-links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(15,38,52,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  color: var(--navy);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.hero-actions {
  margin: 14px 0;
}

.secondary-action {
  background: #eef7f7;
  color: var(--teal-dark);
  border-color: rgba(0, 124, 130, .22);
}

.proof-line span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(210, 223, 217, .9);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.hero-source-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-source-strip a {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px;
}

.hero-source-strip b,
.hero-source-strip span {
  display: block;
}

.hero-source-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.route-result.compact {
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 0;
  margin-top: 0;
  padding: 12px;
  gap: 10px;
}

.route-result.compact .route-sea {
  min-height: 74px;
}

.route-result.compact .route-sea strong {
  font-size: 28px;
}

.route-result.compact h3 {
  font-size: 16px;
}

.compact-next {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.compact-next b,
.compact-next span {
  display: block;
}

.compact-next span {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.45;
}

.route-result.compact .answer-grid {
  grid-template-columns: 1fr;
}

.route-result.compact .visual-note,
.route-result.compact .tag-row {
  display: none;
}

.route-result.compact .sea-poster {
  display: none;
}

.media-strip {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
}

.media-strip figure {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-self: start;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  margin: 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 223, 56, .14), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(0, 229, 255, .12), transparent 32%),
    linear-gradient(90deg, rgba(0, 245, 255, .07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .05) 1px, transparent 1px),
    var(--navy);
  background-size: auto, auto, 24px 24px, 24px 24px, auto;
}

.media-strip img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .34));
}

.media-strip figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: var(--radius);
  background: rgba(15,38,52,.88);
  color: rgba(255,255,255,.84);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.stat-card {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 14px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.stat-card span,
.stat-card small {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.35;
}

.stat-card b {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.quick-card {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.quick-card:nth-child(2) .icon-box {
  background: linear-gradient(135deg, var(--gold), #ff8b45);
}

.quick-card:nth-child(3) .icon-box {
  background: linear-gradient(135deg, #8b5cf6, #49a4ff);
  color: #fff;
}

.quick-card:nth-child(4) .icon-box {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.quick-card b {
  font-size: 18px;
}

.quick-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.content-section,
.tool-panel,
.map-panel,
.page-hero {
  padding: 18px;
}

.content-section {
  margin-top: 16px;
}

.content-section.no-margin {
  margin-top: 0;
}

.page-hero {
  min-height: 280px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(100deg, rgba(255,250,240,.98), rgba(255,250,240,.82)),
    linear-gradient(135deg, rgba(0, 124, 130, .14), rgba(185, 131, 20, .12));
}

.fruit-hero {
  background:
    linear-gradient(100deg, rgba(255,250,240,.98), rgba(255,250,240,.84)),
    radial-gradient(circle at 86% 40%, rgba(45, 95, 190, .18), transparent 30%),
    linear-gradient(135deg, rgba(0, 124, 130, .13), rgba(185, 131, 20, .12));
}

.section-head {
  margin-bottom: 14px;
}

.section-head.row,
.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.section-head p {
  max-width: 720px;
  margin-bottom: 0;
}

.route-result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 15px;
  min-height: 230px;
  margin-top: 12px;
}

.route-sea {
  display: grid;
  place-items: center;
  align-self: start;
  min-height: 92px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--teal), var(--blue));
  border: 1px solid rgba(255,255,255,.2);
  text-align: center;
}

.route-sea strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.route-sea span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 900;
}

.route-copy p,
.route-result p {
  color: rgba(255,255,255,.78);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.answer-grid div {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  padding: 9px;
}

.answer-grid b,
.answer-grid span {
  display: block;
}

.answer-grid b {
  margin-bottom: 4px;
  font-size: 12px;
}

.answer-grid span {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.4;
}

.visual-note {
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: var(--radius);
  color: rgba(255,255,255,.78);
  padding: 9px;
  font-size: 13px;
  font-weight: 900;
}

.sea-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dcefeb, #eef0fb);
}

.sea-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.sea-path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 14 17;
}

.island circle {
  fill: #fff;
  stroke: var(--teal);
  stroke-width: 3;
}

.island.gold circle {
  stroke: var(--gold);
}

.island.red circle {
  stroke: var(--red);
}

.island text {
  text-anchor: middle;
  font-weight: 900;
  fill: var(--ink);
}

.island text + text {
  font-size: 13px;
  fill: var(--muted);
}

.map-note {
  font-size: 13px;
  font-weight: 900;
  fill: var(--navy);
}

.mini-list,
.source-list,
.voice-list,
.guide-list,
.checklist {
  display: grid;
  gap: 10px;
}

.mini-list {
  margin-top: 12px;
}

.mini-list div,
.mini-list a,
.source-row,
.voice-card,
.guide-card,
.data-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px;
}

.mini-list div,
.mini-list a {
  display: grid;
  gap: 4px;
}

.mini-list span,
.source-row p,
.source-row small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.mini-fruit {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
}

.mini-fruit-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 191, 63, .22), transparent 62%),
    rgba(8, 23, 33, .86);
  grid-row: span 2;
}

.mini-fruit-art img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  z-index: 1;
}

.card-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.guide-card,
.data-card {
  display: grid;
  gap: 10px;
}

.card-link {
  display: grid;
  gap: 10px;
  min-height: 100%;
}

.detail-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(25, 199, 195, .28);
  border-radius: var(--radius);
  background: rgba(25, 199, 195, .1);
  color: var(--teal-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.guide-card p,
.data-card p,
.plain-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.guide-card ol {
  margin: 0;
  padding-left: 20px;
  color: #344450;
  font-size: 14px;
  line-height: 1.58;
}

.guide-card li::marker {
  color: var(--teal);
  font-weight: 900;
}

.guide-visual {
  min-height: 138px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0,124,130,.16), rgba(45,95,190,.12)),
    repeating-linear-gradient(45deg, #f8faf8 0 12px, #edf3ef 12px 24px);
  display: grid;
  align-content: space-between;
  padding: 12px;
}

.guide-visual span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.guide-visual b {
  font-size: 18px;
  line-height: 1.25;
}

.route-mini {
  gap: 10px;
}

.mini-route {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px 8px;
  align-items: center;
}

.mini-route b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061520;
  font-size: 12px;
  line-height: 1;
}

.mini-route em {
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.stat-mini,
.priority-mini {
  gap: 8px;
}

.stat-mini div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.stat-mini div b,
.priority-mini > b {
  font-size: 12px;
}

.stat-mini i {
  overflow: hidden;
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}

.stat-mini i:before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.priority-mini > b {
  display: block;
  border: 1px solid rgba(126, 222, 229, .16);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .32);
  padding: 8px;
}

.fruit-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 168px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.9), rgba(255,255,255,.46) 38%, transparent 39%),
    linear-gradient(135deg, #dcefeb, #f4ead1);
  overflow: hidden;
}

.fruit-art img {
  width: min(128px, 72%);
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(16, 38, 53, .18));
  position: relative;
  z-index: 1;
}

.fruit-fallback {
  position: absolute;
  inset: auto;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(246, 191, 63, .28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, rgba(246, 191, 63, .34), rgba(25, 199, 195, .16));
  color: #ffe38b;
  font-size: 28px;
  font-weight: 900;
  opacity: .72;
}

.fruit-art.is-fallback .fruit-fallback,
.mini-fruit-art.is-fallback .fruit-fallback {
  opacity: 1;
}

.fruit-art figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: var(--radius);
  background: rgba(15,38,52,.82);
  color: rgba(255,255,255,.82);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
}

.fruit-card {
  position: relative;
  overflow: hidden;
}

.fruit-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.fruit-card.rarity-mythic:before {
  background: linear-gradient(180deg, #f6bf3f, #ff7272, #8b5cf6);
}

.fruit-card.rarity-legendary:before {
  background: linear-gradient(180deg, #f6bf3f, #ff8b45);
}

.fruit-card.rarity-rare:before {
  background: linear-gradient(180deg, #49a4ff, #19c7c3);
}

.fruit-card-top {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.fruit-card-top .fruit-art {
  min-height: 92px;
  aspect-ratio: 1;
}

.fruit-card-top .fruit-art img {
  width: 68px;
  height: 68px;
}

.fruit-card-top .fruit-art figcaption {
  display: none;
}

.fruit-title {
  display: grid;
  gap: 6px;
}

.fruit-title .tag {
  justify-self: start;
}

.fruit-verdict {
  color: #dcecf4;
  font-weight: 900;
}

.fruit-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fruit-score {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(126, 222, 229, .14);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .36);
  padding: 8px;
}

.fruit-score span,
.fruit-score b {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.fruit-score span {
  color: var(--muted);
}

.fruit-score b {
  color: var(--ink);
}

.fruit-score i {
  overflow: hidden;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}

.fruit-score i:before {
  content: "";
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.fruit-more {
  border: 1px solid rgba(126, 222, 229, .14);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .26);
  padding: 9px;
}

.fruit-more summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.fruit-more p {
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: var(--radius);
  background: #eef2f6;
  color: #415066;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.tag.gold {
  background: var(--gold-soft);
  color: #875500;
}

.tag.verified {
  background: var(--green-soft);
  color: var(--green);
}

.tag.external,
.tag.soft {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.pending {
  background: var(--gold-soft);
  color: #875500;
}

.tag.stale,
.tag.danger {
  background: var(--red-soft);
  color: var(--red);
}

.route-result .tag {
  background: rgba(255,255,255,.13);
  color: #fff;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.detail-hero,
.detail-layout,
.detail-facts {
  display: grid;
  gap: 16px;
}

.detail-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  align-items: stretch;
  min-height: 330px;
  margin-top: 0;
}

.detail-hero > div,
.detail-hero > figure,
.detail-visual,
.detail-facts div,
.detail-sources {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 40, 58, .96), rgba(11, 28, 43, .96));
  box-shadow: var(--shadow);
}

.detail-hero > div:first-child {
  display: grid;
  align-content: end;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(96deg, rgba(8, 23, 33, .96), rgba(8, 23, 33, .76)),
    linear-gradient(135deg, rgba(25, 199, 195, .2), rgba(73, 164, 255, .12) 50%, rgba(246, 191, 63, .1));
}

.detail-visual {
  display: grid;
  align-content: space-between;
  min-height: 330px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(25, 199, 195, .2), rgba(73, 164, 255, .1)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,.015) 12px 24px);
}

.detail-visual span,
.detail-visual small {
  color: var(--muted);
  line-height: 1.55;
}

.detail-visual b {
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.02;
}

.flow-visual small {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-fruit-art {
  min-height: 330px;
}

.detail-fruit-art img {
  width: min(240px, 72%);
  height: 240px;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  margin-top: 16px;
  align-items: start;
}

.detail-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.detail-facts div {
  min-height: 112px;
  padding: 13px;
  box-shadow: var(--shadow-soft);
}

.detail-facts b,
.detail-facts span {
  display: block;
}

.detail-facts span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.screenshot-section {
  margin-top: 16px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.shot-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(126, 222, 229, .18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 53, 74, .96), rgba(8, 23, 33, .98));
  box-shadow: var(--shadow-soft);
}

.shot-card.layout-wide {
  grid-column: span 2;
}

.shot-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 24% 20%, rgba(25, 199, 195, .18), transparent 34%),
    linear-gradient(135deg, rgba(73, 164, 255, .12), rgba(8, 23, 33, .92));
}

.shot-card.layout-portrait .shot-media {
  aspect-ratio: 4 / 5;
}

.shot-card.layout-wide .shot-media {
  aspect-ratio: 16 / 8.5;
}

.shot-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.shot-card.layout-portrait .shot-media img {
  object-fit: contain;
  padding: 10px;
}

.shot-media span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8, 23, 33, .7);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ff8b45);
  color: #071824;
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.shot-card figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
}

.shot-card figcaption b,
.shot-card figcaption p {
  display: block;
}

.shot-card figcaption b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.shot-card figcaption p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.shot-card figcaption a {
  white-space: nowrap;
  border: 1px solid rgba(246, 191, 63, .32);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  padding: 7px 10px;
}

.shot-card.is-broken .shot-media::after {
  content: "Image unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.step-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.72;
}

.step-list li + li {
  margin-top: 8px;
}

.step-list li::marker {
  color: var(--teal);
  font-weight: 900;
}

.detail-sources {
  margin-top: 16px;
  padding: 18px;
}

.detail-sources > h3 {
  margin-bottom: 12px;
}

.compact-source-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-source-list .source-row {
  grid-template-columns: 1fr;
  align-items: start;
}

.source-row h3 {
  margin-bottom: 4px;
}

.source-row p {
  margin-bottom: 4px;
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.toolbar-count,
.copy-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.diagram-board,
.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.diagram-board div,
.rule-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 13px;
}

.diagram-board b,
.diagram-board span,
.rule-grid b,
.rule-grid span {
  display: block;
}

.diagram-board span,
.rule-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.progress-wrap {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.progress-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e4ebe7;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width .2s ease;
}

.check-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.check-item b,
.check-item small {
  display: block;
}

.check-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.check-item.is-done {
  border-color: rgba(36,129,87,.28);
  background: #f2f8f5;
}

.copy-state {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.copy-state.is-done {
  color: var(--green);
}

.voice-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
}

.voice-thumb {
  min-height: 94px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0,124,130,.16), rgba(185,131,20,.16)),
    repeating-linear-gradient(45deg, #f8faf8 0 10px, #edf3ef 10px 20px);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 900;
}

.mock-form {
  display: grid;
  gap: 10px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px;
}

.timeline-item time {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.timeline-item p {
  margin-bottom: 0;
  font-size: 14px;
}

.clean-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer p {
  margin-bottom: 4px;
}

input,
select,
textarea {
  background: rgba(5, 18, 29, .92);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: rgba(159, 180, 195, .7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(25, 199, 195, .16);
}

.search-results {
  border-color: var(--line-strong);
  background: rgba(7, 24, 36, .98);
}

.search-item,
.empty,
.mini-list div,
.mini-list a,
.source-row,
.voice-card,
.guide-card,
.data-card,
.timeline-item,
.check-item {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(20, 40, 58, .96), rgba(11, 28, 43, .96));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.search-item:hover,
.quick-card:hover,
.mini-list a:hover,
.source-row:hover,
.guide-card:hover,
.data-card:hover {
  border-color: rgba(25, 199, 195, .52);
  transform: translateY(-1px);
}

.search-item,
.quick-card,
.mini-list a,
.source-row,
.guide-card,
.data-card {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.search-item span,
.empty,
.mini-list span,
.source-row p,
.source-row small,
.guide-card p,
.data-card p,
.plain-text,
.guide-card ol,
.check-item small,
.timeline-item p {
  color: var(--muted);
}

.secondary-action {
  background: rgba(25, 199, 195, .08);
  color: var(--teal-dark);
  border-color: rgba(25, 199, 195, .24);
}

.hot-links a,
.proof-line span {
  border-color: rgba(126, 222, 229, .22);
  background: rgba(5, 18, 29, .58);
  color: #dcecf4;
}

.hot-links a:hover,
.hero-source-strip a:hover,
.quick-card:hover {
  background: rgba(25, 199, 195, .12);
}

.hero-source-strip a,
.quick-card,
.diagram-board div,
.rule-grid div {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(24, 53, 74, .88), rgba(12, 28, 42, .94));
}

.hero-source-strip b,
.quick-card b,
.diagram-board b,
.rule-grid b,
.check-item b,
.source-row h3,
.guide-card h3,
.data-card h3,
.timeline-item h3 {
  color: var(--ink);
}

.icon-box {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061520;
  box-shadow: 0 12px 28px rgba(25, 199, 195, .2);
}

.stat-card {
  border-color: rgba(126, 222, 229, .22);
  background:
    linear-gradient(160deg, rgba(25, 199, 195, .16), rgba(73, 164, 255, .08)),
    var(--navy);
}

.page-hero {
  background:
    linear-gradient(96deg, rgba(8, 23, 33, .93), rgba(8, 23, 33, .74)),
    linear-gradient(135deg, rgba(25, 199, 195, .2), rgba(73, 164, 255, .12) 50%, rgba(246, 191, 63, .1));
}

.fruit-hero {
  background:
    linear-gradient(96deg, rgba(8, 23, 33, .93), rgba(8, 23, 33, .72)),
    linear-gradient(135deg, rgba(246, 191, 63, .16), rgba(25, 199, 195, .13) 52%, rgba(255, 114, 114, .1));
}

.route-result {
  border: 1px solid rgba(126, 222, 229, .18);
  background:
    linear-gradient(160deg, rgba(25, 199, 195, .12), rgba(73, 164, 255, .08)),
    var(--navy);
}

.route-sea {
  color: #061520;
}

.route-sea span {
  color: rgba(6, 21, 32, .72);
}

.sea-map {
  background:
    linear-gradient(135deg, rgba(25, 199, 195, .16), rgba(73, 164, 255, .09)),
    #0a1e2f;
}

.island circle {
  fill: #102c3d;
  stroke: var(--teal);
}

.island text {
  fill: var(--ink);
}

.island text + text {
  fill: var(--muted);
}

.map-note {
  fill: var(--teal-dark);
}

.guide-visual {
  background:
    linear-gradient(135deg, rgba(25, 199, 195, .2), rgba(73, 164, 255, .12)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.01) 12px 24px);
  border: 1px solid rgba(126, 222, 229, .14);
}

.guide-visual b {
  color: var(--ink);
}

.fruit-art {
  border-color: rgba(126, 222, 229, .16);
  background:
    radial-gradient(circle at 50% 44%, rgba(246, 191, 63, .22), rgba(25, 199, 195, .12) 36%, transparent 56%),
    linear-gradient(135deg, rgba(20, 40, 58, .9), rgba(8, 23, 33, .96));
}

.fruit-art img {
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .42));
}

.tag {
  background: rgba(255,255,255,.08);
  color: #d7e8ef;
  border: 1px solid rgba(255,255,255,.08);
}

.tag.gold {
  background: var(--gold-soft);
  color: #ffd66d;
}

.tag.verified {
  background: var(--green-soft);
  color: var(--green);
}

.tag.external,
.tag.soft {
  background: var(--blue-soft);
  color: #82c1ff;
}

.tag.pending {
  background: var(--gold-soft);
  color: #ffd66d;
}

.tag.stale,
.tag.danger {
  background: var(--red-soft);
  color: var(--red);
}

.progress-bar {
  background: rgba(255,255,255,.09);
}

.check-item.is-done {
  border-color: rgba(88, 214, 141, .34);
  background: linear-gradient(180deg, rgba(88, 214, 141, .13), rgba(11, 28, 43, .96));
}

.voice-thumb {
  background:
    linear-gradient(135deg, rgba(25, 199, 195, .28), rgba(246, 191, 63, .18)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 10px, rgba(255,255,255,.02) 10px 20px);
  color: var(--ink);
}

.clean-list {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .two-col,
  .media-strip,
  .detail-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .card-grid.four,
  .card-grid.three,
  .stats-band,
  .quick-grid,
  .diagram-board,
  .rule-grid,
  .compact-source-list,
  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-switch {
    width: 150px;
  }
}

@media (max-width: 700px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 1220px);
  }

  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
    width: 96px;
  }

  .hero-copy {
    min-height: auto;
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-workbench {
    min-height: auto;
    padding: 14px;
  }

  .sea-radar {
    padding: 12px;
  }

  .radar-track {
    min-height: 108px;
  }

  .radar-wave {
    transform: none;
  }

  .radar-island {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .fruit-card-top {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .fruit-card-top .fruit-art {
    min-height: 76px;
  }

  .fruit-card-top .fruit-art img {
    width: 56px;
    height: 56px;
  }

  .fruit-score-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-section,
  .tool-panel,
  .map-panel,
  .page-hero,
  .media-strip {
    padding: 14px;
  }

  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .stats-band,
  .quick-grid,
  .diagram-board,
  .rule-grid,
  .hero-source-strip,
  .media-strip,
  .compact-source-list,
  .route-result,
  .answer-grid,
  .source-row,
  .voice-card,
  .timeline-item,
  .section-head.row,
  .row,
  .detail-hero,
  .detail-layout,
  .detail-facts {
    grid-template-columns: 1fr;
    display: grid;
  }

  .detail-visual,
  .detail-fruit-art {
    min-height: 260px;
  }

  .screenshot-grid,
  .shot-card.layout-wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .shot-card figcaption {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .shot-card.layout-wide .shot-media {
    aspect-ratio: 16 / 10;
  }

  .route-sea {
    min-height: 72px;
  }

  .search-results {
    position: static;
    margin-top: 8px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .page-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-right: min(380px, 34vw);
}

.page-hero > :not(.page-hero-poster) {
  position: relative;
  z-index: 2;
}

.page-hero-poster {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  width: min(330px, 30vw);
  border: 1px solid rgba(126, 222, 229, .22);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(126, 222, 229, .09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 222, 229, .07) 1px, transparent 1px),
    radial-gradient(circle at 72% 24%, rgba(246, 191, 63, .22), transparent 26%),
    linear-gradient(145deg, rgba(25, 199, 195, .18), rgba(8, 23, 33, .88));
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow: var(--shadow-soft);
}

.poster-stack {
  position: absolute;
  inset: 18px 18px auto;
  min-height: 132px;
}

.visual-fruit {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(126, 222, 229, .22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.2), transparent 24%),
    linear-gradient(145deg, rgba(246, 191, 63, .2), rgba(25, 199, 195, .13)),
    var(--navy);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
}

.visual-fruit img {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .38));
}

.visual-fruit .fruit-fallback {
  width: 64%;
  height: 64%;
  font-size: 20px;
}

.poster-stack .visual-fruit {
  position: absolute;
  width: 112px;
  height: 112px;
}

.poster-fruit-1 {
  left: 0;
  top: 18px;
}

.poster-fruit-2 {
  left: 92px;
  top: 0;
  width: 136px !important;
  height: 136px !important;
  border-color: rgba(246, 191, 63, .38);
}

.poster-fruit-3 {
  right: 0;
  top: 58px;
}

.poster-mini-map {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 72px;
  border: 1px solid rgba(126, 222, 229, .2);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .54);
}

.poster-mini-map i {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
}

.poster-mini-map span {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(8, 23, 33, .96);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  transform: translate(-50%, -50%);
}

.poster-mini-map span:nth-child(1) { left: 16%; }
.poster-mini-map span:nth-child(2) { left: 50%; background: linear-gradient(135deg, var(--gold), #ff8b45); }
.poster-mini-map span:nth-child(3) { left: 84%; background: linear-gradient(135deg, #ff7272, #8b5cf6); }

.visual-map {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  border: 1px solid rgba(126, 222, 229, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(126, 222, 229, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 222, 229, .06) 1px, transparent 1px),
    radial-gradient(circle at 24% 28%, rgba(73, 164, 255, .18), transparent 26%),
    rgba(5, 18, 29, .46);
  background-size: 20px 20px, 20px 20px, auto, auto;
}

.visual-map.detail {
  min-height: 250px;
  background-size: 26px 26px, 26px 26px, auto, auto;
}

.visual-map svg {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

.visual-map path {
  fill: none;
  stroke: rgba(246, 191, 63, .76);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  min-width: 64px;
  max-width: 120px;
  transform: translate(-50%, -50%);
  text-align: center;
  justify-items: center;
  gap: 4px;
}

.map-pin b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(8, 23, 33, .96);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061520;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 0 22px rgba(25, 199, 195, .3);
}

.map-pin em,
.map-pin small {
  display: block;
  border-radius: var(--radius);
  background: rgba(8, 23, 33, .78);
  color: var(--ink);
  padding: 4px 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.map-pin small {
  color: var(--muted);
  font-weight: 800;
}

.visual-map.detail .map-pin {
  max-width: 156px;
}

.visual-map.detail .map-pin b {
  width: 36px;
  height: 36px;
}

.guide-visual.map-filled {
  gap: 8px;
  align-content: stretch;
}

.guide-visual.map-filled > span,
.guide-visual.fruit-backed > span,
.guide-visual.shard-backed > span {
  position: relative;
  z-index: 2;
}

.fruit-backed {
  position: relative;
  overflow: hidden;
  min-height: 158px;
}

.guide-fruit-mark {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 74px;
  height: 74px;
  opacity: .92;
}

.stat-mini.fruit-backed div {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 72px);
}

.shard-cluster {
  position: absolute;
  right: 12px;
  top: 36px;
  width: 88px;
  height: 88px;
}

.shard-cluster i {
  position: absolute;
  display: block;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(126, 222, 229, .34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(25, 199, 195, .48), rgba(73, 164, 255, .18));
  box-shadow: 0 0 28px rgba(25, 199, 195, .24);
  transform: rotate(45deg);
}

.shard-cluster i:nth-child(1) { left: 0; top: 22px; }
.shard-cluster i:nth-child(2) { right: 0; top: 6px; background: linear-gradient(135deg, rgba(246, 191, 63, .46), rgba(25, 199, 195, .16)); }
.shard-cluster i:nth-child(3) { right: 18px; bottom: 0; background: linear-gradient(135deg, rgba(73, 164, 255, .42), rgba(255, 114, 114, .13)); }

.sea-poster {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  border: 1px solid rgba(126, 222, 229, .18);
  border-radius: var(--radius);
  background: rgba(5, 18, 29, .42);
  padding: 9px;
}

.poster-title {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.poster-water {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(126, 222, 229, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 222, 229, .06) 1px, transparent 1px),
    rgba(8, 23, 33, .82);
  background-size: 20px 20px, 20px 20px, auto;
}

.poster-water svg {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

.poster-water path {
  fill: none;
  stroke: rgba(246, 191, 63, .68);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
}

.poster-island {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  min-height: 30px;
  border: 1px solid rgba(126, 222, 229, .26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(25, 199, 195, .22), rgba(73, 164, 255, .12));
  color: var(--ink);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  padding: 4px;
}

.poster-island b {
  display: block;
  font-size: inherit;
  line-height: 1.1;
}

.poster-island.island-1 { left: 4%; top: 47%; }
.poster-island.island-2 { left: 29%; top: 15%; }
.poster-island.island-3 { right: 28%; top: 42%; }
.poster-island.island-4 { right: 4%; top: 22%; }

.db-card {
  overflow: hidden;
}

.db-visual {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border: 1px solid rgba(126, 222, 229, .16);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(126, 222, 229, .07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(126, 222, 229, .055) 1px, transparent 1px),
    linear-gradient(145deg, rgba(25, 199, 195, .14), rgba(8, 23, 33, .76));
  background-size: 20px 20px, 20px 20px, auto;
}

.type-db-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
}

.type-db-visual b {
  color: var(--ink);
  font-size: 22px;
}

.type-db-visual small {
  width: min(90%, 180px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.type-orbit {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(126, 222, 229, .22);
  border-radius: 50%;
}

.type-orbit i {
  position: absolute;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 24px rgba(25, 199, 195, .38);
}

.type-orbit i:nth-child(1) { left: 14%; top: 16%; }
.type-orbit i:nth-child(2) { right: 12%; top: 42%; background: var(--gold); }
.type-orbit i:nth-child(3) { left: 46%; bottom: 8%; background: var(--blue); }

.map-db-visual svg {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}

.map-db-visual path {
  fill: none;
  stroke: rgba(246, 191, 63, .72);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
}

.map-db-visual circle {
  fill: rgba(25, 199, 195, .2);
  stroke: rgba(126, 222, 229, .74);
  stroke-width: 3;
}

.map-db-visual b,
.map-db-visual span {
  position: absolute;
  left: 10px;
  z-index: 2;
  border-radius: var(--radius);
  background: rgba(8, 23, 33, .72);
  padding: 5px 7px;
  font-weight: 900;
}

.map-db-visual b {
  top: 10px;
  color: var(--teal-dark);
  font-size: 12px;
}

.map-db-visual span {
  right: 10px;
  bottom: 10px;
  color: var(--ink);
  font-size: 13px;
}

.fruit-db-visual {
  display: grid;
  place-items: center;
}

.fruit-db-visual .visual-fruit {
  width: 92px;
  height: 92px;
}

.fruit-db-visual > span:last-child {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: var(--radius);
  background: rgba(8, 23, 33, .72);
  color: var(--teal-dark);
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 900;
}

.detail-db-visual .db-visual.detail {
  min-height: 220px;
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .page-hero {
    padding-right: 18px;
  }

  .page-hero-poster {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 210px;
    margin-top: 16px;
  }
}

@media (max-width: 700px) {
  .page-hero-poster {
    width: calc(100vw - 48px) !important;
    max-width: 100%;
    min-width: 0;
    min-height: 170px;
    justify-self: stretch;
  }

  .poster-stack {
    inset: 12px 12px auto;
  }

  .poster-stack .visual-fruit {
    width: 86px;
    height: 86px;
  }

  .poster-fruit-2 {
    left: 70px;
    width: 104px !important;
    height: 104px !important;
  }

  .poster-fruit-3 {
    right: 0;
    top: 50px;
  }

  .poster-mini-map {
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 58px;
  }

  .visual-map.detail {
    min-height: 300px;
  }

  .map-pin {
    min-width: 54px;
    max-width: 98px;
  }

  .map-pin em,
  .map-pin small {
    font-size: 10px;
  }

  .poster-island {
    width: 52px;
    font-size: 9px;
  }
}

/* Cyber tool skin inspired by BloxFruitsAI Calculator */
:root {
  --bg: #02080d;
  --paper: #07141d;
  --surface: #091a25;
  --surface-soft: #0d2431;
  --ink: #eefaff;
  --muted: #8fa8bb;
  --line: rgba(0, 245, 255, .18);
  --line-strong: rgba(0, 245, 255, .44);
  --navy: #030b12;
  --teal: #00e5ff;
  --teal-dark: #62fbff;
  --gold: #ffdf38;
  --gold-soft: rgba(255, 223, 56, .13);
  --blue: #3f7cff;
  --blue-soft: rgba(63, 124, 255, .14);
  --green: #35f08f;
  --green-soft: rgba(53, 240, 143, .13);
  --red: #ff4f72;
  --red-soft: rgba(255, 79, 114, .14);
  --shadow: 0 26px 90px rgba(0, 0, 0, .55);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, .36);
  --radius: 8px;
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(180deg, rgba(0, 229, 255, .05), transparent 220px),
    linear-gradient(90deg, rgba(0, 245, 255, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .04) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 34px 34px, 34px 34px, auto;
}

body:before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 34%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px);
}

body:after {
  background:
    linear-gradient(126deg, transparent 0 54%, rgba(0, 229, 255, .1) 54% 55%, transparent 55%),
    linear-gradient(24deg, transparent 0 68%, rgba(255, 223, 56, .08) 68% 69%, transparent 69%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 118px);
}

main,
.site-header,
.site-footer {
  width: min(1280px, calc(100% - 36px));
}

.site-header {
  top: 0;
  margin-top: 0;
  border-top: 0;
  border-color: rgba(0, 245, 255, .22);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(3, 11, 18, .9);
  box-shadow: 0 0 0 1px rgba(0, 245, 255, .06), 0 18px 50px rgba(0, 0, 0, .45);
}

.site-header:after,
.hero:after,
.page-hero:after,
.content-section:after,
.tool-panel:after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, .86), rgba(255, 223, 56, .55), transparent);
}

.site-header,
.hero,
.page-hero,
.content-section,
.tool-panel,
.map-panel,
.media-strip,
.detail-hero > div,
.detail-hero > figure,
.detail-visual,
.detail-facts div,
.detail-sources,
.shot-card,
.quick-card,
.guide-card,
.data-card,
.source-row,
.voice-card,
.timeline-item,
.code-row,
.value-table article,
.wfl-side,
.route-result,
.stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 245, 255, .18);
  background:
    linear-gradient(180deg, rgba(8, 22, 32, .96), rgba(3, 11, 18, .98)),
    linear-gradient(90deg, rgba(0, 245, 255, .055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .04) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: var(--shadow-soft);
}

.brand img {
  border-color: rgba(0, 245, 255, .5);
  background: #04111a;
  box-shadow: 0 0 24px rgba(0, 229, 255, .22);
}

.brand strong {
  color: var(--ink);
}

.brand small,
.main-nav a {
  color: #8fa8bb;
}

.main-nav {
  gap: 6px;
}

.main-nav a,
.lang-switch button,
.quick-buttons button,
.filters button,
.small-action,
.primary-action,
.secondary-action,
.save-btn {
  border-color: rgba(0, 245, 255, .16);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
}

.main-nav a:hover,
.small-action:hover,
.secondary-action:hover,
.quick-buttons button:hover,
.filters button:hover,
.save-btn:hover {
  border-color: rgba(0, 245, 255, .62);
  background: rgba(0, 229, 255, .1);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(0, 229, 255, .12);
}

.main-nav a.is-active,
.filters button.is-active,
.lang-switch button.is-active {
  border-color: rgba(0, 245, 255, .72);
  background: rgba(0, 229, 255, .12);
  color: var(--teal-dark);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.primary-action {
  border-color: rgba(0, 245, 255, .76);
  background: linear-gradient(135deg, rgba(0, 229, 255, .95), rgba(63, 124, 255, .9));
  color: #031018;
  box-shadow: 0 0 30px rgba(0, 229, 255, .22);
}

.secondary-action {
  border-color: rgba(0, 245, 255, .34);
  background: rgba(0, 229, 255, .055);
  color: var(--teal-dark);
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, .96fr) minmax(420px, .78fr);
  gap: 0;
  align-items: start;
  margin-top: 18px;
  border: 1px solid rgba(0, 245, 255, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(3, 11, 18, .98), rgba(6, 20, 29, .94) 56%, rgba(3, 11, 18, .98)),
    linear-gradient(90deg, rgba(0, 245, 255, .055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .04) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-workbench {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0;
  align-self: start;
  min-height: auto;
  align-content: start;
  padding: clamp(18px, 3.2vw, 36px);
}

.hero-copy-main {
  align-self: start;
  max-width: 740px;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
  color: var(--ink);
  text-shadow: 0 0 34px rgba(0, 229, 255, .18);
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(40px, 4.8vw, 58px);
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-quick-stack {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: clamp(34px, 5vw, 72px);
  padding-top: clamp(18px, 2.4vw, 30px);
}

.hero-quick-stack::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, .44), rgba(255, 223, 56, .36), transparent);
}

.hero-intel-strip,
.hero-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-intel-strip a,
.hero-task-grid a {
  position: relative;
  overflow: hidden;
  display: grid;
  min-width: 0;
  border: 1px solid rgba(0, 245, 255, .2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .105), rgba(3, 11, 18, .7) 62%),
    rgba(3, 11, 18, .56);
  box-shadow: inset 0 0 0 1px rgba(0, 245, 255, .035);
  color: var(--ink);
  padding: 12px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.hero-intel-strip a::before,
.hero-task-grid a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
  opacity: .9;
}

.hero-intel-strip a:hover,
.hero-task-grid a:hover,
.hero-intel-strip a:focus-visible,
.hero-task-grid a:focus-visible {
  border-color: rgba(0, 245, 255, .46);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .16), rgba(3, 11, 18, .74) 62%),
    rgba(3, 11, 18, .66);
  transform: translateY(-2px);
}

.hero-intel-strip a {
  min-height: 112px;
  align-content: start;
  gap: 8px;
  padding: 18px 20px;
  border-color: rgba(0, 245, 255, .34);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .14), rgba(3, 11, 18, .74) 62%),
    rgba(3, 11, 18, .7);
  box-shadow: inset 0 0 0 1px rgba(0, 245, 255, .06), 0 0 28px rgba(0, 229, 255, .07);
}

.hero-intel-strip span {
  color: var(--gold);
  font-size: 15px;
  font-weight: 1000;
}

.hero-intel-strip b,
.hero-task-grid b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.hero-intel-strip b {
  font-size: clamp(20px, 2vw, 28px);
}

.hero-intel-strip small,
.hero-task-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hero-intel-strip small {
  font-size: 17px;
}

.hero-task-grid a {
  min-height: 84px;
  align-content: center;
  gap: 7px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(255, 223, 56, .08), rgba(3, 11, 18, .72) 58%),
    rgba(3, 11, 18, .62);
}

.hero-task-grid {
  margin-top: 0;
}

.hero-task-grid b {
  font-size: clamp(18px, 1.65vw, 24px);
}

.hero-task-grid span {
  font-size: 16px;
}

.hero-intel-strip .soft-entry {
  border-color: rgba(255, 223, 56, .22);
  background:
    linear-gradient(135deg, rgba(255, 223, 56, .09), rgba(3, 11, 18, .74) 64%),
    rgba(3, 11, 18, .62);
}

.lead {
  color: #9fb7ca;
}

.kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(0, 245, 255, .28);
  border-radius: 999px;
  background: rgba(0, 229, 255, .08);
  color: var(--teal-dark);
  padding: 5px 10px;
}

.hero-workbench {
  align-self: start;
  margin: 18px;
  border: 1px solid rgba(0, 245, 255, .28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 20, 29, .96), rgba(2, 8, 13, .98)),
    linear-gradient(90deg, rgba(0, 245, 255, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .045) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  box-shadow: inset 0 0 0 1px rgba(0, 245, 255, .06), 0 0 42px rgba(0, 229, 255, .1);
}

.hero-workbench .section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 245, 255, .14);
}

.hero-workbench .section-head h2 {
  font-size: clamp(30px, 3vw, 44px);
}

.hero-workbench .section-head p:last-child {
  font-size: 14px;
  line-height: 1.45;
}

.sea-radar,
.radar-track,
.hero-source-strip a,
.answer-grid div,
.visual-note,
.fruit-score,
.fruit-more,
.priority-mini > b {
  border-color: rgba(0, 245, 255, .16);
  background: rgba(3, 11, 18, .72);
}

.radar-track {
  background:
    linear-gradient(90deg, rgba(0, 245, 255, .11) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .08) 1px, transparent 1px),
    rgba(2, 8, 13, .7);
  background-size: 22px 22px, 22px 22px, auto;
}

.hero-workbench .sea-radar {
  gap: 10px;
  padding: 12px;
}

.hero-workbench .radar-track {
  min-height: 104px;
}

.hero-workbench .field span {
  margin-bottom: 6px;
}

.hero-workbench input {
  min-height: 42px;
}

.hero-workbench .quick-buttons button {
  min-height: 34px;
}

.hero-workbench .hero-source-strip a {
  min-height: 72px;
  padding: 10px;
}

.hero-workbench .route-result.compact {
  grid-template-columns: 66px minmax(0, 1fr);
  padding: 10px;
  gap: 10px;
}

.hero-workbench .route-result.compact .route-sea {
  min-height: 66px;
}

.hero-workbench .route-result.compact .route-sea strong {
  font-size: 24px;
}

.hero-workbench .route-result.compact .card-head {
  gap: 8px;
}

.hero-workbench .route-result.compact .card-head p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.hero-workbench .compact-next {
  margin-top: 5px;
}

.hero-workbench .compact-next span {
  font-size: 12px;
  line-height: 1.35;
}

.hero-workbench .route-result.compact .hero-actions {
  margin: 8px 0 0;
}

.radar-pointer {
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(255, 223, 56, .18), 0 0 38px rgba(255, 223, 56, .42);
}

.radar-island.is-active {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 0 34px rgba(0, 229, 255, .32);
}

input,
select,
textarea {
  border-color: rgba(0, 245, 255, .32);
  background: rgba(2, 8, 13, .92);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: rgba(143, 168, 187, .72);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .12), 0 0 28px rgba(0, 229, 255, .12);
}

.search-results,
.search-item,
.empty {
  border-color: rgba(0, 245, 255, .18);
  background: rgba(5, 16, 23, .98);
}

.search-item:hover {
  border-color: rgba(0, 245, 255, .45);
  background: rgba(0, 229, 255, .08);
}

.hot-links a,
.proof-line span,
.tag,
.detail-pill,
.code-status {
  border: 1px solid rgba(0, 245, 255, .22);
  background: rgba(0, 229, 255, .075);
  color: var(--teal-dark);
}

.tag.gold,
.tag.pending {
  border-color: rgba(255, 223, 56, .28);
  background: rgba(255, 223, 56, .12);
  color: var(--gold);
}

.tag.verified,
.code-status {
  border-color: rgba(53, 240, 143, .26);
  background: rgba(53, 240, 143, .11);
  color: var(--green);
}

.tag.stale,
.tag.danger {
  border-color: rgba(255, 79, 114, .26);
  background: rgba(255, 79, 114, .12);
  color: var(--red);
}

.stats-band,
.quick-grid,
.card-grid,
.two-col,
.media-strip {
  gap: 14px;
}

.stat-card {
  min-height: 116px;
}

.stat-card b {
  color: var(--ink);
}

.quick-card,
.guide-card,
.data-card,
.source-row,
.voice-card,
.timeline-item,
.mini-list div,
.mini-list a {
  color: var(--ink);
}

.quick-card:hover,
.guide-card:hover,
.data-card:hover,
.source-row:hover {
  border-color: rgba(0, 245, 255, .5);
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(0, 229, 255, .11), var(--shadow-soft);
}

.icon-box,
.code-rank {
  background: rgba(0, 229, 255, .12);
  color: var(--teal-dark);
  border: 1px solid rgba(0, 245, 255, .22);
}

.content-section,
.tool-panel,
.map-panel,
.page-hero,
.media-strip {
  border-color: rgba(0, 245, 255, .16);
}

.page-hero,
.detail-hero > div:first-child {
  background:
    linear-gradient(100deg, rgba(3, 11, 18, .98), rgba(8, 22, 32, .88)),
    linear-gradient(90deg, rgba(0, 245, 255, .055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .04) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.section-head h2,
.card-head h3,
.quick-card b,
.guide-card h3,
.data-card h3,
.source-row h3 {
  color: var(--ink);
}

.source-row {
  background:
    linear-gradient(180deg, rgba(7, 20, 29, .96), rgba(3, 11, 18, .98));
}

.guide-card ol {
  color: var(--muted);
}

.guide-visual,
.fruit-art,
.db-visual,
.visual-map,
.sea-poster,
.poster-water {
  border-color: rgba(0, 245, 255, .18);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .12), rgba(255, 223, 56, .055)),
    linear-gradient(90deg, rgba(0, 245, 255, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .06) 1px, transparent 1px),
    rgba(3, 11, 18, .78);
  background-size: auto, 20px 20px, 20px 20px, auto;
}

.fruit-art {
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 229, 255, .18), rgba(255, 223, 56, .08) 42%, transparent 43%),
    rgba(3, 11, 18, .82);
}

.fruit-art img {
  filter: drop-shadow(0 18px 26px rgba(0, 229, 255, .16));
}

.fruit-art figcaption,
.media-strip figcaption,
.hero-caption {
  background: rgba(3, 11, 18, .86);
  border: 1px solid rgba(0, 245, 255, .18);
}

.route-result {
  border-color: rgba(0, 245, 255, .24);
}

.route-sea {
  background: linear-gradient(145deg, var(--teal), var(--blue));
  color: #031018;
}

.route-sea span {
  color: rgba(3, 16, 24, .72);
}

.wfl-grid {
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
}

.wfl-side {
  min-height: 330px;
  border-color: rgba(0, 245, 255, .34);
  background:
    linear-gradient(180deg, rgba(3, 20, 30, .98), rgba(2, 8, 13, .98));
}

.wfl-side:last-child {
  border-color: rgba(255, 223, 56, .34);
}

.wfl-side h3 {
  color: var(--teal-dark);
}

.wfl-side:last-child h3 {
  color: var(--gold);
}

.wfl-versus {
  border-color: rgba(0, 245, 255, .22);
  background: rgba(0, 229, 255, .06);
  color: var(--ink);
  box-shadow: 0 0 24px rgba(0, 229, 255, .1);
}

.code-table-head {
  border-color: rgba(0, 245, 255, .18);
  background: rgba(3, 11, 18, .72);
}

.code-row code,
.value-table b,
.code-row b {
  color: var(--ink);
}

.value-table article {
  border-color: rgba(0, 245, 255, .16);
}

.detail-visual {
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .16), rgba(255, 223, 56, .06)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.012) 12px 24px);
}

.shot-card {
  background:
    linear-gradient(180deg, rgba(7, 20, 29, .96), rgba(3, 11, 18, .98));
}

.shot-media {
  background:
    linear-gradient(90deg, rgba(0, 245, 255, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .06) 1px, transparent 1px),
    rgba(2, 8, 13, .8);
  background-size: 22px 22px, 22px 22px, auto;
}

.shot-media span {
  border-color: rgba(255, 223, 56, .7);
  background: linear-gradient(135deg, var(--gold), #ff8b45);
}

.shot-card figcaption a {
  border-color: rgba(0, 245, 255, .28);
  color: var(--teal-dark);
}

.bottom-nav {
  background: rgba(3, 11, 18, .94);
  border-color: rgba(0, 245, 255, .18);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding-bottom: 22px;
  }

  .hero-copy-main {
    max-width: none;
  }

  .hero-workbench {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 18px, 1280px);
  }

  .site-header {
    top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .hero {
    margin-top: 12px;
  }

  .hero-copy {
    grid-template-rows: auto;
    gap: 14px;
    padding: 20px 14px 16px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-intel-strip,
  .hero-task-grid {
    grid-template-columns: 1fr;
  }

  .hero-intel-strip a,
  .hero-task-grid a {
    min-height: 64px;
    padding: 11px 12px 11px 14px;
  }

  .hero-search {
    margin: 14px 0 12px;
  }

  .hero-actions {
    margin: 12px 0;
  }

  .hero-workbench {
    margin: 0 10px 10px;
  }

  .wfl-grid {
    grid-template-columns: 1fr;
  }

  .wfl-versus {
    min-height: 54px;
  }

  .hot-links a,
  .proof-line span {
    width: 100%;
    justify-content: center;
  }
}

/* Style QA: keep dense tool rows inside their panels. */
.code-table-head {
  display: none;
}

.code-row {
  grid-template-columns: 42px minmax(0, 1fr) minmax(70px, auto);
  grid-template-areas:
    "rank main action"
    "rank reward action"
    "rank status checked";
  gap: 6px 12px;
  align-items: center;
  overflow: visible;
}

.code-rank {
  grid-area: rank;
}

.code-main {
  grid-area: main;
  min-width: 0;
}

.code-reward {
  grid-area: reward;
  min-width: 0;
}

.code-reward,
.code-checked {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.code-reward::before,
.code-status::before,
.code-checked::before {
  content: attr(data-label);
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.code-status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-width: 86px;
}

.code-checked {
  grid-area: checked;
  justify-self: end;
  white-space: nowrap;
}

.code-row .small-action {
  grid-area: action;
  justify-self: end;
  min-width: 64px;
  max-width: 100%;
}

.compact-code-row {
  grid-template-columns: 34px minmax(0, 1fr) minmax(64px, auto);
  grid-template-areas:
    "rank main action"
    "rank reward action";
}

.code-row code,
.code-reward,
.source-row h3,
.source-row p,
.source-row small,
.quick-card b,
.quick-card p,
.guide-card h3,
.guide-card p,
.data-card h3,
.data-card p {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .code-row {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "rank main"
      "rank reward"
      "rank status"
      "rank checked"
      "rank action";
  }

  .code-status,
  .code-checked,
  .code-row .small-action {
    grid-column: auto;
    justify-self: start;
  }
}

/* Final hierarchy pass: source cards are helpful exits, not the main task. */
.source-row {
  border-color: rgba(0, 245, 255, .12);
  background:
    linear-gradient(180deg, rgba(7, 20, 29, .78), rgba(3, 11, 18, .86));
  box-shadow: inset 0 0 0 1px rgba(0, 245, 255, .025);
}

.source-row h3 {
  font-size: 15px;
}

.source-row p,
.source-row small {
  color: rgba(143, 168, 187, .82);
}

.source-row .tag {
  opacity: .86;
}

.source-row .small-action {
  min-width: 58px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.source-row:hover {
  border-color: rgba(0, 245, 255, .3);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 229, 255, .06);
}

.source-row-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  padding: 11px;
}

.source-row-compact .tag {
  justify-self: start;
}

.source-row-compact .small-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.code-help-block {
  border-color: rgba(255, 223, 56, .2);
  background: rgba(255, 223, 56, .06);
}

@media (max-width: 700px) {
  .hero-quick-stack {
    margin-top: 38px;
    padding-top: 18px;
  }

  .hero-intel-strip a {
    min-height: 94px;
    padding: 15px 16px;
  }

  .hero-task-grid a {
    min-height: 78px;
    padding: 15px 16px;
  }

  .hero-intel-strip b,
  .hero-task-grid b {
    font-size: 21px;
  }

  .hero-intel-strip small,
  .hero-task-grid span {
    font-size: 15px;
  }

  .source-row,
  .source-row-compact {
    grid-template-columns: 1fr;
  }

  .source-row-compact .small-action {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }
}

/* Polish pass: consistent spacing and clearer card grouping. */
:root {
  --label-title-gap: clamp(14px, 1.5vw, 20px);
  --title-copy-gap: clamp(8px, 1vw, 12px);
  --divider-breathing: clamp(34px, 4vw, 54px);
  --panel-inner-gap: clamp(12px, 1.2vw, 16px);
}

.kicker,
.eyebrow {
  margin: 0 0 var(--label-title-gap);
  line-height: 1.12;
}

.hero-copy-main > .kicker,
.page-hero > .kicker,
.detail-hero .kicker,
.section-head .kicker,
.tool-panel .section-head .kicker,
.hero-workbench .section-head .kicker {
  margin-bottom: var(--label-title-gap);
}

.kicker + h1,
.kicker + h2,
.eyebrow + h3,
.section-head .kicker + h2,
.page-hero > .kicker + h1 {
  margin-top: 0;
}

.page-hero > h1 + .lead,
.detail-hero h1 + .lead,
.section-head > h2 + p,
.section-head > h3 + p {
  margin-top: var(--title-copy-gap);
}

.section-head {
  margin-bottom: clamp(16px, 1.8vw, 22px);
}

.section-head p:not(.kicker) {
  margin-bottom: 0;
}

.hero-workbench .section-head {
  padding-bottom: clamp(14px, 1.6vw, 20px);
}

.hero-workbench .section-head p:last-child {
  margin-top: var(--title-copy-gap);
}

.hero-quick-stack {
  margin-top: var(--divider-breathing);
  padding-top: var(--divider-breathing);
  gap: clamp(12px, 1.3vw, 16px);
}

.hero-quick-stack::before {
  box-shadow:
    0 -1px 18px rgba(0, 229, 255, .08),
    0 1px 18px rgba(255, 223, 56, .06);
}

.hero-intel-strip,
.hero-task-grid {
  gap: clamp(10px, 1.2vw, 14px);
}

.hero-intel-strip a,
.hero-task-grid a,
.quick-card,
.guide-card,
.data-card,
.source-row,
.voice-card,
.timeline-item,
.check-item,
.diagram-board div,
.rule-grid div,
.redeem-step div,
.wfl-side,
.value-table article,
.shot-card figcaption {
  gap: var(--panel-inner-gap);
}

.hero-intel-strip a,
.hero-task-grid a {
  align-content: start;
}

.hero-intel-strip b,
.hero-task-grid b,
.quick-card b,
.guide-card h3,
.data-card h3,
.source-row h3 {
  line-height: 1.18;
}

.hero-intel-strip small,
.hero-task-grid span,
.quick-card p,
.guide-card p,
.data-card p,
.source-row p,
.source-row small,
.timeline-item p,
.check-item small {
  line-height: 1.5;
}

.icon-box {
  margin-bottom: 2px;
}

.content-section,
.tool-panel,
.map-panel,
.page-hero,
.media-strip,
.detail-hero > div:first-child,
.detail-visual,
.detail-sources {
  padding: clamp(18px, 2.2vw, 26px);
}

.two-col,
.stats-band,
.quick-grid,
.media-strip,
.card-grid,
.detail-layout,
.detail-facts,
.screenshot-grid {
  gap: clamp(14px, 1.6vw, 20px);
}

.two-col {
  align-items: stretch;
}

.two-col > .content-section,
.two-col > .tool-panel {
  height: 100%;
}

.page-hero,
.detail-hero > div:first-child,
.section-head,
.card-head,
.guide-card,
.data-card,
.source-row,
.quick-card,
.tool-panel,
.content-section {
  min-width: 0;
}

.page-hero h1,
.page-hero .lead,
.detail-hero h1,
.detail-hero .lead,
.detail-hero p,
.section-head h2,
.section-head p,
.card-head h3,
.guide-card h3,
.guide-card p,
.data-card h3,
.data-card p,
.source-row h3,
.source-row p,
.quick-card b,
.quick-card p,
.route-result h3,
.route-result p,
.compact-next span {
  overflow-wrap: anywhere;
}

.mini-fruit-art,
.visual-fruit,
.fruit-art {
  min-width: 0;
}

.mini-fruit-art .fruit-fallback,
.visual-fruit .fruit-fallback {
  max-width: 100%;
  max-height: 100%;
  font-size: clamp(14px, 4vw, 22px);
  line-height: 1;
  text-align: center;
}

@media (min-width: 701px) {
  .hero h1 {
    max-width: 560px;
    font-size: clamp(40px, 4.5vw, 56px);
  }
}

@media (min-width: 1081px) {
  .hero {
    align-items: stretch;
  }

  .hero-workbench {
    align-self: stretch;
    margin: 0;
    border-width: 0 0 0 1px;
    border-radius: 0;
    min-height: auto;
  }
}

@media (max-width: 700px) {
  :root {
    --label-title-gap: 14px;
    --title-copy-gap: 8px;
    --divider-breathing: 28px;
    --panel-inner-gap: 10px;
  }

  .hero-copy {
    gap: 0;
  }

  .page-hero {
    padding-right: 16px !important;
  }

  .page-hero > :not(.page-hero-poster),
  .detail-hero > div:first-child > * {
    max-width: 100%;
  }

  .page-hero h1,
  .detail-hero h1 {
    line-height: 1.08;
  }

  .hero-quick-stack {
    margin-top: var(--divider-breathing);
    padding-top: var(--divider-breathing);
  }

  .content-section,
  .tool-panel,
  .map-panel,
  .page-hero,
  .media-strip,
  .detail-hero > div:first-child,
  .detail-visual,
  .detail-sources {
    padding: 16px;
  }

  .section-head.row,
  .row {
    align-items: start;
  }
}

/* Poster integrity: keep wide guide posters fully visible instead of cropped. */
.media-strip {
  align-items: start;
}

.media-strip figure {
  align-self: start;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.media-strip img[data-hero-image] {
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 700px) {
  .media-strip figure {
    min-height: 0;
  }

  .media-strip img[data-hero-image] {
    min-height: 0;
  }
}

/* Interaction polish: custom selects, compact hero cards, and real redeem shots. */
:root {
  --label-title-gap: clamp(10px, 1vw, 14px);
  --divider-breathing: clamp(16px, 1.8vw, 24px);
  --panel-inner-gap: clamp(8px, .9vw, 12px);
}

.hero-quick-stack {
  margin-top: var(--divider-breathing);
  padding-top: var(--divider-breathing);
  gap: clamp(8px, .9vw, 11px);
}

.hero-intel-strip,
.hero-task-grid {
  gap: clamp(8px, 1vw, 12px);
}

.hero-intel-strip a,
.hero-task-grid a {
  gap: 6px;
  min-height: 0;
  padding: clamp(10px, 1vw, 13px);
}

.hero-intel-strip span {
  font-size: clamp(11px, 1vw, 13px);
}

.hero-intel-strip b {
  font-size: clamp(16px, 1.55vw, 20px);
}

.hero-intel-strip small {
  font-size: clamp(12px, 1.05vw, 13px);
}

.hero-task-grid b {
  font-size: clamp(15px, 1.25vw, 18px);
}

.hero-task-grid span {
  font-size: clamp(12px, 1.05vw, 13px);
}

.section-head .kicker,
.guide-card .eyebrow,
.page-hero > .kicker,
.detail-hero .kicker {
  margin-bottom: clamp(10px, 1vw, 14px);
}

.card-head .eyebrow + h3,
.guide-card .eyebrow + h3 {
  margin-top: 8px;
}

.guide-card {
  padding: clamp(12px, 1.25vw, 16px);
}

.guide-card .card-link {
  gap: 9px;
}

.guide-card h3 {
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.14;
}

.guide-card p,
.guide-card ol,
.guide-card small {
  font-size: 13px;
  line-height: 1.48;
}

.guide-card .eyebrow {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 12px;
}

.native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 2;
}

.custom-select.is-open {
  z-index: 80;
}

.custom-select-button {
  position: relative;
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  border: 1px solid rgba(0, 245, 255, .34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .13), rgba(3, 11, 18, .86)),
    rgba(3, 11, 18, .9);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 245, 255, .04), 0 0 22px rgba(0, 229, 255, .08);
  padding: 11px 42px 11px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
}

.custom-select-button::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: translateY(-64%) rotate(45deg);
  transition: transform .18s ease;
}

.custom-select.is-open .custom-select-button {
  border-color: rgba(255, 223, 56, .58);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .08), 0 0 30px rgba(255, 223, 56, .08);
}

.custom-select.is-open .custom-select-button::after {
  transform: translateY(-30%) rotate(225deg);
}

.custom-select-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: min(340px, 54vh);
  overflow: auto;
  border: 1px solid rgba(0, 245, 255, .32);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 24, 36, .98), rgba(2, 8, 13, .99)),
    rgba(3, 11, 18, .98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42), 0 0 34px rgba(0, 229, 255, .1);
  padding: 7px;
}

.custom-select.is-open .custom-select-list {
  display: grid;
  gap: 5px;
}

.custom-select-option {
  width: 100%;
  justify-content: flex-start;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d7e8ef;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 850;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  border-color: rgba(0, 245, 255, .24);
  background: rgba(0, 229, 255, .1);
  color: var(--ink);
  outline: none;
}

.custom-select-option.is-selected {
  border-color: rgba(255, 223, 56, .36);
  background:
    linear-gradient(135deg, rgba(255, 223, 56, .18), rgba(0, 229, 255, .12)),
    rgba(3, 11, 18, .86);
  color: var(--gold);
}

.redeem-visual {
  isolation: isolate;
}

.redeem-visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.redeem-visual.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 8, 13, .04), rgba(2, 8, 13, .28)),
    radial-gradient(circle at 14% 12%, rgba(0, 229, 255, .2), transparent 24%);
  pointer-events: none;
}

.redeem-visual > span {
  z-index: 3;
}

.redeem-fallback {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 7px;
}

.redeem-visual.has-image .redeem-fallback {
  display: none;
}

.redeem-visual.is-broken .redeem-fallback {
  display: grid;
}

.mock-form + .quick-buttons {
  margin-top: 12px;
}

@media (max-width: 700px) {
  :root {
    --label-title-gap: 10px;
    --divider-breathing: 22px;
  }

  .hero-intel-strip a,
  .hero-task-grid a {
    padding: 11px 12px;
  }

  .hero-intel-strip b,
  .hero-task-grid b {
    font-size: 18px;
  }

  .hero-intel-strip small,
  .hero-task-grid span {
    font-size: 13px;
  }

  .custom-select-list {
    max-height: 46vh;
  }
}

/* Final visual closure: unique route shots, tighter stat cards, and non-repeating database art. */
.route-shot-mini {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 154px;
  align-content: end;
  gap: 10px;
  padding: 12px;
  border-color: rgba(0, 245, 255, .26);
  background: rgba(3, 11, 18, .86);
}

.route-shot-mini::before,
.shot-db-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 11, 18, .14), rgba(3, 11, 18, .78)),
    radial-gradient(circle at 14% 18%, rgba(0, 229, 255, .28), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(255, 223, 56, .22), transparent 28%);
}

.route-shot-mini img,
.shot-db-visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.04);
}

.route-shot-mini.route-third img {
  object-position: 52% 44%;
}

.route-shot-mini > span {
  display: inline-flex;
  position: relative;
  z-index: 2;
  width: fit-content;
  border: 1px solid rgba(0, 245, 255, .28);
  border-radius: 999px;
  background: rgba(3, 11, 18, .76);
  color: var(--teal-dark);
  padding: 5px 9px;
}

.route-shot-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.route-shot-steps i {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(3, 11, 18, .72);
  padding: 7px;
  font-style: normal;
}

.route-shot-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: #061520;
  font-size: 11px;
  line-height: 1;
}

.route-shot-steps em {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-mini.fruit-backed {
  align-content: center;
  min-height: 154px;
  padding: 16px;
}

.stat-mini .guide-fruit-mark {
  right: 14px;
  top: 44px;
  width: 58px;
  height: 58px;
  opacity: .68;
}

.stat-mini.fruit-backed div {
  max-width: none;
  margin-right: 70px;
  border: 1px solid rgba(0, 245, 255, .14);
  border-radius: 8px;
  background: rgba(3, 11, 18, .48);
  padding: 7px 8px;
}

.stat-mini div {
  grid-template-columns: minmax(58px, 74px) minmax(0, 1fr);
}

.stat-mini div b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-mini i {
  min-width: 0;
}

.shot-db-visual,
.npc-db-visual,
.quest-db-visual,
.resource-db-visual,
.system-db-visual {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 12px;
}

.shot-db-visual b,
.shot-db-visual span,
.npc-db-visual .npc-core,
.npc-db-visual b,
.quest-db-visual b,
.quest-db-visual span,
.resource-db-visual span,
.resource-db-visual b,
.system-db-visual span,
.system-db-visual b {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  background: rgba(3, 11, 18, .76);
  padding: 5px 8px;
}

.shot-db-visual b,
.npc-db-visual .npc-core,
.quest-db-visual b,
.resource-db-visual span,
.system-db-visual span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.shot-db-visual span,
.npc-db-visual b,
.quest-db-visual span,
.resource-db-visual b,
.system-db-visual b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.18;
}

.npc-db-visual {
  place-items: center;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, .13), transparent 52%),
    linear-gradient(90deg, rgba(0, 245, 255, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, .06) 1px, transparent 1px),
    rgba(3, 11, 18, .78);
  background-size: auto, 20px 20px, 20px 20px, auto;
}

.npc-db-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(0, 245, 255, .22);
  border-radius: 50%;
}

.npc-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 18px currentColor;
}

.npc-dot.one { left: 22%; top: 26%; background: var(--teal); color: var(--teal); }
.npc-dot.two { right: 24%; top: 42%; background: var(--gold); color: var(--gold); }
.npc-dot.three { left: 50%; bottom: 24%; background: var(--blue); color: var(--blue); }

.quest-db-visual .quest-line {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.quest-line i {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 245, 255, .16);
  border-radius: 8px;
  background: rgba(3, 11, 18, .56);
  padding: 6px 5px;
  font-style: normal;
}

.quest-line em {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: #061520;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.quest-line small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.resource-cluster,
.system-grid {
  position: absolute;
  right: 14px;
  top: 18px;
  width: 92px;
  height: 72px;
}

.resource-cluster i {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(53, 240, 143, .9), rgba(0, 229, 255, .72));
  box-shadow: 0 0 24px rgba(53, 240, 143, .22);
  transform: rotate(45deg);
}

.resource-cluster i:nth-child(1) { left: 8px; top: 26px; }
.resource-cluster i:nth-child(2) { left: 34px; top: 8px; background: linear-gradient(135deg, var(--gold), #ff8b45); }
.resource-cluster i:nth-child(3) { right: 6px; top: 30px; }
.resource-cluster i:nth-child(4) { left: 42px; bottom: 0; width: 22px; height: 22px; opacity: .76; }

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  opacity: .9;
}

.system-grid i {
  border: 1px solid rgba(0, 245, 255, .24);
  border-radius: 8px;
  background: rgba(0, 229, 255, .12);
}

body[data-page="database"] .page-hero .inline-search {
  width: min(720px, calc(100% - min(360px, 32vw)));
  max-width: 100%;
}

body[data-page="database"] .page-hero .search-results {
  max-width: min(720px, 100%);
}

.site-search.is-open {
  z-index: 140;
}

.hero.has-open-search,
.page-hero.has-open-search,
.content-section.has-open-search {
  overflow: visible;
  z-index: 120;
}

.search-results.is-open {
  z-index: 150;
  max-height: min(390px, calc(100vh - 220px));
  border-color: rgba(0, 245, 255, .46);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(0, 245, 255, .12),
    0 0 34px rgba(0, 229, 255, .16);
}

.voice-card {
  align-items: stretch;
}

.voice-card .card-head {
  gap: 10px;
  align-items: start;
}

.voice-card p {
  margin-top: 2px;
}

.voice-next {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(0, 245, 255, .18);
  border-radius: 8px;
  background: rgba(0, 229, 255, .08);
  color: var(--teal-dark);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.voice-thumb {
  overflow: hidden;
  min-width: 0;
  padding: 10px;
  text-align: center;
}

@media (max-width: 1080px) {
  body[data-page="database"] .page-hero .inline-search {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .route-shot-steps {
    grid-template-columns: 1fr;
  }

  .route-shot-steps i {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
  }

  .stat-mini .guide-fruit-mark {
    opacity: .24;
  }

  .stat-mini.fruit-backed div {
    margin-right: 0;
  }

  .shot-db-visual,
  .npc-db-visual,
  .quest-db-visual,
  .resource-db-visual,
  .system-db-visual {
    min-height: 118px;
  }
}
