/* Storms of Sea player website. A plain game-portal layout: content first, few ornaments.
   Palette from the game (night sea, dark wood, brass, parchment); Cinzel only for the logo and page titles,
   Alegreya Sans for everything else in normal case. Panels have a header bar; data sits in real tables. */
/* Fonts: WOFF2 cut to the site's 15 languages (tools: fontTools subset of the .ttf next to them). Alegreya comes in two
   files per weight: Latin (with Turkish and Central European letters) and Cyrillic + Greek, so a page loads only what its
   language uses. ?v= keeps them cached for a year: bump it when a font file changes, with the preload in
   views/partials/head.ejs. */
@font-face { font-family: "Cinzel"; src: url("/fonts/Cinzel-Bold.woff2?v=w2") format("woff2"), url("/fonts/Cinzel-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/AlegreyaSans-Regular.woff2?v=w2") format("woff2"), url("/fonts/AlegreyaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; unicode-range: U+0000-024F, U+0259, U+02B0-02FF, U+0300-036F, U+2000-206F, U+20AC, U+20BA, U+2116, U+2122, U+2190-2193, U+2212, U+FB01-FB02; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/AlegreyaSans-Regular-cyrgr.woff2?v=w2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0370-03FF, U+0400-04FF, U+20BD; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/AlegreyaSans-Medium.woff2?v=w2") format("woff2"), url("/fonts/AlegreyaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; unicode-range: U+0000-024F, U+0259, U+02B0-02FF, U+0300-036F, U+2000-206F, U+20AC, U+20BA, U+2116, U+2122, U+2190-2193, U+2212, U+FB01-FB02; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/AlegreyaSans-Medium-cyrgr.woff2?v=w2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0370-03FF, U+0400-04FF, U+20BD; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/AlegreyaSans-Bold.woff2?v=w2") format("woff2"), url("/fonts/AlegreyaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; unicode-range: U+0000-024F, U+0259, U+02B0-02FF, U+0300-036F, U+2000-206F, U+20AC, U+20BA, U+2116, U+2122, U+2190-2193, U+2212, U+FB01-FB02; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/AlegreyaSans-Bold-cyrgr.woff2?v=w2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0370-03FF, U+0400-04FF, U+20BD; }

:root {
  color-scheme: dark;
  --page: #08182a;           /* page background; the hero fades into exactly this */
  --panel-head: #20160d;
  --gold: #d4ad62;
  --gold-2: #ecd39a;
  --gold-3: #9c7a3e;
  --gold-ink: #241604;
  --text: #ece2cb;
  --text-2: #b6a68a;
  --text-3: #85765d;
  --line: rgba(212, 173, 98, .13);
  --border: rgba(212, 173, 98, .3);
  --silver: #c3cbd4;
  --bronze: #c38a5a;
  --red: #d9725f;
  --pearl: #d3e6f0;
  --radius: 3px;
  --wrap: 1140px;
  --hit: 44px;
  --flash: 0;                /* lightning wash from storm.js */
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --wood: linear-gradient(rgba(23, 16, 10, .9), rgba(23, 16, 10, .9)), url("/img/skin/wood_dark.webp?v=w1") center / 512px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 400 16px/1.55 var(--sans); color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased; }
/* Alegreya Sans draws old-style figures by default (some digits small, some dropping below the line): all digits the
   same height everywhere. On every element and !important, because the `font:` shorthand many rules use resets it;
   tabular (equal-width) digits in tables are a separate property and still work. */
*, *::before, *::after { font-feature-settings: "lnum" 1 !important; }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 700; }
::selection { background: rgba(212, 173, 98, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.page-title { font: 700 clamp(24px, 3vw, 30px)/1.2 var(--serif); letter-spacing: .02em; color: var(--gold-2); }
.lead { margin-top: 6px; color: var(--text-2); }
.dim { color: var(--text-2); }
.muted { color: var(--text-3); }
.small { font-size: 14px; }
.center { text-align: center; }
.spaced { margin-top: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--gold-ink); }
.skip:focus { left: 8px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: #120c07; border-bottom: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.topbar-inner { display: flex; align-items: stretch; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-2); font: 700 15px var(--serif); letter-spacing: .06em; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.menu { flex: 1; display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.nav { display: flex; }
.nav a { display: flex; align-items: center; padding: 0 14px; color: var(--text-2); font-weight: 500; font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.nav a .icon { display: none; }
.account { display: flex; align-items: center; gap: 8px; }
.who { display: flex; align-items: center; gap: 7px; min-height: var(--hit); padding: 0 8px; color: var(--text); font-weight: 500; }
.who .icon { color: var(--gold); }
.who:hover, .who.active { color: var(--gold-2); text-decoration: none; }
/* Bize Ulaş / Destek: on the right, left of the language list. */
.help-link { display: flex; align-items: center; min-height: 36px; padding: 0 12px; color: var(--text-2); font-weight: 500; font-size: 15px; white-space: nowrap; }
.help-link:hover, .help-link.active { color: var(--gold-2); text-decoration: none; }
.inline { display: inline; margin: 0; }
.menu-toggle { display: none; align-self: center; margin-left: auto; width: var(--hit); height: var(--hit); padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: none; color: var(--gold); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* Language menu: a <details> list, works without JavaScript. */
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer;
  list-style: none; border: 1px solid transparent; border-radius: var(--radius); white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 16px; height: 16px; color: var(--gold); }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--border); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; max-height: 70vh; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: #120c07; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 36px rgba(0, 0, 0, .6); }
.lang-list a { display: block; padding: 8px 12px; color: var(--text-2); border-radius: var(--radius); }
.lang-list a:hover { color: var(--text); background: rgba(212, 173, 98, .07); text-decoration: none; }
.lang-list a.active { color: var(--gold-2); background: rgba(212, 173, 98, .1); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; font: 700 15px/1 var(--sans);
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn .icon { width: 17px; height: 17px; stroke-width: 2; }
.btn-primary { color: var(--gold-ink); background: linear-gradient(180deg, #e6c47e, #c99d4f); border-color: #8a6626; }
.btn-primary:hover { color: var(--gold-ink); background: linear-gradient(180deg, #efd193, #d4ab5e); }
.btn-outline { color: var(--text); background: rgba(0, 0, 0, .25); border-color: var(--border); }
.btn-outline:hover { color: var(--gold-2); border-color: var(--gold-3); }
.btn-danger { color: #fff; background: rgba(160, 40, 30, .55); border-color: var(--red); }
.btn-danger:hover { background: rgba(190, 50, 38, .75); }
.btn-ghost { color: var(--text-2); background: none; font-weight: 500; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.busy { opacity: .6; pointer-events: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 24, 42, .2) 0%, rgba(8, 24, 42, .45) 60%, var(--page) 100%), url("/img/hero.webp?v=w1") center 30% / cover no-repeat;
  /* Like the launcher: the picture is a little larger than the window and drifts slowly left and right ... */
  transform: scale(1.04); animation: hero-drift 126s ease-in-out infinite; will-change: transform; }
/* ... and a thin fog flows over it (launcher: skin fog, 10 px/s, alpha ~10%). */
.hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/img/fog.png?v=w1") 0 0 / 512px 256px repeat; opacity: .12;
  animation: hero-fog 51.2s linear infinite; }
/* Home: the game's login scene drawn live (js/sea-scene.js) over the picture once its art has loaded. */
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bg.live { background: none; transform: none; animation: none; }
.hero-bg.live::after { background: linear-gradient(180deg, transparent 72%, var(--page) 100%); opacity: 1; animation: none; }
@keyframes hero-drift {
  0%, 100% { transform: scale(1.04) translateX(0); }
  25% { transform: scale(1.04) translateX(10px); }
  75% { transform: scale(1.04) translateX(-10px); }
}
@keyframes hero-fog {
  from { background-position: 0 0; }
  to { background-position: -512px 0; }
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 40px; padding-bottom: 56px; }
.tagline { margin-top: 10px; max-width: 540px; font-size: 18px; color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
  animation: hero-fade-up .9s 1.35s ease-out both; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px;
  animation: hero-fade-up .9s 1.55s ease-out both; }
.hero .alert { margin-top: 22px; max-width: 520px; }
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ComingSoon emblem: sway + lightning flash wash */
.emblem {
  --emblem: min(42vh, 78vw, 480px);
  position: relative; width: var(--emblem); aspect-ratio: 1;
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -7px), 0);
  animation: emblem-in 1.5s .35s cubic-bezier(.16, .84, .3, 1) both;
}
@keyframes emblem-in {
  0% { scale: .9; }
  100% { scale: 1; }
}
.emblem-glow {
  position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 195, 240, .55), rgba(90, 140, 200, .16) 52%, transparent 74%);
  opacity: calc(.22 + var(--flash) * .7);
  pointer-events: none;
}
.emblem-sway {
  position: absolute; inset: 0;
  transform-origin: 50% 62%;
  animation: emblem-sway 9s ease-in-out 1.6s infinite;
}
@keyframes emblem-sway {
  0%, 100% { transform: rotate(-1.6deg) translateY(-3px); }
  50% { transform: rotate(1.6deg) translateY(5px); }
}
.emblem-img, .emblem-lit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.emblem-img { filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .7)); }
.emblem-lit {
  filter: brightness(1.75) saturate(.55) contrast(1.05);
  opacity: var(--flash);
  will-change: opacity;
  pointer-events: none;
}
.hero-rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 4px; width: min(420px, 70vw);
  animation: hero-fade-up .9s 1.15s ease-out both;
}
.hero-rule .rule { flex: 1; height: 1px; background: linear-gradient(to left, var(--gold), transparent); position: relative; }
.hero-rule .rule.flip { background: linear-gradient(to right, var(--gold), transparent); }
.hero-rule .rule::after {
  content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg);
}
.hero-rule .rule.flip::after { right: auto; left: -3px; }

