/* ═══════════════════════════════════════════════════════════════════════════
   Jin Online — design system (shared by every public page)
   1 fonts · 2 tokens · 3 base · 4 layout · 5 buttons · 6 header & menus
   7 page banner · 8 components · 9 forms · 10 footer · 11 motion · 12 utilities
   Page-only styles live in assets/css/pages/<page>.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1 ── Fonts (self-hosted, SIL Open Font License) */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* Cinzel draws 1 like a Roman "I" (10 reads "IO"): inside Cinzel text, digits come from Inter. */
@font-face { font-family: "Cinzel"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0030-0039; }

/* 2 ── Tokens */
:root {
  --bg: #050a16;
  --bg-2: #08112a;
  --surface: rgba(13, 24, 48, 0.72);
  --surface-2: rgba(19, 34, 66, 0.78);
  --surface-solid: #0c1730;
  --line: rgba(130, 180, 255, 0.14);
  --line-2: rgba(130, 180, 255, 0.26);
  --text: #eaf2ff;
  --text-2: #b9c7e0;
  --muted: #8193b2;
  --primary: #38bdf8;
  --primary-2: #2563eb;
  --primary-ink: #04121f;
  --gold: #f6c453;
  --gold-2: #d98f1f;
  --jade: #a3e635;
  --success: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --grad-primary: linear-gradient(135deg, #4cc9ff 0%, #2f7cf6 55%, #2a4fe0 100%);
  --grad-gold: linear-gradient(135deg, #ffe08a 0%, #f6c453 45%, #d98f1f 100%);
  --grad-text: linear-gradient(180deg, #ffffff 0%, #cfe3ff 55%, #8fb6ff 100%);
  --font-display: "Cinzel", "Trajan Pro", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 10px 40px -12px rgba(56, 189, 248, 0.55);
  --header-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3 ── Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.site::before {               /* soft art + glow behind every page */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(47, 124, 246, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(5, 10, 22, 0.55), var(--bg) 70%),
    url("../../img/1920/images/background.jpg.webp") center top / cover no-repeat;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #7dd3fc; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; color: #fff; }
h1, h2 { font-family: var(--font-display); letter-spacing: 0.02em; }
h3, h4 { font-family: var(--font-body); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(56, 189, 248, 0.35); color: #fff; }
[hidden] { display: none !important; }

/* 4 ── Layout */
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.75rem); margin: 0.2em 0 0.3em; }
.section__lead { color: var(--text-2); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.8; }
.section__head--center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.8; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
.site-main { min-height: 60vh; }

/* 5 ── Buttons */
.btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 0.86rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--surface-2); cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-primary); box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--primary:hover { box-shadow: 0 14px 44px -10px rgba(56, 189, 248, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--gold { background: var(--grad-gold); color: #2a1700; box-shadow: 0 10px 36px -12px rgba(246, 196, 83, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn--gold:hover { color: #2a1700; }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(125, 211, 252, 0.6); background: rgba(56, 189, 248, 0.1); }
.btn--success { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 30px -12px rgba(52, 211, 153, 0.6); }
.btn--sm { --btn-h: 38px; padding: 0 16px; font-size: 0.76rem; }
.btn--lg { --btn-h: 56px; padding: 0 32px; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn .icon { flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.04);
  color: var(--text-2); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: #fff; border-color: var(--line-2); background: rgba(56, 189, 248, 0.1); }
.icon-btn[aria-pressed="true"] { color: var(--primary); border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 18px -4px rgba(56, 189, 248, 0.6); }

/* 6 ── Header, menus */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; font-weight: 700; }
.skip-link:focus { top: 12px; }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(5, 10, 22, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}
.site-header__inner { height: 100%; width: min(1320px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.site-brand { flex: none; display: flex; align-items: center; }
.site-brand img { width: 84px; height: auto; filter: drop-shadow(0 4px 14px rgba(163, 230, 53, 0.25)); transition: transform 0.3s var(--ease); }
.site-brand:hover img { transform: scale(1.05) rotate(-1deg); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.site-nav__link {
  position: relative; padding: 10px 13px; border-radius: 10px;
  color: var(--text-2); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.site-nav__link.is-active { color: #fff; }
.site-nav__link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--grad-primary); box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}
.site-header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav + .site-header__tools { margin-left: 0; }
.site-header__account span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.site-header__account.is-player span { text-transform: none; letter-spacing: 0.01em; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.lang-switch a { padding: 5px 10px; border-radius: 999px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { background: rgba(56, 189, 248, 0.16); color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .site-header__tools, .site-nav + .site-header__tools { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .site-header__register, .lang-switch--header, .site-header__tools .js-music { display: none; }
  .site-header__account { --btn-h: 36px; padding: 0 12px; }
  .site-brand img { width: 72px; }
}

/* drawer (phones/tablets) */
.site-drawer { position: fixed; inset: 0; z-index: 150; }
.site-drawer__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 16, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.site-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  display: flex; flex-direction: column; gap: 18px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0b1530, #060c1c); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.8);
  transform: translateX(100%); transition: transform 0.35s var(--ease); overflow-y: auto;
}
.site-drawer.is-open .site-drawer__backdrop { opacity: 1; }
.site-drawer.is-open .site-drawer__panel { transform: none; }
.site-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.site-drawer__head img { width: 76px; }
.site-drawer__nav { display: grid; gap: 4px; }
.site-drawer__nav a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; color: var(--text); font-weight: 600; border: 1px solid transparent; }
.site-drawer__nav a span { flex: 1; }
.site-drawer__nav a .icon:first-child { color: var(--primary); }
.site-drawer__nav a .icon:last-child { color: var(--muted); }
.site-drawer__nav a:hover, .site-drawer__nav a.is-active { background: rgba(56, 189, 248, 0.08); border-color: var(--line); color: #fff; }
.site-drawer__actions { display: grid; gap: 10px; }
.site-drawer__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.drawer-open { overflow: hidden; }

/* bottom bar (phones) */
.bottom-bar { display: none; }
@media (max-width: 760px) {
  .bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(6, 11, 24, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .bottom-bar a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: 0.66rem; font-weight: 600; }
  .bottom-bar a.is-active { color: #fff; background: rgba(56, 189, 248, 0.1); }
  .bottom-bar a.is-active .icon { color: var(--primary); filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7)); }
  body.site { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* 7 ── Page banner (inner pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) 0 clamp(36px, 5vw, 60px); overflow: hidden; isolation: isolate; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 10, 22, 0.2) 0%, rgba(5, 10, 22, 0.7) 70%, var(--bg) 100%),
    radial-gradient(700px 300px at 50% 0%, rgba(56, 189, 248, 0.18), transparent 70%);
}
.page-hero__bg::after { /* thin glowing line under the banner */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
}
.page-hero__inner { text-align: center; }
.page-hero__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0.25em 0 0.2em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.page-hero__lead { max-width: 640px; margin: 0 auto; color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.1rem); }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 0.8rem; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: #fff; }
.page-body { padding-top: clamp(16px, 2.5vw, 28px); padding-bottom: clamp(56px, 8vw, 96px); }

/* 8 ── Components */
.panel {
  position: relative; padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 36, 70, 0.62), rgba(9, 17, 36, 0.72));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.panel--glow::before {       /* gradient edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(76, 201, 255, 0.55), transparent 35%, transparent 65%, rgba(246, 196, 83, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.panel + .panel { margin-top: 24px; }
.grid > .panel + .panel, .row > .panel + .panel { margin-top: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel__title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; }
.panel__title .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.4); color: var(--primary); font-size: 0.85rem;
}
.panel__sub { color: var(--muted); font-size: 0.9rem; margin: -12px 0 20px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(22, 40, 78, 0.55), rgba(10, 19, 40, 0.75));
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
a.card { color: inherit; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.45); box-shadow: 0 24px 50px -24px rgba(56, 189, 248, 0.45); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1430; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
a.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { margin: 0; font-size: 1.05rem; color: #fff; }
.card__text { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.card__meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 0.78rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.35);
}
.badge--gold { background: rgba(246, 196, 83, 0.15); color: var(--gold); border-color: rgba(246, 196, 83, 0.4); }
.badge--green { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.4); }
.badge--red { background: rgba(251, 113, 133, 0.14); color: #fda4af; border-color: rgba(251, 113, 133, 0.4); }
.badge--purple { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.4); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(56, 189, 248, 0.08); color: var(--text); font-size: 0.93rem; }
.alert + * { margin-top: 16px; }
.alert--success { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.alert--error { border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.1); }
.alert--warning { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.1); }
.divider { height: 1px; border: 0; margin: 24px 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.stat { display: grid; gap: 2px; }
.stat__label { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.stat__value { font-size: 1.15rem; font-weight: 700; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-size: 0.85rem; font-weight: 600; }
.chip .icon { color: var(--primary); }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 10, 22, 0.5); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; padding: 10px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 0.88rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.tab:hover { color: #fff; }
.tab.is-active, .tab[aria-selected="true"] { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-glow); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(5, 10, 22, 0.4); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(56, 189, 248, 0.05); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 48px; color: var(--text-2); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.4); color: var(--primary); font-weight: 700; font-size: 0.85rem;
}
.steps strong { color: #fff; }
.price { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; color: #fff; font-variant-numeric: tabular-nums; }
.pj { color: var(--gold); font-weight: 700; }

/* 9 ── Forms */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field__label { color: var(--text-2); font-size: 0.82rem; font-weight: 600; }
.field__help { color: var(--muted); font-size: 0.78rem; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(4, 9, 22, 0.75);
  color: var(--text); font: 500 0.96rem/1.3 var(--font-body); color-scheme: dark;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238193b2' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select option { background: #0b1530; color: var(--text); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #5d6f8f; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(125, 211, 252, 0.45); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16); background: rgba(6, 14, 32, 0.9); }
.field input[disabled], .field select[disabled] { opacity: 0.55; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 0.9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }

/* 10 ── Footer */
.site-footer { position: relative; margin-top: 0; padding: 56px 0 24px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 10, 22, 0.6), #03060f); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), rgba(246, 196, 83, 0.4), transparent); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.site-footer__brand img { width: 110px; margin-bottom: 14px; }
.site-footer__brand p { color: var(--muted); font-size: 0.9rem; max-width: 300px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__col h2 { margin: 0 0 6px; font: 700 0.72rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.site-footer__col a { color: var(--muted); font-size: 0.92rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: #5d6f8f; font-size: 0.8rem; text-align: center; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s; }
.social-btn:hover { transform: translateY(-2px); border-color: var(--line-2); background: rgba(56, 189, 248, 0.1); }
.social-btn img { width: 20px; height: 20px; object-fit: contain; }
.site-footer .lang-switch { margin-top: 10px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.server-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); color: var(--text-2); font-size: 0.82rem; }
.server-pill strong { color: #fff; }
.server-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }

/* 11 ── Motion */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
/* only content below the first screen is hidden (site.js sets .reveal-on after showing what is already in view) */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
.reveal-on .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-on .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.42s; }
.reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: 0.48s; }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* 12 ── Utilities */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.gold { color: var(--gold); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--center { justify-content: center; }
.row--between { justify-content: space-between; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* 20 ── iPhone / touch screens
   Safari zooms the page in when a form field under 16px is tapped; taps need about 44px; hover effects
   would "stick" after a tap; 100vh is taller than the visible screen while Safari's bars show. */
html { -webkit-tap-highlight-color: rgba(56, 189, 248, 0.15); }
@supports (min-height: 100dvh) { body { min-height: 100dvh; } }
.btn:active { transform: scale(0.98); }
@media (hover: none) {
  .btn:hover, a.card:hover, .card--hover:hover, .social-btn:hover, .site-brand:hover img, a.card:hover .card__media img { transform: none; }
}
@media (max-width: 1024px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { font-size: 16px !important; }
}
@media (max-width: 760px) {
  /* bigger tap areas for small text links */
  .crumbs a { display: inline-block; padding: 10px 2px; margin: -10px -2px; }
  .site-footer__col a { display: inline-block; padding: 7px 0; }
  .lang-switch a { padding: 9px 14px; }
  a.acc-stat__note, .acc-sec__link { display: inline-block; padding: 9px 0; }
  /* nothing smaller than 11px on a phone (every rule that sets less, from site.css and the page CSS) */
  html body .bottom-bar a,
  html body .badge,
  html body .evt-cd small,
  html body .evt-hero__stats span,
  html body .ld-prize__value small,
  html body .ld-list__head,
  html body .pet-row__owner small,
  html body .home-status__label,
  html body .donate__timer small,
  html body .pack__bonus,
  html body .pack__badge,
  html body .pod__label,
  html body .rk-row--head,
  html body .rk-minipet b,
  html body .rk-more__label,
  html body .pod .rk-legion,
  html body .pod .rk-minipet b,
  html body .pod__extra,
  html body .rk-legion,
  html body .ld-row__poin small { font-size: 11px; }
  .acc-login__links a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}
/* landscape iPhone: keep content clear of the notch / rounded corners */
@media (orientation: landscape) and (max-height: 500px) {
  .container { width: min(var(--container), 100% - 2 * max(20px, env(safe-area-inset-left), env(safe-area-inset-right))); }
  .container--narrow { width: min(760px, 100% - 2 * max(20px, env(safe-area-inset-left), env(safe-area-inset-right))); }
}

/* 21 ── Maintenance mode: shown only to the signed-in admin while players see the maintenance page */
.maint-bar {
  position: fixed; z-index: 120; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px; border-radius: 14px; font-size: 0.8rem; font-weight: 600; line-height: 1.4; color: #2a1700; background: var(--grad-gold);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.8); pointer-events: none;
}
@media (max-width: 760px) { .maint-bar { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* 22 ── Phones: the page art at 1000px instead of 1920px (about half the download) */
@media (max-width: 760px) {
  body.site::before {
    background:
      radial-gradient(1000px 600px at 85% -10%, rgba(47, 124, 246, 0.22), transparent 60%),
      radial-gradient(900px 600px at -10% 20%, rgba(56, 189, 248, 0.12), transparent 60%),
      linear-gradient(180deg, rgba(5, 10, 22, 0.55), var(--bg) 70%),
      url("../../img/1000/images/background.jpg.webp") center top / cover no-repeat;
  }
}
