/* ===== Flumen World: landing (flumen.world) and its pages =====
   Dark + orange, the same palette and fonts as the player cabinet (my.flumen.world). */

:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --border: #2a2a31;
  --text: #ececef;
  --muted: #8d8d97;
  --accent: #ff9c00;
  --accent-hover: #ffb23a;
  --accent-soft: rgba(255, 156, 0, 0.12);
  --success: #22c55e;
  --danger: #ef4444;
  --heading: "Oswald", Impact, "Arial Narrow", sans-serif;
  --body: "Roboto", Arial, sans-serif;
  --radius: 14px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; font-family: var(--heading); font-weight: 500; letter-spacing: 0.5px; line-height: 1.15; }
p { margin: 0 0 14px; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { font: 600 24px/1 var(--heading); letter-spacing: 1px; color: var(--accent); white-space: nowrap; }
.brand b { color: var(--text); font-weight: 600; }
.brand:hover { color: var(--accent); }

.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 500; }
.langs a { padding: 4px 7px; border-radius: 6px; color: var(--muted); }
.langs a:hover { color: var(--text); }
.langs a.active { color: var(--accent); background: var(--accent-soft); }

.menu-toggle { display: none; }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 500 15px/1.2 var(--body);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-hover); color: #111; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6d78f5; color: #fff; }
.btn-youtube { background: #e62117; color: #fff; }
.btn-youtube:hover { background: #f2352b; color: #fff; }

/* ===== hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 75% 20%, rgba(255, 156, 0, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(255, 156, 0, 0.06), transparent 70%),
    var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 18px 0 18px; font-size: clamp(48px, 8vw, 96px); letter-spacing: 2px; text-transform: uppercase; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 620px; font-size: 19px; color: #c9c9d1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(23, 23, 27, 0.7);
  font-size: 15px;
  color: var(--muted);
}
.online-pill b { color: var(--text); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--success); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== sections ===== */
.section { padding: 84px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); text-transform: uppercase; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }

/* ===== server cards ===== */
.servers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.server {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.server-map {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e1e23, #121215);
  overflow: hidden;
}
.server-map img { width: 100%; height: 100%; object-fit: cover; }
.server-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(17, 17, 20, 0.95));
  pointer-events: none;
}
.no-image {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #4a4a55;
  font: 500 15px var(--heading);
  letter-spacing: 3px;
  text-transform: uppercase;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px);
}
.no-image svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.server-map .badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.server-map .map-name { position: absolute; left: 20px; bottom: 14px; z-index: 1; font: 500 22px var(--heading); letter-spacing: 1px; }
.server-map .map-label { display: block; font: 12px var(--body); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.server-body { display: flex; flex-direction: column; gap: 16px; padding: 20px; flex: 1; }
.server-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.server-title h3 { font-size: 26px; text-transform: uppercase; }
.server-title .game { font-size: 13px; color: var(--muted); }
.server-desc { margin: 0; font-size: 15px; color: #c9c9d1; }
.server-desc + .addr { margin-top: auto; } /* the address and the players at the bottom of both cards */

.addr { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.addr code { flex: 1; font: 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  font: 500 13px var(--body); cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--muted); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }

.players-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; color: var(--muted); }
.players-row b { font: 500 22px var(--heading); color: var(--text); }
.bar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ff7a00, var(--accent)); transition: width 0.6s ease; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font: 600 12px var(--body); letter-spacing: 1px; text-transform: uppercase;
  background: rgba(17, 17, 20, 0.85); border: 1px solid var(--border); color: var(--muted);
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-online { color: var(--success); border-color: rgba(34, 197, 94, 0.4); }
.badge-offline { color: var(--danger); border-color: rgba(239, 68, 68, 0.4); }

