:root {
  --bg: #121416;
  --bg2: #1a1d1f;
  --panel: #202427;
  --line: #2f3539;
  --olive: #6b7a3a;
  --olive-2: #8a9a4b;
  --sand: #c8b98a;
  --text: #e7e6df;
  --muted: #9aa09a;
  --pink: #ff6fae;
  --pink-2: #e2508f;
  --blue: #3d8bff;
  --radius: 10px;
  --font-head: 'Black Ops One', 'Rubik', system-ui, sans-serif;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0);
  background-size: 22px 22px;
}
a { color: var(--pink); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.error-text { color: #ff8080; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(14px, 4vw, 40px); background: rgba(18,20,22,.72); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; gap: 8px; align-items: center; font-family: var(--font-head); color: var(--text); text-decoration: none; letter-spacing: 1px; }
.topbar nav { display: flex; gap: clamp(10px, 3vw, 26px); }
.topbar nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; opacity: .85; }
.topbar nav a:hover { color: var(--pink); opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  padding: 100px clamp(20px, 6vw, 96px) clamp(80px, 14vh, 150px); background: #0b0c0d; }
.hero-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer-bg { inset: -6% -4% -10%; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block;
  filter: saturate(1.05) contrast(1.06) brightness(.92); animation: bgIn 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes bgIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }

/* Туман */
.fog { position: absolute; left: 0; width: 200%; background: url(../assets/fog.webp) repeat-x; background-size: 50% 100%; will-change: transform; }
.fog-back { bottom: 18%; height: 42%; opacity: .32; animation: drift 120s linear infinite; }
.fog-front { bottom: -10%; height: 46%; opacity: .5; animation: drift 70s linear infinite; background-image: url(../assets/fog-warm.webp); }
.fog-front2 { bottom: -18%; height: 36%; opacity: .38; animation: drift 46s linear infinite reverse; background-image: url(../assets/fog-warm.webp); }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

.embers { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Маскот */
.layer-mascot { inset: auto 0 0 0; height: 100%; }
.mascot-wrap { position: absolute; right: clamp(10px, 7vw, 140px); bottom: -2%; height: min(76vh, 780px); aspect-ratio: 844 / 992;
  animation: mascotIn 1.6s .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mascotIn { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
.mascot { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  filter: brightness(.7) contrast(1.1) saturate(.72)
          drop-shadow(-2px -1px 1px rgba(255,150,70,.55)) drop-shadow(-10px 0 22px rgba(255,110,40,.22)); }
.mascot-grade { position: absolute; inset: 0;
  -webkit-mask: url(../assets/mascot.webp) bottom / contain no-repeat; mask: url(../assets/mascot.webp) bottom / contain no-repeat;
  background:
    radial-gradient(ellipse 80% 50% at 15% 85%, rgba(255,120,40,.55), transparent 60%),
    linear-gradient(200deg, rgba(20,34,48,.55) 0%, rgba(20,30,40,.1) 45%, rgba(255,110,40,.25) 100%);
  mix-blend-mode: soft-light; }
.mascot-shadow { position: absolute; left: 12%; right: 12%; bottom: 1%; height: 7%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.75), transparent 70%); filter: blur(6px); }

/* Свет, виньетка, зерно */
.hero-shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,9,10,.82) 0%, rgba(8,9,10,.55) 28%, rgba(8,9,10,.12) 55%, transparent 70%),
    linear-gradient(0deg, rgba(8,9,10,.6) 0%, transparent 35%); }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 55% 45%, transparent 45%, rgba(0,0,0,.7) 100%); }
.hero-grain { position: absolute; inset: -50%; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.hero-fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 22vh; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(18,20,22,0), var(--bg) 92%); }

