:root {
  color-scheme: dark;
  --sea: #0b0c0f;
  --paper: #f4f1e7;
  --paper-dark: #dcc272;
  --ink: #171717;
  --fog: #b8b5a8;
  --gold: #f0b90b;
  --line: #d9c67830;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--sea); scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 32% 14%, #1717172b, transparent 55%), var(--sea); color: var(--paper); font-family: var(--mono); font-size: 14px; line-height: 1.65; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 170 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h170v170H0z'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button, input { font: inherit; }
button, .secondary { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, .secondary, input { border-radius: 0; }
button, .secondary { border: 1px solid #b2baaa6b; background: transparent; color: inherit; padding: 11px 16px; min-height: 42px; text-decoration: none; line-height: 1.4; transition: color .18s, background .18s, border-color .18s; }
button:hover:not(:disabled), .secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
:focus-visible { outline: 2px solid #f0b90b; outline-offset: 5px; }
button:focus-visible, input:focus-visible { outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 10px; }
.rr-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 25px 4vw; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.rr-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.rr-brand svg { width: 43px; height: 43px; fill: none; stroke: var(--paper); stroke-width: 1; }
.rr-brand strong { font: 21px/1 var(--serif); letter-spacing: .13em; }
.rr-brand small { display: block; margin-top: 9px; font: 14px/1 var(--mono); letter-spacing: .23em; color: var(--fog); }
.rr-navigation { display: flex; align-items: center; gap: clamp(20px,3vw,56px); }
.rr-navigation a { text-decoration: none; padding: 9px 0; color: #969e91; white-space: nowrap; font-size: 14px; }
.rr-navigation b { font: italic 14px var(--serif); margin-right: 9px; color: #6f7a6e; }
.rr-navigation a[aria-current] { color: var(--paper); border-bottom: 1px solid #d9c678; }
.rr-header-actions { display: flex; gap: 14px; align-items: center; }
#network { font-size: 14px; max-width: 125px; color: var(--fog); line-height: 1.6; }
#connect { font-size: 14px; letter-spacing: .03em; border-color: #c4c1a080; background: #d8dfbf08; }
#connect[data-connected="true"] { color: #b8c3a4; border-color: #859476; }
#connect[data-connected="true"]::before { content: ""; display: inline-block; width: 5px; height: 5px; background: #a6b594; border-radius: 50%; margin-right: 8px; }
.rr-main { max-width: 1600px; margin: auto; padding: 20px 4vw 0; display: flex; flex-direction: column; }
.rr-notifications { order: 0; min-height: 35px; margin-bottom: 28px; font-size: 14px; color: #b0b5a5; }
.rr-status-row { display: flex; align-items: center; gap: 12px; }
.rr-status-row button { padding: 7px 12px; min-height: 32px; }
.network-error { background: #442d26; color: #f5d7bd; padding: 14px 18px; border-left: 2px solid #b9896f; margin-bottom: 12px; }
.ink-board-jump { display: none; }
.rr-page { order: 1; min-width: 0; }
.rr-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin: 0 0 35px; }
.eyebrow, .rr-page-heading .eyebrow { font: 14px/1.5 var(--mono); letter-spacing: .23em; color: #a8ae9e; margin: 0 0 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 400 clamp(56px,6.3vw,112px)/.89 var(--serif); letter-spacing: -.055em; margin: 0; }
h1 em { font-weight: 400; color: #b7baa9; }
h1:focus { outline: none; }
.rr-page-heading > p { max-width: 310px; font-size: 14px; color: #9da493; line-height: 1.85; margin: 0 35px 6px 0; }
.rr-workspace { display: grid; grid-template-columns: minmax(0,1fr) 440px; gap: 35px; align-items: start; }
.rr-map-card { min-width: 0; padding-top: 6px; }
.rr-map-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.rr-map-heading .eyebrow { display: block; margin-bottom: 8px; font-size: 14px; }
.rr-map-heading h2 { font: italic 25px/1.2 var(--serif); margin: 0; letter-spacing: -.03em; }
.phase-badge { border: 1px solid var(--line); padding: 4px 10px; color: #c5c9b7; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.rr-round-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 25px; padding: 21px 0 17px; margin-top: 14px; border-top: 1px solid var(--line); }
.rr-round-stats span { display: block; font-size: 14px; color: #9ca593; margin-bottom: 7px; }
.rr-round-stats strong { font: 400 21px/1.1 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rr-ocean-stage { position: relative; isolation: isolate; overflow: hidden; }
.ink-sea-layer { position: absolute; inset: -3%; background: url("/assets/ink-sea.webp") center 58%/cover; animation: ink-swell 18s ease-in-out infinite alternate; animation-play-state: paused; }
[data-motion="running"] .ink-sea-layer { animation-play-state: running; }
@keyframes ink-swell { from { transform: translate3d(-.5%,.3%,0) rotate(-.25deg) scale(1.01); } to { transform: translate3d(.5%,-.3%,0) rotate(.25deg) scale(1.025); } }
.rr-ocean-stage::before { content: ""; position: absolute; inset: -1px; background: linear-gradient(180deg,var(--sea),transparent 15%,transparent 80%,var(--sea)),linear-gradient(90deg,#0b0c0f55,transparent 35%,#0b0c0f11); pointer-events: none; z-index: 1; }
.ink-weather { position: absolute; top: 20px; inset-inline: 0; display: flex; justify-content: space-between; color: #9da794; z-index: 3; }
#chart { display: none; }
.rr-map-footer { display: flex; justify-content: space-between; gap: 20px; color: #8e9884; font-size: 14px; border-top: 1px solid var(--line); padding: 14px 0; }
.rr-live-ranking { position: absolute; z-index: 5; padding: 24px; background: #f4d573; color: var(--ink); box-shadow: 9px 13px 0 #0003; }
.rr-ranking-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rr-ranking-title h3 { font: italic 27px var(--serif); margin-bottom: 20px; }
.rr-ranking-title span { font-size: 14px; letter-spacing: .1em; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th { font-weight: 400; color: #8c9580; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
td { border-bottom: 1px solid var(--line); padding: 15px 10px; }
.rr-live-ranking th { color: #666c5b; border-color: #787b6455; }
.rr-live-ranking td { border-color: #787b6433; }
.rr-live-ranking th:first-child, .rr-live-ranking td:first-child { padding-left: 0; }
.rr-entry-panel { position: relative; color-scheme: light; color: var(--ink); background: var(--paper); padding: 27px 26px 30px; box-shadow: 8px 9px 0 #0003; border: 1px solid #d8d1bd; }
.rr-entry-panel::before { content: ""; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border: 1px solid #8e927044; pointer-events: none; }
.rr-entry-panel::after { content: ""; position: absolute; left: -6px; right: -6px; height: 12px; bottom: -6px; background: radial-gradient(circle at 6px 8px, var(--sea) 5px, transparent 5.5px) 0 0/17px 12px; }
.ink-pass-heading { text-align: center; border-bottom: 1px dashed #7479637d; }
.ink-pass-heading > span { font-size: 14px; letter-spacing: .17em; color: #6f715f; }
.ink-pass-heading h2 { font: 32px/1.1 var(--serif); letter-spacing: -.04em; margin: 12px 0 7px; }
.ink-pass-heading p { font-size: 14px; margin: 0; color: #6d705f; }
.rr-clock-label .eyebrow { margin: 0; color: #656b57; font-size: 14px; letter-spacing: .14em; }
.rr-clock-label { display: flex; justify-content: space-between; align-items: center; }
.rr-live-dot { width: 5px; height: 5px; background: #6f765c; border-radius: 50%; }
.clock-head { display: flex; justify-content: space-between; align-items: baseline; margin: 3px 0 13px; }
#clock-label { font-size: 14px; color: #626850; }
#timer { font: 400 38px/1.1 var(--serif); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rr-phase-steps { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #7a7f6855; border-bottom: 1px solid #7a7f6855; font-size: 14px; color: #929481; letter-spacing: .06em; }
.rr-phase-steps .is-active { color: #171717; text-decoration: underline; text-underline-offset: 6px; }
.rr-wallet .eyebrow { font-size: 14px; color: #777d67; letter-spacing: .1em; }
.rr-wallet #wallet { overflow-wrap: anywhere; line-height: 1.5; margin: 5px 0; }
.rr-wallet-balance { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin: 5px 0 0; font-size: 14px; color: #6a705c; }
.rr-wallet-balance strong { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.text-button { font-size: 14px; }
#routes { border: 0; padding: 0; margin: 0 0 17px; counter-reset: route; }
#routes legend { font: italic 18px var(--serif); margin-bottom: 10px; }
.route-option { display: flex; align-items: center; gap: 10px; counter-increment: route; border-bottom: 1px solid #8f93704d; cursor: pointer; line-height: 1.4; }
.route-option:last-child { border: 0; }
.route-option::after { content: counter(route,upper-roman); margin-left: auto; font: italic 14px var(--serif); color: #848874; }
.route-option:hover, .route-option:has(input:checked) { color: #20251c; }
.route-option:has(input:checked) span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.route-option input { margin: 0; accent-color: #404c31; width: 12px; height: 12px; flex-shrink: 0; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 13px 0; }
.quantity-row label { font-size: 14px; }
.quantity-row input { width: 70px; color: var(--ink); border: 1px solid #878c72; background: #f4f0e640; padding: 8px 9px; min-height: 38px; }
.rr-entry-panel .primary { width: 100%; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); padding: 14px; }
.rr-entry-panel .primary:hover:not(:disabled) { background: #48523c; }
.ink-ticket-price { text-align: center; letter-spacing: .06em; margin: 9px 0 15px; }
.purchase-note { border-top: 1px dashed #858a6a; padding-top: 12px; margin: 0; }
.rr-ledger { order: 2; display: grid; grid-template-columns: 1.4fr repeat(4,1fr); margin: 58px 0 30px; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 25px; align-items: start; }
.rr-ledger-heading span { font-size: 14px; letter-spacing: .12em; }
.rr-ledger-heading p { font-size: 14px; color: #848e7a; max-width: 200px; margin: 10px 0 0; }
.rr-ledger > div > span { display: block; color: #a4ab98; font-size: 14px; margin-bottom: 12px; }
.rr-ledger strong { display: block; font: 22px/1.25 var(--serif); overflow-wrap: anywhere; }
.rr-footer { max-width: 1600px; margin: 0 auto; padding: 0 4vw 25px; display: flex; justify-content: space-between; gap: 18px; color: #737f6b; font-size: 14px; letter-spacing: .1em; }
.rr-page-note { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: #9aa58d; margin: 30px 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.rr-wallet-mirror { overflow-wrap: anywhere; }
.ticket-list { min-height: 180px; color: #b7bea9; }
.ticket-row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 20px; padding: 24px 20px; border-bottom: 1px dashed #89967555; align-items: center; background: #c7ccb008; }
.ticket-row > * { overflow-wrap: anywhere; }
.ticket-row .secondary { font-size: 14px; }
.rr-history-content { display: grid; gap: 40px; margin: 45px 0; }
.rr-history-panel { min-width: 0; padding: 25px 0; border-top: 1px solid var(--line); }
.rr-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 25px; }
.rr-section-title h2 { font: italic 34px var(--serif); margin: 0; }
.rr-section-title span { font-size: 14px; color: #97a084; }
.rr-table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
.rr-empty { padding: 30px 0 0; color: #a7b097; }
.rr-empty > span { font: 40px var(--serif); }
.rr-empty h3 { font: 25px var(--serif); margin-bottom: 10px; }
.rr-empty p, .rr-history-note { font-size: 14px; color: #99a38c; }
.rr-empty .secondary { display: inline-block; font-size: 14px; margin-top: 10px; }
.rank-allocation { display: grid; grid-template-columns: repeat(5,1fr); margin: 50px 0; border-block: 1px solid var(--line); }
.rank-allocation div { padding: 25px 0; }
.rank-allocation span { font-size: 14px; color: #9ba68d; display: block; }
.rank-allocation strong { display: block; font: 55px var(--serif); font-weight: 400; }
.rank-allocation small { font-size: 20px; }
.rules-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; margin: 45px 0; }
.rules-grid article { border-top: 1px solid var(--line); padding-top: 25px; }
.rules-grid article > span { font-size: 14px; color: #8e9a7e; }
.rules-grid h2 { font: italic 29px/1.2 var(--serif); margin: 18px 0; }
.rules-grid p { color: #b7beaa; font-size: 14px; line-height: 1.9; }
@media (min-width:851px) {
  .rr-page[data-view="voyage"] > .rr-page-heading > p { display: none; }
  .rr-entry-panel { margin-top: 0; }
}
@media (min-width:1151px) {
  .rr-entry-panel { margin-top: 0; }
}
@media (min-width:1800px) {
  .rr-workspace { grid-template-columns: minmax(0,1fr) 440px; gap: 55px; }
  .rr-entry-panel { padding: 35px 32px; }
  .rr-ocean-stage, .rr-ocean { min-height: 550px; }
}
@media (max-width:1150px) {
  .rr-navigation { gap: 18px; }
  .rr-header { gap: 20px; }
  #network { display: none; }
  .rr-workspace { grid-template-columns: minmax(0,1fr) 380px; gap: 25px; }
  .rr-entry-panel { padding: 25px 20px; }
  .rr-ocean-stage, .rr-ocean { min-height: 430px; }
  .rr-page-heading > p { margin-right: 0; }
}
@media (max-width:1100px) {
  .rr-header { flex-wrap: wrap; padding: 21px 5vw 0; gap: 20px; }
  .rr-navigation { order: 3; width: 100%; justify-content: space-between; padding-bottom: 8px; }
  .rr-main { padding: 22px 5vw 0; }
  .rr-page-heading { align-items: flex-start; gap: 25px; }
  .rr-page-heading > p { font-size: 14px; width: 200px; padding-top: 23px; }
  .rr-workspace { grid-template-columns: 1fr; }
  .rr-ocean-stage { min-height: 0; aspect-ratio: 1.65; }
  .rr-entry-panel { max-width: 580px; width: 100%; justify-self: center; padding: 30px; margin-top: 5px; }
  .rr-ledger { grid-template-columns: repeat(4,1fr); }
  .rr-ledger-heading { grid-column: 1/-1; }
  .rr-ledger-heading p { max-width: none; }
}
@media (max-width:520px) {
  .rr-header { gap: 12px; }
  .rr-brand { gap: 8px; }
  .rr-brand strong { font-size: 15px; letter-spacing: .08em; }
  .rr-brand svg { width: 26px; height: 26px; }
  .rr-brand small { font-size: 14px; letter-spacing: .14em; }
  .rr-header-actions { margin-left: auto; }
  #connect { max-width: 160px; font-size: 14px; padding: 9px 10px; overflow-wrap: anywhere; }
  .rr-navigation { gap: 8px; }
  .rr-navigation a { font-size: 14px; }
  .rr-navigation b { font-size: 14px; margin-right: 5px; }
  .rr-notifications { font-size: 14px; margin-bottom: 22px; }
  .rr-page-heading { display: block; margin-bottom: 30px; }
  h1 { font-size: 64px; line-height: .94; }
  .rr-page-heading .eyebrow { font-size: 14px; margin-bottom: 17px; }
  .rr-page-heading > p { font-size: 14px; padding: 0; margin-top: 22px; width: auto; }
  .rr-round-stats { gap: 14px; grid-template-columns: 1.5fr 1fr 1fr; }
  .rr-round-stats span { font-size: 14px; }
  .rr-round-stats strong { font-size: 18px; }
  .rr-ocean-stage { aspect-ratio: 1.45; }
  .rr-map-heading h2 { font-size: 23px; }
  .rr-map-heading .eyebrow { font-size: 14px; }
  .phase-badge { font-size: 14px; }
  .ink-weather { font-size: 14px; top: 9px; }
  .rr-map-footer { font-size: 14px; }
  .rr-map-footer > span:last-child { text-align: right; max-width: 125px; }
  .rr-live-ranking { padding: 13px; top: 5%; left: 0; width: 100%; transform: none; }
  .rr-ranking-title h3 { font-size: 20px; margin-bottom: 7px; }
  .rr-ranking-title span { display: none; }
  .rr-live-ranking table { font-size: 14px; }
  .rr-live-ranking th { padding: 6px; font-size: 14px; }
  .rr-live-ranking td { padding: 8px 6px; }
  .rr-entry-panel { padding: 28px; }
  .ink-pass-heading h2 { font-size: 34px; }
  .rr-entry-panel .eyebrow { font-size: 14px; }
  .route-option { padding: 13px 0; font-size: 14px; line-height: 1.5; }
  .rr-wallet #wallet { font-size: 14px; }
  .quantity-row label { font-size: 14px; }
  .purchase-note { font-size: 14px; }
  .ink-ticket-price { font-size: 14px; }
  .ink-board-jump { display: block; margin-top: 23px; font-size: 14px; min-height: 44px; border-bottom-color: #f2cf65; }
  .rr-ledger { grid-template-columns: repeat(2,1fr); margin-top: 45px; gap: 22px; }
  .rr-ledger strong { font-size: 20px; }
  .rr-ledger > div > span { font-size: 14px; }
  .rr-footer { flex-wrap: wrap; padding-inline: 5vw; font-size: 14px; }
  .rr-footer > span:last-child { width: 100%; }
  .rr-page-note { flex-direction: column; gap: 12px; }
  .ticket-row { grid-template-columns: 1fr auto; font-size: 14px; padding: 20px 12px; gap: 12px; }
  .ticket-row > div:first-child { grid-column: 1/-1; }
  .rank-allocation { margin: 30px 0; }
  .rank-allocation strong { font-size: 36px; }
  .rank-allocation span { font-size: 14px; }
  .rules-grid { grid-template-columns: 1fr; gap: 20px; }
  .rules-grid h2 { font-size: 28px; }
  .rr-section-title { flex-direction: column; gap: 8px; }
  .rr-section-title h2 { font-size: 31px; }
}
@media (max-width:360px) {
  h1 { font-size: 54px; }
  .rr-brand svg { display: none; }
  .rr-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  #connect { max-width: 135px; }
  .rr-entry-panel { padding: 25px 22px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The illustrated rules are an optional prologue to the live application. */
body[data-view="prologue"] .rr-main { padding: 0; max-width: none; }
body[data-view="prologue"] .rr-header { position: absolute; inset: 0 0 auto; border: 0; }
body[data-view="prologue"] .rr-navigation,
body[data-view="prologue"] .rr-header-actions,
body[data-view="prologue"] .rr-notifications,
body[data-view="prologue"] .rr-ledger,
body[data-view="prologue"] .rr-footer { display: none; }
.prologue-skip { position: fixed; z-index: 15; right: 4vw; top: 29px; padding: 10px 16px; border: 1px solid #d4d8bf55; background: #0b0c0fdd; font-size: 14px; text-decoration: none; }
.prologue-skip:hover { color: #0b0c0f; background: var(--paper); }
.prologue-replay { margin-top: 28px; font-size: 14px; }
@media (max-width:600px) {
  .prologue-skip { right: 5vw; top: 22px; padding: 9px 11px; font-size: 14px; }
}

/* Foreground layers turn the opening into a living sea. */

.prologue-motion { padding: 7px 11px; border-color: #c4ccb44d; }
@media (max-width:520px) {
  [data-round-phase="ranking"] .rr-ocean-stage,
  [data-round-phase="settled"] .rr-ocean-stage { min-height: 310px; aspect-ratio: auto; }
  [data-round-phase="ranking"] .rr-ocean,
  [data-round-phase="settled"] .rr-ocean { height: 310px; }
  .rr-live-ranking table { font-size: 14px; }
  .rr-live-ranking th { font-size: 14px; }
}

/* Readable controls and an illustrated destination board. */
.rr-page[data-view="voyage"] .rr-page-heading h1 { font-size: clamp(36px,4vw,58px); line-height: 1.08; letter-spacing: -.04em; }
.rr-page[data-view="voyage"] .rr-page-heading { margin-bottom: 32px; }
.rr-entry-panel { margin-top: 0; }
.rr-map-heading h2 { font-size: 30px; }
.rr-round-stats strong { font-size: 27px; }
.rr-ocean-stage { min-height: 580px; aspect-ratio: auto; }
.ink-sea-layer { background-image: url("/assets/storm-sea.webp"); }
.ink-weather { font-size: 14px; letter-spacing: .08em; padding: 0 18px; }
.rr-port-name { font: 16px/1.35 var(--serif); text-align: center; }
.rr-port-count { font: 14px/1.3 var(--mono); color: #a9b797; }
.rr-live-ranking { top: 14%; left: 4%; width: 92%; transform: none; }

.ink-pass-heading { padding-bottom: 14px; margin-bottom: 15px; }
.ink-pass-heading h2 { font-size: 31px; }
.ink-pass-heading > span, .ink-pass-heading p { font-size: 14px; letter-spacing: .02em; }
.rr-wallet { margin: 16px 0; }
.rr-wallet #wallet { font-size: 14px; }
.route-option { min-height: 46px; padding: 10px 0; font-size: 16px; }
#routes legend { font-size: 24px; }
#timer { font-size: 42px; }
.quantity-row input { font-size: 17px; }
.rr-entry-panel .primary { font-size: 17px; }
.purchase-note { font: 14px/1.65 var(--serif); color: #4b543d; }
.ink-ticket-price { font-size: 15px; }
.rules-grid p { font-size: 17px; }
.ticket-list, table { font-size: 16px; }
.rr-page-note, .rr-history-note { font-size: 16px; }
.prologue-sound { position: fixed; bottom: 22px; left: 4vw; z-index: 20; background: #0b0c0fef; color: #eee9d7; font-size: 14px; }
.prologue-motion { position: fixed; bottom: 22px; left: calc(4vw + 240px); z-index: 20; background: #0b0c0fef; color: #eee9d7; min-height: 44px; font-size: 14px; }
@media (max-width:1100px) {
 .rr-entry-panel { grid-row: 1; margin: 0; max-width: 600px; }
 .rr-map-card { grid-row: 2; width: 100%; }
 .rr-navigation { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
 .rr-navigation a { font-size: 14px; }
}
@media (max-width:600px) {
 .rr-header { align-items: center; }
 .rr-brand small { display: none; }
 .rr-header-actions { max-width: 48%; }
 #connect { font-size: 14px; max-width: 180px; }
 .rr-navigation { grid-template-columns: repeat(2,1fr); gap: 4px 18px; }
 .rr-navigation a { min-height: 40px; }
 .rr-page-heading h1, .rr-page[data-view="voyage"] .rr-page-heading h1 { font-size: 40px; }
 .rr-entry-panel { padding: 24px; }
 .rr-round-stats { grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; }
 .rr-round-stats strong { font-size: 23px; }
 .rr-ocean-stage { min-height: 675px; }
 .rr-port-name { font-size: 17px; }
 .ink-weather { font-size: 14px; padding: 0 10px; }
 .rr-live-ranking { padding: 16px; }
 .rr-live-ranking table { font-size: 14px; }
 .rr-live-ranking th { font-size: 14px; padding: 8px 3px; }
 .rr-live-ranking td { padding: 12px 3px; }
 .prologue-sound, .prologue-motion { bottom: 16px; width: calc(50% - 23px); min-height: 54px; padding: 8px; font-size: 14px; line-height: 1.35; }
 .prologue-sound { left: 5vw; }
 .prologue-motion { left: auto; right: 5vw; }
}

@media (max-width:600px) {
 body[data-round-phase="ranking"] .rr-ocean-stage,
 body[data-round-phase="settled"] .rr-ocean-stage { min-height: 0; height: auto; padding: 0; aspect-ratio: auto; }
 body[data-round-phase="ranking"] .rr-live-ranking,
 body[data-round-phase="settled"] .rr-live-ranking { position: relative; inset: auto; width: 100%; margin: 0; }
}

.rr-entry-panel .eyebrow,
.rr-entry-panel .rr-phase-steps,
.rr-entry-panel .rr-wallet-balance,
.rr-entry-panel #clock-label,
.ink-pass-heading > span,
.ink-pass-heading p { color: #535c45; }
.rr-live-ranking th { color: #4d573f; }

/* Sailing chart. Route names remain buttons without card frames. */
.rr-ocean-stage { min-height: 560px; }
.ink-sea-layer { background-image: url("/assets/ink-sea.webp"); opacity: .65; }
.voyage-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: hidden; }
.voyage-route { stroke: #b5a76f; stroke-width: 1.5; opacity: .48; vector-effect: non-scaling-stroke; }
.voyage-route.is-selected { stroke: #f0b90b; stroke-width: 2.8; opacity: .95; }
.route-line-group:hover .voyage-route { stroke: #ffda4f; opacity: 1; }
.voyage-route-hit { stroke: transparent; stroke-width: 25; cursor: pointer; pointer-events: stroke; }
.route-endpoint { fill: #d7bd61; }
.map-home { fill: none; stroke: #ccb873; stroke-width: 1; }
.map-home circle:first-child { fill: #bd9c3844; }
.map-home circle:nth-child(2) { opacity: .4; }
.map-home text { fill: #d6cfae; stroke: none; font: 12px var(--mono); letter-spacing: .04em; }
.game-vessel { pointer-events: none; filter: drop-shadow(0 4px 3px #050a07); }
.route-markers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.route-marker { position: absolute; left: 73%; width: 26%; transform: translateY(-50%); display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 8px 0; border: 0; background: none; color: #e1dac2; text-align: left; pointer-events: auto; text-shadow: 0 2px 5px #081109; }
.route-marker:hover:not(:disabled) { background: none; color: #fff5d5; border: 0; }
.route-marker-number { color: #b9a66b; font: italic 19px var(--serif); }
.route-marker-text { display: block; min-width: 0; }
.route-marker .rr-port-name { display: block; font: 18px/1.25 var(--serif); text-align: left; }
.route-marker .rr-port-count { display: block; font: 14px/1.5 var(--mono); color: #b5aa8d; margin-top: 6px; }
.route-marker.is-selected { color: #f0b90b; }
.route-marker.is-selected .rr-port-name { text-decoration: underline; text-underline-offset: 6px; }
.route-marker.is-selected .route-marker-number { color: #f0b90b; }
[data-round-phase="ranking"] .route-markers,
[data-round-phase="settled"] .route-markers { opacity: .15; pointer-events: none; }
[data-round-phase="ranking"] .route-marker,
[data-round-phase="settled"] .route-marker { pointer-events: none; }
@media (max-width:600px) {
 .rr-ocean-stage { min-height: 520px; }
 .route-marker { left: 63%; width: 35%; grid-template-columns: 22px 1fr; gap: 5px; }
 .route-marker .rr-port-name { font-size: 16px; }
 .route-marker .rr-port-count { font-size: 13px; }
 .route-marker-number { font-size: 16px; }
}

/* Reserved social link. Add the official URL when it is supplied. */
.rr-navigation .rr-x-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; color: var(--paper); cursor: pointer; }
.rr-x-link span { font: 24px/1 Arial, sans-serif; }

/* BSC yellow and black. The nautical layout and motion stay shared. */
body { background: #0b0c0f; }
.rr-header { background: #0d0e11; border-color: #f0b90b38; }
.rr-brand svg { stroke: var(--gold); }
.rr-brand small, .eyebrow, .rr-page-heading .eyebrow { color: #bca96a; }
.rr-navigation a { color: #bcb9ae; }
.rr-navigation a[aria-current], .rr-navigation .rr-x-link { color: var(--gold); border-color: var(--gold); }
#connect { color: #151515; background: var(--gold); border-color: var(--gold); }
#connect:hover { background: #ffd44d; }
#connect[data-connected="true"] { color: var(--gold); background: #f0b90b0a; border-color: #c69c22; }
#connect[data-connected="true"]::before { background: var(--gold); }
h1 em { color: var(--gold); }
.rr-notifications, .rr-map-footer, .rr-footer { color: #b7b1a1; }
.rr-round-stats span, .rr-ledger > div > span, .rr-ledger-heading p { color: #b8b3a4; }
.rr-round-stats strong, .rr-ledger strong { color: #f3e4ad; }
.phase-badge { color: var(--gold); border-color: #f0b90b66; }
.ink-weather { color: #cbb979; }
.ink-sea-layer { filter: grayscale(.65) sepia(.28); }
.game-vessel image { filter: sepia(.2) saturate(.85); }
.route-marker .rr-port-count { color: #bbb19a; }
.voyage-route { stroke: #b6a36a; }
.voyage-route.is-selected { stroke: var(--gold); }
.route-marker.is-selected { color: var(--gold); }
.rr-entry-panel { background: #f0b90b; color: #171717; border-color: #ffd65c; box-shadow: 8px 9px 0 #0005; }
.rr-entry-panel::before { border-color: #735b1666; }
.rr-entry-panel .eyebrow, .rr-entry-panel .rr-phase-steps,
.rr-entry-panel .rr-wallet-balance, .rr-entry-panel #clock-label,
.ink-pass-heading > span, .ink-pass-heading p { color: #473a17; }
.rr-entry-panel .rr-wallet #wallet, .rr-wallet-balance strong { color: #171717; }
.ink-pass-heading, .purchase-note { border-color: #58471799; }
.rr-phase-steps, .route-option { border-color: #6a541b66; }
.rr-phase-steps .is-active { color: #151515; }
.route-option, .route-option::after { color: #3a3017; }
.route-option:has(input:checked), .route-option:hover { color: #000; }
.route-option input { accent-color: #171717; }
.quantity-row input { background: #ffdd6833; border-color: #6c5318; color: #171717; }
.rr-entry-panel .primary { background: #151619; color: #f6cf48; border-color: #151619; }
.rr-entry-panel .primary:hover:not(:disabled) { background: #292a2d; color: #ffe184; }
.rr-entry-panel .primary:disabled { opacity: .6; }
.purchase-note { color: #3c3117; }
.rr-live-ranking { background: #f0cf65; }
.rr-live-ranking th { color: #5e4817; }
.prologue-skip, .prologue-sound, .prologue-motion { background: #0d0e11ef; color: #f0cc56; border-color: #b48c2566; }
.prologue-skip:hover, .prologue-sound:hover:not(:disabled), .prologue-motion:hover:not(:disabled) { background: var(--gold); color: #171717; }

.language-toggle { color: var(--gold); border-color: #f0b90b66; padding: 6px 12px; min-height: 36px; font: 14px/1.3 var(--mono); white-space: nowrap; }
.language-toggle:hover:not(:disabled) { color: #111; background: var(--gold); }
.prologue-language { position: fixed; z-index: 20; top: 29px; right: calc(4vw + 190px); background: #0d0e11ef; }
html:lang(zh-CN) { --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif; --mono: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
html:lang(zh-CN) .rr-page-heading h1 { line-height: 1.25; letter-spacing: 0; }
html:lang(zh-CN) .rr-navigation a { letter-spacing: 0; }
html:lang(zh-CN) .rr-brand strong { font-family: Georgia, "Times New Roman", serif; }
@media (max-width:600px) {
 .prologue-language { top: 78px; right: 5vw; }
}

/* Quiet black-and-gold page scrollbars. */
html, .rr-table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #947728 #0b0c0f;
}
@supports selector(::-webkit-scrollbar) {
  html, .rr-table-scroll {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-corner {
    background: #0b0c0f;
  }
  ::-webkit-scrollbar-thumb {
    min-height: 40px;
    background: #947728;
    border: 2px solid #0b0c0f;
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #f0b90b;
  }
  ::-webkit-scrollbar-button {
    display: none;
  }
}

/* Voyage introduction: a wanted poster, the storm cover and an engraved night chart. */
html.is-wanted { overflow: hidden; }
.wanted { position: fixed; inset: 0; z-index: 90; overflow: hidden; animation: wanted-failsafe .5s ease 9s forwards; }
.wanted-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wanted-sheet { position: absolute; inset: 0; background: #e3d3ad; transform-origin: 50% 0; will-change: transform; box-shadow: 0 30px 90px #000d; }
.wanted-texture, .wanted-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.wanted-poster { box-sizing: border-box; padding: 2vh 4vw 3vh; }
@keyframes wanted-failsafe { to { opacity: 0; visibility: hidden; } }

.prologue { overflow: clip; }
body[data-view="prologue"] .rr-header { position: fixed; z-index: 13; background: linear-gradient(#0b0c0fe0,#0b0c0f00); pointer-events: none; }
body[data-view="prologue"] .rr-brand { pointer-events: auto; }
.intro { position: relative; background: #0b0c0f; }
.intro-stage { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; isolation: isolate; }
.intro-chart, .intro-sea, .intro-world, .intro-storm, .intro-storm-front, .intro-shade { position: absolute; inset: 0; }
.intro-chart { z-index: 0; background: #0b0c0f; }
.intro-chart::before { content: ""; position: absolute; inset: 0; background: url("/assets/storm-sea.webp") center/cover; opacity: .16; filter: grayscale(.8) sepia(.3); }
.intro-sea, .ink-sea-layer::after { background-size: 260px 170px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='170' viewBox='0 0 260 170'%3E%3Cg fill='none' stroke='%23d9c678' stroke-linecap='round' stroke-width='1.1'%3E%3Cpath opacity='.2' d='M14 30q7-6 14 0t14 0'/%3E%3Cpath opacity='.14' d='M118 16q7-6 14 0t14 0t14 0'/%3E%3Cpath opacity='.18' d='M198 54q6-5 12 0t12 0'/%3E%3Cpath opacity='.16' d='M62 86q7-6 14 0t14 0t14 0'/%3E%3Cpath opacity='.2' d='M160 108q7-6 14 0t14 0'/%3E%3Cpath opacity='.13' d='M20 134q6-5 12 0t12 0'/%3E%3Cpath opacity='.16' d='M226 142q7-6 14 0t14 0'/%3E%3Cpath opacity='.12' d='M104 152q6-5 12 0t12 0t12 0'/%3E%3C/g%3E%3C/svg%3E"); }
.intro-world { width: 100%; height: 100%; overflow: visible; }
.intro-storm { z-index: 1; background: #0d1413; transform-origin: 50% 62%; }
.intro-storm-sea { position: absolute; inset: -8% -3%; background: url("/assets/storm-sea.webp") center 62%/cover; opacity: .9; filter: grayscale(.65) sepia(.28); }
.intro-mist { position: absolute; inset: 0; background: radial-gradient(ellipse at 46% 45%,#a7b39b0d,transparent 65%); }
.intro-waves { position: absolute; left: -7%; bottom: -6%; width: 114%; height: 32%; pointer-events: none; }
.intro-waves-back { fill: #263128; opacity: .55; }
.intro-ship { position: absolute; z-index: 2; left: 0; top: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.intro-ship-rise { transform-origin: 50% 80%; }
.intro-ship-art { display: block; width: 100%; height: auto; transform-origin: 48% 78%; filter: sepia(.2) saturate(.85) brightness(.86) contrast(1.1) drop-shadow(0 22px 16px #000c); }
.intro-storm-front { z-index: 3; pointer-events: none; transform-origin: 50% 62%; }
.intro-storm-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#0d141380,transparent 72%),linear-gradient(0deg,#0b0c0f,transparent 35%,transparent 75%,#0b0c0f55); }
.intro-waves-front { fill: #101b16; opacity: .85; height: 25%; }
.intro-foam { fill: none; stroke: #aeb39a; stroke-width: 1.5; opacity: .45; }
.intro-swell { position: absolute; left: -5%; bottom: -5%; width: 110%; height: 28%; fill: none; stroke: #d8d8bf; stroke-width: 1; opacity: .27; }
.intro-rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-shade { z-index: 4; pointer-events: none; background: linear-gradient(180deg,#0b0c0ff0 0%,#0b0c0f00 32%),linear-gradient(0deg,#0b0c0fd9 0%,#0b0c0f00 20%),radial-gradient(ellipse at 50% 64%,transparent 44%,#0b0c0fa6 100%); }

.intro-course, .intro-wake { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.intro-course { stroke: #e9dfc3; stroke-width: 1.6; stroke-dasharray: 9 10; opacity: .5; }
.intro-wake { stroke: var(--gold); stroke-width: 2.4; }
.intro-harbor { fill: none; stroke: #ccb873; opacity: .55; }
.intro-harbor circle:first-child { fill: #bd9c3855; }
.intro-emblem { fill: none; stroke: var(--gold); stroke-width: 1.8; opacity: .8; }
.emblem-thin { stroke-width: .9; opacity: .7; }
.emblem-shade { fill: var(--gold); stroke: none; opacity: .85; }
.emblem-rhumbs { stroke-width: .8; opacity: .16; }
.isle-land { fill: #15171b; }
.isle-coast { fill: none; stroke: #e9dfc3; stroke-width: 1.7; }
.isle-water { fill: none; stroke: #e9dfc3; stroke-linecap: round; stroke-width: 1.1; }
.isle-water.w1 { opacity: .5; stroke-dasharray: 22 9; }
.isle-water.w2 { opacity: .3; stroke-dasharray: 10 14; }
.isle-water.w3 { opacity: .17; stroke-dasharray: 4 18; }
.isle-hatch path { stroke: #e9dfc3; stroke-width: 1; opacity: .36; }
.isle-peak { fill: #15171b; stroke: #e9dfc3; stroke-width: 1.3; stroke-linejoin: round; }
.isle-peak-hatch { fill: none; stroke: #e9dfc3; stroke-width: .9; opacity: .55; }
.isle-palm { fill: none; stroke: #cfc39f; stroke-width: 1.1; stroke-linecap: round; }
.isle-mark { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .6; transition: opacity .9s, filter .9s; }
.is-reached .isle-mark { opacity: 1; filter: drop-shadow(0 0 7px #f0b90b8c); }
.isle-fill { fill: var(--gold); }
.isle-solid { fill: #15171b; }
.isle-tag { fill: var(--gold); stroke: none; font: italic 13px Georgia, "Times New Roman", serif; text-anchor: middle; }
.isle-ray { stroke: none; opacity: 0; transition: opacity 1.2s; }
.is-reached .isle-ray { opacity: .55; }
.isle-beam { transform-origin: 0px -78px; animation: isle-sweep 3.4s ease-in-out infinite alternate; animation-play-state: paused; }
[data-intro-motion="running"] .is-reached .isle-beam { animation-play-state: running; }
@keyframes isle-sweep { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.isle-label { fill: none; stroke: #e9dfc34d; }
.isle-number { fill: var(--gold); stroke: none; font: italic 26px Georgia, "Times New Roman", serif; text-anchor: middle; }
.isle-name { fill: #e9dfc3; stroke: none; font: 13px var(--mono); letter-spacing: .22em; text-anchor: middle; }

.intro-step { position: relative; z-index: 5; }
.intro-kicker { font: 14px/1.6 var(--mono); letter-spacing: .19em; color: #cabb88; margin: 0 0 26px; }
.intro-hero { height: 175svh; }
.intro-hero-pin { position: sticky; top: 0; height: 100svh; }
.intro-hero-copy { position: absolute; left: 5%; top: 51%; width: 51%; max-width: 720px; transform: translateY(-50%); text-align: center; color: #f5f0e0; }
.intro-hero h1 { font: 400 min(clamp(96px,11vw,190px),20vh)/.76 var(--serif); letter-spacing: -.07em; margin: 0 0 4.2vh; }
.intro-hero h1 em { color: var(--gold); font-weight: 400; }
.intro-hero h1:focus { outline: none; }
.intro-subtitle { font: italic 20px/1.5 var(--serif); color: #e4dcc5; margin: 0 0 3.4vh; }
.intro-menu ul { list-style: none; margin: 0; padding: 0; display: inline-grid; gap: 1px; text-align: left; }
.intro-menu-item { position: relative; display: flex; align-items: baseline; gap: 14px; width: 100%; min-height: 36px; padding: 5px 16px 5px 34px; border: 0; background: none; color: #cfc6a8; font: 19px/1.3 var(--serif); text-shadow: 0 2px 12px #000; }
.intro-menu-item::before { content: "▸"; position: absolute; left: 10px; color: var(--gold); opacity: 0; }
.intro-menu-item.is-selected::before { opacity: 1; animation: intro-blink 1.1s steps(2,start) infinite; animation-play-state: paused; }
[data-intro-motion="running"] .intro-menu-item.is-selected::before { animation-play-state: running; }
.intro-menu-item:hover:not(:disabled), .intro-menu-item.is-selected { background: none; color: #fff6d8; border: 0; }
.intro-menu-item.is-primary { font: 400 clamp(24px,2.3vw,32px)/1.2 var(--serif); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; align-items: center; }
.intro-menu-item.is-primary:hover:not(:disabled), .intro-menu-item.is-primary.is-selected { color: #ffd95e; }
.intro-menu-item b { width: 28px; font: italic 16px var(--serif); color: #a8935a; }
.prologue kbd { padding: 3px 7px; border: 1px solid #f0b90b80; border-radius: 3px; background: #0b0c0f99; color: #f0cc56; font: 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: none; white-space: nowrap; }
.intro-hint { position: absolute; right: 4vw; bottom: 30px; display: flex; gap: 24px; margin: 0; font: 14px var(--mono); color: #cabb88; }
.intro-hint i { font-style: normal; margin-left: 9px; }
.intro-scroll-cue { position: fixed; z-index: 12; left: 50%; bottom: 34px; opacity: 0; transition: opacity .5s; transform: translateX(-50%); margin: 0; font: 13px var(--mono); letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; color: var(--gold); animation: intro-cue 2s steps(2,start) infinite; animation-play-state: paused; }
[data-intro-motion="running"] .intro-scroll-cue { animation-play-state: running; }
[data-intro-cue="on"] .intro-scroll-cue { opacity: 1; }
@keyframes intro-blink { to { visibility: hidden; } }
@keyframes intro-cue { to { color: #f0b90b40; } }

.intro-island { min-height: 140svh; padding: 0 6vw; }
.intro-live .intro-island .intro-panel { position: fixed; top: 0; bottom: 0; left: 6vw; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; pointer-events: none; visibility: hidden; transition: visibility 0s .7s; }
.intro-live .intro-island[data-side="right"] .intro-panel { left: auto; right: 6vw; }
.intro-live .intro-panel.is-in { visibility: visible; transition-delay: 0s; }
.intro-live .intro-panel.is-in > * { pointer-events: auto; }
.intro-live .intro-island .intro-panel::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: 0; transition: opacity .7s; background: linear-gradient(90deg,#0b0c0ff2 0%,#0b0c0fb3 30%,#0b0c0f00 58%); }
.intro-live .intro-island[data-side="right"] .intro-panel::before { background: linear-gradient(270deg,#0b0c0ff2 0%,#0b0c0fb3 30%,#0b0c0f00 58%); }
.intro-live .intro-island .intro-panel.is-in::before { opacity: 1; }
.intro-panel { width: min(520px,42vw); color: #f4efdf; text-shadow: 0 2px 16px #0b0c0f; }
.intro-panel h2 { font: 400 clamp(40px,4.6vw,76px)/1.03 var(--serif); letter-spacing: -.045em; margin: 0 0 28px; }
.intro-panel h2 em { color: var(--gold); font-weight: 400; }
.intro-panel > p:not(.intro-kicker) { max-width: 500px; margin: 0 0 16px; font: 18px/1.75 var(--serif); color: #e6dfca; }
.intro-panel strong { font-weight: 400; color: #ffe08a; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #f0b90b99; }
.intro-panel > p.intro-aside { font-style: italic; color: #cbbf9c; }
.intro-seals { display: flex; gap: 12px; margin-top: 26px; }
.intro-seals span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #f0b90b80; border-radius: 50%; color: var(--gold); font: italic 22px var(--serif); background: #0b0c0f80; }
.intro-clock { display: flex; align-items: center; gap: 26px; margin-top: 24px; text-align: center; }
.intro-clock strong { display: block; font: italic 400 clamp(52px,5vw,84px)/1.05 var(--serif); color: var(--gold); text-decoration: none; }
.intro-clock span { display: block; margin-top: 8px; font: 13px var(--mono); letter-spacing: .1em; color: #cbc1a0; }
.intro-clock i { font: 28px var(--serif); font-style: normal; color: #c8ae55; }
.intro-prizes { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; max-width: 500px; margin-top: 24px; }
.intro-prizes div { text-align: center; padding-bottom: 12px; border-bottom: 1px solid #f0b90b66; }
.intro-prizes span { display: block; margin-bottom: 8px; font: italic 16px var(--serif); color: #cbbf9c; }
.intro-prizes strong { font: 400 clamp(26px,2.6vw,40px)/1.1 var(--serif); letter-spacing: -.04em; color: #f6e7b0; text-decoration: none; }
.intro-prizes small { font-size: .5em; margin-left: 2px; }
.intro-next, .intro-enter { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; text-shadow: none; }
.intro-next { margin-top: 30px; padding: 12px 18px; border: 1px solid #f0b90b8c; background: #0b0c0fa6; color: var(--gold); font: italic 20px/1.2 var(--serif); }
.intro-next:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #151515; }
.intro-next:hover kbd, .intro-enter kbd { border-color: #15151580; background: #15151514; color: #151515; }
.intro-finale { height: 190svh; }
.intro-finale-pin { position: sticky; top: 0; height: 100svh; display: flex; justify-content: center; padding: 15vh 6vw 0; text-align: center; }
.intro-finale-pin::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 34%,#0b0c0fe6 0%,#0b0c0f99 34%,#0b0c0f00 62%); }
.intro-finale .intro-panel { width: min(680px,100%); }
.intro-finale .intro-panel > p:not(.intro-kicker) { max-width: 560px; margin-inline: auto; font-size: 17px; color: #d8cfb5; }
.intro-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 30px; }
.intro-enter { padding: 20px 28px; background: var(--gold); border: 1px solid var(--gold); color: #151515; font: italic 28px/1.15 var(--serif); box-shadow: 8px 9px 0 #0007; transition: background .18s, transform .18s; }
.intro-enter:hover { background: #ffd44d; transform: translate(-2px,-2px); }
.intro-rules { color: #e4dcc5; font-size: 16px; }
.intro-live .intro-panel > * { opacity: 0; transform: translateY(26px); transition: opacity .5s ease-out, transform .5s ease-out; }
.intro-live .intro-panel.is-in > * { opacity: 1; transform: none; transition-duration: .7s; }
.intro-live .intro-panel.is-in > :nth-child(2) { transition-delay: .08s; }
.intro-live .intro-panel.is-in > :nth-child(3) { transition-delay: .16s; }
.intro-live .intro-panel.is-in > :nth-child(4) { transition-delay: .24s; }
.intro-live .intro-panel.is-in > :nth-child(5) { transition-delay: .32s; }
.intro-live .intro-panel.is-in > :nth-child(6) { transition-delay: .4s; }

.intro-hud { position: fixed; z-index: 14; inset: 0 0 auto; height: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
[data-intro-hud="on"] .intro-hud { opacity: 1; visibility: visible; }
.intro-stops { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.intro-stops button { display: flex; align-items: baseline; gap: 9px; min-height: 36px; padding: 6px 14px; border: 0; border-bottom: 1px solid transparent; background: none; color: #cfc7ad; font: 13px var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 10px #0b0c0f; }
.intro-stops button b { font: italic 14px var(--serif); color: #a8935a; }
.intro-stops button:hover:not(:disabled) { background: none; color: #fff6d8; border-color: transparent; }
.intro-stops button[aria-current="true"], .intro-stops button[aria-current="true"]:hover:not(:disabled) { color: var(--gold); border-bottom-color: var(--gold); }
.intro-compass { position: absolute; top: 88px; right: 4vw; display: grid; justify-items: center; gap: 6px; }
.intro-compass svg { width: 58px; height: 58px; filter: drop-shadow(0 6px 10px #0009); }
.compass-rim { fill: #0d0e11cc; stroke: #f0b90b99; stroke-width: 1.5; }
.compass-ring { fill: none; stroke: #e9dfc333; }
.compass-ticks { fill: none; stroke: #e9dfc3; stroke-width: 1.5; }
.compass-minor { fill: none; stroke: #e9dfc366; }
.intro-needle { transform-origin: 32px 32px; transition: transform .5s ease-out; }
.intro-needle path { fill: var(--gold); }
.intro-needle .needle-light { fill: #fff6d8; opacity: .55; }
.intro-needle circle { fill: #0b0c0f; stroke: var(--gold); stroke-width: 1.5; }
.intro-compass-label { font: 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #e9dfc3; text-shadow: 0 1px 8px #0b0c0f; }

html:lang(zh-CN) .intro-hero h1 { font-family: Georgia, "Times New Roman", serif; }
html:lang(zh-CN) .intro-panel h2 { line-height: 1.25; letter-spacing: 0; font-size: clamp(34px,4vw,62px); }
html:lang(zh-CN) .intro-kicker, html:lang(zh-CN) .intro-stops button, html:lang(zh-CN) .intro-compass-label, html:lang(zh-CN) .isle-name { letter-spacing: .08em; }
html:lang(zh-CN) .intro-menu-item.is-primary { letter-spacing: .04em; }

@media (max-width:1150px) {
 .intro-stops { display: none; }
}
@media (max-width:700px) {
 .intro-hero-copy { left: 7%; right: 7%; width: auto; top: 41%; }
 .intro-hero h1 { font-size: clamp(64px,21vw,88px); margin-bottom: 22px; }
 .intro-hero .intro-kicker { font-size: 12px; letter-spacing: .05em; margin-bottom: 20px; }
 .intro-subtitle { font-size: 16px; margin-bottom: 16px; }
 .intro-menu-item { min-height: 34px; font-size: 17px; padding-block: 4px; }
 .intro-menu-item.is-primary { font-size: 22px; margin-bottom: 4px; }
 .intro-menu-item kbd, .intro-hint, .intro-menu li:not(:first-child) { display: none; }
 .intro-scroll-cue { bottom: 88px; font-size: 12px; letter-spacing: .2em; }
 .intro-island { min-height: 130svh; padding: 0 7vw; }
 .intro-live .intro-island .intro-panel, .intro-live .intro-island[data-side="right"] .intro-panel { left: 7vw; right: 7vw; justify-content: flex-start; padding-top: 154px; }
 .intro-live .intro-island .intro-panel::before, .intro-live .intro-island[data-side="right"] .intro-panel::before { background: linear-gradient(180deg,#0b0c0ff5 0%,#0b0c0fc7 40%,#0b0c0f00 68%); }
 .intro-panel { width: auto; }
 .intro-panel h2 { font-size: 36px; margin-bottom: 16px; }
 .intro-panel > p.intro-aside { font-size: 15px; }
 .intro-seals, .intro-live .intro-next { display: none; }
 .intro-panel > p:not(.intro-kicker) { font-size: 16px; line-height: 1.65; margin-bottom: 10px; }
 .intro-kicker { font-size: 13px; letter-spacing: .1em; margin-bottom: 14px; }
 .intro-seals { gap: 8px; margin-top: 16px; }
 .intro-seals span { width: 38px; height: 38px; font-size: 19px; }
 .intro-clock { gap: 16px; margin-top: 14px; }
 .intro-clock strong { font-size: 46px; }
 .intro-prizes { gap: 6px; margin-top: 14px; }
 .intro-next { margin-top: 18px; padding: 10px 14px; font-size: 18px; }
 .intro-next kbd, .intro-enter kbd { display: none; }
 .intro-finale-pin { padding-top: 118px; }
 .intro-enter { font-size: 23px; padding: 17px 22px; }
 .intro-compass { top: 74px; right: auto; left: 5vw; }
 .intro-compass svg { width: 48px; height: 48px; }
 html:lang(zh-CN) .intro-panel h2 { font-size: 34px; }
}

/* Reduced motion reads the chapters as a plain page over a still sea. */
.intro-static .intro-stage { position: fixed; inset: 0; height: auto; margin: 0; }
.intro-static .intro-chart, .intro-static .intro-ship, .intro-static .intro-storm-front, .intro-static .intro-hint, .intro-static .intro-scroll-cue { display: none; }
.intro-static .intro-storm { opacity: .5 !important; transform: none !important; visibility: visible !important; }
.intro-static .intro-hero, .intro-static .intro-finale { height: auto; }
.intro-static .intro-hero-pin, .intro-static .intro-finale-pin { position: relative; height: auto; min-height: 100svh; }
body.intro-static[data-view="prologue"] .rr-header { position: absolute; }
.intro-static .intro-next { display: none; }
.intro-static .intro-island { min-height: 0; padding-block: 90px; }
.intro-static .intro-island[data-side="right"] { display: flex; justify-content: flex-end; }
.intro-static .intro-finale-pin { padding-bottom: 150px; }

/* Game chart: engraved harbours, a flowing course and a wake behind a rocking ship. */
.ink-sea-layer { background-image: url("/assets/storm-sea.webp"); opacity: .6; }
.ink-sea-layer::after { content: ""; position: absolute; inset: 0; animation: sea-drift 18s linear infinite; animation-play-state: paused; }
[data-motion="running"] .ink-sea-layer::after { animation-play-state: running; }
@keyframes sea-drift { to { background-position: -260px 0; } }
.voyage-route { stroke-dasharray: 3 8; stroke-linecap: round; }
.voyage-route.is-selected { stroke-width: 2; stroke-dasharray: 9 9; opacity: .8; animation: route-flow 1.1s linear infinite; animation-play-state: paused; }
[data-motion="running"] .voyage-route.is-selected { animation-play-state: running; }
@keyframes route-flow { to { stroke-dashoffset: -18; } }
.voyage-wake { fill: none; stroke: var(--gold); stroke-width: 2.8; stroke-linecap: round; pointer-events: none; filter: drop-shadow(0 0 4px #f0b90b80); }
.chart-rose { fill: none; stroke: #ccb873; stroke-width: 1; opacity: .5; pointer-events: none; }
.chart-rose .emblem-shade { fill: #ccb873; stroke: none; opacity: .45; }
.chart-rhumbs { stroke: #f0b90b; stroke-width: .7; opacity: .22; }
.voyage-isle { cursor: pointer; }
.voyage-isle .isle-coast { stroke-width: 1.3; transition: stroke .3s; }
.voyage-isle .isle-mark { opacity: .45; }
.voyage-isle:hover .isle-coast, .voyage-isle.is-selected .isle-coast { stroke: var(--gold); }
.voyage-isle.is-selected .isle-mark, [data-round-phase="ranking"] .voyage-isle .isle-mark, [data-round-phase="settled"] .voyage-isle .isle-mark { opacity: 1; filter: drop-shadow(0 0 6px #f0b90b8c); }
.route-endpoint { display: none; }
.vessel-bob { transform-box: fill-box; transform-origin: 50% 82%; animation: vessel-bob 3.4s ease-in-out infinite alternate; animation-play-state: paused; }
[data-motion="running"] .vessel-bob { animation-play-state: running; }
@keyframes vessel-bob { from { transform: translateY(1.5px) rotate(-2.6deg); } to { transform: translateY(-2px) rotate(2.6deg); } }