/* The home page is the hero alone: it fills the window between the top bar and the footer, centred and larger. */
.home main { display: flex; flex-direction: column; }
.home .hero { flex: 1; display: flex; align-items: center; min-height: 560px; }
/* Phones: the same picture at 900 px (20 KB instead of 81). */
@media (max-width: 720px) {
  .hero-bg { background-image: linear-gradient(180deg, rgba(8, 24, 42, .2) 0%, rgba(8, 24, 42, .45) 60%, var(--page) 100%), url("/img/hero-900.webp?v=w1"); }
}
.home .hero-bg {
  background-position: center, center 35%;
  filter: brightness(calc(1 + var(--flash) * .38)) saturate(calc(1 + var(--flash) * .14));
  transition: filter .05s linear;
}
.home .hero-inner { width: 100%; padding-top: 36px; padding-bottom: 56px; }
.home .emblem { --emblem: min(48vh, 82vw, 560px); }
.home .tagline { margin-top: 12px; max-width: 720px; font-size: 22px; line-height: 1.45; }
.home .cta { gap: 16px; margin-top: 28px; }
.home .cta .btn { min-height: 56px; padding: 0 34px; font-size: 18px; }
.home .cta .btn .icon { width: 20px; height: 20px; }
.cta-stack { display: flex; flex-direction: column; align-items: stretch; }
.home .cta-community { margin-top: 14px; animation-delay: 1.7s; }
.cta-community .btn { flex: 1 1 auto; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover, .btn-discord:focus-visible { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn-discord .icon-discord { width: 22px; height: 22px; flex: none; }

/* ComingSoon-style rain / lightning overlay (home only; storm.js) */
#storm-fx, #storm-rain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 8;
}
#storm-fx { z-index: 7; }
.footer-end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.storm-toggle {
  min-height: 30px; padding: 0 12px;
  border: 1px solid rgba(212, 173, 98, .65); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(40, 72, 110, .95), rgba(12, 28, 48, .95));
  color: var(--gold-2);
  font: 700 12px/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  white-space: nowrap;
}
.storm-toggle:hover { border-color: var(--gold-2); color: #fff6dd; }
.storm-toggle[aria-pressed="false"] {
  color: var(--pearl); border-color: rgba(219, 233, 242, .4);
  background: rgba(0, 0, 0, .35);
}
html.still #storm-fx, html.still #storm-rain { display: none; }
html.still .emblem, html.still .emblem-sway, html.still .tagline, html.still .cta, html.still .hero-rule, html.still .hero-bg, html.still .hero-bg::after { animation: none !important; }
html.still .emblem-lit { display: none; }

/* ------------------------------------------------------------------ download platforms */
.dl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
  padding-bottom: 8px;
}
/* iOS: the two choices (how to install / download) in a dialog over the page. */
.dl-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 24px 22px 22px; color: var(--text-1, #f3ead6);
  background: var(--wood); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .9);
}
.dl-dialog::backdrop { background: rgba(4, 10, 18, .72); }
.dl-dialog-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: rgba(0, 0, 0, .25); color: var(--text-2); cursor: pointer;
}
.dl-dialog-close:hover { color: var(--gold-2); border-color: rgba(212, 173, 98, .6); }
.dl-dialog-close .icon { width: 18px; height: 18px; }
.dl-dialog-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.dl-dialog-head .dl-name { margin: 0; }
.dl-dialog-lead { margin: 14px 0 18px; color: var(--text-2); line-height: 1.55; }
.dl-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl-dialog-actions .btn[aria-expanded="true"] { border-color: var(--gold-2); color: var(--gold-2); }
.dl-steps { margin-top: 18px; padding: 16px 16px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(0, 0, 0, .22); }
.dl-steps ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--text-2); line-height: 1.55; }
.dl-steps li::marker { color: var(--gold-2); font-weight: 700; }
.dl-steps b { color: var(--gold-2); font-weight: 700; }
.dl-note { margin: 14px 0 0; font-size: 14px; color: var(--text-3); line-height: 1.5; }
@media (max-width: 480px) { .dl-dialog-actions { grid-template-columns: 1fr; } }
.dl-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 20px 20px;
  background: var(--wood); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .8);
}
.dl-card.is-soon { opacity: .92; }
.dl-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: var(--radius); border: 1px solid rgba(212, 173, 98, .35);
  background: linear-gradient(180deg, rgba(40, 72, 110, .55), rgba(8, 24, 42, .7));
  color: var(--gold-2);
}
.dl-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.dl-name { margin: 4px 0 0; font: 700 20px/1.2 var(--serif); color: var(--gold-2); letter-spacing: .02em; }
.dl-meta { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.dl-text { margin: 0 0 8px; color: var(--text-2); flex: 1; }
.dl-card .btn { margin-top: auto; }

/* Home: the game in a few lines under the hero (search engines and new players read it; the hero still fills the window). */
.intro { position: relative; z-index: 1; padding: 48px 0 64px; background: linear-gradient(180deg, var(--page), rgba(8, 20, 34, .96)); }
.intro-title { font: 700 clamp(22px, 2.6vw, 30px)/1.25 var(--serif); color: var(--gold-2); letter-spacing: .02em; text-align: center; }
.intro-lead { max-width: 760px; margin: 12px auto 0; text-align: center; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.intro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.intro-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px;
  background: var(--wood); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .8); }
