/* Игровой экран-лендинг */
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
.red { color: var(--rust); }
.center { text-align: center; }
em { font-style: normal; color: var(--hazard); }

/* шапка */
.gtop { position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 40; display: flex; align-items: center; gap: 22px; padding: 0 22px;
  background: rgba(8,8,8,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #1d1d1d; }
.gbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.gbrand span { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: .12em; font-size: 15px; line-height: 1.05; }
.gbrand small { font-size: 15px; letter-spacing: .12em; }
.gstats { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.gstat { display: flex; flex-direction: column; padding: 4px 14px; border-left: 1px solid #222; white-space: nowrap; }
.gstat:first-child { border-left: 0; }
.gstat small { font-size: 11px; color: var(--muted); }
.gstat b { font-size: 15px; font-weight: 700; }
.gstat .code { font-size: 14px; padding: 0 6px; letter-spacing: .14em; border: 1px dashed var(--hazard-dim); border-radius: 6px; cursor: pointer; font-family: var(--head); }
.gme { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.gme b { display: block; font-size: 14px; }
.gme small { color: var(--hazard); font-size: 12px; }
.ibtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #2c2c2c; background: #141414; color: var(--text); cursor: pointer; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; position: relative; transition: border-color .15s, background .15s; }
.ibtn:hover { border-color: var(--hazard); }
.ibtn.big { width: 50px; height: 50px; font-size: 20px; border-color: var(--hazard-dim); }
.ibtn.on { background: var(--hazard); color: #160f04; border-color: var(--hazard); }
.ibtn i { position: absolute; top: -6px; right: -6px; background: var(--rust); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* полоса фазы */
.pbar-wrap { position: fixed; top: 64px; left: 0; right: 0; z-index: 30; padding: 10px 70px 0; pointer-events: none; }
.pbar { pointer-events: auto; max-width: 1500px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 12px 18px; border-radius: 14px;
  background: rgba(20,20,20,.94); backdrop-filter: blur(8px); border: 1px solid #2b2b2b; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.pbar.hot { border-color: var(--hazard); box-shadow: 0 0 0 1px var(--hazard), 0 10px 40px -10px rgba(245,163,59,.45); }
.pb-text { flex: 1; min-width: 0; }
.pb-title { font-weight: 800; font-size: 17px; color: var(--hazard); }
.pb-body { font-size: 14px; color: #d4d4d4; }
.pb-body a { color: var(--hazard); }
.pb-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.order { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.oc { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px 3px 3px; border-radius: 999px; background: #1c1c1c; border: 1px solid #2a2a2a; white-space: nowrap; color: var(--muted); }
.oc.cur { border-color: var(--hazard); color: var(--text); background: #2a1e0e; }
.oc.done { opacity: .5; }
.land { padding-top: 64px; padding-bottom: 120px; }

/* аватарки */
.ava { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 30% 30%, hsl(var(--h) 60% 50%), hsl(var(--h) 55% 28%)); border: 2px solid #0a0a0a; box-shadow: 0 0 0 1px #333; }

/* 1. hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 190px 24px 70px; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; max-width: 1100px; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .3em; font-size: 13px; color: var(--hazard); font-weight: 700; margin-bottom: 8px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 0 0 18px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero-text { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.75; color: #eaeaea; text-shadow: 0 2px 10px rgba(0,0,0,.8); max-width: 1000px; margin: 0 auto; }
.pop { margin: 34px 0 18px; font-size: 18px; text-shadow: 0 2px 10px #000; }
.pop b { color: var(--hazard); }
.hero-btn { padding: 12px 22px; font-weight: 700; background: rgba(15,15,15,.75); border-color: #3a3a3a; backdrop-filter: blur(4px); }
.hero-btn.primary { background: var(--hazard); color: #160f04; }
.survivors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.sv { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.55); border: 1px solid var(--ok); color: #d9f5cf; padding: 4px 14px 4px 4px; border-radius: 999px; font-weight: 700; }

/* секции */
.sec { max-width: 1500px; margin: 0 auto; padding: 40px 22px; }
.sec-title { font-size: clamp(26px, 3vw, 40px); margin: 0 0 26px; }
.sec-title.center { text-align: center; }
.card { background: linear-gradient(160deg, #161616, #0c0c0c); border: 1px solid #262626; border-radius: 16px; padding: clamp(20px, 3vw, 44px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* 2. бункер */
.bk-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; }
@media (max-width: 900px) { .bk-grid { grid-template-columns: 1fr; } }
.bk-desc { font-weight: 700; font-size: 16px; margin: 0 0 24px; max-width: 640px; }
.bk-sub { color: #cfcfcf; font-size: 17px; margin-bottom: 10px; }
.bk-items { list-style: none; margin: 0; padding: 0; }
.bk-items li { padding: 7px 0; font-weight: 700; display: flex; gap: 8px; align-items: center; justify-content: space-between; border-bottom: 1px dashed #222; }
.bk-items li.locked { font-weight: 400; }
.bk-places { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin: 34px 0 20px; }
.bk-places em { font-size: 1.1em; }
.stats { display: flex; flex-direction: column; gap: 20px; }
.stat { display: flex; align-items: center; gap: 24px; padding: 26px 30px; border-radius: 12px; border: 1px solid #2a2a2a; background: linear-gradient(120deg, #161616, #0f0f0f); color: var(--hazard); }
.stat small { display: block; color: #d4d4d4; font-size: 15px; margin-bottom: 6px; }
.stat b { color: var(--text); font-size: 17px; }
.threats { display: flex; flex-direction: column; gap: 10px; }
.threat { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid #4a2418; background: #1a0f0b; color: var(--rust); }
.threat b { color: var(--text); }
.threat svg { flex: none; width: 34px; height: 34px; }
.threat.locked { border-style: dashed; }

/* 3/5. таблицы */
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid #262626; background: #111; scrollbar-color: #333 #111; }
.ctab { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1100px; font-size: 13.5px; }
.ctab th, .ctab td { border-right: 1px solid #222; border-bottom: 1px solid #222; padding: 14px 14px; text-align: left; vertical-align: middle; }
.ctab thead th { font-weight: 700; font-size: 13px; color: #e5e5e5; background: #151515; padding: 18px 14px; position: sticky; top: 0; }
.ctab tbody tr:last-child > * { border-bottom: 0; }
.ctab .who { position: sticky; left: 0; z-index: 2; background: #131313; min-width: 220px; }
.ctab thead .who { z-index: 3; }
.who-in { display: flex; align-items: center; gap: 10px; }
.who .num { color: var(--muted); font-weight: 700; width: 16px; }
.who .nm { font-weight: 700; font-size: 14px; }
.who .badges { margin: 3px 0 0; }
.ctab tr.me > * { background: #19140c; }
.ctab tr.me .who { background: #1d160c; }
.ctab tr.turn > * { box-shadow: inset 0 1px 0 var(--hazard), inset 0 -1px 0 var(--hazard); }
.ctab tr.turn .who { box-shadow: inset 3px 0 0 var(--hazard), inset 0 1px 0 var(--hazard), inset 0 -1px 0 var(--hazard); }
.ctab tr.dead > td { opacity: .55; }
.ctab tr.dead .nm { text-decoration: line-through; color: var(--muted); }
.ctab td .val { font-weight: 600; }
.ctab td.rv { background-image: linear-gradient(180deg, rgba(245,163,59,.05), transparent); }
.ctab .hid { color: #3c3c3c; font-weight: 800; font-size: 16px; }
.ctab .secret { color: #b9ad94; font-style: italic; }
.blur { filter: blur(6px); user-select: none; }
.ctab .open-btn { display: block; margin-top: 6px; }
.ctab td { position: relative; }
.ctab .hctl { display: none; position: absolute; right: 4px; bottom: 4px; gap: 2px; background: #1b1b1b; border: 1px solid #333; border-radius: 8px; padding: 2px; }
.ctab td:hover .hctl { display: inline-flex; }
@media (hover: none) { .ctab .hctl { display: inline-flex; position: static; margin-top: 6px; } }
.spec { min-width: 760px; }
.spec td { vertical-align: top; }
.spec .sp-t { font-weight: 700; color: #f3cf8f; margin-bottom: 4px; }
.spec .sp-x { font-weight: 600; font-size: 13px; }
.spec td.used { opacity: .6; }
.spec td.mine-card { background: #1c160c; }
.hid-card { color: #4a4a4a; font-weight: 700; }

/* 4. голосование */
.vote-head { display: flex; align-items: center; gap: 20px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; text-align: center; }
.vh-num { font-size: 40px; font-weight: 800; color: var(--hazard); line-height: 1; }
.vh-num small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 14px; }
.vcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px 16px; border-radius: 14px; border: 1px solid #2c2c2c; background: #141414; color: var(--text); cursor: pointer; font: inherit; transition: transform .1s, border-color .15s; }
.vcard:hover:not(:disabled) { border-color: var(--rust); transform: translateY(-2px); }
.vcard:disabled { cursor: default; opacity: .75; }
.vcard small { color: var(--muted); font-size: 12px; text-align: center; min-height: 16px; }
.vcard .vbtn { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--rust); border: 1px solid var(--rust); border-radius: 8px; padding: 4px 12px; }
.vcard.on { border-color: var(--rust); background: #2a120c; box-shadow: 0 0 0 1px var(--rust), 0 0 30px -8px var(--rust); }
.vcard.on .vbtn { background: var(--rust); color: #fff; }
.vdone { position: absolute; top: 8px; right: 10px; color: var(--ok); font-weight: 800; }
.bars { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.barrow { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; align-items: center; }
.barrow .bl { display: flex; align-items: center; gap: 8px; }
.bt { position: relative; height: 30px; background: #1a1a1a; border-radius: 8px; overflow: hidden; }
.bf { height: 100%; background: linear-gradient(90deg, #8a2a17, var(--rust)); border-radius: 8px; }
.bs { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-weight: 800; }
.bv { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; }
.vchip { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: #222; color: #cfcfcf; }
@media (max-width: 640px) { .barrow { grid-template-columns: 1fr; } .bv { grid-column: 1; } }
.empty { text-align: center; color: var(--muted); padding: 30px; font-size: 15px; }
.empty > :first-child { font-size: 40px; display: block; margin-bottom: 8px; }

/* пульт ведущего */
.host-card { border-color: #20435a; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hbox { padding: 14px; border-radius: 12px; background: #121a20; border: 1px solid #1f3343; }
.hbox small { display: block; color: var(--muted); margin-bottom: 8px; }
.hnum { font-size: 26px; min-width: 40px; text-align: center; color: var(--blue); }

/* навигация по разделам */
.snav { position: fixed; left: 10px; top: 50%; transform: translateY(-50%); z-index: 35; display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; border-radius: 14px; background: rgba(14,14,14,.9); border: 1px solid #242424; }
.snav a { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.snav a:hover, .snav a.on { background: #241a0c; color: var(--hazard); }
.snav a em { position: absolute; left: 50px; white-space: nowrap; background: #1b1b1b; border: 1px solid #333; color: var(--text); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s; }
.snav a:hover em { opacity: 1; }
@media (max-width: 900px) { .snav { display: none; } }

/* таймер и кнопки */
.ftimer { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 35; text-align: center; }
.ftimer small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; text-shadow: 0 1px 4px #000; }
.ftimer .timer { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 24px; padding: 10px 26px; border-radius: 10px; border: 1px solid var(--hazard); background: #0b0b0b; min-width: 120px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.ftimer .timer.low { color: var(--rust); border-color: var(--rust); }
.fbtns { position: fixed; right: 18px; bottom: 18px; z-index: 35; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) { .fbtns { flex-direction: row; right: 10px; bottom: 10px; } .ftimer { bottom: 74px; } .ibtn.big { width: 44px; height: 44px; } }

/* чат-шторка */
.drawer { position: fixed; top: 74px; right: 18px; bottom: 84px; width: min(400px, calc(100vw - 36px)); z-index: 45; transform: translateX(calc(100% + 40px)); transition: transform .22s ease;
  display: flex; flex-direction: column; background: #121212; border: 1px solid #2b2b2b; border-radius: 16px; padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.drawer.open { transform: none; }
.drawer > .panel { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; border: 0; background: transparent; }
.drawer .feed { flex: 1; max-height: none; min-height: 0; }

/* мобильные */
@media (max-width: 760px) {
  .gtop { gap: 10px; padding: 0 10px; }
  .gbrand span, .gme span { display: none; }
  .gstat { padding: 2px 8px; }
  .pbar { flex-direction: column; align-items: stretch; padding: 10px 12px; }
  .pbar-wrap { padding: 8px 8px 0; position: sticky; }
  .pb-btns { justify-content: flex-start; }
  .sec { padding: 28px 10px; }
  .stat { padding: 18px; gap: 14px; }
  .ctab .who { min-width: 160px; }
}
@media (max-width: 760px) { .hero { padding: 40px 14px 50px; min-height: 0; } .land { padding-top: 64px; } }
@media (min-width: 901px) { .sec { padding-left: 84px; padding-right: 84px; } }
@media (max-width: 640px) {
  .ftimer { left: 10px; bottom: 10px; transform: none; text-align: left; }
  .ftimer small { display: none; }
  .ftimer .timer { font-size: 18px; padding: 8px 14px; min-width: 0; }
  .ctab .who { min-width: 130px; }
  .who-in { gap: 6px; } .who .ava { width: 30px !important; height: 30px !important; font-size: 13px !important; }
  .ctab th, .ctab td { padding: 10px 9px; }
  .ctab { min-width: 900px; }
}
