/* Альтиус — чаты, питомцы, мини-игры, сезоны, казино, аватарки, карта битвы */

/* ---------- аватарки ---------- */
.ava.pic { background: transparent; overflow: hidden; padding: 0; }
.ava.pic svg, .ava.pic img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.ava-edit { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.ava-edit > span:last-child { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; border: 3px solid var(--card); }
.ava-edit > span:last-child svg { width: 14px; height: 14px; }
.avb { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.avb-big { width: 180px; height: 180px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line-2); }
.avb-big svg, .avb-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avb-row { margin-bottom: 14px; }
.avb-row .label { display: block; margin-bottom: 6px; }
.avb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avb-chips button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--card-2); cursor: pointer; }
.avb-chips button.on { border-color: var(--accent); }
.avb-chips svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .avb { grid-template-columns: 1fr; } }

/* ---------- подменю обсуждений ---------- */
.talk-tabs { margin-bottom: 18px; }
.talk-tabs .count { background: var(--accent); color: #fff; border-radius: 9px; padding: 1px 6px; margin-left: 6px; font-size: 11px; }
.nav .count[data-chat-count] { margin-left: auto; }

/* ---------- личные сообщения ---------- */
.chat-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; height: calc(100vh - 210px); min-height: 480px; }
.chat-side { overflow-y: auto; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border: 0; background: none; text-align: left; text-decoration: none; cursor: pointer; border-top: 1px solid var(--line); }
.chat-row:hover, .chat-row.on { background: var(--card-2); }
.chat-row.on { box-shadow: inset 3px 0 0 var(--accent); }
.chat-row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.count-badge { background: var(--accent); color: #fff; border-radius: 10px; font: 600 11px/18px var(--mono); padding: 0 6px; flex: none; }
.flame-ico { flex: none; fill: #c9c4ba; transition: fill .3s; }
.flame-ico.burning { fill: #f08a24; filter: drop-shadow(0 0 4px rgba(240, 138, 36, .55)); animation: flicker 1.6s ease-in-out infinite; }
.flame-ico.waiting { fill: #b8b2a6; }
.flame-ico.out { fill: none; stroke: #b8b2a6; stroke-width: 1.5; }
@keyframes flicker { 50% { transform: scale(1.08) rotate(-3deg); } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head .grow b, .chat-head .grow span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head [data-petw] { flex: none; }
.chat-back { display: none; }
.chat-feed { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.day-sep { text-align: center; margin: 10px 0 4px; }
.day-sep span { font: 500 11px var(--mono); color: var(--muted); background: var(--card-2); padding: 3px 10px; border-radius: 10px; }
.dm { display: flex; flex-direction: column; align-items: flex-start; max-width: 76%; }
.dm.mine { align-self: flex-end; align-items: flex-end; }
.dm-bubble { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; position: relative; }
.dm.mine .dm-bubble { background: var(--ink); color: var(--on-ink); border-color: var(--ink); border-radius: 14px 14px 4px 14px; }
.dm.mine .dm-bubble a { color: inherit; }
.dm-bubble.bare { background: transparent; border-color: transparent; padding: 0; }
.dm-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.dm-bubble time { display: block; font-size: 10px; opacity: .6; margin-top: 2px; text-align: right; }
.dm-bubble.bare time { color: var(--muted); }
.pet-widget { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card-2); border-radius: 12px; padding: 4px 10px 4px 4px; cursor: pointer; text-align: left; }
.pet-widget b { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.pet-widget .tiny { display: block; }
.pet-widget.burning { border-color: rgba(240, 138, 36, .5); background: linear-gradient(90deg, rgba(240, 138, 36, .12), transparent); }
.egg-progress { cursor: default; }
@media (max-width: 860px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); height: auto; }
  .chat-layout.has-chat .chat-side { display: none; }
  .chat-layout:not(.has-chat) .chat-main { display: none; }
  .chat-main { height: calc(100vh - 170px); }
  .chat-back { display: inline-flex; }
  .pet-widget .tiny { display: none; }
  body:has(.chat-layout.has-chat) .pet-reminder { display: none; }
  .top > * { flex: none; }
  .top h1 { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dm { max-width: 90%; }
}

/* вложения */
.att-sticker svg { display: block; }
.att-gif img { max-width: 260px; max-height: 220px; border-radius: 10px; display: block; margin-top: 4px; }
.att-tiktok { margin-top: 6px; width: 300px; max-width: 100%; }
.att-tiktok iframe { width: 100%; height: 560px; border: 0; border-radius: 12px; background: #000; }
.tt-cover { width: 100%; height: 180px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #111 0%, #25f4ee33 45%, #fe2c5533 100%), #111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tt-cover svg { width: 34px; height: 34px; }
.tt-cover span { font-size: 12px; opacity: .8; }
.att-link { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.att-link svg { width: 16px; height: 16px; }

/* реакции */
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; position: relative; }
.react { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 1px 7px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; line-height: 20px; }
.react span { font: 500 11px var(--mono); color: var(--muted); }
.react.on { border-color: var(--accent); background: var(--accent-soft); }
.react.add { opacity: 0; color: var(--muted); padding: 1px 5px; transition: opacity .15s; }
.react.add svg { width: 14px; height: 14px; }
.dm:hover .react.add, .comment:hover .react.add, .joke:hover .react.add, .react.add:focus { opacity: 1; }
.joke .react.add { opacity: .6; }
.react-pop { position: absolute; bottom: 100%; left: 0; z-index: 20; background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 4px; display: flex; gap: 2px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.dm.mine .react-pop { left: auto; right: 0; }
.react-pop button { border: 0; background: none; font-size: 20px; cursor: pointer; padding: 2px 4px; border-radius: 8px; transition: transform .15s; }
.react-pop button:hover { transform: scale(1.25); }

/* поле ввода */
.composer { padding: 10px 12px; border-top: 1px solid var(--line); }
.cmp-row { display: flex; gap: 6px; align-items: flex-end; }
.cmp-row .textarea { min-height: 40px; height: 40px; padding: 9px 12px; resize: none; }
.cmp-row .btn { height: 40px; }
.cmp-attach { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cmp-attach img { max-height: 70px; border-radius: 8px; }
.cmp-panel { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-top: 6px; }
.st-grid button { border: 1px solid transparent; background: var(--field); border-radius: 10px; padding: 4px; cursor: pointer; }
.st-grid button:hover { border-color: var(--line-2); }

/* анимации стикеров */
.sticker .st-beat { transform-origin: 50% 60%; animation: st-beat 1.1s ease-in-out infinite; }
.sticker .st-flick { transform-origin: 50% 100%; animation: st-flick .9s ease-in-out infinite alternate; }
.sticker .st-flick2 { transform-origin: 50% 100%; animation: st-flick .7s ease-in-out infinite alternate-reverse; }
.sticker .st-pop { animation: st-pop 1.4s ease-out infinite; transform-origin: 30px 40px; }
.sticker .st-nod { transform-origin: 50% 90%; animation: st-nod 1.4s ease-in-out infinite; }
.sticker .st-clap { transform-origin: 30% 80%; animation: st-nod .5s ease-in-out infinite; }
.sticker .st-steam { animation: st-steam 2s ease-in-out infinite; }
.sticker .st-fly { animation: st-fly 1.6s ease-in-out infinite; }
.sticker .st-shake { transform-origin: 50% 50%; animation: st-shake .5s ease-in-out infinite; }
.sticker .st-tear { animation: st-tear 1s ease-in infinite; }
.sticker .st-zz { animation: st-zz 2.2s ease-in-out infinite; }
.sticker .st-spin { transform-origin: 50% 50%; animation: st-spin 6s linear infinite; }
@keyframes st-beat { 15%, 45% { transform: scale(1.12); } 30% { transform: scale(.98); } }
@keyframes st-flick { to { transform: scaleY(1.08) scaleX(.95); } }
@keyframes st-pop { 0% { opacity: 0; transform: scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes st-nod { 50% { transform: rotate(-8deg); } }
@keyframes st-steam { 50% { transform: translateY(-3px); opacity: .5; } }
@keyframes st-fly { 50% { transform: translateY(-5px); } }
@keyframes st-shake { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes st-tear { from { transform: translateY(0); opacity: 1; } to { transform: translateY(10px); opacity: 0; } }
@keyframes st-zz { 50% { transform: translate(3px, -4px); opacity: .5; } }
@keyframes st-spin { to { transform: rotate(360deg); } }

/* ---------- питомцы ---------- */
.pet { display: block; overflow: visible; }
.pet-flame.burning { fill: #f8a14a; opacity: .45; transform-origin: 50% 100%; animation: pet-flame 1.8s ease-in-out infinite; }
.pet-flame.waiting { fill: #c9c4ba; opacity: .35; }
.pet.out .pet-body { filter: grayscale(.85) brightness(.95); }
.pet .pet-tail { transform-origin: 68px 78px; animation: tail 1.6s ease-in-out infinite; }
.pet .pet-eyes { transform-origin: 50% 44px; animation: blink 4.5s infinite; }
.pet .pet-wing { transform-origin: 32px 68px; animation: wing 1.2s ease-in-out infinite; }
.pet .pet-wing.r { transform-origin: 68px 68px; animation-direction: reverse; }
.pet.out .pet-tail, .pet.out .pet-wing { animation: none; }
.pet .pet-body { transition: transform .3s; }
.pet-stage { display: grid; place-items: center; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, rgba(240, 138, 36, .18), transparent 70%); flex: none; }
.pet-stage.out, .pet-stage.waiting { background: radial-gradient(circle at 50% 60%, rgba(150, 150, 150, .14), transparent 70%); }
.pet-stage:hover .pet-body { transform: translateY(-4px); }
.aura-twinkle { animation: blink 2s infinite; }
.aura-float { animation: st-fly 2.4s ease-in-out infinite; }
.aura-fall { animation: st-steam 3s ease-in-out infinite; }
@keyframes pet-flame { 50% { transform: scale(1.04, 1.08); opacity: .6; } }
@keyframes tail { 50% { transform: rotate(14deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes wing { 50% { transform: rotate(-18deg); } }
.pet-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pet-stats div { background: var(--card-2); border-radius: 8px; padding: 8px 10px; }
.pet-stats b { display: block; font-size: 18px; }
.pet-stats span { font-size: 11px; color: var(--muted); }
.pet-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pet-pick button { border: 2px solid var(--line); background: var(--card-2); border-radius: 14px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pet-pick button:hover { border-color: var(--accent); transform: translateY(-2px); }
.wardrobe, .shop-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ward, .shop-item { border: 1px solid var(--line); background: var(--card-2); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; cursor: pointer; }
.ward.on { border: 2px solid var(--accent); }
.ward b, .shop-item b { font-weight: 500; font-size: 12px; }
.ward-none { width: 64px; height: 64px; display: grid; place-items: center; color: var(--muted); }
.shop-item { cursor: default; }
.shop-item.owned { opacity: .75; }
.games-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.games-pick h3 { font-size: 15px; margin-bottom: 6px; }
.goals { list-style: none; padding: 0; margin: 0 0 8px; font-size: 13px; }
.goals li { padding: 2px 0; color: var(--ink-2); }
.goals li.done { color: var(--green); }
.pet-row { display: flex; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); text-decoration: none; }
.pet-row b { display: block; }
.pet-row .tiny { display: block; }
@media (max-width: 760px) { .pet-pick { grid-template-columns: 1fr 1fr; } .games-pick { grid-template-columns: 1fr; } .pet-stage { width: 160px; height: 160px; } }

/* напоминание в левом нижнем углу */
.pet-reminder { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 4px; max-width: 340px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 14px 30px -18px rgba(0,0,0,.4); padding: 4px 4px 4px 6px; animation: rise .3s ease-out; }
.pr-link { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; line-height: 1.35; }
.pr-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; align-self: flex-start; }
.pr-close svg { width: 14px; height: 14px; }
@media (min-width: 861px) { .pet-reminder { left: 252px; } }

/* ---------- мини-игры ---------- */
.mg-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.mg-head { align-items: center; gap: 8px; }
.mg-sound { border: 1px solid var(--line); background: var(--card-2); color: var(--muted); border-radius: 999px; padding: 3px 10px; font: 500 12px var(--font, inherit); cursor: pointer; }
.mg-sound[aria-pressed="true"] { color: var(--ink); }
.m3 { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); max-width: 420px; aspect-ratio: 1; margin: 0 auto; touch-action: none; user-select: none; overflow: clip; }
.m3 > i { margin: 2px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line); }
.m3-tile { position: absolute; left: 0; top: 0; width: calc(100% / var(--n)); height: calc(100% / var(--n)); padding: 2px; cursor: pointer; z-index: 1;
  transition: transform .28s cubic-bezier(.25, .8, .35, 1) var(--delay, 0ms); will-change: transform; }
.m3-tile span { display: block; width: 100%; height: 100%; padding: 15%; border-radius: 9px; transition: transform .18s ease, background .18s, box-shadow .18s; }
.m3-tile svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.m3-tile:hover span { transform: scale(1.05); }
.m3-tile.sel { z-index: 2; }
.m3-tile.sel span { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); animation: m3-breathe 1.2s ease-in-out infinite; }
@keyframes m3-breathe { 50% { transform: scale(1.07); } }
.m3-tile.clear span { animation: m3-clear .26s ease-out forwards; }
@keyframes m3-clear { 0% { transform: scale(1); opacity: 1; } 35% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(.35); opacity: 0; } }
.m3-float { position: absolute; z-index: 3; transform: translate(-50%, -50%); font: 600 14px var(--mono); color: var(--accent); pointer-events: none; text-shadow: 0 1px 0 var(--card); animation: m3-float .9s ease-out forwards; }
@keyframes m3-float { from { opacity: 0; transform: translate(-50%, -30%); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -150%); } }
@media (prefers-reduced-motion: reduce) { .m3-tile { transition-duration: .01ms; } .m3-tile.sel span { animation: none; } }
.memo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 380px; margin: 0 auto; }
.memo-card { aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; position: relative; perspective: 600px; }
.memo-card span { position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .35s; }
.memo-card .back { background: var(--ink) repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,.06) 8px 16px); }
.memo-card .front { background: var(--card-2); border: 1px solid var(--line); transform: rotateY(180deg); }
.memo-card.flip .back { transform: rotateY(180deg); }
.memo-card.flip .front { transform: rotateY(0); }
.memo-card.done .front { border-color: var(--green); background: var(--green-soft); }
.catch { position: relative; height: 340px; border-radius: 14px; background: var(--card-2); border: 1px dashed var(--line-2); overflow: hidden; }
.catch-item { position: absolute; border: 0; background: none; padding: 0; cursor: pointer; animation: catch-in .25s ease-out; }
.catch-item.got { transform: scale(1.4); opacity: 0; transition: .2s; }
.catch-item.boom { filter: grayscale(1); transform: rotate(30deg) scale(.6); transition: .2s; }
@keyframes catch-in { from { transform: scale(0); } }

/* ---------- анекдоты ---------- */
.jokes { columns: 2 320px; column-gap: 16px; }
.joke { break-inside: avoid; margin-bottom: 16px; padding: 18px 20px; }
.joke-body { white-space: pre-wrap; font-size: 15px; line-height: 1.55; }

/* ---------- карта битвы (мини-территории) ---------- */
.battle-map.v2 .cell polygon { fill: var(--c); fill-opacity: .82; stroke: var(--card); stroke-width: 1.2; transition: fill-opacity .15s; }
.battle-map.v2 .cell polygon.lost { fill-opacity: .55; }
.battle-map.v2 .lost-dot { fill: rgba(255,255,255,.75); pointer-events: none; }
.battle-map.v2 .cell.can { cursor: pointer; }
.battle-map.v2 .cell.can polygon { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 2; }
.battle-map.v2 .cell.can:hover polygon { fill-opacity: 1; }
.battle-map.v2 .cell.mine polygon { fill-opacity: .95; }
.battle-map.v2 .cell.attacked polygon { animation: attacked 1.6s ease-in-out infinite; }
.battle-map.v2 .cell.fresh polygon { stroke: #ffd166; stroke-width: 2; }
@keyframes attacked { 50% { fill-opacity: .35; } }
.battle-map.v2 .reg-border { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.battle-map.v2 .reg-label { font: 700 13px var(--font); text-anchor: middle; dominant-baseline: middle; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 3px; pointer-events: none; }
.battle-map.v2 .reg-label.fallen { fill: #ffd8d4; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.map-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; background: var(--line-2); }
.lg.can { border: 1.5px dashed var(--ink); background: transparent; }
.lg.attacked { background: var(--accent); animation: attacked 1.6s infinite; }
.lg.lost { background: repeating-linear-gradient(45deg, var(--line-2) 0 3px, transparent 3px 6px); }
.lg.mine { background: var(--ink); }
.region-row { display: flex; gap: 10px; align-items: center; padding: 8px 16px; font-size: 14px; }
.region-row > i { width: 10px; height: 34px; border-radius: 3px; flex: none; }
.region-row b { font-weight: 500; display: block; }
.region-row .r { text-align: right; }
.region-row .r b { font-size: 16px; }
.region-row.mine { background: var(--accent-soft); }
.log-row { display: flex; gap: 8px; align-items: baseline; padding: 6px 16px; }
.log-row > i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.log-row time { margin-left: auto; white-space: nowrap; }

/* ---------- казино ---------- */
.casino { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 18px; margin-bottom: 20px; align-items: center; }
.casino-machine { display: flex; flex-direction: column; gap: 10px; align-items: center; background: var(--side); padding: 14px; border-radius: 14px; }
.reels { display: flex; gap: 6px; }
.reel { width: 64px; height: 64px; background: #fbfaf7; border-radius: 10px; overflow: hidden; box-shadow: inset 0 4px 8px rgba(0,0,0,.25); }
.reel-strip { display: flex; flex-direction: column; }
.reel-strip svg { width: 64px; height: 64px; padding: 8px; flex: none; }
.reels.spin .reel-strip { animation: reel .35s linear infinite; animation-delay: calc(var(--d) * -0.1s); }
@keyframes reel { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.casino.won .reel { animation: st-beat 1s ease-in-out 2; }
.casino.jackpot { box-shadow: 0 0 0 3px #e8b622, 0 0 30px rgba(232, 182, 34, .5); }
.casino-info h3 { font-size: 17px; margin: 4px 0 6px; }
.coupon { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1.5px dashed var(--accent); border-radius: 10px; margin-top: 6px; background: var(--accent-soft); font-size: 14px; }
@media (max-width: 760px) { .casino { grid-template-columns: 1fr; } }

/* ---------- сезоны ---------- */
.season-switch { margin-top: 12px; padding: 0 10px; }
.season-switch label { display: block; color: var(--side-muted); margin-bottom: 4px; }
.season-switch .select { height: 32px; font-size: 13px; background-color: rgba(255,255,255,.06); color: var(--side-ink); border-color: rgba(255,255,255,.12); }
.season-switch .select option { color: #17181a; }
.season-nav svg { width: 18px; height: 18px; flex: none; }
.season-banner { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--r-lg); background: var(--side); color: #fff; flex-wrap: wrap; position: relative; overflow: hidden; }
.season-banner .label { color: var(--side-muted); }
.season-banner b { font-size: 20px; display: block; }
.season-banner p { color: var(--side-ink); }
.sb-art svg { width: 64px; height: 64px; }
.season-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.sp { position: absolute; top: -40px; width: var(--size); height: var(--size); animation: fall linear infinite; opacity: .55; }
.sp svg { width: 100%; height: 100%; }
.sp-bat { color: #2b2d33; animation-name: flyby; }
.sp-leaf { color: #e2731f; }
.sp-snow { color: #a8c6ea; }
.sp-petal { color: #f2a6c0; }
@keyframes fall { to { transform: translate(40px, 110vh) rotate(320deg); } }
@keyframes flyby { 0% { transform: translate(0, 10vh); } 50% { transform: translate(-60px, 40vh) scale(1.2); } 100% { transform: translate(30px, 110vh); } }

/* хеллоуин: тыквенный акцент, тёплая бумага */
:root[data-season="halloween"] { --accent: #e8711c; --accent-soft: #fbe2cc; }
:root[data-season="halloween"] .side { background: linear-gradient(180deg, #17181a 60%, #2a1a10); }
:root[data-season="halloween"] .season-banner { background: linear-gradient(120deg, #1d1410, #3a2012); }
/* новый год: красный акцент и снег */
:root[data-season="newyear"] { --accent: #c8302c; --accent-soft: #f6dcdb; }
:root[data-season="newyear"] .side { background: linear-gradient(180deg, #17181a 60%, #102030); }
:root[data-season="newyear"] .season-banner { background: linear-gradient(120deg, #0f1d2a, #1d3348); }
/* весна: розовый акцент */
:root[data-season="spring"] { --accent: #d4507a; --accent-soft: #f8dde6; }
:root[data-season="spring"] .season-banner { background: linear-gradient(120deg, #2a1b22, #3d2531); }
:root[data-theme="dark"][data-season="halloween"] { --accent-soft: #3b2414; }
:root[data-theme="dark"][data-season="newyear"] { --accent-soft: #3b1c1b; }
:root[data-theme="dark"][data-season="spring"] { --accent-soft: #3b1e29; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-season="halloween"] { --accent-soft: #3b2414; }
  :root:not([data-theme="light"])[data-season="newyear"] { --accent-soft: #3b1c1b; }
  :root:not([data-theme="light"])[data-season="spring"] { --accent-soft: #3b1e29; }
}

/* календарь: профпраздники */
.dot-prof { background: #7d5bb0; }
.ann-prof .ann-ico { background: #ece3f4; color: #7d5bb0; }

@media (prefers-reduced-motion: reduce) {
  .season-layer, .sticker *, .pet *, .flame-ico { animation: none !important; }
}