.intro-name { margin: 4px 0 0; font: 700 18px/1.25 var(--serif); color: var(--gold-2); letter-spacing: .02em; }
.intro-card p { color: var(--text-2); }
.about { max-width: 860px; margin: 48px auto 0; }
.press .panel { margin-top: 20px; }
.press-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; padding: 16px 20px; }
.press-facts dt { color: var(--text-2); }
.press-facts dd { margin: 0; color: var(--text); }
.press-text h3 { margin: 18px 0 4px; font: 700 16px/1.4 var(--serif); color: var(--gold-2); }
.press-text p { color: var(--text-2); line-height: 1.7; }
.press-list { margin: 0; padding-left: 36px; color: var(--text-2); line-height: 1.7; }
.press-list b { color: var(--text); }
.press-note { color: var(--text-2); font-size: 14px; }
.press-sub { margin: 18px 0 10px; font: 700 15px var(--sans); color: var(--gold-2); }
.press-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.press-shots figure { margin: 0; }
.press-shots img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); }
.press-shots figcaption { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.press-zoom { display: block; cursor: zoom-in; }
.lightbox { width: min(96vw, 1600px); max-width: none; max-height: 96vh; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #05080d; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; height: auto; max-height: calc(96vh - 40px); object-fit: contain; border-radius: 8px 8px 0 0; }
.lightbox figcaption { padding: 10px 14px; font-size: 14px; color: var(--text-2); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: rgba(10, 14, 20, .8); color: var(--gold-2); font-size: 30px; line-height: 1; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(30, 24, 14, .95); }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: calc(50% - 42px); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (max-width: 720px) { .press-shots { grid-template-columns: 1fr 1fr; } .press-facts { grid-template-columns: 1fr; gap: 2px; } .press-facts dd { margin-bottom: 8px; } }
.about-title { font: 700 clamp(20px, 2.2vw, 26px)/1.3 var(--serif); color: var(--gold-2); letter-spacing: .02em; text-align: center; }
.about-part { margin-top: 22px; }
.about-part h3 { margin: 0 0 6px; font: 700 18px/1.3 var(--serif); color: var(--gold-2); letter-spacing: .02em; }
.about-part p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.about-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 28px; }
.about-links a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .intro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .intro { padding: 36px 0 48px; } .intro-grid { grid-template-columns: 1fr; } .intro-lead { font-size: 16px; } }

