/* Sol Voyage interface (owner 2026-10-04): sv-theme - loaded after the page styles in index.html, so it overrides them.
   The one style system taken from the logo (navy sea, teal foam, gilded bronze), the shared components (frame, title +
   compass-star divider, close coin, primary / secondary buttons, body text) and every window CENTRED over the free sea
   above the binnacle bar. No parchment, scrolls, blackletter, red initials or wax seals on any window. */
@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cinzel:wght@600;700&family=Alegreya:ital,wght@0,400;0,500;0,700;1,400&display=swap");

:root {
  --sv-navy-900: #071a26; --sv-navy-800: #0b2536; --sv-navy-700: #12344a; --sv-teal-600: #1d5e73; --sv-teal-400: #3f93a8;
  --sv-foam: #e9f3f2; --sv-cream: #f3e6c8; --sv-gold-300: #f6d98a; --sv-gold-400: #e7b553; --sv-gold-500: #c98f2e;
  --sv-bronze-600: #8a5a22; --sv-bronze-800: #4a2f12; --sv-iron: #15100c; --sv-rust: #b4472a; --sv-muted: #9fc6cf;
  --sv-gold-grad: linear-gradient(180deg, #fbe7a6 0%, #e7b553 38%, #b37a2a 62%, #f0cd78 100%);
  --sv-panel-bg: radial-gradient(120% 90% at 20% 0%, rgba(63, 147, 168, .22), transparent 55%), linear-gradient(180deg, #12344a 0%, #0b2536 55%, #071a26 100%);
  --sv-frame: 0 0 0 1px #15100c, 0 0 0 4px #c98f2e, 0 0 0 5px #15100c, inset 0 0 0 1px rgba(246, 217, 138, .35), 0 18px 40px rgba(0, 0, 0, .55);
  --sv-f-title: "Cinzel Decorative", "Cinzel", "Trajan Pro", Georgia, serif;
  --sv-f-caps: "Cinzel", "Trajan Pro", "Perpetua Titling MT", Georgia, serif;
  --sv-f-body: "Alegreya", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sv-dim: rgba(4, 14, 22, .4);
  /* what the binnacle bar takes at the foot (the orbs' height and lift): windows centre in the sea above it */
  --sv-bar: calc(var(--sbm, 0px) + var(--orb-b, 21px) + var(--orb, 150px) * 1.2);
  --sv-gap: 14px;
  /* what the top strip takes: the crest (1.6x, its logo ~.455 as tall as wide, 6 px down) or the account strip (1.3x,
     ~67 px tall, 10 px down), whichever reaches lower: windows sit in the sea between it and the bar */
  --sv-top: calc(var(--st, 0px) + max(6px + var(--crest-w, 250px) * .728, 98px));
  /* the free sea's height and its middle */
  --sv-free: calc(100vh - var(--sv-top) - var(--sv-bar));
  --sv-mid: calc(var(--sv-top) + var(--sv-free) / 2);
  /* chart lines and swell on the navy, ~6 % */
  --sv-waves: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'><g fill='none' stroke='%23e9f3f2' stroke-width='1'><path stroke-opacity='.07' d='M0 20q20-7 40 0t40 0 40 0 40 0M0 60q20-7 40 0t40 0 40 0 40 0'/><path stroke-opacity='.045' d='M0 80L160 0M0 0l160 80'/></g></svg>");
  /* the compass-rose star in the middle of the title divider */
  --sv-star: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-9 -9 18 18'><path d='M0-8.5L1.7-1.7 8.5 0 1.7 1.7 0 8.5-1.7 1.7-8.5 0-1.7-1.7Z' fill='%23f6d98a' stroke='%2315100c' stroke-width='.8'/><path d='M0-8.5L1.7-1.7 0 0ZM8.5 0L1.7 1.7 0 0ZM0 8.5L-1.7 1.7 0 0ZM-8.5 0L-1.7-1.7 0 0Z' fill='%23b37a2a'/><path d='M4.4-4.4L.9 0 0-.9ZM4.4 4.4L0 .9 .9 0ZM-4.4 4.4L-.9 0 0 .9ZM-4.4-4.4L0-.9-.9 0Z' fill='%23e7b553' stroke='%2315100c' stroke-width='.4'/><circle r='1.1' fill='%2315100c'/></svg>");
  /* gilded filigree corners with a small fleur-de-lis (one per corner) */
  --sv-corner-tl: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><g fill='none' stroke-linecap='round'><path stroke='%2315100c' stroke-width='4' d='M4 32V9a5 5 0 0 1 5-5h23M32 4c5 0 7 5 4 7s-5-1-3-3M4 32c0 5 5 7 7 4s-1-5-3-3M9 9c7 1 11 5 12 12M9 9c6-2 10-1 13 1M9 9c-2 6-1 10 1 13'/><path stroke='%23e7b553' stroke-width='2' d='M4 32V9a5 5 0 0 1 5-5h23M32 4c5 0 7 5 4 7s-5-1-3-3M4 32c0 5 5 7 7 4s-1-5-3-3M9 9c7 1 11 5 12 12M9 9c6-2 10-1 13 1M9 9c-2 6-1 10 1 13'/></g><g transform='translate(19.5 19.5) rotate(-45)' fill='%23f6d98a' stroke='%2315100c' stroke-width='.8'><path d='M0-7C2-4 2.2-1.5 0 1.5-2.2-1.5-2-4 0-7ZM-1 1C-4 1.5-6.5-1-5-3.6-4.6-1.8-3-1.3-1.2-.8ZM1 1C4 1.5 6.5-1 5-3.6 4.6-1.8 3-1.3 1.2-.8ZM-3.4 1.6H3.4V3H-3.4ZM-1 3 0 6.5 1 3Z'/></g></svg>");
  --sv-corner-tr: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><g transform='matrix(-1 0 0 1 48 0)'><g fill='none' stroke-linecap='round'><path stroke='%2315100c' stroke-width='4' d='M4 32V9a5 5 0 0 1 5-5h23M32 4c5 0 7 5 4 7s-5-1-3-3M4 32c0 5 5 7 7 4s-1-5-3-3M9 9c7 1 11 5 12 12M9 9c6-2 10-1 13 1M9 9c-2 6-1 10 1 13'/><path stroke='%23e7b553' stroke-width='2' d='M4 32V9a5 5 0 0 1 5-5h23M32 4c5 0 7 5 4 7s-5-1-3-3M4 32c0 5 5 7 7 4s-1-5-3-3M9 9c7 1 11 5 12 12M9 9c6-2 10-1 13 1M9 9c-2 6-1 10 1 13'/></g><g transform='translate(19.5 19.5) rotate(-45)' fill='%23f6d98a' stroke='%2315100c' stroke-width='.8'><path d='M0-7C2-4 2.2-1.5 0 1.5-2.2-1.5-2-4 0-7ZM-1 1C-4 1.5-6.5-1-5-3.6-4.6-1.8-3-1.3-1.2-.8ZM1 1C4 1.5 6.5-1 5-3.6 4.6-1.8 3-1.3 1.2-.8ZM-3.4 1.6H3.4V3H-3.4ZM-1 3 0 6.5 1 3Z'/></g></g></svg>");
  --sv-corner-bl: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><g transform='matrix(1 0 0 -1 0 48)'><g fill='none' stroke-linecap='round'><path stroke='%2315100c' stroke-width='4' d='M4 32V9a5 5 0 0 1 5-5h23M32 4c5 0 7 5 4 7s-5-1-3-3M4 32c0 5 5 7 7 4s-1-5-3-3M9 9c7 1 11 5 12 12M9 9c6-2 10-1 13 1M9 9c-2 6-1 10 1 13'/><path stroke='%23e7b553' stroke-width='2' d='M4 32V9a5 5 0 0 1 5-5h23M32 4c5 0 7 5 4 7s-5-1-3-3M4 32c0 5 5 7 7 4s-1-5-3-3M9 9c7 1 11 5 12 12M9 9c6-2 10-1 13 1M9 9c-2 6-1 10 1 13'/></g><g transform='translate(19.5 19.5) rotate(-45)' fill='%23f6d98a' stroke='%2315100c' stroke-width='.8'><path d='M0-7C2-4 2.2-1.5 0 1.5-2.2-1.5-2-4 0-7ZM-1 1C-4 1.5-6.5-1-5-3.6-4.6-1.8-3-1.3-1.2-.8ZM1 1C4 1.5 6.5-1 5-3.6 4.6-1.8 3-1.3 1.2-.8ZM-3.4 1.6H3.4V3H-3.4ZM-1 3 0 6.5 1 3Z'/></g></g></svg>");
  --sv-corner-br: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><g transform='matrix(-1 0 0 -1 48 48)'><g fill='none' stroke-linecap='round'><path stroke='%2315100c' stroke-width='4' d='M4 32V9a5 5 0 0 1 5-5h23M32 4c5 0 7 5 4 7s-5-1-3-3M4 32c0 5 5 7 7 4s-1-5-3-3M9 9c7 1 11 5 12 12M9 9c6-2 10-1 13 1M9 9c-2 6-1 10 1 13'/><path stroke='%23e7b553' stroke-width='2' d='M4 32V9a5 5 0 0 1 5-5h23M32 4c5 0 7 5 4 7s-5-1-3-3M4 32c0 5 5 7 7 4s-1-5-3-3M9 9c7 1 11 5 12 12M9 9c6-2 10-1 13 1M9 9c-2 6-1 10 1 13'/></g><g transform='translate(19.5 19.5) rotate(-45)' fill='%23f6d98a' stroke='%2315100c' stroke-width='.8'><path d='M0-7C2-4 2.2-1.5 0 1.5-2.2-1.5-2-4 0-7ZM-1 1C-4 1.5-6.5-1-5-3.6-4.6-1.8-3-1.3-1.2-.8ZM1 1C4 1.5 6.5-1 5-3.6 4.6-1.8 3-1.3 1.2-.8ZM-3.4 1.6H3.4V3H-3.4ZM-1 3 0 6.5 1 3Z'/></g></g></svg>");
  --sv-corners: var(--sv-corner-tl) 0 0 / 46px 46px no-repeat, var(--sv-corner-tr) 100% 0 / 46px 46px no-repeat, var(--sv-corner-bl) 0 100% / 46px 46px no-repeat, var(--sv-corner-br) 100% 100% / 46px 46px no-repeat;
  /* the twisted rope 6 px inside the gold border */
  --sv-rope: repeating-linear-gradient(45deg, #f6d98a 0 1.5px, #c98f2e 1.5px 3px, #4a2f12 3px 4px);
}

/* at sea the crest shrinks to its emblem; on a phone the windows keep the whole height (the strip folds away) */
html[data-sec=warriorSection] { --sv-top: calc(var(--st, 0px) + max(8px + var(--crest-w, 250px) * .3786, 98px)); }
html.lay-phone { --sv-top: var(--st, 0px); }

/* ---- the old parchment tokens, re-pointed inside every window: navy sheets, cream text, gold rules, no red ---- */
#panel, .about-back, #acct, #gfxCard, #rotateGate {
  --ink: var(--sv-cream); --ink-soft: var(--sv-muted); --ink-faint: rgba(159, 198, 207, .55); --rule: rgba(231, 181, 83, .18);
  --rubric: var(--sv-gold-400); --gilt: var(--sv-gold-300); --sea-ink: var(--sv-teal-400);
  --parch: var(--sv-navy-700); --parch-hi: var(--sv-navy-700); --parch-lo: var(--sv-navy-800);
  --paper-fill: var(--sv-waves) 0 0 / 160px 80px, var(--sv-panel-bg);
  --chart-fill: var(--sv-waves) 0 0 / 160px 80px, var(--sv-panel-bg);
  --f-display: var(--sv-f-title); --f-fell: var(--sv-f-body);
}

/* ================================ shared components ================================ */
/* window frame: .sv-window may be used by any new window; #panel and .about-win get it below */
.sv-window {
  position: relative; border-radius: 6px; color: var(--sv-cream); font: 400 16px/1.45 var(--sv-f-body); font-variant-numeric: lining-nums;
  background: var(--sv-waves) 0 0 / 160px 80px, var(--sv-panel-bg); box-shadow: var(--sv-frame);
}
/* titles: gilded Cinzel Decorative, centred, a dark edge */
.sv-title {
  margin: 0; text-align: center; font: 700 26px/1.12 var(--sv-f-title); letter-spacing: .06em; text-transform: uppercase;
  background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #15100c) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
/* the gold divider with the compass-rose star */
.sv-divider { display: block; height: 18px; margin: 4px auto 10px; width: min(78%, 420px);
  background: var(--sv-star) center / 18px 18px no-repeat, linear-gradient(90deg, transparent, #c98f2e 18%, #f6d98a 50%, #c98f2e 82%, transparent) center / 100% 1px no-repeat; }

/* buttons: primary = gilded bronze plate, secondary = navy enamel, danger = rust enamel */
button.gold, .sv-btn,
:where(#panel, .about-back, #acct) button:not([class]) {
  color: #0b2536; text-shadow: 0 1px 0 rgba(255, 240, 200, .55); font: 700 13px/1.1 var(--sv-f-caps); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid #15100c; border-radius: 5px; background: var(--sv-gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 250, 225, .75), inset 0 -2px 0 rgba(74, 47, 18, .35), 0 2px 0 #4a2f12, 0 3px 7px rgba(0, 0, 0, .45);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
button.gold:hover:not(:disabled), .sv-btn:hover:not(:disabled), :where(#panel, .about-back, #acct) button:not([class]):hover:not(:disabled) {
  filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 250, 225, .8), inset 0 -2px 0 rgba(74, 47, 18, .35), 0 2px 0 #4a2f12, 0 0 14px rgba(246, 217, 138, .45), 0 3px 7px rgba(0, 0, 0, .45);
}
button.gold:active:not(:disabled), .sv-btn:active:not(:disabled), :where(#panel, .about-back, #acct) button:not([class]):active:not(:disabled) {
  transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(74, 47, 18, .6), 0 1px 0 #4a2f12;
}
button.secondary, .sv-btn-2 {
  color: var(--sv-gold-300); text-shadow: 0 1px 0 rgba(0, 0, 0, .6); font: 700 13px/1.1 var(--sv-f-caps); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--sv-gold-500); border-radius: 5px; background: linear-gradient(180deg, #1a4660 0%, var(--sv-navy-700) 55%, #0d2a3c 100%);
  box-shadow: 0 0 0 1px #15100c, inset 0 1px 0 rgba(246, 217, 138, .25), 0 3px 6px rgba(0, 0, 0, .45);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
button.secondary:hover:not(:disabled), .sv-btn-2:hover:not(:disabled) { filter: brightness(1.18); box-shadow: 0 0 0 1px #15100c, inset 0 1px 0 rgba(246, 217, 138, .3), 0 0 12px rgba(246, 217, 138, .3), 0 3px 6px rgba(0, 0, 0, .45); }
button.secondary:active:not(:disabled), .sv-btn-2:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 0 0 1px #15100c, inset 0 2px 5px rgba(0, 0, 0, .5); }
button.danger {
  color: #ffd9c9; text-shadow: 0 1px 0 rgba(0, 0, 0, .55); font: 700 13px/1.1 var(--sv-f-caps); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid #e7b553; border-radius: 5px; background: linear-gradient(180deg, #c9583a 0%, var(--sv-rust) 50%, #7e2c18 100%);
  box-shadow: 0 0 0 1px #15100c, inset 0 1px 0 rgba(255, 220, 190, .35), 0 3px 6px rgba(0, 0, 0, .45);
}
button.small { font-size: 11px; }
button.gold::after, button.secondary::after, button.danger::after, .sv-btn::after, .sv-btn-2::after,
:where(#panel, .about-back, #acct) button:not([class])::after { content: none; } /* no stitching */
:where(#panel, .about-back, #acct) button:focus-visible { outline: 2px solid var(--sv-teal-400); outline-offset: 2px; }

/* the close coin: a round bronze coin with an engraved X (no wax seal) */
#panelClose, .about-close, .sv-close {
  position: absolute; z-index: 6; right: 12px; top: 12px; width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; color: #4a2f12; text-shadow: none; cursor: pointer;
  background: radial-gradient(circle at 34% 28%, rgba(255, 250, 225, .85) 0 12%, transparent 34%), var(--sv-gold-grad);
  box-shadow: 0 0 0 1px #15100c, 0 0 0 3px #8a5a22, 0 0 0 4px #15100c, inset 0 0 0 2px rgba(74, 47, 18, .35), inset 0 -2px 3px rgba(74, 47, 18, .45), 0 3px 6px rgba(0, 0, 0, .5);
  transition: transform .12s, filter .12s, box-shadow .12s;
}
#panelClose::after, .about-close::after, .sv-close::after { content: none; }
#panelClose svg, .about-close svg, .sv-close svg { width: 15px; height: 15px; filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .7)); }
#panelClose:hover:not(:disabled), .about-close:hover:not(:disabled), .sv-close:hover:not(:disabled) { transform: none; filter: brightness(1.1); box-shadow: 0 0 0 1px #15100c, 0 0 0 3px #8a5a22, 0 0 0 4px #15100c, inset 0 0 0 2px rgba(74, 47, 18, .35), 0 0 12px rgba(246, 217, 138, .5), 0 3px 6px rgba(0, 0, 0, .5); }
#panelClose:active:not(:disabled), .about-close:active:not(:disabled), .sv-close:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 0 0 1px #15100c, 0 0 0 3px #8a5a22, 0 0 0 4px #15100c, inset 0 2px 5px rgba(74, 47, 18, .7); }

@keyframes svIn { from { transform: translate(-50%, -50%) scale(.97); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes svInFlex { from { transform: scale(.97); } to { transform: none; } }

/* ================================ the panel: welcome / shipwright / Sunk / Docked (and the cosign step) ================================ */
:root:root:root #panel {
  left: 50%; right: auto; top: var(--sv-mid); bottom: auto; z-index: 12;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 32px - var(--sl, 0px) - var(--sr, 0px));
  max-height: calc(var(--sv-free) - var(--sv-gap) * 2);
  padding: 16px 16px 14px; border-radius: 6px; color: var(--sv-cream); font: 400 16px/1.45 var(--sv-f-body); font-variant-numeric: lining-nums;
  background: var(--sv-waves) 0 0 / 160px 80px, var(--sv-panel-bg);
  box-shadow: var(--sv-frame), 0 0 0 200vmax var(--sv-dim);
  animation: svIn .16s cubic-bezier(.2, .8, .2, 1);
}
/* at sea the panel is your ship's card: no dim over the battle */
:root:root:root:is([data-card=warriorSection], [data-sec=warriorSection]) #panel { box-shadow: var(--sv-frame); }
:root:root:root #panel.hidden { display: none; }
:root:root:root #panel::before { /* the filigree corners */
  content: ""; position: absolute; inset: -3px; z-index: 3; pointer-events: none; border-radius: 7px; background: var(--sv-corners); filter: none;
}
:root:root:root #panel::after { /* the rope line */
  content: ""; position: absolute; inset: 6px; z-index: 2; pointer-events: none; border: 2px solid transparent; border-image: var(--sv-rope) 2; opacity: .55;
}
:root:root:root .ptitle {
  position: relative; z-index: 4; left: auto; top: auto; transform: none; min-width: 0; margin: 4px 44px 0; padding: 0; border-radius: 0;
  background: none; box-shadow: none; text-align: center; white-space: normal; text-shadow: none; color: var(--sv-cream);
  font: 700 26px/1.12 var(--sv-f-title); letter-spacing: .06em; text-transform: uppercase;
}
:root:root:root .ptitle #panelTitle {
  display: inline-block; background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #15100c) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
:root:root:root .ptitle::before { content: none; }
:root:root:root .ptitle::after { /* the divider with the compass star */
  content: ""; position: static; display: block; width: min(86%, 420px); height: 18px; margin: 5px auto 6px; border-radius: 0;
  background: var(--sv-star) center / 18px 18px no-repeat, linear-gradient(90deg, transparent, #c98f2e 18%, #f6d98a 50%, #c98f2e 82%, transparent) center / 100% 1px no-repeat;
}
:root:root:root .ptitle small { display: block; margin: 2px 0 0; font: italic 400 14px/1.25 var(--sv-f-body); letter-spacing: 0; text-transform: none; color: var(--sv-muted); -webkit-text-fill-color: currentColor; }
:root:root:root .ptitle small:empty { display: none; }
:root:root:root #panelScroll {
  --sx: 12px; padding: 2px var(--sx) var(--sb); border-radius: 0; background: none; box-shadow: none; color: var(--sv-cream);
  scrollbar-color: rgba(201, 143, 46, .6) transparent;
}
#panelScroll::-webkit-scrollbar-thumb { background: rgba(201, 143, 46, .55); }
/* the phone's sticky foot rows fade into navy, not paper */
:root:root:root .welcome-go { background: linear-gradient(180deg, transparent, var(--sv-navy-800) 12px); }

/* ================================ the windows: How it works, Live stats, Hall of Fame ================================ */
:root:root .about-back {
  align-items: center; justify-content: center; background: var(--sv-dim);
  padding: calc(var(--sv-top) + var(--sv-gap)) 16px calc(var(--sv-bar) + var(--sv-gap));
}
:root:root .about-win {
  width: min(900px, 100%); max-height: 100%; padding: 16px 0 14px; border-radius: 6px; filter: none; color: var(--sv-cream);
  background: var(--sv-waves) 0 0 / 160px 80px, var(--sv-panel-bg); box-shadow: var(--sv-frame);
  animation: svInFlex .16s cubic-bezier(.2, .8, .2, 1);
}
:root:root .about-win::before { /* the filigree corners (was the paper sheet) */
  content: ""; position: absolute; inset: -3px; z-index: 3; pointer-events: none; border-radius: 7px; background: var(--sv-corners);
  -webkit-mask: none; mask: none; box-shadow: none;
}
:root:root .about-win::after { content: ""; position: absolute; inset: 6px; z-index: 2; pointer-events: none; border: 2px solid transparent; border-image: var(--sv-rope) 2; opacity: .55; }
:root:root .about-win .roll { display: none; }
:root:root .about-close { right: 12px; top: 12px; }
:root:root .about-body { padding: 4px 34px 16px; color: var(--sv-cream); font: 400 16px/1.5 var(--sv-f-body); font-variant-numeric: lining-nums; scrollbar-color: rgba(201, 143, 46, .6) transparent; }
.about-body::-webkit-scrollbar-thumb { background: rgba(201, 143, 46, .55); }
:root:root .about-title {
  margin: 4px 30px 0; text-align: center; font: 700 28px/1.12 var(--sv-f-title); letter-spacing: .06em; text-transform: uppercase;
  background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #15100c) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
:root:root .about-title::first-letter { color: inherit; font-size: inherit; }
:root:root .about-title::after {
  content: ""; display: block; width: min(80%, 460px); height: 18px; margin: 6px auto 4px;
  background: var(--sv-star) center / 18px 18px no-repeat, linear-gradient(90deg, transparent, #c98f2e 18%, #f6d98a 50%, #c98f2e 82%, transparent) center / 100% 1px no-repeat;
}
:root:root .about-lead { text-align: center; color: var(--sv-muted); }
:root:root .about-body h3 { font: 700 13px/1.25 var(--sv-f-caps); letter-spacing: .08em; color: var(--sv-gold-400); }
:root:root .about-body li::marker { color: var(--sv-gold-400); }
:root:root :is(#panel, .about-back, #acct) a { color: var(--sv-gold-300); }

/* ================================ body text inside every window ================================ */
:is(#panel, .about-back, #acct) :is(.muted, .s, .kicker, .lead) { color: var(--sv-muted); }
:is(#panel, .about-back, #acct) .k { font-family: var(--sv-f-caps); color: var(--sv-gold-400); letter-spacing: .08em; }
:is(#panel, .about-back, #acct) .hd { font: 700 17px/1.15 var(--sv-f-caps); letter-spacing: .06em; text-transform: uppercase; color: var(--sv-gold-300); }
:is(#panel, .about-back, #acct, #rotateGate) :is(.hd, .herald b, .about-title, .gate-title)::first-letter { color: inherit; font-size: inherit; }
:is(#panel, .about-back) .herald b { font: 700 19px/1.2 var(--sv-f-caps); letter-spacing: .06em; color: var(--sv-gold-300); }
:is(#panel, .about-back) .big { font-family: var(--sv-f-title); font-weight: 700; }
:is(#panel, .about-back) .big.red { color: #e88a6c; }
:is(#panel, .about-back) .big.green { color: var(--sv-teal-400); }
:is(#panel, .about-back, #acct) .v, :is(#panel, .about-back, #acct) .gilt { color: var(--sv-gold-300); text-shadow: none; }
:is(#panel, .about-back, #acct) input[type=text] { color: var(--sv-cream); border-bottom-color: rgba(231, 181, 83, .55); box-shadow: none; }
:is(#panel, .about-back, #acct) input[type=text]::placeholder { color: rgba(159, 198, 207, .6); }
:is(#panel, .about-back, #acct) .flourish { height: 18px; background: var(--sv-star) center / 18px 18px no-repeat, linear-gradient(90deg, transparent, #c98f2e 18%, #f6d98a 50%, #c98f2e 82%, transparent) center / 100% 1px no-repeat; }

/* safety net for the contents (sv-panels.css styles them properly and wins: it loads after this file) */
#panel .card { border: 1px solid rgba(231, 181, 83, .22); border-radius: 4px; background: rgba(7, 26, 38, .45); box-shadow: inset 0 1px 0 rgba(246, 217, 138, .08); color: var(--sv-cream); }
#panel .notice-wrap { filter: none; transform: none; }
#panel .notice, #panel .fallen { border-radius: 4px; background: rgba(7, 26, 38, .45); box-shadow: inset 0 0 0 1px rgba(231, 181, 83, .22); -webkit-mask: none; mask: none; }
#panel .txsheet::before { content: none; } /* no wax seal on the purchase sheet */
#panel .tx-line { color: var(--sv-cream); }
#panel .tx-line .dots { border-bottom-color: rgba(231, 181, 83, .35); }
#panel .tx-line.total { border-top-color: rgba(231, 181, 83, .45); }
/* the main buttons' wax seal becomes a navy-enamel medallion with the gilt anchor */
:root #btnBuy::before, :root #btnRespawn::before, :root #btnAgain::before, :root #btnPlayFs::before {
  border-radius: 50%; background: var(--tx-anchor) center / 19px no-repeat, radial-gradient(circle at 36% 30%, #3f93a8 0%, #12344a 52%, #071a26 100%);
  box-shadow: 0 0 0 1px #15100c, 0 0 0 2px #c98f2e, 0 1px 3px rgba(0, 0, 0, .5);
}

/* ================================ the account strip's ledger (wallet chooser, account details, the disconnect confirm) ================================ */
#acct .lg-confirm { border: 1px solid rgba(231, 181, 83, .4); border-radius: 4px; background: rgba(7, 26, 38, .55); color: var(--sv-cream); }
#acct :is(.lg-row, .lg-sign) { border-color: rgba(231, 181, 83, .18); color: var(--sv-cream); }

/* ================================ the rotate gate (a touch device held upright): the navy sea chart, no parchment ================================ */
:root:root #rotateGate {
  background: var(--sv-star) 50% calc(100% - 40px) / 120px 120px no-repeat, var(--sv-waves) 0 0 / 160px 80px, var(--sv-panel-bg);
  box-shadow: inset 0 0 0 1px #15100c, inset 0 0 0 4px #c98f2e, inset 0 0 0 5px #15100c, inset 0 0 60px 10px rgba(0, 0, 0, .45);
}
:root:root #rotateGate .gate-device { color: var(--sv-gold-400); }
:root:root #rotateGate .gate-title {
  font: 700 28px/1.15 var(--sv-f-title); letter-spacing: .06em; text-transform: uppercase;
  background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #15100c) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
:root:root #rotateGate .gate-sub { font: 400 16px/1.45 var(--sv-f-body); color: var(--sv-muted); }

/* ================================ the Graphics card: a small centred window like the others ================================ */
:root:root #gfxCard {
  position: fixed; left: 50%; right: auto; top: var(--sv-mid); bottom: auto; transform: translate(-50%, -50%);
  width: min(300px, calc(100vw - 32px)); max-height: calc(var(--sv-free) - var(--sv-gap) * 2); overflow-y: auto;
  padding: 16px 16px 12px; border-radius: 6px; color: var(--sv-cream);
  background: var(--sv-corners), var(--sv-waves) 0 0 / 160px 80px, var(--sv-panel-bg);
  box-shadow: var(--sv-frame), 0 0 0 200vmax var(--sv-dim);
  animation: svIn .16s cubic-bezier(.2, .8, .2, 1);
}
:root:root #gfxCard.hidden { display: none; }
:root:root #gfxCard .gfx-hd {
  display: block; margin: 0 4px 8px; padding: 0 0 22px; border: 0; text-align: center; font: 700 20px/1.15 var(--sv-f-title); letter-spacing: .06em; text-transform: uppercase;
  background: var(--sv-star) center bottom 2px / 16px 16px no-repeat, linear-gradient(90deg, transparent, #c98f2e 18%, #f6d98a 50%, #c98f2e 82%, transparent) center bottom 9px / 100% 1px no-repeat;
}
:root:root #gfxCard .gfx-hd::before, :root:root #gfxCard .gfx-hd::after { content: none; }
:root:root #gfxCard .gfx-hd span {
  background: var(--sv-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #15100c) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
:root:root #gfxCard .gfx-hd span::first-letter { color: inherit; font-size: inherit; }
:root:root #gfxCard .gfx-opt { padding: 7px 8px; border-radius: 4px; color: var(--sv-cream); border-bottom: 1px solid rgba(231, 181, 83, .18); transition: background .12s; }
:root:root #gfxCard .gfx-opt:hover, :root:root #gfxCard .gfx-opt:focus-visible { background: rgba(63, 147, 168, .16); }
:root:root #gfxCard .gfx-dot { box-shadow: inset 0 0 0 1.5px rgba(231, 181, 83, .7); }
:root:root #gfxCard .gfx-name { font: 700 12px/1.15 var(--sv-f-caps); letter-spacing: .06em; }
:root:root #gfxCard .gfx-opt[aria-checked=true] .gfx-name { color: var(--sv-gold-300); }
:root:root #gfxCard .gfx-note { font: 400 13px/1.25 var(--sv-f-body); color: var(--sv-muted); }
:root:root #gfxCard .gfx-now { border-top-color: rgba(231, 181, 83, .25); color: var(--sv-muted); }

/* ================================ sizes ================================ */
@media (max-height: 800px) {
  :root:root:root .ptitle, :root:root .about-title { font-size: 22px; }
  :root:root:root #panel { padding: 12px 12px 10px; }
}
:root:root:root.lay-phone #panel { padding: 10px 8px 8px; max-height: calc(var(--sv-free) - 16px); }
:root:root:root.lay-phone .ptitle { margin: 0 38px; font-size: 16px; }
:root:root:root.lay-phone .ptitle::after { height: 12px; margin: 2px auto 3px; background-size: 12px 12px, 100% 1px; }
:root:root:root.lay-phone #panelClose, :root:root.lay-phone .about-close { right: 8px; top: 8px; width: 28px; height: 28px; }
:root:root.lay-phone .about-back { padding: 8px 12px calc(var(--sv-bar) + 8px); }
:root:root.lay-phone .about-title { font-size: 18px; }
:root:root.lay-phone .about-body { padding: 2px 16px 10px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { :root:root:root #panel, :root:root .about-win { animation: none; } }
