/* Dark Carnival Casino — палитра, шрифты и keyframes взяты из стилей Panorama ивента */
@font-face { font-family: "Reaver"; src: url("../assets/fonts/reaver-regular.otf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Reaver"; src: url("../assets/fonts/reaver-bold.otf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Reaver"; src: url("../assets/fonts/reaver-black.otf"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Radiance"; src: url("../assets/fonts/radiance-regular.otf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Radiance"; src: url("../assets/fonts/radiance-semibold.otf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Radiance"; src: url("../assets/fonts/radiance-bold.otf"); font-weight: 700; font-display: swap; }

:root {
  --ink: #060608;
  --midnight-1: #0b0c15;
  --midnight-2: #161322;
  --midnight-3: #171729;
  --midnight-4: #262640;
  --midnight-5: #303a58;
  --purple-1: #3b3148;
  --purple-2: #524776;
  --violet: #542e9b;
  --cream: #fff2df;
  --gold-1: #fbe0a0;
  --gold-2: #e9ce92;
  --gold-3: #ccbf9d;
  --gold-4: #b38f6c;
  --gold-5: #6d5635;
  --blue: #88a7ff;
  --green: #90bc52;
  --red: #c8452a;
  --blood: #661d0a;
  --muted: #978e86;
  --title: "Reaver", "Cormorant Garamond", Georgia, serif;
  --body: "Radiance", "Segoe UI", system-ui, sans-serif;
  --r-common: #b0c3d9; --r-uncommon: #5e98d9; --r-rare: #4b69ff; --r-mythical: #8847ff;
  --r-legendary: #d32ce6; --r-ultra: #e4ae39;
  --r-immortal: #e4ae39; --r-arcana: #ade55c; --r-seasonal: #fff34f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--midnight-1); color: var(--cream);
  font: 400 16px/1.45 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--title); font-weight: 700; margin: 0; letter-spacing: .04em; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.gold-text {
  background: linear-gradient(180deg, #fff 0%, #ffdfb7 45%, var(--gold-4) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8));
}

/* ---------- backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.backdrop-sky { position: absolute; inset: -4%; background: url("../assets/bg/sky.jpg") 20% 85% / cover; filter: brightness(.7) saturate(.9); animation: SkyDrift 120s ease-in-out infinite alternate; }
.backdrop-stars { position: absolute; inset: 0; background: url("../assets/bg/stars.webp") center / 900px; mix-blend-mode: screen; opacity: .5; animation: SelectionPulse 4s ease-in-out infinite alternate; }
.backdrop-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, rgba(6, 6, 12, .25) 0%, rgba(6, 6, 12, .6) 60%, rgba(6, 6, 12, .94) 100%); }
@keyframes SkyDrift { from { transform: translateX(-2%) scale(1.04); } to { transform: translateX(2%) scale(1.08); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 150px;
  background: linear-gradient(180deg, rgba(11, 12, 21, .2), rgba(11, 12, 21, .55)), url("../assets/ui/wood_dark.jpg") center / 400px;
  border-bottom: 2px solid var(--gold-5); box-shadow: 0 6px 28px rgba(0, 0, 0, .7), inset 0 -1px 0 rgba(251, 224, 160, .25);
}
.brand { position: absolute; left: 14px; top: -34px; width: 128px; transform-origin: 50% 0; animation: SignSway 5s ease-in-out infinite alternate; z-index: 2; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
@keyframes SignSway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex; align-items: center; gap: 7px; padding: 10px 11px; border-radius: 6px; white-space: nowrap; text-decoration: none;
  font: 700 13.5px/1 var(--title); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-3);
  transition: color .15s, background .15s, transform .1s;
}
.nav a img { width: 20px; height: 20px; opacity: .7; transition: opacity .15s, filter .15s; }
.nav a:hover { color: #fff; background: rgba(136, 167, 255, .08); }
.nav a:hover img { opacity: 1; }
.nav a.active { color: var(--gold-1); background: linear-gradient(180deg, rgba(84, 46, 155, .45), rgba(84, 46, 155, .1)); box-shadow: inset 0 -2px 0 var(--gold-1); }
.nav a.active img { opacity: 1; filter: drop-shadow(0 0 6px rgba(251, 224, 160, .8)); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-5); background: rgba(11, 12, 21, .6); cursor: pointer; color: var(--gold-2); font-size: 16px; transition: filter .1s, opacity .1s; }
.icon-btn:hover { filter: brightness(1.5); }
.icon-btn { position: relative; flex: 0 0 38px; }
.icon-btn.off { color: var(--muted); border-color: #3a3340; }
.icon-btn.off::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 2px; margin: -1px 0 0 -13px; background: var(--red); transform: rotate(-45deg); border-radius: 2px; }
.balance {
  display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; min-width: 140px;
  background: linear-gradient(180deg, #1c1830, #0b0c15); border: 1px solid var(--gold-4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 18px rgba(251, 224, 160, .12);
  font: 700 20px/1 var(--title); color: var(--gold-1); font-variant-numeric: tabular-nums;
}
.balance[hidden], .inv-btn[hidden] { display: none; }
.inv-btn { position: relative; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  background: rgba(11, 12, 21, .6); border: 1px solid var(--gold-5); color: var(--gold-2); font: 700 13px/1 var(--title); letter-spacing: .06em; text-transform: uppercase; transition: border-color .15s, color .15s; }
.inv-btn img { width: 22px; height: 22px; opacity: .85; }
.inv-btn b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--violet); color: #fff; font: 700 12px/1 var(--body); font-variant-numeric: tabular-nums; }
.inv-btn:hover, .inv-btn.active { border-color: var(--gold-1); color: var(--gold-1); }
.auth { display: flex; align-items: center; min-width: 0; }
.user { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 3px; border-radius: 999px; background: rgba(11, 12, 21, .6); border: 1px solid var(--gold-5); min-width: 0; }
.user img, .user-ph { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-ph { background: radial-gradient(circle at 35% 30%, #7a4fd0, #262640); }
.user span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1 var(--body); color: var(--cream); }
.user .icon-btn { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
.steam-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; background: linear-gradient(180deg, #5e9a3c, #1f4a2a); border: 1px solid #9ad06a; color: #fff; font: 700 13px/1 var(--title); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 0 18px rgba(144, 188, 82, .25); transition: filter .1s; }
.steam-btn:hover { filter: brightness(1.25); }
.modal-card p { color: var(--gold-3); margin: 0; }
.balance img { width: 32px; height: 32px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.balance.bump { animation: BalanceBump .35s ease-out; }
.balance.drop { animation: BalanceDrop .35s ease-out; }
@keyframes BalanceBump { 30% { transform: scale(1.12); filter: brightness(1.8); } }
@keyframes BalanceDrop { 30% { transform: translateY(3px); filter: brightness(.6) saturate(.4); } }

/* ---------- common pieces ---------- */
.view { width: 100%; max-width: 1240px; margin: 0 auto; flex: 1; padding: 26px 20px 50px; animation: ViewIn .35s ease-out; }
@keyframes ViewIn { from { opacity: 0; transform: translateY(10px); } }
.panel {
  position: relative; border-radius: 14px; padding: 22px;
  background: linear-gradient(180deg, rgba(22, 19, 34, .55), rgba(11, 12, 21, .82)), url("../assets/ui/wood_purple.jpg") center / 520px;
  border: 1px solid rgba(179, 143, 108, .55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 242, 223, .12);
}
.panel.bolted::before, .panel.bolted::after { content: ""; position: absolute; top: 8px; width: 14px; height: 14px; background: url("../assets/ui/screw.png") center / contain no-repeat; opacity: .9; }
.panel.bolted::before { left: 8px; } .panel.bolted::after { right: 8px; }
.ribbon {
  position: relative; margin: 0 auto 20px; width: min(600px, 100%); aspect-ratio: 1440 / 220; display: grid; place-items: center;
  background: url("../assets/ui/banner_gold.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6));
}
.ribbon h1 { font-size: clamp(17px, 2.6vw, 28px); color: #fff3d9; text-shadow: 0 2px 0 #2a1a08, 0 0 12px rgba(20, 10, 0, .9), 0 0 2px #2a1a08; transform: translateY(-18%); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.sub { text-align: center; color: var(--cream); text-shadow: 0 1px 6px #000, 0 0 14px #000; margin: -14px auto 24px; max-width: 760px; font-size: 16px; }
.help-chip { margin-left: 8px; border-color: var(--gold-4); color: var(--gold-1); vertical-align: 1px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 8px; background: rgba(6, 6, 12, .55); border: 1px solid rgba(179, 143, 108, .25); }
.steps li::before { content: counter(st); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); border: 1px solid var(--gold-1); font: 700 16px/1 var(--title); color: #fff; }
.steps b { font: 700 15px/1.2 var(--title); letter-spacing: .04em; color: var(--gold-1); }
.steps span { color: var(--gold-3); font-size: 14px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.center { justify-content: center; }
.coin-i { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.22em; margin-right: .2em; background: url("../assets/sym/coin.png") center / contain no-repeat; }

/* Кнопка — порт DOTADarkCarnivalButton */
.btn {
  position: relative; height: 50px; min-width: 150px; padding: 0 40px; border: 0; border-radius: 8px; cursor: pointer; isolation: isolate;
  background: linear-gradient(180deg, var(--midnight-5), var(--midnight-3));
  box-shadow: 0 6px 32px -4px rgba(0, 0, 0, .6); transition: filter .1s, transform .05s;
  font: 700 16px/1 var(--title); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn::before { content: ""; position: absolute; inset: 0; border-radius: 8px; z-index: -1; background: url("../assets/ui/woodgrain.jpg") center / 180px; mix-blend-mode: overlay; opacity: .55; }
.btn::after {
  content: ""; position: absolute; inset: 0 -14px; pointer-events: none; border-style: solid; border-width: 50px 40px 0 40px;
  border-image: url("../assets/ui/button_border.png") 100% 80 0 80 stretch;
}
.btn > span { display: inline-block; background: linear-gradient(180deg, #fff 10%, var(--gold-1) 45%, var(--gold-4)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8)); }
.btn:hover:not(:disabled) { filter: brightness(1.45); }
.btn:active:not(:disabled) { transform: scale(.96); filter: brightness(.7); }
.btn:disabled { filter: saturate(.2) brightness(.45); cursor: not-allowed; }
.btn.purple { background: linear-gradient(180deg, #7a4fd0, var(--purple-1)); }
.btn.red { background: linear-gradient(180deg, #b8402a, var(--blood)); }
.btn.green { background: linear-gradient(180deg, #5e9a3c, #1f4a2a); }
.btn.gold { background: linear-gradient(180deg, #d9a441, #6d4a12); }
.btn.big { height: 64px; padding: 0 60px; font-size: 20px; }
.btn.big::after { border-width: 64px 51px 0 51px; inset: 0 -18px; }
.btn.small { height: 38px; min-width: 0; padding: 0 26px; font-size: 13px; }
.btn.small::after { border-width: 38px 30px 0 30px; inset: 0 -10px; }
.btn.glow { animation: GlowFreeToken .75s ease-in-out infinite alternate-reverse; }

.chip { border: 1px solid var(--gold-5); background: rgba(11, 12, 21, .7); color: var(--gold-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 14px/1 var(--body); transition: all .1s; font-variant-numeric: tabular-nums; }
.chip:hover:not(:disabled) { border-color: var(--gold-1); color: #fff; background: rgba(84, 46, 155, .4); }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.chip.on { background: var(--violet); border-color: var(--gold-1); color: #fff; }

.bet { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bet-label { font: 700 12px/1 var(--title); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); }
.bet-main { display: flex; align-items: center; gap: 6px; }
.bet-value { min-width: 150px; text-align: center; padding: 10px 14px; border-radius: 8px; background: #07070d; border: 1px solid var(--gold-5); box-shadow: inset 0 2px 10px rgba(0, 0, 0, .9); font: 700 22px/1 var(--title); color: var(--gold-1); font-variant-numeric: tabular-nums; }
.bet-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* ---------- Dota keyframes (перенесены из vcss ивента) ---------- */
@keyframes BobReward { 0% { transform: translateY(-2px); } 100% { transform: translateY(2px); } }
@keyframes BobShadow { 0% { transform: scale(.95); opacity: .95; } 100% { transform: scale(1.05); } }
@keyframes PulseReward { 0% { transform: scale(.5); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; filter: brightness(4); } 100% { transform: none; opacity: 1; filter: brightness(1); } }
@keyframes CardRotate { 0% { rotate: -4deg; } 100% { rotate: 4deg; } }
@keyframes TarotCardBackSpin { 0% { transform: rotateY(360deg); opacity: 1; } 49% { opacity: 1; } 50% { opacity: 0; } 100% { transform: rotateY(180deg); opacity: 0; } }
@keyframes TarotCardFrontSpin { 0% { transform: rotateY(180deg); opacity: 0; } 49% { opacity: 0; } 50% { opacity: 1; } 100% { transform: rotateY(0deg); opacity: 1; } }
@keyframes SpinDial1 { to { transform: rotate(-360deg); } }
@keyframes SpinDial2 { to { transform: rotate(360deg); } }
@keyframes GlowPulse { 0%, 100% { box-shadow: 0 0 1px 2px rgba(255, 163, 42, .1); } 50% { box-shadow: 0 0 6px 6px rgba(255, 163, 42, .3); } }
@keyframes GlowFreeToken { 0% { box-shadow: 0 0 40px -6px rgba(255, 221, 147, .05); filter: brightness(1); } 100% { box-shadow: 0 0 48px -6px rgba(255, 221, 147, .35); filter: brightness(1.5); } }
@keyframes GlowClaimableTarot { 0% { filter: brightness(1); transform: none; } 100% { filter: brightness(1.5); transform: scale(1.01); } }
@keyframes GlowClaimableTarotStrong { 0% { filter: brightness(1); transform: none; } 100% { filter: brightness(2); transform: scale(1.03); } }
@keyframes TarotGlowPulse { 0% { opacity: .18; filter: brightness(.65) hue-rotate(0deg); } 14% { opacity: .62; filter: brightness(.9) hue-rotate(6deg); } 27% { opacity: .34; filter: brightness(1.15) hue-rotate(14deg); } 41% { opacity: .88; filter: brightness(.78) hue-rotate(8deg); } 56% { opacity: .45; filter: brightness(1.05) hue-rotate(19deg); } 73% { opacity: 1; filter: brightness(.92) hue-rotate(11deg); } 89% { opacity: .28; filter: brightness(1.2) hue-rotate(22deg); } 100% { opacity: .18; filter: brightness(.65) hue-rotate(0deg); } }
@keyframes SelectionPulse { 0% { opacity: 1; } 100% { opacity: .2; } }
@keyframes TutorialFreeTokenPopupSway { 0% { transform: translateX(-10px) rotate(-.3deg); } 100% { transform: translateX(10px) rotate(.3deg); } }
@keyframes Shimmer { 0% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes RaysSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes SpriteRun { to { background-position-x: calc(var(--frames) * var(--s) * -1); } }

.sprite { --s: 120px; --frames: 21; width: var(--s); height: var(--s); background-repeat: no-repeat; background-size: calc(var(--frames) * var(--s)) var(--s); animation: SpriteRun 1.6s steps(var(--frames)) infinite; }
.sprite.chest { background-image: url("../assets/anim/chest_large.png"); }
.sprite.chest-m { background-image: url("../assets/anim/chest_medium.png"); }
.sprite.sack { --frames: 10; background-image: url("../assets/anim/candy_sack_big.png"); animation-duration: 1s; }

/* ---------- lobby ---------- */
.hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 400px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; border: 1px solid rgba(179, 143, 108, .6); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.hero-bg { position: absolute; inset: 0; background: url("../assets/bg/splash.jpg") 60% 40% / cover; animation: HeroZoom 40s ease-in-out infinite alternate; }
@keyframes HeroZoom { from { transform: scale(1.02); } to { transform: scale(1.12) translateX(-1.5%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 16, .92) 0%, rgba(8, 8, 16, .55) 45%, transparent 75%), linear-gradient(0deg, rgba(8, 8, 16, .9), transparent 45%); pointer-events: none; }
.hero-tent { position: absolute; top: 0; left: 0; right: 0; height: 120px; background: url("../assets/bg/tent.webp") center top / cover; opacity: .5; mix-blend-mode: screen; z-index: 1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.hero-copy { position: relative; z-index: 2; padding: 46px 40px 40px; }
.hero-copy .logo { width: min(360px, 80%); margin-bottom: 8px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8)); }
.hero-copy h1 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; text-transform: uppercase; }
.hero-copy p { color: var(--gold-3); max-width: 50ch; margin: 12px 0 16px; font-size: 17px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; padding: 0; }
.hero-points li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; rotate: 45deg; background: var(--gold-1); box-shadow: 0 0 8px rgba(251, 224, 160, .7); }
.hero-points b { display: block; font: 700 13px/1.3 var(--title); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-1); }
.hero-side { position: relative; z-index: 2; padding: 20px 26px 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bonus-card { width: min(330px, 100%); text-align: center; padding: 18px; }
.bonus-card h3 { font-size: 16px; text-transform: uppercase; color: var(--gold-1); margin-bottom: 4px; }
.bonus-card .sprite { margin: 0 auto -4px; }
.bonus-card p { margin: 0 0 12px; font-size: 14px; color: var(--gold-3); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; margin-top: 14px; }
.section-title .btn { order: 3; }
.section-title::after { order: 2; }
.how-step { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.how-step i { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); border: 1px solid var(--gold-1); font: 700 18px/1 var(--title); font-style: normal; color: #fff; }
.how-step b { display: block; font: 700 15px/1.2 var(--title); letter-spacing: .05em; text-transform: uppercase; color: var(--gold-1); }
.how-step span { font-size: 13px; color: var(--gold-3); }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.game-card {
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 176px 16px 18px; border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit; border: 1px solid rgba(179, 143, 108, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  transition: transform .18s ease-out, box-shadow .18s, border-color .18s; isolation: isolate;
}
.game-card .gc-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .5s ease-out, filter .3s; filter: saturate(.9) brightness(.75); }
.game-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 8, 16, .96) 8%, rgba(8, 8, 16, .25) 60%, rgba(8, 8, 16, .5)); }
.game-card .gc-art { position: absolute; left: 50%; top: 16px; width: 150px; height: 150px; translate: -50% 0; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .7)); animation: BobReward 1s ease-in-out infinite alternate-reverse; }
.game-card h3 { font-size: 17px; line-height: 1.15; text-transform: uppercase; color: var(--gold-1); overflow-wrap: anywhere; }
.game-card p { margin: 6px 0 0; font-size: 14px; color: var(--gold-3); min-height: 3em; }
.game-card .gc-play { margin-top: auto; padding-top: 10px; font: 700 13px/1 var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-1); opacity: .75; transition: opacity .15s, transform .15s; }
.game-card:hover .gc-play { opacity: 1; transform: translateX(4px); }
.game-card .gc-tag { position: absolute; top: 12px; right: 12px; font: 700 11px/1 var(--title); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; background: rgba(84, 46, 155, .85); color: #fff; }
.game-card:hover { transform: translateY(-6px); border-color: var(--gold-1); box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 34px rgba(251, 224, 160, .18); }
.game-card:hover .gc-bg { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.stat { padding: 14px 16px; text-align: center; }
.stat b { display: block; font: 700 24px/1.1 var(--title); color: var(--gold-1); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- stage (общая сцена игр) ---------- */
.stage { position: relative; border-radius: 16px; overflow: hidden; border: 2px solid var(--gold-5); box-shadow: 0 24px 70px rgba(0, 0, 0, .75), inset 0 0 80px rgba(0, 0, 0, .8); background: #0a0a12 center / cover; }
.stage::before, .stage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; background: url("../assets/ui/curtain.webp") left top / cover; z-index: 3; pointer-events: none; opacity: .95; }
.stage::after { right: 0; transform: scaleX(-1); }
.stage::before { left: 0; }
.stage.no-curtain::before, .stage.no-curtain::after { display: none; }
.controls { margin-top: 18px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.result-line { min-height: 34px; text-align: center; font: 700 22px/1.2 var(--title); letter-spacing: .06em; margin-top: 14px; }
.result-line.win { color: var(--gold-1); text-shadow: 0 0 18px rgba(251, 224, 160, .6); animation: PulseReward .6s ease-out; }
.result-line.lose { color: var(--muted); }

/* ---------- treasure ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.case-card { cursor: pointer; text-align: center; padding: 14px 12px 16px; transition: transform .15s, filter .15s, border-color .15s; filter: saturate(.75) brightness(.85); }
.case-card img { height: 96px; margin: 0 auto 6px; object-fit: contain; border-radius: 8px; }
.case-card h3 { font-size: 16px; text-transform: uppercase; color: var(--gold-1); }
.case-card .price { font: 700 16px/1 var(--title); color: var(--gold-2); margin-top: 6px; }
.case-card:hover { transform: translateY(-3px); filter: none; }
.case-card.on { filter: none; border-color: var(--gold-1); box-shadow: 0 0 0 1px var(--gold-1), 0 0 40px rgba(251, 224, 160, .2), 0 18px 50px rgba(0, 0, 0, .65); }
.t-stage { height: clamp(240px, 34vh, 300px); background-image: linear-gradient(rgba(8, 8, 16, .35), rgba(8, 8, 16, .75)), url("../assets/bg/room_storage.jpg"); }
.t-idle { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.t-idle .sprite { --s: 240px; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .7)); }
.t-idle .shadow { position: absolute; bottom: 48px; width: 180px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(8px); animation: BobShadow 1s ease-in-out infinite alternate-reverse; }
.t-idle .bob { animation: BobReward 1s ease-in-out infinite alternate-reverse; }
.strip-wrap { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; mask-image: linear-gradient(90deg, transparent 4%, #000 24%, #000 76%, transparent 96%); }
.strip { display: flex; gap: 10px; will-change: transform; }
.strip .item-card { flex: 0 0 170px; }
.marker { position: absolute; top: 18px; bottom: 18px; left: 50%; width: 4px; margin-left: -2px; z-index: 4; background: linear-gradient(var(--gold-1), #fff, var(--gold-1)); box-shadow: 0 0 18px 3px rgba(251, 224, 160, .7); border-radius: 2px; }
.marker::before, .marker::after { content: ""; position: absolute; left: 50%; translate: -50% 0; border: 10px solid transparent; }
.marker::before { top: -4px; border-top-color: var(--gold-1); }
.marker::after { bottom: -4px; border-bottom-color: var(--gold-1); }

.item-card { --rc: var(--r-rare); position: relative; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #1b1a2c, #0c0c16); border: 1px solid color-mix(in srgb, var(--rc) 55%, #000); box-shadow: inset 0 -40px 40px -30px color-mix(in srgb, var(--rc) 60%, transparent); }
.item-card .ic-img { aspect-ratio: 256 / 170; width: 100%; object-fit: cover; }
.item-card.tarot .ic-img { object-fit: contain; padding: 6px; background: radial-gradient(circle, #2a2440, #0c0c16); }
.item-card .ic-meta { padding: 8px 10px 10px; border-top: 3px solid var(--rc); }
.item-card .ic-name { font: 700 13px/1.2 var(--title); letter-spacing: .03em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-card .ic-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rc); margin-top: 3px; filter: brightness(1.35); }
.item-card .ic-sub img { width: 18px; height: 18px; border-radius: 3px; }
.item-card .ic-val { font: 600 13px/1 var(--body); color: var(--gold-1); margin-top: 6px; font-variant-numeric: tabular-nums; }
.item-card .ic-odds { position: absolute; top: 6px; right: 6px; font-size: 11px; padding: 3px 6px; border-radius: 4px; background: rgba(0, 0, 0, .7); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.item-card.r-common { --rc: var(--r-common); } .item-card.r-uncommon { --rc: var(--r-uncommon); } .item-card.r-rare { --rc: var(--r-rare); }
.item-card.r-mythical { --rc: var(--r-mythical); } .item-card.r-legendary { --rc: var(--r-legendary); } .item-card.r-ultra { --rc: var(--r-ultra); }
.item-card.r-immortal { --rc: var(--r-immortal); } .item-card.r-arcana { --rc: var(--r-arcana); } .item-card.r-seasonal { --rc: var(--r-seasonal); }
.item-card.r-ultra, .item-card.r-arcana { animation: GlowPulse 1.6s infinite; }
.cases { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.case-range { font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.price-note { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.loading-box { text-align: center; padding: 40px 20px; color: var(--gold-3); }
.market-filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; padding: 14px; margin-bottom: 12px; }
.m-input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 8px; background: #07070d; border: 1px solid var(--gold-5); color: var(--cream); font: 400 15px/1 var(--body); }
.m-input:focus { outline: none; border-color: var(--gold-1); box-shadow: 0 0 0 2px rgba(251, 224, 160, .15); }
select.m-input { cursor: pointer; }
.market-info { font-size: 14px; color: var(--gold-3); margin: 0 2px 14px; }
.market-info b { color: var(--gold-1); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; color: var(--gold-3); font-size: 14px; }
.inv-grid .item-card .ic-odds { font-size: 10.5px; }
.loot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.section-title { font-size: 16px; text-transform: uppercase; color: var(--gold-2); margin-top: 30px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-5), transparent); }

.reward { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: radial-gradient(circle, rgba(20, 16, 40, .86), rgba(6, 6, 12, .96)); animation: ViewIn .25s; }
.reward .rays { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; background: url("../assets/ui/rays.png") center / contain; opacity: .09; transform: translate(-50%, -50%); animation: RaysSpin 30s linear infinite; mix-blend-mode: screen; }
.reward-inner { position: relative; display: flex; gap: 26px; align-items: center; animation: PulseReward .6s ease-out both; }
.reward-inner .item-card { width: 240px; box-shadow: 0 0 60px color-mix(in srgb, var(--rc) 60%, transparent), inset 0 -40px 40px -30px color-mix(in srgb, var(--rc) 60%, transparent); }
.reward-side h2 { font-size: 26px; color: var(--gold-1); text-transform: uppercase; }
.reward-side .rar { font: 700 14px/1 var(--title); letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 16px; }
.reward-side .row { gap: 26px; }

/* ---------- slots ---------- */
.slot-stage { padding: 28px 12% 24px; background-image: linear-gradient(rgba(8, 8, 16, .5), rgba(8, 8, 16, .82)), url("../assets/bg/room_head.jpg"); }
.slot-frame { position: relative; margin: 0 auto; max-width: calc(clamp(62px, 11vh, 100px) * 5 + 64px); padding: 14px; border-radius: 14px; background: url("../assets/ui/gold_leaf.jpg") center / cover; box-shadow: 0 12px 40px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 240, 200, .5); z-index: 4; }
.reels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 6px; border-radius: 8px; background: #050508; box-shadow: inset 0 0 30px #000; }
.reel { --cell: clamp(62px, 11vh, 100px); height: calc(var(--cell) * 3); overflow: hidden; border-radius: 6px; position: relative; background: linear-gradient(180deg, #05050a, #1d1a30 50%, #05050a), url("../assets/ui/leather.jpg"); box-shadow: inset 0 0 0 1px rgba(179, 143, 108, .3); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 22%, transparent 78%, rgba(0, 0, 0, .75)); pointer-events: none; }
.reel-strip { will-change: transform; }
.reel.spinning .reel-strip { filter: blur(1.5px); }
.cell { height: var(--cell); display: grid; place-items: center; position: relative; }
.cell img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .7)); transition: transform .2s; }
.cell.hit::before { content: ""; position: absolute; inset: 5px; border-radius: 8px; border: 2px solid var(--gold-1); animation: GlowPulse 1s infinite; background: radial-gradient(circle, rgba(251, 224, 160, .25), transparent 70%); }
.cell.hit img { animation: GlowClaimableTarotStrong .5s ease-in-out infinite alternate-reverse; }
.cell.dim img { filter: grayscale(.8) brightness(.35); }
.slot-lines { position: absolute; inset: 6px; pointer-events: none; z-index: 2; }
.slot-lines polyline { fill: none; stroke: var(--gold-1); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #ffb23f); stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: LineDraw .5s ease-out forwards; opacity: .9; }
@keyframes LineDraw { to { stroke-dashoffset: 0; } }
.slot-win { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 5; pointer-events: none; text-align: center; font: 900 64px/1 var(--title); white-space: nowrap; animation: PulseReward .6s ease-out both; }
.slot-win small { display: block; font-size: 20px; letter-spacing: .3em; }
.paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pay { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(6, 6, 12, .6); border: 1px solid rgba(179, 143, 108, .25); font-size: 13px; }
.pay img { width: 46px; height: 46px; object-fit: contain; }
.pay b { color: var(--gold-1); }

/* ---------- wheel ---------- */
.wheel-stage { display: grid; place-items: center; padding: 38px 0 34px; background-image: linear-gradient(rgba(8, 8, 16, .45), rgba(8, 8, 16, .8)), url("../assets/bg/oracle.webp"); background-color: #0b0c1c; }
.wheel-box { position: relative; width: min(400px, 72vw, 44vh); aspect-ratio: 1; z-index: 4; }
.wheel-dial { position: absolute; inset: -17%; background: center / contain no-repeat; pointer-events: none; opacity: .8; }
.wheel-dial.d1 { background-image: url("../assets/ui/dial1.webp"); animation: SpinDial1 160s linear infinite; }
.wheel-dial.d2 { inset: -9%; background-image: url("../assets/ui/dial3.webp"); animation: SpinDial2 400s linear infinite; opacity: .9; }
.wheel { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 8px #2a1c0c, 0 0 0 11px var(--gold-4), 0 0 0 14px #2a1c0c, 0 20px 60px rgba(0, 0, 0, .8), 0 0 80px rgba(136, 167, 255, .25); will-change: transform; }
.wheel svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5a4a82, #171729 70%); border: 4px solid var(--gold-4); box-shadow: 0 6px 20px rgba(0, 0, 0, .8), inset 0 0 14px rgba(0, 0, 0, .8); display: grid; place-items: center; z-index: 2; }
.wheel-hub img { width: 62%; filter: drop-shadow(0 0 6px rgba(251, 224, 160, .7)); }
.wheel-pointer { position: absolute; left: 50%; top: -22px; translate: -50% 0; width: 34px; height: 46px; z-index: 3; background: linear-gradient(180deg, #fff3d9, var(--gold-4)); clip-path: polygon(50% 100%, 0 20%, 20% 0, 80% 0, 100% 20%); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .8)); transform-origin: 50% 10%; }
.wheel-pointer.kick { animation: PointerKick .12s ease-out; }
@keyframes PointerKick { 40% { transform: rotate(-16deg); } }
.wheel-legend { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.wheel-legend span { font: 700 13px/1 var(--title); padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); font-variant-numeric: tabular-nums; }

/* ---------- tarot ---------- */
.tarot-stage { padding: 30px 0 26px; background-image: linear-gradient(rgba(8, 8, 16, .5), rgba(8, 8, 16, .85)), url("../assets/bg/room_cauldron.jpg"); }
.tarot-table { position: relative; z-index: 4; display: flex; justify-content: center; align-items: center; gap: clamp(16px, 5vw, 60px); }
.tcard { position: relative; width: clamp(110px, min(20vw, 19vh), 190px); aspect-ratio: 440 / 734; perspective: 1000px; }
.tcard .face { position: absolute; inset: 0; border-radius: 10px; background: center / cover no-repeat; box-shadow: 0 16px 34px rgba(0, 0, 0, .75); backface-visibility: hidden; }
.tcard .back { background-image: url("../assets/tarot/back.webp"); }
.tcard .front { opacity: 0; transform: rotateY(180deg); }
.tcard.flipped .back { animation: TarotCardBackSpin .6s ease-in-out forwards; }
.tcard.flipped .front { animation: TarotCardFrontSpin .6s ease-in-out forwards; }
.tcard.shown .back { opacity: 0; } .tcard.shown .front { opacity: 1; transform: none; }
.tcard.waiting { animation: CardRotate .5s ease-in-out infinite alternate; }
.tcard.waiting .back { animation: GlowClaimableTarot 1s ease-in-out infinite alternate-reverse; }
.tcard .glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(170, 110, 255, .8), transparent 65%); animation: TarotGlowPulse 10s ease-out infinite alternate-reverse; z-index: -1; }
.tcard.good .front { box-shadow: 0 0 0 3px var(--green), 0 0 40px rgba(144, 188, 82, .7); }
.tcard.bad .front { box-shadow: 0 0 0 3px var(--red), 0 0 40px rgba(200, 69, 42, .7); filter: saturate(.5) brightness(.7); }
.tcard-label { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font: 700 14px/1.2 var(--title); letter-spacing: .08em; color: var(--gold-2); text-transform: uppercase; white-space: nowrap; }
.tarot-mid { display: flex; flex-direction: column; gap: 12px; align-items: center; min-width: 190px; }
.tarot-pot { text-align: center; font: 700 14px/1.3 var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-3); }
.tarot-pot b { display: block; font-size: 32px; color: var(--gold-1); font-variant-numeric: tabular-nums; }
.trail { display: flex; gap: 6px; justify-content: center; margin-top: 50px; min-height: 76px; position: relative; z-index: 4; flex-wrap: wrap; }
.trail img { height: 74px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0, 0, 0, .7); animation: PulseReward .4s ease-out both; }
.ladder { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.ladder span { font-size: 12px; padding: 4px 8px; border-radius: 4px; background: rgba(6, 6, 12, .6); border: 1px solid rgba(179, 143, 108, .25); color: var(--gold-3); font-variant-numeric: tabular-nums; }
.ladder span.cur { background: var(--violet); color: #fff; border-color: var(--gold-1); }

/* ---------- crash ---------- */
.crash-stage { height: clamp(280px, 42vh, 420px); background: #0b1024 url("../assets/bg/sky.jpg") 70% 100% / auto 190% no-repeat; }
.crash-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; background: linear-gradient(transparent, rgba(4, 4, 10, .96) 80%); transition: transform 1.6s cubic-bezier(.4, 0, .6, 1), opacity 1.6s; pointer-events: none; }
.crash-stage.flying .crash-ground { transform: translateY(120%); opacity: 0; }
.crash-mult { position: absolute; left: 0; right: 0; top: 24px; z-index: 5; text-align: center; font: 900 clamp(44px, 8vw, 84px)/1 var(--title); font-variant-numeric: tabular-nums; pointer-events: none; }
.crash-mult.dead { color: var(--red); -webkit-text-fill-color: var(--red); background: none; text-shadow: 0 0 30px rgba(200, 69, 42, .7); }
.crash-note { position: absolute; left: 0; right: 0; top: 118px; z-index: 5; text-align: center; font: 700 20px/1.2 var(--title); letter-spacing: .08em; color: var(--gold-1); text-shadow: 0 2px 8px #000; }
.blimp { position: absolute; left: 50%; bottom: 24px; width: clamp(110px, 17vh, 160px); translate: -50% 0; margin-left: 0; z-index: 2; transition: bottom 1.4s cubic-bezier(.3, 0, .2, 1); }
.blimp img { animation: TutorialFreeTokenPopupSway 2s ease-in-out infinite alternate-reverse; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .5)); }
.blimp.fly { bottom: 22%; }
.blimp.dead { transition: bottom 1.1s cubic-bezier(.6, 0, 1, .6), transform 1.1s ease-in, opacity .3s 1s; bottom: -420px; transform: rotate(48deg); opacity: 0; }
.crash-boom { position: absolute; left: 50%; bottom: 30%; width: 200px; margin-left: -100px; z-index: 3; animation: PulseReward .5s ease-out both, FadeAway .5s .5s forwards; pointer-events: none; }
@keyframes FadeAway { to { opacity: 0; transform: scale(1.4); } }
.cloud { position: absolute; z-index: 1; width: 220px; opacity: .85; pointer-events: none; will-change: transform; }
.crash-history { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; min-height: 30px; }
.crash-history span { font: 700 13px/1 var(--title); padding: 6px 10px; border-radius: 999px; background: rgba(6, 6, 12, .7); border: 1px solid rgba(200, 69, 42, .5); color: #e08a76; font-variant-numeric: tabular-nums; }
.crash-history span.hi { border-color: rgba(144, 188, 82, .6); color: var(--green); }
.crash-history span.top { border-color: var(--gold-1); color: var(--gold-1); }
.field { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.field input { width: 120px; text-align: center; padding: 10px; border-radius: 8px; background: #07070d; border: 1px solid var(--gold-5); color: var(--gold-1); font: 700 18px/1 var(--title); }
.field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- inventory ---------- */
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.inv-grid .item-card .btn { width: calc(100% - 20px); margin: 0 10px 10px; }
.empty { text-align: center; padding: 50px 20px; color: var(--gold-3); }
.empty img { width: 120px; margin: 0 auto 12px; opacity: .8; }

/* ---------- host, toasts, modal ---------- */
.host { position: fixed; left: -34px; bottom: -8px; z-index: 30; width: 250px; pointer-events: none; transform: translateY(105%); transition: transform .4s cubic-bezier(.2, .9, .3, 1.2); }
.host.talk { transform: none; }
.host-img { width: 100%; filter: drop-shadow(0 0 20px rgba(0, 0, 0, .8)); transform-origin: 50% 100%; }
.host.talk .host-img { animation: HostPop .35s ease-out; }
@keyframes HostPop { 40% { transform: scale(1.05) rotate(-1.5deg); } }
.host-bubble { position: absolute; left: 190px; bottom: 150px; width: 240px; padding: 12px 14px; border-radius: 12px 12px 12px 2px; background: #fff3d9; color: #2a1a08; font: 600 14px/1.35 var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(8px) scale(.96); transform-origin: 0 100%; transition: opacity .2s, transform .2s; }
.host.talk .host-bubble { opacity: 1; transform: none; }
.toasts { position: fixed; right: 18px; top: 84px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 8px; background: rgba(11, 12, 21, .94); border: 1px solid var(--gold-4); color: var(--gold-1); font: 600 14px/1.3 var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); animation: ToastIn .25s ease-out, FadeAway .4s 2.6s forwards; }
@keyframes ToastIn { from { opacity: 0; transform: translateX(20px); } }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4, 4, 10, .78); backdrop-filter: blur(4px); animation: ViewIn .2s; }
.modal[hidden] { display: none; }
.modal-card { width: min(760px, 100%); max-height: 86vh; overflow: auto; }
.modal-card h2 { font-size: 22px; text-transform: uppercase; color: var(--gold-1); margin-bottom: 14px; }
.flycoin { position: fixed; z-index: 90; width: 30px; height: 30px; pointer-events: none; background: url("../assets/sym/coin.png") center / contain no-repeat; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.footer { position: relative; margin-top: 20px; padding: 34px 20px 22px; border-top: 1px solid rgba(179, 143, 108, .35); background: linear-gradient(180deg, rgba(8, 8, 16, .4), rgba(8, 8, 16, .92)); color: var(--muted); font-size: 13px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-logo { width: 150px; margin-bottom: 10px; opacity: .9; }
.footer p { margin: 0; line-height: 1.55; }
.footer-about p { max-width: 46ch; }
.footer h4 { margin: 4px 0 10px; font: 700 13px/1 var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.footer-col a { display: block; padding: 3px 0; color: var(--gold-3); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--gold-1); }
.footer-bottom { max-width: 1240px; margin: 26px auto 0; padding-top: 16px; border-top: 1px solid rgba(179, 143, 108, .18); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 12px; }
.footer-bottom span:last-child { margin-left: auto; }
.footer .age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); color: #fff; font: 700 12px/1 var(--body); }

@media (max-width: 1640px) {
  .host { display: none; }
  .user span, .inv-btn span { display: none; }
  .inv-btn { padding: 0 8px; }
}
@media (max-width: 1400px) {
  .topbar { height: auto; flex-wrap: wrap; justify-content: flex-end; padding: 8px 14px 0 150px; row-gap: 2px; }
  .nav { order: 3; flex: 0 0 100%; justify-content: space-between; padding-bottom: 4px; }
  .nav a { padding: 9px 6px; font-size: 12.5px; gap: 5px; letter-spacing: .03em; }
  .nav a img { width: 17px; height: 17px; }
  .brand { top: -30px; width: 124px; }
}
@media (max-width: 1240px) {
  .host { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar { padding: 8px 10px 0 96px; }
  .brand { width: 78px; top: -20px; left: 8px; }
  .nav { margin-left: -86px; flex-basis: calc(100% + 86px); justify-content: flex-start; padding-top: 14px; }
  .nav a { flex-direction: column; gap: 3px; font-size: 10px; padding: 6px 8px; letter-spacing: .02em; }
  .how { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-card, .game-card:nth-child(n + 4) { grid-column: auto; }
  .view { padding: 26px 12px 40px; }
  .user span { display: none; }
  .steam-btn { height: 36px; padding: 0 12px; font-size: 11px; letter-spacing: .03em; }
  .nav { justify-content: space-between; }
  .nav a { font-size: 9px; padding: 6px 3px; letter-spacing: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 30px 18px 22px; }
  .hero-copy .row { flex-direction: column; align-items: stretch; }
  .hero-side { padding: 0 18px 20px; }
  .btn.big { height: 54px; padding: 0 24px; font-size: 15px; min-width: 0; }
  .btn.big::after { border-width: 54px 43px 0 43px; inset: 0 -12px; }
  .controls { gap: 16px; }
  .tarot-table { gap: 8px; padding: 0 8px; }
  .tarot-mid { min-width: 0; flex: 1; }
  .tarot-mid .btn { width: 100%; min-width: 0; height: 44px; padding: 0 6px; font-size: 11px; letter-spacing: .02em; }
  .tarot-mid .btn::after { border-width: 44px 35px 0 35px; inset: 0 -8px; }
  .tcard { width: 24vw; flex: 0 0 24vw; }
  .tcard-label { font-size: 10px; white-space: normal; bottom: -40px; }
  .reward .rays { width: 520px; height: 520px; }
  .slot-win { font-size: 40px; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { align-items: stretch; padding-top: 0; }
  .bonus-card { width: 100%; }
  .cases { grid-template-columns: 1fr 1fr; }
  .market-filters { grid-template-columns: 1fr 1fr; }
  .market-filters #mQ { grid-column: 1 / -1; }
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reel { --cell: min(17vw, 12.5vh); }
  .slot-stage { padding: 18px 10px; }
  .stage::before, .stage::after { width: 10%; opacity: .6; }
  .reward-inner { flex-direction: column; gap: 12px; text-align: center; }
  .reward-inner .item-card { width: 170px; }
  .balance { min-width: 0; font-size: 16px; padding-right: 12px; }
  .inv-btn { height: 36px; padding: 0 8px; }
  .inv-btn span { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom span:last-child { margin-left: 0; }
  .hero-points { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .backdrop-sky, .hero-bg, .brand, .backdrop-stars { animation: none; }
}
/* Узкие телефоны: в шапке остаются звук, профиль, инвентарь и баланс (помощь — в подвале и на страницах игр) */
@media (max-width: 480px) {
  .topbar-right { gap: 6px; }
  .topbar-right > [data-help], #btnMusic { display: none; }
}