.btn.is-disabled, .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; pointer-events: none;
  color: var(--text-2); background: rgba(0, 0, 0, .25); border-color: var(--border);
}
@media (max-width: 720px) {
  .dl-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ panels */
.panel { background: var(--wood); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .8); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 16px; background: var(--panel-head);
  border-bottom: 1px solid var(--border); }
.panel-head h2 { font: 700 15px var(--sans); color: var(--gold-2); }
.panel-head a { font-size: 14px; }
.panel-body { padding: 16px; }
.panel + .panel { margin-top: 20px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 8px; padding-bottom: 72px; }
.home-grid .panel + .panel { margin-top: 0; }
.side { display: flex; flex-direction: column; gap: 20px; }

/* Key-value lines. */
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 16px; }
.kv div + div { border-top: 1px solid var(--line); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.kv dd.big { font: 700 18px var(--sans); color: var(--gold-2); }
.kv dd.pearl { color: var(--pearl); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.table th { padding: 10px 14px; text-align: left; font-size: 13px; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--border); white-space: nowrap; background: rgba(0, 0, 0, .15); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.table tbody tr:hover td { background: rgba(212, 173, 98, .05); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .pos { width: 56px; text-align: right; color: var(--text-3); font-weight: 700; }
.table tr.p1 .pos { color: var(--gold-2); }
.table tr.p2 .pos { color: var(--silver); }
.table tr.p3 .pos { color: var(--bronze); }
.table .name { font-weight: 700; color: var(--text); }
.table .tag { color: var(--text-2); }
.table tr.me td { background: rgba(212, 173, 98, .09); }
.table .val { text-align: right; font-weight: 700; color: var(--gold-2); }
.table-foot { padding: 10px 16px; font-size: 14px; color: var(--text-3); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ inner pages */
.page main, .auth main { padding-bottom: 72px; }
.page-head { padding-top: 36px; padding-bottom: 20px; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--text-2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.empty { padding: 28px 16px; text-align: center; color: var(--text-2); }
.empty .btn { margin-top: 14px; }

.account-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.account-grid .panel + .panel { margin-top: 20px; }
.captain { display: flex; align-items: center; gap: 16px; padding: 18px 16px; }
.captain img { width: 48px; height: 48px; flex: none; }
.captain-name { font: 700 22px/1.2 var(--serif); color: var(--gold-2); letter-spacing: .02em; }
.captain .level { margin-left: auto; text-align: right; }
.captain .level b { display: block; font: 700 26px/1 var(--sans); color: var(--gold-2); }
.captain .level span { font-size: 13px; color: var(--text-3); }

/* Rules: a plain numbered document. */
.doc { counter-reset: rule; margin: 0; padding: 4px 0; list-style: none; }
.doc li { counter-increment: rule; padding: 14px 20px 14px 56px; position: relative; }
.doc li + li { border-top: 1px solid var(--line); }
.doc li::before { content: counter(rule) "."; position: absolute; left: 20px; top: 14px; width: 24px; text-align: right; font-weight: 700; color: var(--gold); }
.doc h3 { font: 700 16px/1.5 var(--sans); color: var(--text); }
.doc p { margin-top: 2px; color: var(--text-2); }

/* ------------------------------------------------------------------ forms */
.auth main { display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px 72px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .panel-body { padding: 22px 22px 18px; }
.auth-card h1 { font: 700 22px var(--serif); color: var(--gold-2); letter-spacing: .02em; }
.auth-card .lead { margin-bottom: 18px; }
.auth-alt { padding: 14px 22px; border-top: 1px solid var(--line); text-align: center; color: var(--text-2); font-size: 15px; background: rgba(0, 0, 0, .15); }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field small { font-size: 13px; color: var(--text-3); }
.field input { width: 100%; height: 42px; padding: 0 12px; font: 400 16px var(--sans); color: var(--text); background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border); border-radius: var(--radius); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:hover { border-color: rgba(212, 173, 98, .45); }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 173, 98, .15); }
.field input::placeholder { color: var(--text-3); }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--text-3); cursor: pointer; }
.pw-toggle:hover { color: var(--gold); }
.pw-toggle .icon-hide { display: none; }
.pw-toggle.on .icon-show { display: none; }
.pw-toggle.on .icon-hide { display: block; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--text-2); cursor: pointer; }
.check input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--gold); }
.form-links { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.form-note { font-size: 14px; color: var(--text-3); }

.alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 11px 14px; font-size: 15px; line-height: 1.45; text-align: left; color: var(--text);
  background: rgba(0, 0, 0, .35); border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); }
