/* The Lost Continent – Mu: the website's look (website/mockups/01–08). Dark only – the design is a night scene.
   Frames, buttons, ribbons and badges are drawn here (CSS + inline SVG); images only for the logo, the hero, the
   server cards, portraits and news (web/site/assets/, each optional – a painted gradient stands in). */

/* Cinzel (SIL OFL 1.1, assets/fonts/OFL-Cinzel.txt) – hosted here, no third-party font service. */
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("/assets/fonts/cinzel-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("/assets/fonts/cinzel-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("/assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 700;
  src: url("/assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 700;
  src: url("/assets/fonts/cinzel-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink: #0d0b0a;
  --stone: #17130f;
  --stone-2: #1f1a14;
  --stone-3: #2a231b;
  --parchment: #e9dcc0;
  --text: #e4d8bf;
  --muted: #a89a80;
  --gold: #c9a24a;
  --gold-light: #f2d48a;
  --gold-dark: #7d5d22;
  --crimson: #8e1b1b;
  --crimson-light: #c23a2c;
  --arcane: #4b8df0;
  --green: #3fb34f;
  --amber: #e0a52c;
  --grey: #8b8b8b;
  --radius: 4px;
  --display: "Cinzel", "Trajan Pro", "Cormorant SC", "Times New Roman", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --width: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.55 var(--body);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(201, 162, 74, 0.08), transparent 60%),
    linear-gradient(rgba(13, 11, 10, 0.78), rgba(13, 11, 10, 0.78)),
    url("/assets/stone-tile.jpg"),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #120f0c, #0b0908);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--arcane); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; margin: 0 0 0.5em; }
.gold-text {
  background: linear-gradient(180deg, #fff1c4 0%, var(--gold-light) 35%, var(--gold) 65%, #8d6624 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.muted { color: var(--muted); }
.wrap { width: min(var(--width), 100% - 32px); margin: 0 auto; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.97), rgba(13, 11, 10, 0.88));
  border-bottom: 1px solid var(--gold-dark);
  box-shadow: 0 1px 0 rgba(242, 212, 138, 0.15), 0 6px 18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-light); text-decoration: none !important; }
.brand img { height: 48px; width: auto; }
.brand picture { display: block; }
.brand .brand-text { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: 0.06em; }
.brand .brand-text small { display: block; font-size: 11px; letter-spacing: 0.18em; }
.brand .brand-text strong { display: block; font-size: 26px; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav a {
  color: var(--parchment); font-family: var(--display); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--gold-light); }
.nav a.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang-picker {
  width: auto; padding: 5px 8px; font-size: 13px; background: rgba(0, 0, 0, 0.45); color: var(--text);
  border: 1px solid var(--gold-dark); border-radius: 2px;
}
.discord-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.discord-card h3 { margin: 0 0 4px; }
.discord-card p { margin: 0; }
.btn.menu-toggle { display: none; }

/* ---- buttons ---- */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; cursor: pointer; white-space: nowrap;
  font: 700 14px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none !important;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  transition: filter 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; filter: grayscale(1) brightness(0.6); }
.btn-gold {
  color: #2a1906;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(180deg, #f5d98b 0%, #d7a948 45%, #a8781f 70%, #6f4c14 100%);
  box-shadow: inset 0 0 0 1px #fbe7a8;
}
.btn-gold:hover { filter: brightness(1.12) drop-shadow(0 0 8px rgba(242, 212, 138, 0.45)); }
.btn-outline {
  color: var(--gold-light);
  background:
    linear-gradient(var(--stone-2), var(--stone-2)) padding-box,
    linear-gradient(180deg, var(--gold-light), var(--gold-dark)) border-box;
  border: 1px solid transparent;
}
.btn-outline:hover { filter: brightness(1.25); }
.btn-red {
  color: #ffe9d6;
  background: linear-gradient(180deg, #c3402e, #7d1616 70%, #561010);
  box-shadow: inset 0 0 0 1px #e8806c;
}
.btn-small { min-height: 34px; padding: 0 14px; font-size: 12px; --cut: 7px; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; color: var(--arcane); cursor: pointer; font: inherit; padding: 0; }

/* ---- frames (the ornate panels) ---- */
.frame {
  position: relative;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 74, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(31, 26, 20, 0.97), rgba(19, 16, 12, 0.97));
  border: 1px solid var(--gold-dark);
  box-shadow: inset 0 0 0 1px rgba(242, 212, 138, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.55), 0 10px 28px rgba(0, 0, 0, 0.6);
}
.frame::before {
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23d9b25f' stroke-width='2'%3E%3Cpath d='M2 26V2h24'/%3E%3Cpath d='M7 20V7h13' stroke-width='1.2' stroke='%23f2d48a'/%3E%3C/g%3E%3Cpath d='M2 2l9 3-6 6z' fill='%23f2d48a'/%3E%3C/svg%3E") top left / 40px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg transform='matrix(-1 0 0 1 40 0)'%3E%3Cg fill='none' stroke='%23d9b25f' stroke-width='2'%3E%3Cpath d='M2 26V2h24'/%3E%3Cpath d='M7 20V7h13' stroke-width='1.2' stroke='%23f2d48a'/%3E%3C/g%3E%3Cpath d='M2 2l9 3-6 6z' fill='%23f2d48a'/%3E%3C/g%3E%3C/svg%3E") top right / 40px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg transform='matrix(1 0 0 -1 0 40)'%3E%3Cg fill='none' stroke='%23d9b25f' stroke-width='2'%3E%3Cpath d='M2 26V2h24'/%3E%3Cpath d='M7 20V7h13' stroke-width='1.2' stroke='%23f2d48a'/%3E%3C/g%3E%3Cpath d='M2 2l9 3-6 6z' fill='%23f2d48a'/%3E%3C/g%3E%3C/svg%3E") bottom left / 40px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg transform='rotate(180 20 20)'%3E%3Cg fill='none' stroke='%23d9b25f' stroke-width='2'%3E%3Cpath d='M2 26V2h24'/%3E%3Cpath d='M7 20V7h13' stroke-width='1.2' stroke='%23f2d48a'/%3E%3C/g%3E%3Cpath d='M2 2l9 3-6 6z' fill='%23f2d48a'/%3E%3C/g%3E%3C/svg%3E") bottom right / 40px no-repeat;
}
.frame.gem::after {
  content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, #ff7a6a, #b3121a 55%, #5a0508);
  box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(255, 70, 50, 0.6);
}
.frame > h2:first-child, .frame > h3:first-child, .frame-title { color: var(--gold-light); }
.frame-red { background: linear-gradient(180deg, rgba(70, 14, 12, 0.95), rgba(30, 10, 8, 0.97)); border-color: #8c3b22; }

/* ---- section ribbons ("SERVERS", "VOTE FOR US") ---- */
.ribbon {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 56px 0 22px;
}
.ribbon h2 {
  margin: 0; padding: 8px 46px; font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--parchment);
  background: linear-gradient(180deg, #9d2620, #5f0f0d);
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.ribbon::before, .ribbon::after {
  content: ""; flex: 1; height: 1px; max-width: 360px;
  background: linear-gradient(90deg, transparent, var(--gold) 70%, var(--gold-light));
}
.ribbon::after { transform: scaleX(-1); }

/* ---- badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 9px; font-size: 13px; font-weight: 600;
  border-radius: 3px; border: 1px solid; white-space: nowrap;
}
.badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-online { color: #7dff8a; border-color: #2f7d35; background: linear-gradient(180deg, #154a1a, #0b2a0e); }
.badge-busy { color: #ffcf5a; border-color: #8a6516; background: linear-gradient(180deg, #4a3608, #2a1e05); }
.badge-offline { color: #c9c9c9; border-color: #5c5c5c; background: linear-gradient(180deg, #2c2c2c, #1a1a1a); }
.badge-hardcore { color: #ffd6cc; border-color: #b23a2a; background: linear-gradient(180deg, #6b1410, #3a0a08); }
.badge-hardcore::before { content: "☠"; width: auto; height: auto; background: none; box-shadow: none; color: #ff7b6a; font-size: 13px; }
.badge-ingame { color: #7dff8a; border-color: #2f7d35; background: #0f2f12; }

/* ---- hero ---- */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.1) 30%, rgba(10, 8, 7, 0.55) 100%),
    linear-gradient(0deg, rgba(10, 8, 7, 0.95), transparent 35%),
    url("/assets/hero-wide.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 30% 30%, #6b3f4d 0%, transparent 45%),
    radial-gradient(ellipse at 75% 70%, rgba(40, 160, 200, 0.35), transparent 40%),
    linear-gradient(180deg, #2b2547 0%, #4a3550 35%, #1a2236 70%, #0d0b0a 100%);
  border-bottom: 1px solid var(--gold-dark);
}
.hero-content { margin-left: auto; width: min(620px, 100%); text-align: center; padding: 64px 16px; }
.hero-logo { max-width: min(520px, 90%); margin: 0 auto 8px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7)); }
.hero h1, .page-hero h1 { filter: drop-shadow(0 2px 3px #000) drop-shadow(0 0 12px rgba(0, 0, 0, 0.8)); }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; margin-bottom: 12px; }
.hero p { font-size: 19px; color: var(--parchment); font-style: italic; margin: 0 0 26px; text-shadow: 0 2px 6px #000; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.page-hero {
  padding: 46px 0 34px; text-align: center;
  background:
    linear-gradient(0deg, var(--ink), rgba(13, 11, 10, 0.35) 70%),
    url("/assets/hero-wide.jpg") center 30% / cover no-repeat,
    linear-gradient(180deg, #2b2547, #1a2236 70%, #0d0b0a);
  border-bottom: 1px solid var(--gold-dark);
}
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 0; }
.page-hero p { margin: 8px 0 0; color: var(--parchment); }

/* ---- server cards ---- */
.servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: 22px; }
.server-card { padding: 0; overflow: hidden; }
.server-card .art {
  height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 12px 12px; text-align: center;
  background: linear-gradient(0deg, rgba(16, 13, 10, 0.95), transparent 70%), var(--art, linear-gradient(160deg, #3a3348, #1b1a24));
  background-size: cover; background-position: center;
}
.server-card h3 { font-size: 30px; margin: 0; text-shadow: 0 2px 8px #000; }
.server-card .facts { display: flex; justify-content: space-around; padding: 12px; border-top: 1px solid var(--gold-dark); font-family: var(--display); }
.server-card.main { --art: url("/assets/server-main.jpg"), linear-gradient(160deg, #4a2e22, #1d1712); }
.server-card.classic { --art: url("/assets/server-classic.jpg"), linear-gradient(160deg, #273650, #12161f); }
.server-card.hardcore { --art: url("/assets/server-hardcore.jpg"), linear-gradient(160deg, #6a1712, #1e0907); border-color: #8c3b22; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table.ranking { width: 100%; border-collapse: collapse; font-size: 15px; }
table.ranking th {
  font-family: var(--display); font-weight: 600; color: var(--parchment); text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--gold-dark); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
table.ranking td { padding: 7px 10px; border-bottom: 1px solid rgba(125, 93, 34, 0.35); white-space: nowrap; }
table.ranking tr:hover td { background: rgba(201, 162, 74, 0.06); }
table.ranking td.num, table.ranking th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-medal { display: inline-block; width: 28px; text-align: center; font-family: var(--display); font-weight: 700; }
.rank-1 { color: #ffd54a; text-shadow: 0 0 8px rgba(255, 213, 74, 0.6); }
.rank-2 { color: #dfe5ee; }
.rank-3 { color: #e09a5a; }
.name-link { color: #8fc0ff; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  font: 600 14px var(--display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  color: var(--parchment); padding: 10px 20px; border: 1px solid var(--gold-dark);
  background: linear-gradient(180deg, #2a231b, #17130f);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.tab.active { color: #fff3d6; background: linear-gradient(180deg, #a3271f, #5c0f0c); border-color: var(--gold); }

/* ---- grids and cards ---- */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
.news-list { display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid rgba(125, 93, 34, 0.35); }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item .thumb {
  aspect-ratio: 16 / 9; border: 1px solid var(--gold-dark); background: var(--art, linear-gradient(135deg, #2d2638, #15121a)) center / cover;
}
.news-item time { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.news-item h3 { font-size: 17px; margin: 2px 0 4px; color: var(--gold-light); }
.news-item p { margin: 0; font-size: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.step .num {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--gold); font: 700 20px var(--display); color: var(--gold-light);
}
.step .icon { flex: none; font-size: 34px; }
.step h3 { margin: 0; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.step p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.vote-card { text-align: center; }
.vote-card h3 { color: #8fc0ff; margin-bottom: 4px; text-transform: uppercase; }
.vote-card p { margin: 0 0 12px; font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; }

/* ---- forms ---- */
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 5px; }
input, textarea, select {
  width: 100%; padding: 11px 13px; color: var(--text); font: inherit;
  background: rgba(0, 0, 0, 0.45); border: 1px solid var(--gold-dark); border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(242, 212, 138, 0.06);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); vertical-align: middle; margin: 0 8px 0 0; }
.check { display: flex; align-items: center; color: var(--text); }
.form-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.message { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.message.error { color: #ff9c8a; }
.message.ok { color: #9fe69f; }
.code-input { letter-spacing: 0.6em; font-size: 24px; text-align: center; font-family: var(--display); }
.altcha {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--gold-dark); background: rgba(0, 0, 0, 0.35); font-size: 14px;
}
.altcha .spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px dotted var(--gold); }
.altcha.working .spinner { animation: spin 1s linear infinite; }
.altcha.done .spinner { border: 0; background: var(--green); box-shadow: 0 0 8px var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- account ---- */
.auth { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; }
.panel-layout { display: grid; grid-template-columns: 210px 1fr 300px; gap: 22px; align-items: start; }
.side-menu { padding: 10px; }
.side-menu button, .side-menu a {
  display: flex; gap: 10px; align-items: center; width: 100%; padding: 11px 12px; margin: 2px 0; cursor: pointer;
  font: 600 15px var(--display); color: var(--parchment); background: none; border: 1px solid transparent; text-align: left;
}
.side-menu button.active, .side-menu button:hover, .side-menu a.active, .side-menu a:hover { text-decoration: none; border-color: var(--gold-dark); background: linear-gradient(90deg, rgba(158, 38, 32, 0.55), transparent); color: var(--gold-light); }
.characters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.character-card { padding: 14px; cursor: pointer; display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.character-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(242, 212, 138, 0.25); }
.portrait {
  position: relative; overflow: hidden; width: 72px; height: 72px; flex: none; border: 1px solid var(--gold-dark);
  background: radial-gradient(circle at 50% 35%, #4d3c2a, #120e0b);
  display: grid; place-items: center; font: 700 26px var(--display); color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(242, 212, 138, 0.15);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-large { width: 168px; height: 168px; font-size: 60px; border-color: var(--gold); }
.detail-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.character-card h3 { margin: 0; font-size: 18px; color: var(--gold-light); }
.character-card .line { font-size: 13px; color: var(--muted); }
.detail { margin-top: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 16px; }
.chat-lines { list-style: none; padding: 0; margin: 0 0 10px; max-height: 260px; overflow-y: auto; font-size: 14px; }
.chat-lines li { padding: 3px 0; }
.chat-lines time { color: var(--muted); margin-right: 6px; font-size: 12px; }
.chat-lines b { color: #8fc0ff; font-weight: 600; margin-right: 6px; }
.letters { list-style: none; padding: 0; margin: 0 0 10px; font-size: 14px; }
.letters li { padding: 6px 0; border-bottom: 1px solid rgba(125, 93, 34, 0.35); cursor: pointer; }
.letters li.unread::before { content: "●"; color: var(--arcane); margin-right: 6px; }
.letters .letter-text { margin: 6px 0 0; white-space: pre-wrap; color: var(--parchment); cursor: auto; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(125, 93, 34, 0.3); font-size: 15px; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: #333; border: 1px solid #555; cursor: pointer; transition: 0.2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #ccc; transition: 0.2s; }
.switch input:checked + span { background: #1f6e2a; border-color: var(--green); }
.switch input:checked + span::after { left: 22px; background: #eaffea; }
.side-box + .side-box { margin-top: 20px; }
.qr { background: #fff; padding: 8px; display: inline-block; margin: 8px 0; }

/* ---- download & guide ---- */
.platform { text-align: center; }
.platform .os-icon { font-size: 44px; line-height: 1; margin-bottom: 8px; color: var(--gold-light); }
.notice { display: flex; gap: 14px; align-items: center; margin: 26px 0; }
.notice .mark { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--amber); color: var(--amber); display: grid; place-items: center; font: 700 20px var(--display); }
.guide-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.guide-tile { display: flex; gap: 14px; align-items: center; color: var(--text); text-decoration: none !important; }
.guide-tile:hover { border-color: var(--gold); }
.guide-tile .icon { font-size: 34px; }
.guide-tile h3 { margin: 0; color: var(--gold-light); font-size: 18px; }
.guide-tile p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.guide { max-width: 860px; margin: 0 auto; }
.guide h2 { color: var(--gold-light); margin-top: 1.6em; }
.guide h3 { color: var(--parchment); margin-top: 1.2em; }
.guide table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; }
.guide td, .guide th { border: 1px solid rgba(125, 93, 34, 0.5); padding: 6px 8px; text-align: left; vertical-align: top; }
.guide th { color: var(--gold-light); font-family: var(--display); }
.guide code { background: rgba(0, 0, 0, 0.5); padding: 1px 5px; border: 1px solid rgba(125, 93, 34, 0.5); font-size: 0.92em; }

/* ---- podium ---- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.podium .frame { display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: center; }
.podium .place { font: 700 40px var(--display); text-align: center; }
.podium h3 { margin: 0; font-size: 22px; color: var(--gold-light); }

/* ---- footer ---- */
.site-footer { margin-top: 70px; padding: 26px 0 40px; border-top: 1px solid var(--gold-dark); text-align: center; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; justify-content: center; margin-bottom: 8px; }
.site-footer p { margin: 0; font-style: italic; }

/* ---- small screens ---- */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .panel-layout { grid-template-columns: 1fr; }
  .side-menu { display: flex; overflow-x: auto; gap: 4px; }
  .side-menu button, .side-menu a { width: auto; white-space: nowrap; }
  .podium { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .btn.menu-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px;
    background: rgba(13, 11, 10, 0.98); border-bottom: 1px solid var(--gold-dark);
  }
  .nav.open { display: flex; }
  .header-actions .btn-outline { display: none; }
  .header-actions .btn { padding: 0 12px; font-size: 11px; }
  .lang-picker { max-width: 92px; font-size: 12px; }
  .brand .brand-text strong { font-size: 20px; }
  .hero {
    min-height: 600px; align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(10, 8, 7, 0.55), transparent 45%),
      linear-gradient(0deg, rgba(10, 8, 7, 0.95), transparent 30%),
      url("/assets/hero-tall.jpg") center bottom / cover no-repeat,
      linear-gradient(180deg, #2b2547 0%, #1a2236 70%, #0d0b0a 100%);
  }
  .portrait-large { width: 110px; height: 110px; }
  .hero-content { margin: 0 auto; padding-top: 40px; }
  .news-item { grid-template-columns: 1fr; }
  .ribbon h2 { font-size: 18px; padding: 7px 28px; }
  .frame { padding: 18px; }
  table.ranking .hide-small { display: none; }
}
