/* ===== CHILL — ARK: Survival Ascended server ===== */

/* ---------- fonts (self-hosted variable fonts) ---------- */
@font-face { font-family: "Exo 2"; font-weight: 100 900; font-display: swap;
  src: url(/fonts/exo-2-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Exo 2"; font-weight: 100 900; font-display: swap;
  src: url(/fonts/exo-2-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Sans 3"; font-weight: 100 900; font-display: swap;
  src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 100 900; font-display: swap;
  src: url(/fonts/source-sans-3-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- themes ---------- */
:root, [data-theme="sunset"] {
  --bg: #14101f; --bg-2: #1c1631; --bg-rgb: 20, 16, 31;
  --text: #f6efe8; --muted: #b8acbb;
  --accent: #ff9a3c; --accent-2: #ffd27a; --accent-ink: #1d1006;
  --glow: rgba(255, 154, 60, .32);
  --hero: url(/img/sunset.webp);
}
[data-theme="jungle"] {
  --bg: #0c1a0f; --bg-2: #13271a; --bg-rgb: 12, 26, 15;
  --text: #eef6e8; --muted: #a8bfa7;
  --accent: #8fd05a; --accent-2: #f2c94c; --accent-ink: #0b1a08;
  --glow: rgba(143, 208, 90, .28);
  --hero: url(/img/jungle.webp);
}
[data-theme="night"] {
  --bg: #080b22; --bg-2: #101538; --bg-rgb: 8, 11, 34;
  --text: #eaf0ff; --muted: #a2add2;
  --accent: #5aa7ff; --accent-2: #ffb347; --accent-ink: #06132b;
  --glow: rgba(90, 167, 255, .3);
  --hero: url(/img/night.webp);
}
[data-theme="ice"] {
  --bg: #0a1630; --bg-2: #10224a; --bg-rgb: 10, 22, 48;
  --text: #eaf6ff; --muted: #a5bed6;
  --accent: #7fd4ff; --accent-2: #dff6ff; --accent-ink: #04182b;
  --glow: rgba(127, 212, 255, .28);
  --hero: url(/img/ice.webp);
}
:root {
  --surface: rgba(255, 255, 255, .055);
  --surface-2: rgba(255, 255, 255, .095);
  --line: rgba(255, 255, 255, .13);
  --radius: 16px;
  --header-h: 68px;
  --ok: #4ade80; --bad: #f87171; --idle: #9ca3af;
  --font-display: "Exo 2", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  transition: background-color .4s ease;
}
body.noscroll { overflow: hidden; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .045em; font-weight: 600; }
h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: .03em; font-size: 1.25rem; }
p { margin: 0 0 1em; }
code, kbd { font: 500 .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .45em; word-break: break-all; }
kbd { border-bottom-width: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.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; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 30px; height: 30px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(var(--bg-rgb), .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(var(--bg-rgb), .9); border-bottom-color: var(--line); }
.bar { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { width: 34px; height: 34px; color: var(--accent); stroke-width: 1.6; }
.brand-name { font: 700 1.6rem/1 var(--font-display); letter-spacing: .08em; background: linear-gradient(180deg, var(--text), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font: 500 .68rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font: 500 .95rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; padding: .5rem .68rem; border-radius: 10px; opacity: .82; transition: background-color .2s, opacity .2s; }
.nav a:hover { background: var(--surface-2); opacity: 1; color: var(--text); }
.nav a[aria-current="page"] { opacity: 1; color: var(--accent); background: var(--surface); }
.tools { display: flex; align-items: center; gap: 8px; }
.tool { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background-color .2s, border-color .2s; }
.tool:hover { background: var(--surface-2); border-color: var(--accent); }
.burger { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 .78rem var(--font-body); letter-spacing: .06em; padding: 0 12px; height: 38px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.popwrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.pop-title { margin: 2px 8px 8px; font: 600 .7rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.swatch { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; color: var(--text); font: 500 .95rem var(--font-body); padding: 9px 10px; border-radius: 10px; cursor: pointer; text-align: left; }
.swatch:hover { background: var(--surface-2); }
.swatch[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent); }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); flex: none; }
.dot-sunset { background: linear-gradient(135deg, #ff9a3c, #7a3ea0); }
.dot-jungle { background: linear-gradient(135deg, #8fd05a, #1c5a2a); }
.dot-night { background: linear-gradient(135deg, #5aa7ff, #1a1f5c); }
.dot-ice { background: linear-gradient(135deg, #dff6ff, #3b7fc4); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: .7rem 1.4rem; border-radius: 12px; border: 1px solid transparent; font: 600 .95rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background-color .2s, border-color .2s; }
.btn.small { min-height: 36px; padding: .4rem .9rem; font-size: .82rem; }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 28px var(--glow); }
.btn.primary:hover { transform: translateY(-2px); color: var(--accent-ink); box-shadow: 0 12px 34px var(--glow); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--text); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .9rem ui-monospace, Menlo, Consolas, monospace; cursor: pointer; transition: border-color .2s, background-color .2s; }
.copy:hover { border-color: var(--accent); background: var(--surface-2); }
.copy.small { min-height: 34px; font: 600 .8rem var(--font-body); padding: .25rem .75rem; }
.copy.done { border-color: var(--ok); color: var(--ok); }

/* ---------- status pill ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; padding: .4rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--idle); flex: none; }
.state-online .led { background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .2), 0 0 12px var(--ok); }
.state-offline .led { background: var(--bad); box-shadow: 0 0 0 4px rgba(248, 113, 113, .18); }

/* ---------- hero (home) ---------- */
.hero { padding-top: var(--header-h); position: relative; }
.hero-art { position: relative; height: clamp(420px, 55vw, 800px); background: var(--hero) center 8% / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--bg-rgb), .5) 0, rgba(var(--bg-rgb), 0) 12%, rgba(var(--bg-rgb), 0) 60%, var(--bg) 100%); }
.hero-panel { position: relative; z-index: 2; margin-top: -110px; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; padding: 26px 30px; border-radius: 22px; background: rgba(var(--bg-rgb), .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.eyebrow { margin: 0 0 6px; font: 600 .74rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.hero-tag { margin: 0; font: 600 clamp(1.7rem, 3.6vw, 2.6rem)/1.1 var(--font-display); letter-spacing: .09em; text-transform: uppercase; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-status { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 56px) 0 64px; background: linear-gradient(to bottom, rgba(var(--bg-rgb), .55), rgba(var(--bg-rgb), .8) 70%, var(--bg)), var(--hero) center 58% / cover no-repeat; }
.page-hero.compact { padding-bottom: 32px; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: .2em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.page-hero .lead { font-size: 1.15rem; color: var(--text); opacity: .88; max-width: 640px; margin-bottom: 0; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(to bottom, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); position: relative; padding-bottom: .45em; margin-bottom: .6em; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 28px; }
.narrow .section-title { margin-top: 2.2em; }
.narrow > .section-title:first-child { margin-top: 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two.top { align-items: start; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.two-col { grid-template-columns: 1fr 1fr; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, border-color .2s, background-color .2s; }
.feature:hover, .big-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--surface-2); }
.feature .ico-lg { width: 56px; height: 56px; padding: 13px; border-radius: 16px; color: var(--accent); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); margin-bottom: 14px; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); }

.big-card { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.big-card .ico-lg { width: 60px; height: 60px; padding: 15px; border-radius: 18px; color: var(--accent); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); margin-bottom: 16px; }
.big-card h2 { font-size: 1.6rem; }
.big-card p { color: var(--muted); flex: 1; }

/* ---------- connection box ---------- */
.conn-box { display: grid; gap: 4px; padding: 10px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.conn-box.big { margin-bottom: 14px; }
.conn-box > p { padding: 12px 0 4px; margin: 0; }
.conn-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label ." "value copy"; gap: 2px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.conn-row:last-child { border-bottom: 0; }
.conn-label { grid-area: label; font: 600 .7rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.conn-value { grid-area: value; justify-self: start; min-width: 0; word-break: normal; overflow-wrap: anywhere; font-size: 1.05rem; background: transparent; border: 0; padding: 0; color: var(--text); }
.conn-row .copy { grid-area: copy; }
.status-line { margin: 0 0 8px; }

/* ---------- posts / events ---------- */
.meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.meta .ico { width: 1.05em; height: 1.05em; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.badge .ico { width: .95em; height: .95em; }
.post h3 { margin-bottom: .35em; }
.body { white-space: pre-line; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.event .meta { margin-bottom: 6px; }
.date-badge { display: grid; place-content: center; text-align: center; width: 64px; height: 72px; border-radius: 14px; background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.date-badge strong { font: 700 1.7rem/1 var(--font-display); }
.date-badge span { font: 600 .72rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.event h3 { margin-bottom: .2em; }
.empty { padding: 8px 0; }
.past { margin: 26px 0 14px; }
.past summary { cursor: pointer; font: 500 1.05rem var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
.past .stack { margin-top: 12px; opacity: .72; }

/* ---------- steps, checks, rules ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding: 22px 22px 8px 78px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); font: 700 1.4rem var(--font-display); }
.steps ol { margin: 0 0 12px; padding-left: 1.2em; }
.steps ol li { margin: .3em 0; padding-left: .2em; }
.steps ol li::marker { color: var(--accent); font-weight: 700; }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.callout .ico { width: 34px; height: 34px; color: var(--accent); }
.callout p { flex: 1; margin: 0; min-width: 220px; }

.rules { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: rule; display: grid; gap: 14px; }
.rule { counter-increment: rule; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rule::before { content: counter(rule, decimal-leading-zero); font: 700 2rem/1 var(--font-display); color: var(--accent); opacity: .9; }
.rule h3 { margin-bottom: .25em; }
.rule p { margin: 0; color: var(--muted); white-space: pre-line; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shot { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--bg-2); aspect-ratio: 3 / 2; }
.shot:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:first-child img { object-position: center 12%; }
.shot:hover img { transform: scale(1.04); }
.shot span { position: absolute; left: 14px; bottom: 12px; padding: 4px 14px; border-radius: 999px; background: rgba(var(--bg-rgb), .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); font: 500 .9rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.banners-title { margin-top: 64px; }
.banners { display: grid; gap: 22px; margin-bottom: 20px; }
.banners figure { margin: 0; display: grid; gap: 10px; justify-items: start; }
.banners img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.banner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(4, 4, 10, .92); }
.lightbox img { max-width: min(96vw, 1536px); max-height: 90vh; width: auto; border-radius: 12px; box-shadow: 0 20px 80px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 36px 0 44px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 48px; }
.foot p { margin: 8px 0 0; }
.legal { max-width: 560px; }

/* ---------- forms + admin ---------- */
input, textarea, select { width: 100%; font: 400 1rem var(--font-body); color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .85rem; }
select option { color: #111; }
textarea { resize: vertical; min-height: 72px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; padding: 0; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-label { font: 600 .74rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0 16px; align-items: end; }
.form { display: block; padding: 28px; }
.form-title { font-size: 1.3rem; }
.form-error { color: var(--bad); min-height: 1.4em; margin: 0 0 8px; }
.login { max-width: 460px; margin: 0 auto; padding: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { flex: 1 1 auto; border: 0; background: transparent; color: var(--muted); font: 500 .95rem var(--font-display); letter-spacing: .07em; text-transform: uppercase; padding: .6rem 1rem; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tabs .tab-out { flex: 0 0 auto; margin-left: auto; border: 1px solid var(--line); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.row-actions.space { margin: 0 0 18px; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.row-item .row-actions { margin: 0; }
.rule-edit { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 18px; padding: 14px 16px 6px; }
.rule-edit legend { font: 700 1rem var(--font-display); color: var(--accent); padding: 0 8px; }
.rule-edit .row-actions { margin: 0 0 12px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 120; padding: .75rem 1.3rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--ok); color: var(--text); font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s; }
.toast.err { border-color: var(--bad); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .burger { display: inline-grid; }
  .nav { position: fixed; left: 0; right: 0; top: var(--header-h); flex-direction: column; gap: 2px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; }
  .tools { margin-left: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .brand-sub { display: none; }
  .conn-value { font-size: .95rem; }
  .conn-row .copy .copy-lbl { display: none; }
  .conn-row .copy { padding: .25rem .6rem; }
  .section { padding: 52px 0; }
  .hero-art { height: auto; aspect-ratio: 3 / 2; background-position: center top; }
  .hero-panel { margin-top: -36px; }
  .hero-inner { grid-template-columns: 1fr; padding: 20px; border-radius: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .shot:first-child { aspect-ratio: 3 / 2; }
  .banner-pair, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps > li { padding: 74px 18px 6px; }
  .steps > li::before { left: 18px; top: 18px; }
  .rule { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; }
  .rule::before { font-size: 1.5rem; }
  .row-item { flex-direction: column; align-items: flex-start; }
  .page-hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 44px; }
}
@media (max-width: 420px) {
  .seg button { padding: 0 9px; }
  .tools { gap: 6px; }
  .wrap { width: calc(100% - 28px); }
}
/* ---------- accounts + suggestions ---------- */
.user-slot { position: relative; text-decoration: none; }
.user-slot:hover { color: var(--text); }
.user-slot.signed { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); border-color: transparent; }
.user-initial { font: 700 1.05rem/1 var(--font-display); }

.tabs.small { padding: 4px; margin: 0; flex: none; }
.tabs.small button { padding: .4rem .9rem; font-size: .85rem; }
.tabs.small button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.sg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.sg-toolbar select { width: auto; min-width: 170px; padding: .5rem .8rem; }
.sg-toolbar .btn { margin-left: auto; }
#sgForm { margin-bottom: 22px; }

.sg-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.sg-main { min-width: 0; }
.sg-card h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.sg-card h3 a { color: var(--text); text-decoration: none; }
.sg-card h3 a:hover { color: var(--accent); }
.sg-meta { flex-wrap: wrap; margin-bottom: 4px; }
.sg-comments { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.sg-comments:hover { color: var(--accent); }
.sg-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 700 .7rem var(--font-body); letter-spacing: .07em; text-transform: uppercase; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.st-review { color: #7dd3fc; border-color: rgba(125, 211, 252, .45); }
.st-planned { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.st-done { color: var(--ok); border-color: rgba(74, 222, 128, .5); }
.st-declined { color: var(--bad); border-color: rgba(248, 113, 113, .5); }

.votes { display: grid; gap: 8px; }
.vote { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 66px; min-height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .9rem var(--font-body); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.vote:hover:not(:disabled) { background: var(--surface-2); transform: translateY(-1px); }
.vote:disabled { opacity: .6; cursor: progress; }
.vote.up[aria-pressed="true"] { background: rgba(74, 222, 128, .16); border-color: var(--ok); color: var(--ok); }
.vote.down[aria-pressed="true"] { background: rgba(248, 113, 113, .16); border-color: var(--bad); color: var(--bad); }

.back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }
.sg-detail { padding: 26px; }
.sg-detail-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-bottom: 14px; }
.sg-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 6px 0 0; text-transform: none; letter-spacing: .01em; overflow-wrap: anywhere; }
.sg-body { color: var(--text); font-size: 1.05rem; opacity: .92; }
.admin-reply { display: flex; gap: 14px; margin: 18px 0 10px; padding: 14px 16px; border-radius: 12px; border-left: 4px solid var(--accent); background: rgba(255, 255, 255, .05); }
.admin-reply .ico { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.admin-reply p { margin: 4px 0 0; color: var(--text); }
.comments { margin-top: 34px; }
.comments h3 { font-size: 1.4rem; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment .meta { margin-bottom: 4px; }
.comment .meta strong { color: var(--text); }
.comment .body { color: var(--text); opacity: .9; }
.comment-form { margin-top: 20px; padding: 18px; }
.comment-form textarea { margin-bottom: 8px; }
.link-btn { margin-left: auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--bad); }
.center { text-align: center; margin-top: 22px; }

.login-card { max-width: 520px; margin: 0 auto; padding: 30px; }
.providers { display: grid; gap: 12px; margin-bottom: 20px; }
.btn.provider { min-height: 54px; font-size: 1.05rem; }
.btn.provider-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn.provider-google:hover { background: #f2f2f2; color: #1f1f1f; transform: translateY(-2px); }
.btn.provider-discord { background: #5865f2; color: #fff; }
.btn.provider-discord:hover { background: #4752c4; color: #fff; transform: translateY(-2px); }

#accountRoot { display: grid; gap: 18px; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); font: 700 1.7rem var(--font-display); flex: none; }
.profile-head h2 { margin: 0; text-transform: none; }
.profile-head p { margin: 0; }
.method-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.method-row:first-of-type { border-top: 0; }
.method-row .row-actions { margin: 0; }
.notice { margin: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.notice.bad { border-color: var(--bad); color: var(--bad); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

@media (max-width: 720px) {
  .sg-card { grid-template-columns: 1fr; gap: 12px; }
  .sg-card .votes, .sg-detail-top .votes { grid-auto-flow: column; justify-content: start; }
  .sg-detail-top { grid-template-columns: 1fr; }
  .sg-detail { padding: 18px; }
  .sg-toolbar .btn { margin-left: 0; width: 100%; }
  .sg-toolbar select { flex: 1; }
  .method-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* spacing polish: admin moderation cards + delete button in suggestion detail */
.card.form > .body { margin: .45rem 0 1rem; }
.card.form > .meta { margin-bottom: .2rem; }
.sg-detail > .btn { margin-top: 1.1rem; }

/* keep the header on one line in every language */
.nav a { white-space: nowrap; }
.site-header .brand-sub { white-space: nowrap; }
@media (max-width: 1360px) { .site-header .brand-sub { display: none; } }

/* moderation */
.sg-status.st-pending { background: rgba(255, 180, 60, .16); color: #ffcf7a; border-color: rgba(255, 180, 60, .45); }
.sg-pending { border-style: dashed; }
.sg-mine-title { font-size: 1.05rem; margin: 0 0 .6rem; color: var(--muted, inherit); }
#sgMine { margin-bottom: 1.4rem; }
.pending-card { border-color: rgba(255, 180, 60, .5); }
.sg-status { white-space: nowrap; }
#sgNotice { margin: 0 0 1.2rem; }
.sg-mine-title { margin-top: 0; }
#sgMine { display: grid; gap: .7rem; }
#sgMine[hidden] { display: none; }

.comment-pending { opacity: .85; border-left: 3px solid rgba(255, 180, 60, .6); padding-left: .8rem; }
.comment-form .hint { margin: .2rem 0 .6rem; }

/* admin: content editors */
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.stack-sm { display: grid; gap: .6rem; align-content: start; }
.img-row, .gal-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.thumb-preview { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.text-row legend code { font-size: .85rem; color: var(--accent); }
.text-row textarea { min-height: 3.2rem; }
.ft-head { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.ft-head .field { flex: 1 1 180px; }
.ft-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--accent); }
.ft-icon .ico { width: 24px; height: 24px; }
@media (max-width: 720px) { .img-row, .gal-row { grid-template-columns: 1fr; } .thumb-preview { max-width: 320px; } }
.sg-status.st-done { background: rgba(80, 200, 120, .16); color: #7fe3a0; border-color: rgba(80, 200, 120, .45); }
.sg-status.st-planned { background: rgba(90, 167, 255, .16); color: #9cc9ff; border-color: rgba(90, 167, 255, .45); }
.sg-status.st-review { background: rgba(255, 180, 60, .12); color: #ffd08a; border-color: rgba(255, 180, 60, .35); }
.sg-status.st-declined { background: rgba(255, 90, 90, .14); color: #ff9a9a; border-color: rgba(255, 90, 90, .4); }

/* ---------- typography: soft "bevel" headings (Exo 2 + Source Sans 3) ---------- */
:root { --title-fill: linear-gradient(180deg, #ffffff 0%, #fff1d6 46%, var(--accent-2) 54%, var(--accent) 100%); }
.nav a, .btn, .tabs button { font-family: var(--font-body); font-weight: 800; letter-spacing: .04em; }
h1, h2, .hero-tag, .brand-name { font-weight: 800; letter-spacing: .04em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1, h2, .hero-tag, .brand-name {
    background: var(--title-fill); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)) drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
  }
}
