/* Светлая тема: тёплый пергамент, тёмно-коричневый текст, бронзовый акцент.
   Включается атрибутом data-theme="light" на <html>. Шапка сайта и баннер главной остаются тёмными
   (они держат логотип и арт), светлой становится рабочая часть страницы. */

:root[data-theme="light"] {
    --bg: #f3ebdc;
    --bg-2: #ece1cd;
    --panel: #fbf6ec;
    --panel-2: #f3e8d4;
    --surface: rgba(255, 251, 243, .94);
    --line: rgba(110, 80, 35, .16);
    --line-2: rgba(110, 80, 35, .30);
    --text: #2a1b0d;
    --text-2: #5a4530;
    --mute: #8a7556;
    --amber: #c58a35;
    --amber-2: #8a5a1c;
    --amber-glow: rgba(197, 138, 53, .28);
    --teal: #5b8a30;
    --bad: #b4452a;
    --warn: #a86f12;
    --violet: #8a5a1c;
    color-scheme: light;
}

/* Тёмные островки внутри светлой страницы: шапка сайта и баннер главной */
:root[data-theme="light"] .bar,
:root[data-theme="light"] .hero-card:not(.live) {
    --bg: #0b0805; --bg-2: #120d08; --panel: #17110b; --panel-2: #21180f; --surface: rgba(23, 17, 11, .92);
    --line: rgba(214, 182, 135, .14); --line-2: rgba(214, 182, 135, .27);
    --text: #f4ead8; --text-2: #cdbfa6; --mute: #8b7c64;
    --amber: #e2c08d; --amber-2: #f1d9b3; --amber-glow: rgba(226, 192, 141, .30);
    --teal: #9bbf6a; --bad: #e0694a;
    color: var(--text);
}

/* Фон страницы: мягкий тёплый свет вместо звёзд и размытого арта */
:root[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 70% 45% at 72% -8%, rgba(226, 192, 141, .40), transparent 70%),
        radial-gradient(ellipse 55% 40% at 8% 105%, rgba(197, 138, 53, .12), transparent 70%),
        var(--bg);
}
:root[data-theme="light"] body::after,
:root[data-theme="light"] .bg-art { display: none; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d9c8a6; }

