/* Galleon's Wake website (design mockups, 2026-11-23). One stylesheet for every page.
   Look: the game's title art (dark stormy seas, burnished gold) with the in-game palette as accents. */

:root {
  /* Night and sea */
  --ink: #070e1a;
  --night: #0a1322;
  --deep: #0f1d33;
  --panel: #13274a;
  --panel-2: #173f7a;      /* the game's royal panel */
  --line: rgba(255, 255, 255, .09);
  --line-gold: rgba(255, 204, 31, .28);
  /* Text */
  --text: #eef2f8;
  --soft: #a9b6cc;
  --mute: #7385a3;
  /* Accents (the game's "Bright Lagoon" palette) */
  --gold: #ffcc1f;
  --brass: #e0a838;
  --gold-deep: #9a6a12;
  --lagoon: #1597d4;
  --shallows: #24b0e3;
  --mint: #2ee6a8;
  --violet: #a24cff;
  --flare: #ff4a3d;
  --orange: #ff8a1f;
  --parchment: #f3e6c4;
  /* Shape */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --wrap: 1180px;
  --display: "Cinzel", Georgia, serif;
  --deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night) url("../img/art/tex_wood-512.jpg");
  background-size: 512px;
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before { /* darken the wood so it reads as a hint, not a pattern */
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(21, 151, 212, .12), transparent 60%), rgba(7, 14, 26, .88);
}
img { max-width: 100%; display: block; }
a { color: var(--shallows); text-decoration: none; }
a:hover { color: #6fd3ff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.center { text-align: center; }
.gold { color: var(--gold); }
.hide { display: none !important; }
:focus-visible { outline: 3px solid var(--shallows); outline-offset: 2px; border-radius: 4px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7, 14, 26, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.brand-word { font-family: var(--deco); font-weight: 900; font-size: 21px; letter-spacing: .02em; white-space: nowrap;
  background: linear-gradient(180deg, #fff3c4 0%, #ffcc1f 45%, #b37a12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word b { font-weight: 900; }
.mainnav { display: flex; gap: 4px; margin-left: 8px; }
.mainnav a { color: var(--soft); font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.mainnav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.mainnav a.on { color: var(--gold); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.signin-link { color: var(--text); font-weight: 800; font-size: 15px; }
.navtoggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.navtoggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }
.usermenu { position: relative; }
.usermenu-btn { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text);
  font: 800 15px var(--body); padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer; }
.usermenu-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.usermenu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--deep); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; display: none; }
.usermenu.open .usermenu-pop { display: block; }
.usermenu-pop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 700; }
.usermenu-pop a:hover { background: rgba(255, 255, 255, .06); }
.usermenu-pop hr { margin: 6px 0; }
.usermenu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.usermenu-head b { display: block; }
.usermenu-head span { color: var(--soft); font-size: 13px; }

@media (max-width: 960px) {
  .navtoggle { display: block; }
  .mainnav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; margin: 0; display: none; }
  .topbar.open .mainnav { display: flex; }
  .mainnav a { font-size: 18px; padding: 12px; }
  .hide-sm { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 900 16px/1 var(--body); letter-spacing: .04em;
  text-transform: uppercase; padding: 15px 26px; border-radius: 12px; border: 0; cursor: pointer; transition: transform .12s, filter .12s, box-shadow .12s;
  color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #ffe27a, #ffcc1f 45%, #e0a020); color: #3a2205;
  box-shadow: 0 4px 0 #9a6a12, 0 10px 24px rgba(255, 180, 20, .25); text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.btn-gold:hover { color: #3a2205; }
.btn-lagoon { background: linear-gradient(180deg, #4fc8f5, #1597d4); color: #fff; box-shadow: 0 4px 0 #0b5f8a; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.btn-lagoon:hover { color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.btn-danger { background: linear-gradient(180deg, #ff7a6e, #ff4a3d); color: #fff; box-shadow: 0 4px 0 #9b2219; }
.btn-danger:hover { color: #fff; }
.btn-google { background: #fff; color: #1f1f1f; text-transform: none; letter-spacing: 0; font-weight: 800; box-shadow: 0 4px 0 #c9ced6; }
.btn-google:hover { color: #1f1f1f; }
.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 19px 34px; font-size: 18px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; color: var(--shallows); font: inherit; font-weight: 800; cursor: pointer; padding: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 14, 26, .25) 0%, rgba(7, 14, 26, 0) 35%, rgba(7, 14, 26, .55) 70%, var(--night) 100%),
              linear-gradient(90deg, rgba(7, 14, 26, .0) 40%, rgba(7, 14, 26, .55) 100%); }
.hero-in { display: grid; justify-items: end; text-align: center; padding: 60px 0 90px; }
.hero-card { width: min(560px, 100%); display: grid; justify-items: center; gap: 6px; }
/* The game's logo (2026-11-24, the user's file in site/brand). */
.brand img.brand-logo { width: auto; height: 50px; }
.brand img.brand-logo-lg { height: 96px; }
.hero-logo { margin: 0 0 4px; line-height: 0; }
.hero-logo img { width: min(500px, 100%); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .75)); }
.auth-logo { width: 200px; height: auto; margin: -70px auto 6px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .7)); }
.hero-emblem { width: 150px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)); margin-bottom: -18px; }
.wordmark { font-family: var(--deco); font-weight: 900; font-size: clamp(54px, 8vw, 96px); line-height: .95; margin: 0;
  background: linear-gradient(180deg, #fff6cf 0%, #ffd34a 38%, #c98a14 70%, #7a4e0a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #2a1a04) drop-shadow(0 14px 30px rgba(0, 0, 0, .8)); }
.ribbon { display: inline-block; font: 700 18px/1 var(--display); letter-spacing: .5em; padding: 10px 26px 10px 34px; color: #ffe9b0;
  background: linear-gradient(180deg, #b3241b, #7c120c); clip-path: polygon(0 50%, 16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%);
  text-shadow: 0 1px 0 #3a0603; margin-top: 6px; }
.hero-tag { font-size: 20px; color: #e6ecf5; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); margin: 18px 0 22px; max-width: 30ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-platforms { display: flex; gap: 18px; align-items: center; margin-top: 18px; color: var(--soft); font-size: 14px; font-weight: 700; }
.hero-platforms svg { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; margin-right: 5px; }
@media (max-width: 760px) {
  .hero { min-height: 92vh; }
  .hero-art img { object-position: 22% 50%; }
  .hero-in { justify-items: center; padding-bottom: 60px; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 14, 26, .1), rgba(7, 14, 26, .35) 45%, var(--night) 100%); }
}

/* Smaller page banners (inner pages) */
.banner { position: relative; padding: 110px 0 60px; overflow: hidden; isolation: isolate; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 14, 26, .35), rgba(7, 14, 26, .7) 60%, var(--night)); }
.banner h1 { margin-bottom: 10px; text-shadow: 0 4px 20px rgba(0, 0, 0, .7); }
.banner p { color: #dbe3ef; font-size: 19px; max-width: 60ch; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.banner.slim { padding: 70px 0 34px; }
.eyebrow { display: inline-block; font: 900 13px var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.crumbs { font-size: 14px; color: var(--soft); margin-bottom: 14px; }
.crumbs a { color: var(--soft); }
.crumbs a:hover { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 52px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head p { color: var(--soft); max-width: 62ch; margin-inline: auto; font-size: 18px; }
.flourish { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--brass); margin-bottom: 10px; }
.flourish::before, .flourish::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.flourish::after { transform: scaleX(-1); }
.flourish svg { width: 22px; height: 22px; fill: currentColor; }
.band { background: linear-gradient(180deg, rgba(19, 39, 74, .55), rgba(10, 19, 34, .2)); border-block: 1px solid var(--line); }

/* ---------- Cards ---------- */
.card { background: linear-gradient(180deg, rgba(23, 63, 122, .5), rgba(15, 29, 51, .75)); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow); }
.card-pad { padding: 28px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Feature rows: art beside text, alternating */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 54px; align-items: center; margin-bottom: 84px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip > :first-child { order: 2; }
.feature-art { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-gold); aspect-ratio: 3 / 2; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature-art:hover img { transform: scale(1.03); }
.feature h3 { font-size: 30px; }
.feature p { color: var(--soft); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text); font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23062a1e' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 26px; } .feature.flip > :first-child { order: 0; } }

/* Art tiles (seas, news, generic image cards) */
.tile { display: block; color: var(--text); overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--deep);
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
a.tile:hover { transform: translateY(-4px); border-color: var(--line-gold); color: var(--text); }
.tile-art { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 20px 22px 24px; }
.tile-body h3 { margin-bottom: 6px; }
.tile-body p { color: var(--soft); margin: 0; font-size: 16px; }
.tile-meta { display: flex; gap: 10px; align-items: center; color: var(--mute); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.locked .tile-art img { filter: grayscale(.7) brightness(.55); }
.lock-badge { position: absolute; inset: 0; display: grid; place-items: center; }
.lock-badge span { background: rgba(7, 14, 26, .8); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* Pills, badges, tags */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 900 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text); }
.pill.gold { background: rgba(255, 204, 31, .15); color: var(--gold); }
.pill.mint { background: rgba(46, 230, 168, .14); color: var(--mint); }
.pill.violet { background: rgba(162, 76, 255, .18); color: #cfa6ff; }
.pill.red { background: rgba(255, 74, 61, .16); color: #ff8a80; }
.pill.blue { background: rgba(36, 176, 227, .16); color: #7fd8ff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 230, 168, .18); display: inline-block; }
.dot.warn { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 31, .18); }
.dot.down { background: var(--flare); box-shadow: 0 0 0 4px rgba(255, 74, 61, .18); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 26px 10px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 900 38px/1 var(--display); color: var(--gold); margin-bottom: 6px; }
.stat span { color: var(--soft); font-weight: 700; font-size: 15px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } }

/* Ship cards */
.ship { text-align: center; padding: 22px 20px 26px; position: relative; overflow: hidden; }
.ship::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; background: radial-gradient(60% 70% at 50% 60%, rgba(36, 176, 227, .25), transparent 70%); }
.ship img { position: relative; width: 82%; margin: 0 auto 10px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .5)); }
.ship h3 { margin-bottom: 2px; }
.ship .tier { color: var(--gold); font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.bars { display: grid; gap: 8px; margin-top: 16px; text-align: left; }
.bar { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--soft); }
.bar i { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i::after { content: ""; display: block; height: 100%; width: var(--v, 50%); border-radius: 6px; background: linear-gradient(90deg, var(--lagoon), var(--mint)); }
.bar.hp i::after { background: linear-gradient(90deg, #3fae4a, #8be05a); }
.bar.gun i::after { background: linear-gradient(90deg, var(--orange), var(--gold)); }

/* Creature cards */
.foe { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; padding: 20px; }
.foe img { aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
@media (max-width: 520px) { .foe { grid-template-columns: 1fr; text-align: center; } .foe img { width: 160px; margin: auto; } }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 64px 40px; text-align: center; isolation: isolate; border: 1px solid var(--line-gold); }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(7, 14, 26, .55), rgba(7, 14, 26, .9)); }
.cta h2 { margin-bottom: 10px; }
.cta p { color: #dbe3ef; font-size: 18px; margin-bottom: 24px; }

/* ---------- Store ---------- */
.wallet { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.coin { display: inline-flex; align-items: center; gap: 7px; background: rgba(7, 14, 26, .6); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px 5px 6px; font-weight: 900; font-size: 15px; }
.coin img { width: 24px; height: 24px; object-fit: contain; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tab { background: none; border: 0; color: var(--soft); font: 900 15px var(--body); padding: 12px 16px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; color: var(--text); background: linear-gradient(180deg, rgba(23, 63, 122, .55), rgba(15, 29, 51, .85));
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, border-color .2s; position: relative; }
a.product:hover { transform: translateY(-4px); border-color: var(--line-gold); color: var(--text); }
.product-art { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, rgba(36, 176, 227, .25), rgba(7, 14, 26, .2) 70%); }
.product-art img { width: 72%; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .45)); }
.product-art.water img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.product-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body h3 { font-size: 18px; margin: 0; }
.product-body p { color: var(--soft); font-size: 14px; margin: 0; flex: 1; }
/* What a pack holds, from the live store (amounts can be changed in the admin, ADR 35). */
.product-body .holds { color: var(--gold); font-weight: 700; font-size: 14px; margin: 0; flex: 0; }
.price { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price b { font: 900 20px var(--body); color: var(--gold); }
.price s { color: var(--mute); font-size: 14px; margin-right: 6px; }
.ribbon-tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.owned { position: absolute; inset: 0; background: rgba(7, 14, 26, .55); display: grid; place-items: center; z-index: 3; }
.featured { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }
.featured-art { position: relative; min-height: 320px; }
.featured-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } .featured-art { min-height: 220px; } }
.contents { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.contents li { display: flex; align-items: center; gap: 12px; background: rgba(7, 14, 26, .45); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-weight: 800; }
.contents img { width: 38px; height: 38px; object-fit: contain; }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-hero .product-art { border-radius: var(--r-lg); border: 1px solid var(--line-gold); }
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { background: rgba(255, 255, 255, .06); color: var(--text); border: 0; width: 40px; height: 44px; font-size: 20px; cursor: pointer; }
.qty input { width: 52px; text-align: center; background: transparent; border: 0; color: var(--text); font: 900 17px var(--body); }

/* Order summary */
.summary { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; color: var(--soft); }
.summary-row.total { color: var(--text); font-weight: 900; font-size: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.summary-row.total b { color: var(--gold); }
.secure { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; justify-content: center; margin-top: 12px; }
.secure svg { width: 16px; height: 16px; fill: var(--mint); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .label { font-weight: 900; font-size: 14px; letter-spacing: .04em; color: var(--text); }
.field .hint { color: var(--mute); font-size: 13px; }
.input, select.input, textarea.input { width: 100%; background: rgba(7, 14, 26, .7); border: 1px solid rgba(255, 255, 255, .14); color: var(--text);
  border-radius: 12px; padding: 13px 14px; font: 600 16px var(--body); }
.input:focus { outline: 0; border-color: var(--shallows); box-shadow: 0 0 0 3px rgba(36, 176, 227, .25); }
textarea.input { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--soft); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.field-error .input { border-color: var(--flare); }
.field-error .hint { color: #ff8a80; }
.choice { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 14, 26, .4); cursor: pointer; }
.choice.on { border-color: var(--gold); background: rgba(255, 204, 31, .06); }
.choice img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; }

/* Notices */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid; font-size: 15px; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.notice.info { background: rgba(36, 176, 227, .1); border-color: rgba(36, 176, 227, .35); }
.notice.info svg { fill: var(--shallows); }
.notice.ok { background: rgba(46, 230, 168, .09); border-color: rgba(46, 230, 168, .35); }
.notice.ok svg { fill: var(--mint); }
.notice.warn { background: rgba(255, 138, 31, .1); border-color: rgba(255, 138, 31, .4); }
.notice.warn svg { fill: var(--orange); }
.notice.danger { background: rgba(255, 74, 61, .1); border-color: rgba(255, 74, 61, .4); }
.notice.danger svg { fill: var(--flare); }
.notice b { display: block; margin-bottom: 2px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--mute); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 900; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .item { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.table .item img { width: 40px; height: 40px; object-fit: contain; }
.table-wrap { overflow-x: auto; }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; padding: 40px 0 90px; }
.side { position: sticky; top: 94px; padding: 14px; }
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--soft); font-weight: 800; }
.side a svg { width: 18px; height: 18px; fill: currentColor; opacity: .85; }
.side a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.side a.on { background: rgba(255, 204, 31, .1); color: var(--gold); }
.side hr { margin: 10px 0; }
@media (max-width: 900px) {
  .account { grid-template-columns: 1fr; padding-top: 24px; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .side a { white-space: nowrap; padding: 9px 12px; }
  .side hr { display: none; }
}
.captain { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px; position: relative; overflow: hidden; }
.captain::before { content: ""; position: absolute; inset: 0; background: url("../img/art/account_cabin-1024.jpg") center/cover; opacity: .22; z-index: 0; }
.captain > * { position: relative; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); box-shadow: 0 0 0 6px rgba(255, 204, 31, .15), var(--shadow); }
.captain h2 { margin-bottom: 4px; font-size: 32px; }
.lvl { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe68a, #e0a020);
  color: #3a2205; font-weight: 900; font-size: 15px; box-shadow: 0 2px 0 #9a6a12; vertical-align: middle; margin-right: 6px; }
@media (max-width: 700px) { .captain { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.xp { height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 10px 0 4px; max-width: 420px; }
.xp i { display: block; height: 100%; width: var(--v, 50%); background: linear-gradient(90deg, var(--gold), #ffe27a); border-radius: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px; text-align: center; }
.kpi img { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; }
.kpi b { display: block; font-size: 24px; font-weight: 900; }
.kpi span { color: var(--soft); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.list-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; }
.list-row .grow span { color: var(--soft); font-size: 14px; }
.provider { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; flex: none; }
.provider svg { width: 22px; height: 22px; }
.provider.off { background: rgba(255, 255, 255, .08); }
.danger-zone { border-color: rgba(255, 74, 61, .35); }
.danger-zone h3 { color: #ff8a80; }

/* ---------- Sign in ---------- */
.auth { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 50px 16px; position: relative; isolation: isolate; }
.auth > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 40%, rgba(7, 14, 26, .55), rgba(7, 14, 26, .92)); }
.auth-card { width: min(460px, 100%); padding: 38px 34px; text-align: center; }
.auth-card .hero-emblem { width: 96px; margin: -80px auto 6px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; font-weight: 800; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; text-align: left; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--soft); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 204, 31, .14);
  color: var(--gold); font-weight: 900; }
.steps b { color: var(--text); }

/* ---------- News / article ---------- */
.article { padding: 50px 0 90px; }
.article .lead { font-size: 21px; color: #dbe3ef; }
.prose { font-size: 18px; color: #d7deea; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose figure { margin: 30px 0; }
.prose figure img { border-radius: var(--r); border: 1px solid var(--line); }
.prose figcaption { color: var(--mute); font-size: 14px; margin-top: 8px; text-align: center; }
.prose code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 15px; margin-bottom: 26px; }
.byline img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.patch { list-style: none; padding: 0; }
.patch li { padding-left: 92px; position: relative; margin-bottom: 10px; }
.patch li .pill { position: absolute; left: 0; top: 3px; width: 80px; justify-content: center; }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 40px 0 90px; align-items: start; }
.toc { position: sticky; top: 94px; font-size: 14px; }
.toc a { display: block; color: var(--soft); padding: 6px 0 6px 14px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--gold); }
.legal .prose { font-size: 17px; }
.legal .prose h2 { font-size: 24px; scroll-margin-top: 90px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .toc { position: static; } }
.draft { background: repeating-linear-gradient(135deg, rgba(255, 138, 31, .12) 0 12px, rgba(255, 138, 31, .05) 12px 24px); border: 1px dashed rgba(255, 138, 31, .5);
  border-radius: 12px; padding: 12px 16px; color: #ffc48a; font-weight: 700; font-size: 14px; margin-bottom: 26px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 900; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 28px; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--soft); }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic { padding: 22px; text-align: center; color: var(--text); }
a.topic:hover { color: var(--text); border-color: var(--line-gold); }
.topic svg { width: 34px; height: 34px; fill: var(--gold); margin: 0 auto 10px; display: block; }
.topic b { display: block; margin-bottom: 4px; }
.topic span { color: var(--soft); font-size: 14px; }
@media (max-width: 860px) { .topics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Status ---------- */
.status-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row .grow { flex: 1; }
.uptime { display: flex; gap: 3px; margin-top: 8px; }
.uptime i { flex: 1; height: 26px; border-radius: 3px; background: var(--mint); opacity: .85; }
.uptime i.w { background: var(--orange); }
.uptime i.d { background: var(--flare); }

/* ---------- Download ---------- */
.platform { padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.platform-head { display: flex; align-items: center; gap: 16px; }
.platform-head svg { width: 46px; height: 46px; fill: var(--text); }
.platform dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.platform dt { color: var(--mute); font-weight: 800; }
.platform dd { margin: 0; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #555; border-radius: 10px; padding: 8px 16px; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1.1; }
.store-badge b { font-size: 18px; line-height: 1.1; }
.store-badge:hover { color: #fff; border-color: #aaa; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 60px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font: 900 13px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; color: var(--soft); padding: 4px 0; font-weight: 700; font-size: 15px; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-brand p { color: var(--soft); font-size: 15px; max-width: 34ch; margin: 14px 0 18px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid !important; place-items: center; background: rgba(255, 255, 255, .06); padding: 0 !important; }
.social svg { width: 20px; height: 20px; fill: var(--soft); }
.social a:hover svg { fill: var(--text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--mute); font-size: 13px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Error page ---------- */
.lost { min-height: calc(100vh - 70px); display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; padding: 40px 16px; }
.lost > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lost::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 14, 26, .6); }
.lost .code { font: 900 clamp(90px, 18vw, 180px)/1 var(--deco); color: transparent; -webkit-text-stroke: 2px rgba(255, 204, 31, .7); margin-bottom: 10px; }

/* ---------- Style guide ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--deep); }
.swatch i { display: block; height: 80px; }
.swatch div { padding: 10px 12px; font-size: 13px; }
.swatch b { display: block; font-size: 14px; }
.specimen { display: grid; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Mockup gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery a { display: block; color: var(--text); }
.gallery .tile-art { aspect-ratio: 16 / 10; background: var(--ink); }
.gallery .tile-art img { object-position: top; }
.gallery .tile-body { padding: 14px 16px; }
.gallery .tile-body b { display: block; }
.gallery .tile-body span { color: var(--soft); font-size: 13px; }

/* Reveal on scroll (gentle; skipped when motion is reduced) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* Screenshot mode (site/shoot.py opens pages very tall): keep full-screen sections at a normal screen's height. */
.still .auth, .still .lost { min-height: 900px; }
.still .hero { min-height: 820px; }
.still .topbar { position: relative; }

/* Phones: a smaller wordmark so the header fits with Sign in and the menu button. */
@media (max-width: 520px) {
  .brand-word { font-size: 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand img.brand-logo { width: auto; height: 40px; }
  .topbar-in { gap: 10px; }
  .topbar-actions { gap: 10px; }
  .signin-link { white-space: nowrap; font-size: 14px; }
  .usermenu-btn { padding: 3px; }
  .section { padding: 60px 0; }
  .card-pad { padding: 22px; }
  .cta { padding: 44px 22px; }
}
@media (max-width: 700px) { .captain > .grid { justify-items: center !important; } }

/* ---------- Live account and shop (api.js, 2026-11-24) ---------- */
[hidden] { display: none !important; }
.alt-price { color: var(--soft); font-size: 13px; margin-top: 4px; }
.cartbar { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 2px; padding: 12px 18px;
  background: var(--gold); color: var(--ink); border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-weight: 800; }
.cartbar:hover { color: var(--ink); transform: translateY(-2px); }
.cartbar span { font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.auth-or { display: grid; gap: 12px; margin-top: 10px; }
.gsi-slot { min-height: 44px; display: flex; justify-content: center; }
.ticks-plain { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