.alert .icon { margin-top: 2px; }
.alert-info { border-left-color: var(--gold); }
.alert-info .icon { color: var(--gold); }
.alert-error { border-color: rgba(217, 114, 95, .45); border-left-color: var(--red); }
.alert-error .icon { color: var(--red); }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--border); background: #060f1b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; padding-top: 16px; padding-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 7px; font: 700 11.5px var(--serif); letter-spacing: .06em; color: var(--text-2); }
.footer-brand img { width: 24px; height: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 8px; color: var(--text-2); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* Footer, lower half: community links, copyright, contact and the legal documents (centred, like a game portal's). */
.footer-legal { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 16px; padding-bottom: 16px; text-align: center; }
.social { display: flex; gap: 10px; margin: 0 0 6px; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(212, 173, 98, .45); background: rgba(0, 0, 0, .3); transition: border-color .15s, transform .15s; }
.social a:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.social img { width: 22px; height: 22px; }
.footer-legal .footer-copy { font: 700 13px var(--sans); color: var(--text); }
.footer-rights { font-size: 12px; color: var(--text-3); }
.footer-credits { font-size: 11px; color: var(--text-3); opacity: .8; }
.footer-credits a { color: inherit; }
.footer-mail { font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.footer-mail b { color: var(--text-2); }
.footer-mail a { color: var(--text-2); }
.footer-mail a:hover { color: var(--gold-2); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin-top: 6px; }
.footer-row .footer-brand:hover { color: var(--text); text-decoration: none; }
.footer-docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; }
.footer-docs a { display: inline-flex; align-items: center; font-size: 12.5px; color: var(--gold-2);
  border-bottom: 1px dashed rgba(212, 173, 98, .35); line-height: 1.3; padding: 4px 0 1px; }
.footer-docs a:hover, .footer-docs a[aria-current] { color: #fff6dd; text-decoration: none; border-bottom-color: var(--gold); }

/* Web market: product cards, order page. */
.shop-banner { margin-bottom: 18px; padding: 10px 14px; color: var(--text-2); background: rgba(0, 0, 0, .3); border: 1px dashed var(--border); border-radius: var(--radius); }
/* Market: every category is a section with a full-width banner, its products as wide cards centred under it. */
.shop-section { margin-bottom: 26px; border-radius: 14px; overflow: hidden; background: rgba(4, 10, 18, .55);
  border: 1px solid rgba(212, 173, 98, .14); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9); scroll-margin-top: 80px; }
.shop-section.is-plain { background: none; border: 0; box-shadow: none; overflow: visible; }
.shop-band { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 13px 24px; overflow: hidden;
  font: 700 22px var(--serif); letter-spacing: .04em; color: #f2f8ff; text-shadow: 0 2px 6px rgba(2, 16, 40, .7);
  background: linear-gradient(90deg, #12406e 0%, #1d63a3 45%, #2f7fc4 70%, rgba(47, 127, 196, .7) 100%); }
.shop-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 55%); pointer-events: none; }
.shop-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #f1d595, rgba(241, 213, 149, 0)); }
.shop-band span { position: relative; }
.shop-band small { position: relative; padding: 2px 9px; border-radius: 999px; font: 700 12px var(--sans); letter-spacing: 0; color: #f2f8ff;
  background: rgba(2, 18, 42, .45); border: 1px solid rgba(200, 228, 255, .4); }
.shop-section > .shop-grid { padding: 18px; }

/* Product cards: wide, picture on the left, name / contents / price on the right; a soft gold glow on hover. */
.shop-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.shop-card { position: relative; flex: 0 1 360px; min-width: 0; display: grid; grid-template-columns: 124px 1fr; grid-template-rows: 1fr auto; overflow: hidden;
  border-radius: 12px; background: linear-gradient(135deg, rgba(36, 46, 60, .95), rgba(20, 26, 36, .95)); border: 1px solid rgba(212, 173, 98, .16);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .95); transition: transform .2s ease, border-color .2s, box-shadow .2s; }
.shop-card:hover { transform: translateY(-3px); border-color: rgba(236, 211, 154, .5);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .95), 0 0 30px -10px rgba(212, 173, 98, .45); }
.shop-pic { grid-row: 1 / span 2; position: relative; display: grid; place-items: center; min-height: 150px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 50%, rgba(120, 170, 220, .28), transparent 75%), linear-gradient(180deg, #11304b, #0a1a2b);
  border-right: 1px solid rgba(212, 173, 98, .12); }