/* Текст */
.hero-content { position: relative; z-index: 2; max-width: min(760px, 56vw); }
.hero-content > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero-content > :nth-child(2) { animation-delay: .15s; } .hero-content > :nth-child(3) { animation-delay: .3s; }
.hero-content > :nth-child(4) { animation-delay: .45s; } .hero-content > :nth-child(5) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
.hero-badge { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 12px; letter-spacing: 3px; color: rgba(231,230,223,.6); text-transform: uppercase; line-height: 1.5; }
.hero-badge b { color: var(--sand); font-weight: 500; }
.hero-badge .patch { width: 72px; height: 72px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.7)); }
.title { font-family: var(--font-head); font-weight: 400; font-size: clamp(50px, 7.6vw, 124px); line-height: .9; margin: 0 0 14px; display: inline-block; letter-spacing: .04em;
  background: linear-gradient(180deg, #fbf6ea 0%, #e9dcc0 55%, #b9a57d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.65)); }
.tagline { font-size: clamp(17px, 1.7vw, 22px); color: rgba(240,232,214,.85); margin: 0 0 28px; font-weight: 400; letter-spacing: .01em;
  padding-left: 14px; border-left: 3px solid var(--pink); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: rgba(10,12,12,.45); border-color: rgba(231,230,223,.35); backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { border-color: var(--sand); background: rgba(10,12,12,.65); }
.hero .btn-pink { box-shadow: 0 10px 30px -8px rgba(255,111,174,.6); }
.hero-meta { margin: 22px 0 0; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: rgba(231,230,223,.55); }
.hero-meta b { color: var(--text); font-size: 15px; letter-spacing: 1px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(231,230,223,.4); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--sand); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 760px) {
  .hero { align-items: flex-start; padding-top: 92px; padding-bottom: 0; }
  .hero-content { text-align: center; margin: 0 auto; max-width: 100%; }
  .hero .btn { padding: 12px 16px; font-size: 14px; }
  .cta { flex-wrap: nowrap; gap: 10px; }
  .hero-badge { justify-content: center; text-align: left; margin-bottom: 12px; }
  .hero-badge .patch { width: 54px; height: 54px; }
  .tagline { border-left: 0; padding-left: 0; margin-bottom: 20px; }
  .cta { justify-content: center; }
  .title { font-size: clamp(44px, 13vw, 64px); }
  .hero-meta { margin-top: 14px; }
  .mascot-wrap { right: 50%; transform: translateX(50%); height: min(46svh, 420px); bottom: 3%; animation: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,9,10,.8) 0%, rgba(8,9,10,.5) 40%, rgba(8,9,10,.05) 62%, rgba(8,9,10,.4) 100%); }
  .scroll-cue { display: none; }
  .hero-bg { object-position: 62% 50%; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-family: var(--font);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 15px; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: var(--pink); color: #1a0b12; }
.btn-pink:hover { background: #ff86bc; }
.btn-ghost { border-color: var(--olive-2); color: var(--text); background: rgba(107,122,58,.18); }
.btn-ghost:hover { background: rgba(107,122,58,.35); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: #7a2a2a; color: #fff; }
.btn-olive { background: var(--olive); color: #fff; }

/* ---------- Sections ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 32px); }
.section { padding: clamp(50px, 8vw, 90px) 0 10px; scroll-margin-top: 60px; }
.section-head { margin-bottom: 26px; }
.kicker { font-family: monospace; color: var(--olive-2); font-size: 14px; letter-spacing: 1px; }
.section h1, .section h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 5vw, 46px); margin: 4px 0 0; letter-spacing: 1px; }
.section h1::after, .section h2::after { content: ''; display: block; width: 70px; height: 4px; background: var(--pink); margin-top: 10px; border-radius: 2px; }

.history { display: flex; flex-direction: column; gap: 26px; }
.story-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; margin: 6px 0 4px; }
.story-cols h3 { margin-top: 8px; }
.history-text p { margin: 0 0 14px; font-size: 17px; color: #d7d6cf; }
.history-text .lead { font-weight: 500; color: var(--text); }
.history-text h3 { margin: 22px 0 10px; font-size: 20px; color: var(--sand); }
.story-list { list-style: none; margin: 0 0 14px; padding: 0; }
.story-list li { margin: 0 0 12px; padding: 0; font-size: 17px; color: #d7d6cf; }
.story-list b { color: var(--text); }
.placeholder-note { font-size: 14px !important; color: var(--muted) !important; border-left: 3px solid var(--olive); padding-left: 10px; }
.facts { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(107,122,58,.06) 12px 24px); }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-right: 1px dashed var(--line); }
.facts li:last-child { border-right: 0; }
.facts span { font-size: 15px; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { border-right: 0; border-bottom: 1px dashed var(--line); }
  .facts li:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
.facts b { color: var(--olive-2); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Roster ---------- */
.roster-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
input, select, textarea {
  background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }
#roster-search { flex: 1 1 240px; }
.role-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; }
.chip.active { background: var(--olive); border-color: var(--olive-2); }
.roster { align-items: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .roster { grid-template-columns: 1fr; } }
.member { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.member:hover { transform: translateY(-3px); border-color: #45505a; }
.member::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--olive); }
.member.role-leader::before { background: var(--pink); }
.member.role-admin::before { background: var(--sand); }
.member-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.nick { margin: 0; font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 7px; border-radius: 4px; background: var(--olive); color: #fff; white-space: nowrap; flex: none; }
.role.role-leader { background: var(--pink); color: #1a0b12; }
.role.role-admin { background: var(--sand); color: #1d1a10; }
.member-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.member-row .lbl { color: var(--muted); flex: none; }
.member-row .val { text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; flex: 1; }
.discord-link, .discord-nick { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.copy-btn { flex: none; }
.discord-link { color: #8fa2ff; text-decoration: none; font-weight: 500; }
.discord-link:hover { text-decoration: underline; }
.dc-ico { width: 15px; height: 15px; flex: none; color: #8fa2ff; }
.discord-nick .dc-ico { color: var(--muted); }
.copy-btn { display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 5px; cursor: pointer; padding: 1px 6px; font-size: 13px; }
.copy-btn:hover { color: var(--text); border-color: var(--pink); }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.video { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.player { position: relative; display: block; width: 100%; aspect-ratio: 16/9; background: #000; border: 0; padding: 0; cursor: pointer; overflow: hidden; color: inherit; text-decoration: none; }
.player.vertical { aspect-ratio: 9/16; max-height: 640px; }
.player img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s, opacity .3s; opacity: .85; }
.player:hover img { transform: scale(1.04); opacity: 1; }
.play { position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: #1a0b12; font-size: 26px; padding-left: 5px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.player-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; background: repeating-linear-gradient(45deg, #1b1e20 0 14px, #202427 14px 28px); }
.player.playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 14px 16px 16px; }
.video-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.platform { padding: 2px 8px; border-radius: 4px; font-weight: 700; background: #333; }
.p-youtube { background: #c4302b; } .p-tiktok { background: #111; border: 1px solid #25f4ee; } .p-vk { background: #0077ff; }
.ext { color: var(--muted); text-decoration: none; } .ext:hover { color: var(--pink); }
.video h3 { margin: 4px 0 6px; font-size: 18px; }
.short { margin: 0 0 8px; color: #cfcec7; font-size: 15px; }
.more summary { cursor: pointer; color: var(--pink); font-weight: 500; font-size: 14px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ' ▾'; }
.more[open] summary::after { content: ' ▴'; }
.more p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Footer & toast ---------- */
.footer { margin-top: 70px; padding: 26px 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-admin { color: var(--muted); margin-left: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--olive); color: #fff; padding: 10px 18px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100; box-shadow: 0 8px 20px rgba(0,0,0,.4); max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8a2c2c; }

@media (max-width: 760px) {
  .story-cols { grid-template-columns: 1fr; }
  .topbar nav a { font-size: 14px; }
  .brand { font-size: 14px; }
  .videos { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .topbar nav { gap: 10px; } .brand img { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 90px clamp(12px, 3vw, 28px) 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.login-card { max-width: 420px; margin: 40px auto; text-align: center; }
.login-card img { width: 120px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.admin-head h1 { font-family: var(--font-head); font-weight: 400; margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tab { background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 9px 16px; border-radius: 8px; cursor: pointer; font: inherit; }
.tab.active { background: var(--olive); border-color: var(--olive-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--bg2); color: var(--muted); font-weight: 500; white-space: nowrap; position: sticky; top: 0; }
tr:hover td { background: rgba(255,255,255,.02); }
td.actions { white-space: nowrap; }
td.actions .btn { margin: 0 2px 2px 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; align-items: center; }
.toolbar input { flex: 1 1 200px; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(560px, 94vw); }
dialog::backdrop { background: rgba(0,0,0,.65); }
dialog form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
dialog h3 { margin: 0 0 4px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.field span { color: var(--muted); }
.field small { color: var(--muted); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.denied { text-align: center; max-width: 480px; margin: 60px auto; }

.roster-more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 14px; }

/* ---------- Badges ---------- */
.member-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; position: relative; }
.member-row:has(+ .member-badges) { margin-bottom: 8px; }
.member-badges::before { content: ''; position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed var(--line); }
.member-badges { margin-top: auto; }
.badge { width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--bg2); display: inline-grid; place-items: center; cursor: pointer; color: var(--text); font: inherit; overflow: hidden; }
.badge img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.badge-emoji { font-size: 16px; line-height: 1; }
.badge:hover, .badge:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.badge-more { font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--panel); }
.badge-tip { position: fixed; z-index: 100; max-width: min(260px, calc(100vw - 16px)); background: #0e1216; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.35; display: flex; flex-direction: column; gap: 3px; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.badge-tip[hidden] { display: none; }
.badge-tip b { font-size: 14px; }
.badge-tip span { color: var(--muted); }
.badge-tip em { color: var(--sand); font-style: normal; font-size: 12px; }
.badge-thumb { width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; object-fit: cover; }
.check-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.check-row input[type=text] { grid-column: 2; padding: 6px 8px; font-size: 13px; }
.check-row label { display: flex; align-items: center; gap: 8px; }

/* ---------- Multi-page: nav, previews ---------- */
.topbar nav a.active { color: var(--pink); opacity: 1; }
.burger { display: none; width: 42px; height: 42px; background: transparent; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: flex; }
  .topbar nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: rgba(18,20,22,.97); border-bottom: 1px solid var(--line); padding: 6px clamp(14px, 4vw, 40px) 12px; }
  .menu-open nav { display: flex; }
  .topbar nav a { font-size: 17px !important; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .topbar nav a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) { .brand img { display: inline; } }
.subpage main { padding-top: 56px; }
.subpage .section { padding-top: clamp(30px, 5vw, 50px); }
.page-head h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 5vw, 46px); margin: 4px 0 0; letter-spacing: 1px; }
.page-lead { color: var(--muted); margin: 14px 0 0; max-width: 60ch; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.view-all { color: var(--pink); text-decoration: none; font-weight: 500; white-space: nowrap; padding-bottom: 6px; }
.view-all:hover { text-decoration: underline; }
.roster-count { margin: 0 0 14px; }
.roster-count b { color: var(--text); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.news-card:hover { transform: translateY(-3px); border-color: #45505a; }
.news-card.pinned { border-color: var(--olive-2); }
.news-img { position: relative; aspect-ratio: 16/9; background: #0c0e0f; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-img.ph { background: linear-gradient(135deg, rgba(18,20,22,.55), rgba(18,20,22,.2)), url(../assets/hero-bg-1280.webp) center/cover; display: grid; place-items: center; }
.news-img.ph > span:first-child { font-family: var(--font-head); font-size: 26px; letter-spacing: 3px; color: rgba(255,255,255,.55); }
.news-img .pin { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 700; background: rgba(18,20,22,.85); color: var(--sand); padding: 3px 8px; border-radius: 999px; }
.news-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-body time, .news-detail time { color: var(--olive-2); font-size: 13px; font-family: monospace; }
.news-body h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.news-body p { margin: 0; color: #cfcec7; font-size: 14.5px; }
.news-detail { max-width: 780px; }
.back-link { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.news-title { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 16px; line-height: 1.15; }
.news-hero { width: 100%; border-radius: var(--radius); margin-bottom: 16px; }
.prose p, .prose li { font-size: 17px; color: #d7d6cf; line-height: 1.6; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose h3 { color: var(--sand); font-size: 20px; margin: 22px 0 10px; }
.prose strong { color: var(--text); }
.news-source { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); }
.hall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .hall { grid-template-columns: 1fr; } }
.hall-card { display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.hall-icon { flex: none; width: 84px; height: 84px; display: grid; place-items: center; }
.hall-icon img { width: 84px; height: 84px; object-fit: contain; }
.hall-emoji { font-size: 56px; line-height: 1; }
.hall-info { min-width: 0; }
.hall-info h3 { margin: 0 0 4px; font-size: 20px; color: var(--sand); }
.hall-info p { margin: 0 0 10px; color: #cfcec7; font-size: 15px; }
.holders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.holders li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding-top: 6px; border-top: 1px dashed var(--line); }
.holders span { color: var(--olive-2); font-size: 13px; }
.holders small { color: var(--muted); width: 100%; }
.recruit, .ad { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(107,122,58,.06) 12px 24px); }
.recruit h3 { margin: 0 0 12px; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; font-weight: 500; }
.recruit-final { font-size: 17px; color: #d7d6cf; margin: 0 0 18px; }
.join-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.join-cta:empty, [data-discord-cta]:empty { display: none; }
.ad-title { font-family: var(--font); font-weight: 500 !important; font-size: clamp(20px, 2.6vw, 26px) !important; line-height: 1.35; margin: 0 0 18px; }
.ad-title::after, .ad-final::after { display: none !important; }
.ad h3 { color: var(--sand); font-size: 21px; margin: 26px 0 12px; }
.ad-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.ad-list li { background: rgba(0,0,0,.18); border-left: 3px solid var(--olive); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0; }
.ad-rules { padding-left: 0 !important; list-style: none; counter-reset: r; display: grid; gap: 12px; }
.ad-rules li { counter-increment: r; position: relative; padding-left: 42px; margin: 0; }
.ad-rules li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: #1a0b12; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.ad-final { font-family: var(--font) !important; font-weight: 500 !important; font-size: clamp(19px, 2.3vw, 24px) !important; line-height: 1.4; margin: 28px 0 16px; padding-top: 20px; border-top: 1px dashed var(--line); }
.news-card h3, .hall-info h3 { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.news-title::after { display: none !important; }
.news-detail time { display: block; margin-bottom: 4px; }
.section .news-title { margin: 6px 0 22px; font-family: var(--font); font-weight: 700; }

/* hero: три кнопки, вступление и объявление */
.btn-join { background: #5865f2; color: #fff; border-color: #7983f5; }
.btn-join:hover { background: #6b77ff; }
.cta { flex-wrap: wrap !important; }
.ad .ad-title, .ad h3, .ad .ad-final { font-size: 17px !important; font-weight: 700 !important; line-height: 1.6; color: var(--text); margin: 22px 0 10px; }
.ad .ad-title { margin-top: 0; }
.ad .ad-final { margin-top: 26px; }
.ad-list li { line-height: 1.6; }
#join { scroll-margin-top: 80px; }
.join-big { margin-top: 18px; flex-direction: column; align-items: flex-start; gap: 8px; }
.btn-discord { background: #5865f2; color: #fff; font-size: 20px; padding: 16px 34px; border-radius: 10px; }
.btn-discord:hover { background: #6b77ff; }
.join-note { color: var(--sand); font-size: 14px; }

/* Hero buttons palette */
.btn-sand { background: var(--sand); color: #1d1a10; }
.btn-sand:hover { background: #d8cb9f; }
.hero .btn-sand { box-shadow: 0 10px 30px -10px rgba(200,185,138,.55); }
.btn-khaki { background: rgba(107,122,58,.85); color: #f1eedf; border-color: #8a9b4e; }
.btn-khaki:hover { background: #7d8e44; }
.hero .btn-khaki { box-shadow: 0 10px 30px -10px rgba(138,155,78,.6); backdrop-filter: blur(6px); }

.news-fig { margin: 18px 0; }
.news-fig img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.news-fig figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .join-big { flex-direction: column; justify-content: center; text-align: center; }
  .join-big .btn-discord { align-self: center; }
}
.login-card .btn-discord { display: inline-block; margin: 6px 0 14px; }
.login-email summary { cursor: pointer; font-size: 14px; margin-bottom: 10px; }

/* ---------- Вход через Discord ---------- */
.auth-box { display: flex; align-items: center; gap: 10px; min-width: 0; }
.auth-login { display: inline-flex; align-items: center; gap: 6px; background: #5865f2; color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font: 500 14px var(--font-body, inherit); cursor: pointer; }
.auth-login:hover { background: #4752c4; }
.auth-user { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.auth-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.auth-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-logout { background: transparent; color: var(--text); opacity: .7; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 4px 9px; font: 500 12px var(--font-body, inherit); cursor: pointer; }
.auth-logout:hover { opacity: 1; color: var(--pink); }
.topbar nav .auth-admin { font-size: 12px; color: var(--sand, #d8c9a0); border: 1px solid currentColor; border-radius: 6px; padding: 3px 8px; opacity: .9; }
.auth-admin-slot:empty { display: none; }
@media (max-width: 900px) {
  .auth-box { padding: 12px 0 4px; flex-wrap: wrap; }
  .auth-name { max-width: 180px; }
  .topbar nav .auth-admin { padding: 4px 9px; border-bottom: 1px solid currentColor; font-size: 13px !important; }
}

/* ---------- Комментарии ---------- */
.comments { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
.comments h3 { margin: 0 0 16px; }
.c-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.c-ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: #2a2e32; }
.c-main { min-width: 0; flex: 1; }
.c-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-name { color: var(--pink); }
.c-head time { font-size: 12px; opacity: .6; }
.c-del { margin-left: auto; background: transparent; border: 0; color: var(--text); opacity: .5; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.c-del:hover { opacity: 1; color: #ff8080; }
.c-body { margin-top: 4px; overflow-wrap: anywhere; line-height: 1.5; }
.c-form { margin-top: 18px; }
.c-form textarea { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.04); color: var(--text); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 10px 12px; font: inherit; resize: vertical; }
.c-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.c-count { font-size: 12px; opacity: .6; }
.c-note { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar .auth-login { background: transparent; color: var(--text); opacity: .85; padding: 0; line-height: inherit; gap: 5px; font-size: 15px; font-weight: 500; border-radius: 0; }
.topbar .auth-login svg { width: 15px; height: 15px; opacity: .8; }
.topbar .auth-login:hover { background: transparent; opacity: 1; color: var(--pink, #ff7eb6); }
@media (max-width: 900px) { .topbar .auth-login { font-size: 17px; padding: 13px 0; } }
@media (min-width: 901px) { .topbar nav { align-items: center; } }
.topbar .auth-login { padding: 3px 12px; border: 1px solid rgba(88,101,242,.55); background: rgba(88,101,242,.12); border-radius: 999px; opacity: 1; }
.topbar .auth-login svg { color: #8f99ff; opacity: 1; }
.topbar .auth-login:hover { background: rgba(88,101,242,.25); border-color: rgba(88,101,242,.85); color: var(--text); }
@media (max-width: 900px) { .topbar .auth-login { padding: 8px 16px; margin-top: 8px; } }
.topbar .auth-user { font-size: 15px; font-weight: 500; color: var(--text); opacity: .85; }
.auth-logout { position: relative; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 4px; border-radius: 6px; opacity: .6; }
.auth-logout:hover { opacity: 1; color: var(--pink); background: rgba(255,255,255,.06); }
.auth-logout::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #1b1e21; color: var(--text); border: 1px solid var(--line, rgba(255,255,255,.12)); font-size: 12px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.auth-logout:hover::after, .auth-logout:focus-visible::after { opacity: 1; }
@media (max-width: 900px) { .topbar .auth-user { font-size: 17px; } .auth-logout::after { left: auto; right: auto; transform: none; top: 50%; margin-left: 34px; translate: 0 -50%; } }