/* Карточки и плашки */
:root[data-theme="light"] .card { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset; }
:root[data-theme="light"] .card:hover { box-shadow: 0 14px 30px rgba(90, 60, 20, .18); border-color: var(--amber); }
:root[data-theme="light"] .card-pic { background: radial-gradient(circle at 50% 40%, #fffaf0, #eadcc2 78%); }
:root[data-theme="light"] .card-pic img.ph-logo { opacity: .42; filter: brightness(.55) sepia(.35); }
:root[data-theme="light"] .card:hover .card-pic img.ph-logo { opacity: .6; }
:root[data-theme="light"] .card-add { background: rgba(197, 138, 53, .12); border-color: rgba(138, 90, 28, .5); }
:root[data-theme="light"] .card-add:hover { background: var(--amber); color: #1d1309; }
:root[data-theme="light"] .disc,
:root[data-theme="light"] .cat em { color: #fff; }
:root[data-theme="light"] .cat.on { background: rgba(197, 138, 53, .12); }
:root[data-theme="light"] .pg.on { background: rgba(197, 138, 53, .12); }
:root[data-theme="light"] .mini-btn { color: #1d1309; }

/* Блоки страниц */
:root[data-theme="light"] .box,
:root[data-theme="light"] .stat,
:root[data-theme="light"] .rules .rule,
:root[data-theme="light"] .log li { box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 6px 18px rgba(90, 60, 20, .06); }
:root[data-theme="light"] .cl { border-color: rgba(138, 90, 28, .45); box-shadow: 0 14px 34px rgba(90, 60, 20, .14); }
:root[data-theme="light"] .cl-dot { border-color: var(--panel); }
:root[data-theme="light"] .cl-btn.hot { color: #1d1309; }
:root[data-theme="light"] .tag { background: var(--panel-2); }
:root[data-theme="light"] .flash { box-shadow: 0 4px 14px rgba(90, 60, 20, .08); }
:root[data-theme="light"] .empty { background: rgba(255, 251, 243, .5); }
:root[data-theme="light"] .menu-list { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

/* Подвал светлого сайта */
:root[data-theme="light"] .foot { border-top-color: var(--line-2); }

/* Кнопка переключения темы: луна в тёмной теме, солнце в светлой */
.theme-btn { border: 0; background: none; cursor: pointer; padding: 0; }
.theme-btn .ico-sun { display: none; }
.theme-btn span { display: grid; place-items: center; }
:root[data-theme="light"] .theme-btn .ico-moon { display: none; }
:root[data-theme="light"] .theme-btn .ico-sun { display: grid; }

/* ---------- Колесо «Компас» в светлой теме: пергаментный диск, бронзовый ободок, тёмные подписи ---------- */
/* Цвета редкости насыщеннее и темнее, чтобы держаться на светлом фоне */
:root[data-theme="light"] .r-common { --rc: #8f846f; }
:root[data-theme="light"] .r-uncommon { --rc: #3c9a3a; }
:root[data-theme="light"] .r-rare { --rc: #2f6be0; }
:root[data-theme="light"] .r-epic { --rc: #7b3fe0; }
:root[data-theme="light"] .r-legendary { --rc: #c08a00; }
:root[data-theme="light"] .r-mythic { --rc: #0a9ea6; }

:root[data-theme="light"] .cp-disc { background: radial-gradient(circle at 50% 36%, #fffaf0, #ecdcc0 80%); box-shadow: 0 0 0 5px #fffaf0, 0 0 0 7px #b98c52, 0 26px 60px rgba(90, 60, 20, .22); }
:root[data-theme="light"] .cp-it > div { filter: none; opacity: .78; }
:root[data-theme="light"] .cp-it.on > div { opacity: 1; }
:root[data-theme="light"] .cp-it span { color: #5a4530; }
:root[data-theme="light"] .cp-it.on span { color: #1d1309; }
:root[data-theme="light"] .cp-it .wh-ico { background: #fffaf0; box-shadow: 0 2px 8px rgba(90, 60, 20, .16); }
:root[data-theme="light"] .cp-it.on .wh-ico { box-shadow: 0 6px 22px color-mix(in srgb, var(--rc) 45%, transparent); }
:root[data-theme="light"] .cp-it .wh-ico svg, :root[data-theme="light"] .cp-core .wh-ico svg { stroke: #8a5a1c; }
:root[data-theme="light"] .cp-needle::before { background: linear-gradient(#8a5a1c, transparent); }
:root[data-theme="light"] .cp-needle i { background: linear-gradient(#a06a22, #6f4510); filter: drop-shadow(0 2px 4px rgba(90, 60, 20, .35)); }
:root[data-theme="light"] .cp-core { background: radial-gradient(circle at 50% 28%, #fffdf6, #f1e3c8 80%); border-color: var(--rc, #b98c52);
    box-shadow: 0 10px 30px rgba(90, 60, 20, .18), inset 0 0 22px rgba(255, 255, 255, .8); }
:root[data-theme="light"] .cp-core .wh-ico { background: #fffaf0; }
:root[data-theme="light"] .cp-core h3 { color: #1d1309; }
:root[data-theme="light"] .cp-core small { color: var(--rc, #8a7556); }
:root[data-theme="light"] .cp-core.idle { --rc: #b98c52; }
:root[data-theme="light"] .cp-core.idle small { color: #5a4530; }
:root[data-theme="light"] .wh-card[class*="r-"] { background: #fffaf0; }
:root[data-theme="light"] .wh-pc { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 10%, #fffaf0), #fffaf0 75%); box-shadow: 0 6px 18px rgba(90, 60, 20, .08); }

/* Главная со «живой» сценой: днём рассвет, а не тёмный остров. Фото-герой из админки остаётся тёмным. */
:root[data-theme="light"] .hero-card.live { color: var(--text); border-color: var(--line-2); }
:root[data-theme="light"] .hero-card.live::after { background: none; }
:root[data-theme="light"] .hero-card.live .hero-txt h1 { color: #2a1b0d; }
:root[data-theme="light"] .hero-card.live .lead { color: #4a3620; }

/* Плашка-метка над заголовком блока: в светлой теме не тёмная, а тёплая */
:root[data-theme="light"] .eyebrow { background: rgba(197, 138, 53, .14); color: #8a5a1c; border-color: rgba(138, 90, 28, .35); }