.shop-pic img { max-width: 84%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .65)); transition: transform .3s ease; }
.shop-card:hover .shop-pic img { transform: scale(1.08); }
.shop-pic .shop-icon { width: 84px; height: 84px; }
/* Several designs in one product: stacked slides that fade into each other, with dots for where it is. */
.shop-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .6s ease; }
.shop-slide.is-on { opacity: 1; }
.shop-dots { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 4px; }
.shop-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background .3s; }
.shop-dots i.is-on { background: var(--gold-2); }
.ship-frame { display: block; background-repeat: no-repeat; background-position: 0 0; image-rendering: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .65)); }
.shop-more { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 1; padding: 3px 9px; font-size: 11px; font-weight: 800;
  color: var(--gold-ink); background: linear-gradient(180deg, #f1d595, #c99d4f); border-radius: 999px; white-space: nowrap; }
.shop-off { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
  color: #fff; background: linear-gradient(180deg, #e2604a, #b23a2a); box-shadow: 0 6px 14px -6px rgba(226, 96, 74, .8); }
.shop-body { min-width: 0; padding: 16px 16px 4px; }
.shop-name { font: 800 19px/1.25 var(--sans); color: #fff6e2; }
.shop-desc { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.shop-items { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text); }
.shop-items li { margin-bottom: 2px; }
.shop-items li::before { content: "– "; color: var(--gold); }
.shop-owned { font-size: 12px; color: #9fe0b0; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 16px; }
.shop-price { display: flex; flex-direction: column; line-height: 1.1; }
.shop-price s { font-size: 12px; color: var(--text-3); }
.shop-price b { font: 800 19px var(--sans); color: var(--gold-2); }
.shop-foot .btn { border-radius: 999px; padding-left: 18px; padding-right: 18px; min-height: 38px; }
@media (max-width: 600px) {
  .shop-band { padding: 11px 16px; font-size: 18px; }
  .shop-section > .shop-grid { padding: 12px; }
  .shop-card { flex-basis: 100%; grid-template-columns: 104px 1fr; }
}
/* Product page ("İncele"): the picture on a large stage, then the contents, VIP perks, price and Buy. */
.shop-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); overflow: hidden; border-radius: 16px;
  background: linear-gradient(135deg, rgba(36, 46, 60, .95), rgba(16, 22, 32, .96)); border: 1px solid rgba(212, 173, 98, .2); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .95); }
.shop-detail-pic { position: relative; }
.shop-detail-pic .shop-pic { grid-row: auto; height: 100%; min-height: 340px; border-right: 1px solid rgba(212, 173, 98, .12); }
.shop-detail-pic .shop-pic img { width: 62%; height: auto; max-width: 78%; max-height: 78%; object-fit: contain; }
.shop-detail-pic .shop-off { top: 14px; left: 14px; font-size: 13px; padding: 5px 12px; }
.shop-detail-body { padding: 26px 28px 24px; }
.shop-detail-name { margin: 0; font-size: 28px; line-height: 1.2; color: #fff1cf; letter-spacing: .02em; }
.shop-detail-h { margin: 20px 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #d4ad62); }
.shop-detail-items, .shop-detail-perks { margin: 0; padding: 0; list-style: none; }
.shop-detail-items li { padding: 9px 12px; margin-bottom: 6px; border-radius: 10px; font-size: 15px; background: rgba(212, 173, 98, .08); border: 1px solid rgba(212, 173, 98, .16); }
.shop-detail-perks li { position: relative; padding: 4px 0 4px 24px; font-size: 14px; }
.shop-detail-perks li::before { content: "\2713"; position: absolute; left: 2px; color: #8fd9a4; font-weight: 800; }
.shop-detail-buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(212, 173, 98, .14); }
.shop-detail-buy .shop-price b { font-size: 28px; }
.shop-detail-buy form { margin: 0; }
.shop-detail-buy .btn { border-radius: 999px; padding-left: 30px; padding-right: 30px; }
@media (max-width: 760px) {
  .shop-detail { grid-template-columns: 1fr; }
  .shop-detail-pic .shop-pic { min-height: 230px; border-right: 0; border-bottom: 1px solid rgba(212, 173, 98, .12); }
  .shop-detail-body { padding: 20px 18px; }
}
.shop-orders { margin-top: 28px; }
.order-status { display: inline-block; padding: 2px 9px; font-size: 12px; font-weight: 700; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; color: var(--text-2); }
.os-paid, .os-delivering { color: var(--gold-2); border-color: rgba(212, 173, 98, .5); }
.os-delivered { color: #9fe0b0; border-color: rgba(120, 200, 140, .5); }
.os-failed { color: #f0a497; border-color: rgba(220, 115, 95, .5); }
.shop-order-main { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 16px; align-items: center; }
.shop-order-main .shop-pic { grid-row: auto; min-height: 170px; border: 1px solid var(--line); border-radius: 12px; }
.shop-order-state { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.shop-order-state p { margin-top: 8px; color: var(--text-2); }
.shop-order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 600px) { .shop-order-main { grid-template-columns: 1fr; } }

/* Support (signed-in players) and "Contact us". */
.field select, .field textarea { width: 100%; padding: 10px 12px; font: 400 16px var(--sans); color: var(--text); background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border); border-radius: var(--radius); outline: none; transition: border-color .15s, box-shadow .15s; }
.field select { height: 42px; padding: 0 10px; }
.field select option { background: #1b130c; color: var(--text); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 173, 98, .15); }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.support-grid .panel + .panel { margin-top: 0; }
.ticket-list { margin: 0; padding: 0; list-style: none; }
.ticket-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ticket-list li + li { border-top: 1px solid var(--line); }
.ticket-list a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.ticket-list a:hover { text-decoration: none; }
.ticket-list a:hover .ticket-subject { color: var(--gold-2); }
.ticket-subject { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta { font-size: 13px; color: var(--text-3); }
.ticket-status { flex: none; display: inline-block; padding: 3px 9px; font-size: 12px; font-weight: 700; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.st-open { color: var(--gold-2); border-color: rgba(212, 173, 98, .5); background: rgba(212, 173, 98, .1); }
.st-answered { color: #9fe0b0; border-color: rgba(120, 200, 140, .5); background: rgba(120, 200, 140, .1); }
.st-closed { color: var(--text-3); border-color: var(--line); background: rgba(0, 0, 0, .2); }
.thread { margin: 0; padding: 0; list-style: none; }
.msg { padding: 14px 18px; }
.msg + .msg { border-top: 1px solid var(--line); }
.msg-staff { background: rgba(212, 173, 98, .06); box-shadow: inset 3px 0 0 var(--gold); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.msg-staff .msg-head b { color: var(--gold-2); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.support-actions { display: flex; justify-content: flex-end; }
.support-close-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.support-closed { margin-top: 18px; padding: 12px 16px; color: var(--text-2); background: rgba(0, 0, 0, .3); border: 1px solid var(--border); border-radius: var(--radius); }
.page .page-head + .panel, .wrap.narrow > .panel + .panel { margin-top: 20px; }
.contact-card { max-width: 520px; }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }

/* 404 after a hole-hunting address: the visitor is told the request was logged. */
.probe-warning { margin-top: 16px; padding: 10px 14px; font-size: 14px; line-height: 1.45; color: #f3c2b8;
  background: rgba(217, 114, 95, .1); border: 1px solid rgba(217, 114, 95, .45); border-left-width: 3px; border-radius: var(--radius); }

/* reCAPTCHA checkbox (after a low score): centred above the button; Google's widget is 304 px wide. */
.captcha-box { display: flex; justify-content: center; min-height: 78px; }

/* Legal documents: long, readable prose. */
.legal { padding: 8px 26px 18px; line-height: 1.65; margin-bottom: 40px; }
.legal section + section { border-top: 1px solid var(--line); }
.legal section { padding: 14px 0 6px; }
.legal h2 { font: 700 18px/1.4 var(--sans); color: var(--gold-2); margin-bottom: 8px; }
.legal p { color: var(--text); margin: 0 0 10px; }
.legal ul, .legal ol { margin: 0 0 10px; padding-left: 22px; color: var(--text); }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--gold); }
.legal b { color: var(--gold-2); font-weight: 700; }
.legal .table-wrap { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--text); }
.legal-note { margin-top: 10px; padding: 10px 14px; font-size: 15px; color: var(--text-2); background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 900px) {
  .home-grid, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .topbar-inner { gap: 10px; height: 56px; }
  .menu-toggle { display: flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 56px; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 14px 16px;
    background: #120c07; border-bottom: 1px solid var(--border); box-shadow: 0 18px 36px rgba(0, 0, 0, .55); }
  .menu-open .menu { display: flex; }
  .nav { flex-direction: column; }
  .nav a { min-height: var(--hit); padding: 0 4px; border-bottom: 1px solid var(--line); margin: 0; font-size: 16px; }
  .nav a.active { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .account { justify-content: stretch; flex-wrap: wrap; }
  .lang { width: 100%; }
  .lang summary { min-height: var(--hit); border-color: var(--border); }
  .lang-list { position: static; margin-top: 6px; max-height: none; box-shadow: none; columns: 2; }
  .account .btn, .account .inline, .account .inline .btn, .who { flex: 1; width: 100%; }
  .help-link { width: 100%; min-height: var(--hit); padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hero-inner { padding-top: 28px; padding-bottom: 44px; }
  .home .hero { min-height: 0; }
  .home .emblem { --emblem: min(52vh, 86vw, 420px); }
  .home .tagline { font-size: 18px; }
  .home .cta .btn { min-height: 52px; font-size: 17px; }
  .cta, .cta-stack { flex-direction: column; align-self: stretch; }
  .cta .btn { width: 100%; }
  .table th, .table td { padding: 9px 10px; }
  .table .pos { width: 40px; }
  .hide-sm { display: none; }
  .captain-name { font-size: 19px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .legal { padding: 4px 16px 12px; }
  .legal-table td:first-child { white-space: normal; }
  .footer-docs { gap: 2px 16px; }
  .footer-end { justify-content: flex-start; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .emblem, .emblem-sway, .tagline, .cta, .hero-rule { animation: none !important; }
  /* The hero's slow drift and fog stay (like the rain): only the site's own effects button (html.still) stops them. */
  /* Keep the toggle visible so the player can still turn effects on when OS allows motion. */
}