.plist summary { cursor: pointer; font-size: 14px; color: var(--muted); list-style: none; }
.plist summary::-webkit-details-marker { display: none; }
.plist summary::before { content: '▸ '; }
.plist[open] summary::before { content: '▾ '; }
.plist summary:hover { color: var(--text); }
.plist table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 14px; }
.plist th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.plist td { padding: 6px 8px; border-bottom: 1px solid #1f1f25; overflow-wrap: anywhere; }
.plist td:not(:first-child), .plist th:not(:first-child) { text-align: right; white-space: nowrap; }

/* ===== features ===== */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: #c9c9d1; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.feature .icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.feature .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

/* ===== call to action panels ===== */
.panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px; border-radius: 18px; border: 1px solid var(--border);
  background: radial-gradient(ellipse at 100% 0%, rgba(255, 156, 0, 0.14), transparent 60%), var(--surface);
}
.panel h2 { font-size: 32px; text-transform: uppercase; margin-bottom: 8px; }
.panel p { margin: 0; color: var(--muted); max-width: 560px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.panel + .panel { margin-top: 20px; }

/* ===== inner pages ===== */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 60% 80% at 80% 0%, rgba(255, 156, 0, 0.1), transparent 70%); }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); text-transform: uppercase; margin-top: 10px; }
.page-hero p { margin: 14px 0 0; max-width: 680px; color: #c9c9d1; font-size: 17px; }

.card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.card + .card { margin-top: 20px; }
.card > h2 { font-size: 26px; text-transform: uppercase; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }

/* donate: payment options */
.pay-list { display: grid; gap: 14px; }
.pay {
  display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 20px;
  padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
}
.pay-brand { display: inline-flex; align-items: center; gap: 8px; font: 600 18px var(--heading); letter-spacing: 1px; }
.pay-brand svg { width: 20px; height: 20px; fill: currentColor; }
.pay-brand-patreon { color: #ff5a4e; }
.pay-brand-mono { color: #fff; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.pay-currency { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.pay-info b { display: block; margin-bottom: 2px; }
.pay-info span { font-size: 14px; color: var(--muted); }
.btn-patreon { background: #ff424d; color: #fff; }
.btn-patreon:hover { background: #ff5c66; color: #fff; }
.btn-mono { background: #fff; color: #111; }
.btn-mono:hover { background: #e9e9e9; color: #111; }
.flag-ua { display: inline-block; width: 18px; height: 12px; vertical-align: -1px; border-radius: 2px; background: linear-gradient(#0057b7 50%, #ffd700 50%); }

/* wall of glory */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tab { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 500; }
.tab:hover { color: var(--text); }
.tab.active, .tab.active:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

#glory-sponsors { text-align: center; }
.glory-sponsors-names { margin: 10px 0 0; font: 500 22px var(--heading); letter-spacing: 1px; color: var(--accent); }
.glory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.glory-block { padding: 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.glory-title { margin-bottom: 14px; font: 500 20px var(--heading); letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.glory-note { padding: 18px 0; text-align: center; color: var(--muted); }
.glory-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.glory-table th, .glory-table td { padding: 8px 8px; text-align: right; }
.glory-table thead th { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.glory-table td:nth-child(2), .glory-table th:nth-child(2) { text-align: left; width: 46%; overflow-wrap: anywhere; }
.glory-table th:first-child, .glory-table td:first-child { width: 40px; text-align: center; }
.glory-table tbody tr { border-bottom: 1px solid #26262c; }
.glory-table tbody tr:last-child { border-bottom: 0; }
.glory-table tbody th { font-weight: 600; color: var(--muted); }
.glory-table tbody tr:nth-child(-n+3) td:nth-child(2) { font-weight: 600; }
.glory-table tbody tr:nth-child(1) th, .glory-table tbody tr:nth-child(1) td:nth-child(2) { color: #ffd23f; }
.glory-table tbody tr:nth-child(2) th, .glory-table tbody tr:nth-child(2) td:nth-child(2) { color: #d9dbe3; }
.glory-table tbody tr:nth-child(3) th, .glory-table tbody tr:nth-child(3) td:nth-child(2) { color: #e0995e; }

/* legal pages */
.legal { max-width: 820px; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal h3 { margin: 28px 0 10px; font-size: 22px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal p, .legal li { color: #c9c9d1; }
.legal code { padding: 1px 6px; border-radius: 4px; background: var(--surface-2); }

/* ===== footer ===== */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ===== mobile ===== */
@media (max-width: 900px) {
  .servers, .about { grid-template-columns: minmax(0, 1fr); }
  .about { gap: 32px; }
}

@media (max-width: 760px) {
  .site-header .container { height: 60px; gap: 12px; }
  .menu-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto;
    border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav, .header-right { display: none; }
  /* Open: the links and the account buttons drop down under the bar */
  .site-header.open .container { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 16px; }
  .site-header.open .brand { line-height: 40px; }
  .site-header.open .nav { display: flex; flex-direction: column; flex-basis: 100%; order: 3; }
  .site-header.open .header-right { display: flex; flex-wrap: wrap; flex-basis: 100%; order: 4; margin-left: 0; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 60px 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .pay { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .panel { padding: 24px; }
  .container { padding: 0 16px; }
}
