/* ===== Haystack Hare v2 — общий стиль всех страниц из public на втором домене
   (столы игр, «Мафия», кабинет, мини-игры, админка). Только шрифты, палитра и общие детали:
   столы и игровые поля остаются ночными, но в «тёмной газете». Свет/тьма — у окон входа, настроек и профиля. ===== */

/* ---------- шрифты: Playfair — заголовки, PT Serif — текст, Oswald — подписи капителью ---------- */
html[data-theme] { --sans: 'PT Serif', Georgia, 'Times New Roman', serif; --serif: 'Playfair Display', 'PT Serif', Georgia, serif; }
html[data-theme] .bk-cat small, html[data-theme] .bk-bunk small, html[data-theme] .bk-round, html[data-theme] .mc .ct, html[data-theme] .bk-votes,
html[data-theme] .bc .ct, html[data-theme] .bc.open::after, html[data-theme] .bk-gauge .num small, html[data-theme] .cell small,
html[data-theme] .fr-tier, html[data-theme] .hha-card h3 small { font-family: var(--n-cond); font-weight: 600; }
html[data-theme] .hh-news h3, html[data-theme] .acc-chip, html[data-theme] .acc-gate-box { font-family: var(--n-serif); }
html[data-theme] .kicker, html[data-theme] .mini-head .kicker, html[data-theme] .logo-small:not(.login-wrap *) { font-family: var(--n-cond); font-weight: 600; letter-spacing: .22em; }
html[data-theme] .phase-name, html[data-theme] .mini-head h1, html[data-theme] .room-head h2, html[data-theme] .hub-head h1, html[data-theme] .gate h1,
html[data-theme] .modal-box h2, html[data-theme] .hp-title:not(.host-panel *) { font-family: var(--n-display); font-style: italic; font-weight: 900; letter-spacing: 0; }

/* ---------- палитра «тёмной газеты» вместо золота нуара ---------- */
html[data-theme] { --ink: #17130f; --ink-2: #221c17; --panel: rgba(36, 30, 24, .94); --line: rgba(216, 199, 166, .3);
  --gold: #e3a24a; --gold-2: #f3dfb5; --blood: #9b2a22; --blood-2: #d0503f; --paper: #f0e5cf; --muted: #b3a38a; }
html[data-theme] .panel, html[data-theme] .room, html[data-theme] .mini-panel, html[data-theme] .mini-top-col {
  background-image: linear-gradient(rgba(36, 30, 24, .9), rgba(28, 23, 18, .94)), url(/img/paper-dark.webp); background-size: auto, 512px; border-color: rgba(216, 199, 166, .32); }

/* ---------- кнопки ---------- */
html[data-theme] .btn { font-family: var(--n-serif); font-weight: 700; letter-spacing: 0; }
html[data-theme] .btn-gold { background: linear-gradient(180deg, #f9d27a, #efb24f); color: #24170a; border-color: #7d5214; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 0 rgba(0, 0, 0, .3); }
html[data-theme] .btn-gold:hover { background: linear-gradient(180deg, #ffdc8c, #f3bb5c); }
html[data-theme] .btn-red { background: linear-gradient(180deg, #8f2b22, #681910); border-color: #3a0d08; color: #fbeee0; }

/* ---------- шапка кабинета и мини-игр: заяц из логотипа + название ---------- */
html[data-theme] .cab-top, html[data-theme] .mini-top { background: rgba(14, 10, 7, .93); border-bottom: 1px solid rgba(214, 177, 106, .3); }
html[data-theme] .cab-brand, html[data-theme] .mini-top > a:first-child { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #f6ead2; flex: 0 0 auto; }
html[data-theme] .cab-brand img, html[data-theme] .mini-top > a:first-child img { display: none; }
html[data-theme] .cab-brand::before, html[data-theme] .mini-top > a:first-child::before { content: ''; width: 3.1rem; height: 2.4rem; background: url(/img/hare-logo.webp) center / contain no-repeat; }
html[data-theme] .cab-brand::after, html[data-theme] .mini-top > a:first-child::after { content: 'HAYSTACK HARE'; font: 700 1.55rem/1 var(--n-cond); letter-spacing: .01em; white-space: nowrap; }
html[data-theme] .cab-link, html[data-theme] .mini-top nav a { font-family: var(--n-serif); font-weight: 700; font-size: 1rem; color: #eadcc0; }
html[data-theme] .cab-me .who { font-family: var(--n-serif); font-size: .95rem; color: #f6ead2; }
html[data-theme] .cab-me .who b { color: #f6ead2; }
html[data-theme] .cab-me .av { width: 2.6rem; height: 2.6rem; box-shadow: 0 0 0 2px #c9a066; }
@media (max-width: 520px) {
  html[data-theme] .cab-brand::after, html[data-theme] .mini-top > a:first-child::after { font-size: 1.2rem; }
  html[data-theme] .cab-brand::before, html[data-theme] .mini-top > a:first-child::before { width: 2.4rem; height: 1.9rem; }
}

/* ---------- окна и всплывашки ---------- */
html[data-theme] .modal-box { background-image: linear-gradient(rgba(36, 30, 24, .95), rgba(28, 23, 18, .97)), url(/img/paper-dark.webp); background-size: auto, 512px; border-color: rgba(216, 199, 166, .35); }
html[data-theme] .toast { font-family: var(--n-serif); }
.v2-hthemes { flex: 0 0 auto; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 50%;
  background: transparent; border: 1px solid rgba(243, 230, 204, .4); color: #f3e6cc; }
.v2-hthemes:hover { background: rgba(243, 230, 204, .1); }
.v2-hthemes svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
html[data-theme="light"] .v2-hthemes .i-sun, html[data-theme="dark"] .v2-hthemes .i-moon { display: none; }
.cab-top .v2-hthemes { margin-left: auto; }
