/*
 * Настольный клуб 2.1 «Живые миры» (23.10.2026). Подключается после club.css / expansion.css.
 * Каталог: одна кнопка «Играть сейчас», остальное — под «Режим и настройки»; компактный первый экран на телефоне.
 */
.club-play-main { display: grid; gap: 8px; margin-top: 4px; }
.club-play-now { width: 100%; justify-content: center; padding: 14px 18px; font-size: 15px; }
.club-play-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.club-play-alt .bg-button { justify-content: center; }
.club-quick-link { border: 1px solid #bc8fdd44; border-radius: 11px; background: linear-gradient(125deg, #44305c55, #1a122b); color: #dec2f0; font: 600 13px system-ui; cursor: pointer; padding: 10px; }
.club-quick-link:hover { border-color: #dec2f0; background: #72549333; }
.club-quick-link:disabled { opacity: .6; }
.club-play-setup { margin-top: 10px; border-top: 1px solid #ffffff10; padding-top: 8px; }
.club-play-setup > summary { cursor: pointer; list-style: none; color: #b9a6c9; font: 600 12px system-ui; display: flex; align-items: center; gap: 6px; }
.club-play-setup > summary::-webkit-details-marker { display: none; }
.club-play-setup > summary::after { content: '▾'; font-size: 11px; transition: transform .15s; }
.club-play-setup[open] > summary::after { transform: rotate(180deg); }
.club-play-setup[open] > summary { margin-bottom: 10px; }
.club-play-setup .club-mode-label, .club-play-setup .bg-play-opts { margin-bottom: 8px; }
.club-play-table { display: grid; gap: 6px; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: #ffffff05; border: 1px solid #ffffff0d; }
.club-play-table > small { color: #a99bb6; font-size: 11px; }
@media (max-width: 760px) {
    .bg-page .bg-hero { min-height: 0; }
    .bg-page .bg-hero__art { background-size: cover; background-position: 62% 30%; opacity: .55; }
    .bg-page .bg-hero:before { background: linear-gradient(0deg, #090911 0%, #090911d9 45%, #09091166 100%); }
    .bg-page .bg-hero__copy { padding: 34px 18px 18px; }
    .bg-page .bg-hero h1 { font-size: 30px; }
    .bg-page .bg-hero__lead { margin: 10px 0; }
    .bg-page .bg-hero__actions { margin-top: 12px; }
    .bg-page .bg-section-head { margin-bottom: 10px; }
    .bg-page .bg-section-head .bg-pill { display: none; }
    .club-nav, .club-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .club-nav::-webkit-scrollbar, .club-filter::-webkit-scrollbar { display: none; }
    .club-nav { margin-bottom: 12px; }
    .club-nav a, .club-filter button, .club-filter a { white-space: nowrap; flex: none; }
    .club-filter a { margin-left: 4px; }
    .club-play-now { padding: 13px; }
}

/* ── Лабиринт: картинки комнат, поле крупнее, текущая комната крупно ── */
.lab-layout { grid-template-columns: minmax(320px, min(74svh, 720px)) minmax(250px, 330px); }
.lab-maze { max-height: none !important; }
.lab-tile.has-art { background-image: linear-gradient(180deg, #0a061033 30%, #0a0610bb), var(--art); background-size: cover; background-position: center; }
.lab-tile.has-art > b { position: absolute; right: 5px; bottom: 4px; font-size: clamp(12px, 1.6vw, 18px); opacity: .9; }
.lab-tile.has-art.is-cleared { filter: grayscale(.65) brightness(.7); }
.lab-tile.has-art.is-unknown { filter: brightness(.8) saturate(.8); }
.lab-tile.has-art.is-unknown > b { right: auto; bottom: auto; position: static; font-size: clamp(18px, 3vw, 30px); opacity: .55; }
.lab-tile.has-art.is-here { box-shadow: inset 0 0 0 2px #e1bd7f, 0 0 18px #efcc7266; }
.lab-room-art { aspect-ratio: 16 / 10; margin: -4px -4px 12px; border-radius: 14px; background: #120c1a center/cover no-repeat; box-shadow: 0 10px 28px #0008, inset 0 0 0 1px #e1bd7f44; }
.lab-room-art.is-cleared { filter: grayscale(.6) brightness(.75); }
@media (max-width: 760px) { .lab-layout { grid-template-columns: minmax(0, 1fr); } .lab-room-art { aspect-ratio: 16 / 8; } }

/* ── Караван: медальоны поселений ── */
.cv-node > span.has-art { width: 64px; height: 64px; background-size: cover; background-position: center; color: transparent; font-size: 0; border-width: 2px; }
.cv-node.is-city > span.has-art { border-radius: 16px; }
.cv-node.is-target > span.has-art { box-shadow: 0 0 0 3px #e6c77a66, 0 0 26px #e1b35a88; }
@media (max-width: 760px) { .cv-node > span.has-art { width: 44px; height: 44px; } }

/* ── Совет Теней: портреты, карта роли, зал днём и ночью, раскрытие роли ── */
.co-face { position: absolute; inset: 0; border-radius: inherit; background: #1a1222 center 20%/cover no-repeat; }
.co-portrait { position: relative; overflow: hidden; }
.co-role-art { aspect-ratio: 2 / 3; max-height: 260px; margin: 0 auto 10px; border-radius: 12px; background: #120c1a center/cover no-repeat; box-shadow: 0 10px 28px #0009, 0 0 0 1px #e1bd7f55; animation: coFlip .5s ease; }
@keyframes coFlip { from { transform: rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.club-council[data-co-stage] .co-clock { position: relative; overflow: hidden; min-height: 130px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; box-sizing: border-box; margin: 10px 0 18px; padding: 18px 24px; isolation: isolate; border-radius: 16px; background: none; }
.club-council[data-co-stage] .co-clock::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #120c1aee, #120c1a88 60%, #120c1a44), var(--co-day, none) center 40%/cover no-repeat; transition: opacity .6s; }
.club-council[data-co-stage=night] .co-clock::before { background: linear-gradient(90deg, #070b1cf0, #070b1c99 60%, #070b1c55), var(--co-night, var(--co-day, none)) center 40%/cover no-repeat; }
.club-council[data-co-stage=night] .co-clock::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff9, transparent), radial-gradient(1px 1px at 60% 20%, #fff8, transparent), radial-gradient(1.5px 1.5px at 80% 60%, #fff7, transparent), radial-gradient(1px 1px at 35% 70%, #fff6, transparent); animation: coStars 3s ease-in-out infinite alternate; }
@keyframes coStars { from { opacity: .4; } to { opacity: 1; } }
.club-council[data-co-stage=night] { --co-tint: #0a1030; }
.club-council[data-co-stage=night] .co-seats { filter: saturate(.75) brightness(.9); }
.co-reveal { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, #2a1830, #120c1a); border: 1px solid #e1bd7f44; animation: coIn .5s ease; }
.co-reveal > span { width: 64px; aspect-ratio: 2 / 3; flex: none; border-radius: 8px; background: center/cover no-repeat; box-shadow: 0 6px 16px #0009; }
.co-reveal small { display: block; color: #b9a6c9; font-size: 12px; }
.co-reveal b { display: block; font: 600 20px Georgia, serif; color: #ffe2b0; }
.co-reveal em { font-style: normal; color: #e7c98f; font-size: 13px; }
.co-reveal.is-shade { border-color: #b07ad888; background: linear-gradient(120deg, #2a1440, #120c1a); }
@keyframes coIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Испытание дня ── */
.club-challenge { position: relative; display: flex; align-items: center; gap: 18px; justify-content: space-between; margin: 0 0 18px; padding: 20px 24px; border-radius: 18px; overflow: hidden; isolation: isolate;
    border: 1px solid #e4bb8140; background: #160f20; }
.club-challenge::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #160f20 25%, #160f20cc 55%, #160f2055), var(--ch-art, none) right center/cover no-repeat; }
.club-challenge h3 { margin: 4px 0 6px; font: 600 22px Georgia, serif; color: #ffe2b0; }
.club-challenge p { margin: 0; color: #cbb9d6; font-size: 13px; }
.club-challenge p b { color: #ffd38a; }
.club-challenge form { margin: 0; flex: none; }
.club-challenge.is-done { border-color: #7fd6a040; }
.club-challenge.is-done h3 { color: #cfeedd; }
@media (max-width: 760px) { .club-challenge { flex-direction: column; align-items: stretch; padding: 16px; } .club-challenge h3 { font-size: 18px; } .club-challenge__go { width: 100%; justify-content: center; } }

/* ── 2.2: механики — события Лабиринта, реликвии; Караван — точки событий, срочные заказы, янтарь ── */
.lab-relics { color: #e7c98f !important; }
.lab-event { color: #cfe8ff; background: #1b2236; border-radius: 10px; padding: 8px 10px; }
.cv-node.is-event > span { box-shadow: 0 0 0 3px #ffd36a66, 0 0 22px #ffb84a77; }
.cv-node.is-danger > span { box-shadow: 0 0 0 3px #ff6b6b77, 0 0 22px #ff4a4a66; }
.cv-node.is-starfall > span { box-shadow: 0 0 0 3px #9fd8ff88, 0 0 26px #8fd0ff88; animation: cvStar 1.8s ease-in-out infinite alternate; }
@keyframes cvStar { to { box-shadow: 0 0 0 3px #d8f0ffaa, 0 0 34px #b9e4ffaa; } }
.cv-ev { text-decoration: none; font-size: 10px; font-weight: 700; color: #ffe2a0; background: #2a1a12d9; border: 1px solid #ffd36a55; border-radius: 6px; padding: 1px 6px; }
.cv-node.is-danger .cv-ev { color: #ffb4b4; border-color: #ff6b6b66; }
.cv-node.is-starfall .cv-ev { color: #cfeaff; border-color: #8fd0ff66; }
.cv-contract.is-urgent { border-color: #ffb84a88 !important; background: linear-gradient(140deg, #3a2412, #1a1220) !important; }
.cv-contract.is-urgent > span { color: #ffcf7a; font-weight: 700; }
.cv-cargo.is-amber { color: #ffd98a; }

/* ── 2.3: «Быстрый Совет» — таймер фазы ── */
.co-timer { color: #ffe2a0; font-variant-numeric: tabular-nums; }
.co-timer.is-low { color: #ff8f8f; animation: coLow 1s steps(2) infinite; }
@keyframes coLow { 50% { opacity: .55; } }

/* ── 2.4: «Кубок недели» ── */
.cup-week { display: inline-block; margin: 6px 0 0; padding: 4px 10px; border-radius: 99px; background: #ffcf7a1f; border: 1px solid #ffcf7a55; color: #ffe2a0; font-size: 12px; font-weight: 600; }
.cup-card.is-official { border-color: #ffcf7a77 !important; box-shadow: 0 0 0 1px #ffcf7a33, 0 10px 30px #ffb44a1a; }
.club-weekly { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 16px 22px; border-radius: 16px; border: 1px solid #ffcf7a44; background: linear-gradient(110deg, #2b1d10, #160f20 70%); }
.club-weekly h3 { margin: 4px 0; font: 600 19px Georgia, serif; color: #ffe2b0; }
.club-weekly p { margin: 0; color: #cbb9d6; font-size: 13px; }
.club-weekly .bg-button { flex: none; }
@media (max-width: 760px) { .club-weekly { flex-direction: column; align-items: stretch; padding: 14px 16px; } .club-weekly .bg-button { justify-content: center; } }

/* ── 2.5: события дня парой карточек; на телефоне — компактно, чтобы игры были ближе ── */
.club-events { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.club-events > section { margin: 0 !important; }
.club-events .club-challenge, .club-events .club-weekly { flex-direction: column; align-items: stretch; justify-content: space-between; }
.club-events .club-challenge form, .club-weekly__go { display: flex; gap: 8px; flex-wrap: wrap; }
.club-events .club-challenge__go, .club-weekly__go .bg-button { flex: 1; justify-content: center; }
.club-share { border: 1px solid #ffcf7a55; background: #ffcf7a14; color: #ffe2a0; border-radius: 11px; padding: 10px 14px; font: 600 13px system-ui; cursor: pointer; }
.club-share:hover { background: #ffcf7a26; }
.cup-share-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
    .club-events { gap: 8px; margin-bottom: 12px; }
    .club-events .club-challenge, .club-events .club-weekly { padding: 12px; gap: 8px; border-radius: 14px; }
    .club-events h3 { font-size: 14px !important; line-height: 1.25; margin: 2px 0 !important; }
    .club-events p { display: none; }
    .club-events .club-eyebrow { font-size: 9px; }
    .club-events .bg-button, .club-share { padding: 9px 8px; font-size: 12px; }
    .club-resume [data-resume-list] > :nth-child(n+3) { display: none; }
}

/* «Живой клуб»: на узком телефоне события листаются, а не сжимаются до 140 px. */
@media (max-width: 480px) {
  .club-events { display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;overscroll-behavior-inline:contain;padding:0 0 6px }
  .club-events > section { flex:0 0 min(82vw,285px);min-width:0;scroll-snap-align:start }
  .club-events .club-challenge,.club-events .club-weekly { min-height:165px; }
  .club-events .bg-button,.club-events .club-share { min-height:40px; }
  .club-events::-webkit-scrollbar { height:4px }
  .club-events::-webkit-scrollbar-thumb { background:#ab8ec0;border-radius:9px }
}
