/* v11 «Мило наосліп»: общее. Телефон — v11-m.css, компьютер — v11-d.css.
   Тема по умолчанию тёмная (дроп-эстетика), светлая — по системе. Акцент серии — --acc. */
:root {
  --bg: #14111c; --bg2: #1d1828; --fg: #f6f2ff; --mut: #b9b0cc; --line: #ffffff1f;
  --card: #221c30; --acc: #b7a6cf; --hot: #ff6fae; --ok: #7ee0b5;
  --r: 22px; --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f3fc; --bg2: #ede6f6; --fg: #17131f; --mut: #5d5470; --line: #17131f1a; --card: #ffffff; --hot: #d61f78; color-scheme: light; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--sans); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 8vw, 56px); font-weight: 850; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.small { font-size: 13px; color: var(--mut); }
.hint { font-size: 13px; color: var(--mut); }

/* --- шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; margin-right: auto; }
.brand b { font-weight: 850; letter-spacing: -.03em; font-size: 18px; }
.brand span { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .12em; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--mut); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .snd-w { display: none; }
.icon-btn[aria-pressed="true"] .snd-w { display: block; }
.icon-btn[aria-pressed="true"] .snd-x { display: none; }
.icon-btn[aria-pressed="true"] { background: var(--acc); color: #14111c; border-color: transparent; }
.lang { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; padding: 0 10px; }

/* --- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 99px;
  font: 700 16px/1.15 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; text-align: center;
  transition: transform .2s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--fg); color: var(--bg); }
.btn.pri:hover { background: var(--acc); color: #14111c; }
.btn.ghost { background: transparent; color: var(--fg); border-color: color-mix(in srgb, var(--fg) 35%, transparent); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--bg2); color: var(--fg); border-color: var(--line); }
.btn:disabled { opacity: .38; cursor: default; }
.link { background: none; border: 0; color: var(--mut); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 8px 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- герой: кинетическая типографика */
.hero { position: relative; overflow: hidden; }
.hero-txt { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 var(--hot); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.kin { text-transform: uppercase; font-weight: 900; letter-spacing: -.045em; line-height: .9; margin: 14px 0 18px; }
/* маска строки с запасом под выносы глифов */
.kin .ln { display: block; clip-path: inset(-0.12em -0.2em -0.14em -0.2em); padding: 0 .04em; }
.kin .w { display: inline-block; animation: rise 1s var(--ease) both; white-space: nowrap; }
.kin .ln2 .w { animation-delay: .12s; color: transparent; -webkit-text-stroke: 2px var(--fg);
  background: linear-gradient(100deg, var(--acc) 0 45%, var(--hot) 55%, transparent 56%) 0 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; animation: rise 1s var(--ease) .12s both, fillin 2.4s var(--ease) .7s both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fillin { from { background-position: 100% 0; } to { background-position: 0 0; } }
.lead { color: var(--mut); font-size: 17px; max-width: 34em; }
.series { display: flex; gap: 8px; margin: 22px 0 8px; flex-wrap: wrap; }
.ser { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px; border-radius: 99px; border: 1px solid var(--line);
  background: transparent; color: var(--fg); font: 700 15px/1 var(--sans); cursor: pointer; transition: background .25s, color .25s; }
.ser i { font-style: normal; font-size: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); }
.ser[aria-selected="true"] { background: var(--acc); color: #14111c; border-color: transparent; }
.ser[aria-selected="true"] i { background: #14111c; color: var(--acc); }
.ser-tag { font-size: 14px; color: var(--mut); min-height: 2.6em; }

/* коробка-куб героя */
.hero-box { position: relative; display: grid; place-items: center; perspective: 900px; }
.cube { --s: 150px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube .f { position: absolute; inset: 0; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 85%, #fff) , color-mix(in srgb, var(--acc) 55%, #14111c));
  border: 1px solid #ffffff40; }
.cube .f::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(45deg, #ffffff14 0 8px, transparent 8px 16px); }
.cube .fr { transform: translateZ(calc(var(--s) / 2)); }
.cube .bk { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .lf { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.82); }
.cube .rt { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.82); }
.cube .tp { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.1); }
.cube .bt { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.6); }
.cube .q { font-size: calc(var(--s) * .55); font-weight: 900; color: #14111c; line-height: 1; z-index: 1; }
.cube-s { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #14111c; z-index: 1; }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.ghosts { position: absolute; inset: 0; pointer-events: none; }
.gh { position: absolute; width: 56px; height: 56px; left: 50%; top: 50%; color: var(--acc);
  --a: calc(var(--i) * 51.4deg); transform: rotate(var(--a)) translateX(var(--rad, 140px)) rotate(calc(-1 * var(--a))) translate(-50%, -50%);
  animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); opacity: .5; }
.gh .sil-p { fill: currentColor; fill-opacity: .16; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 3 3; }
.gh .sil-rel { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .5; }
@keyframes bob { 50% { margin-top: -10px; } }

/* --- секции */
.sec, .hero { scroll-margin-top: 64px; }
.sec { position: relative; }
.sk { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }
.sp { color: var(--mut); margin-top: 12px; max-width: 38em; }
.sp.small { font-size: 14px; }

/* --- полка */
.got { margin-top: 16px; font-weight: 800; font-size: 15px; }
.shelf-grid { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 10px; }
.cell { min-width: 0; }
.tile { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; padding: 12px 8px 12px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--bg2); color: var(--mut); font: inherit; cursor: pointer; position: relative;
  transition: transform .25s var(--ease), border-color .25s; }
.tile:hover { transform: translateY(-3px); border-color: var(--acc); }
.tile-no { justify-self: start; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.tile .sil { width: 100%; max-width: 110px; aspect-ratio: 1; color: var(--fg); }
.sil .sil-p { fill: currentColor; fill-opacity: .1; stroke: currentColor; stroke-opacity: .5; stroke-width: 1.2; stroke-dasharray: 3 3; }
.sil .sil-p[data-f] { fill-opacity: 1; stroke: #00000030; stroke-dasharray: none; filter: drop-shadow(0 4px 8px #0006); }
.sil .sil-rel { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-width: 1.2; }
.cell.got .sil .sil-rel { stroke: #00000040; stroke-opacity: 1; }
.tile-name { font-size: 13px; font-weight: 700; color: var(--fg); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.cell:not(.got) .tile-name { color: var(--mut); letter-spacing: .12em; }
.tile-dup { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; background: var(--hot); color: #fff; padding: 2px 7px; border-radius: 99px; }
.cell.secret .tile { border: 1px solid transparent;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(110deg, var(--acc), var(--hot), #ffe08a, var(--acc)) border-box; background-size: 100% 100%, 300% 100%; animation: shim 4s linear infinite; }
@keyframes shim { to { background-position: 0 0, 300% 0; } }
.tile.pop { animation: pop .7s var(--ease); }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.reset { display: block; }

/* --- распаковка */
.ub-stage { position: relative; border-radius: 28px; overflow: hidden; display: grid; place-items: center; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--acc) 30%, #1a1424), #0d0b12 75%); transition: background .5s; }
.ub-stage[data-tone="light"] { background: radial-gradient(120% 90% at 50% 30%, #ffffff, #e7e0f0 75%); }
.ub-stage[data-tone="dark"] { color: #f6f2ff; }
.ub-stage[data-tone="light"] { color: #17131f; }
.box { position: relative; width: min(64%, 300px); aspect-ratio: 1 / 1.08; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  transition: transform .6s var(--ease), opacity .6s; z-index: 2; }
.ub[data-step="lid"] .box { touch-action: none; }
.box-body { position: absolute; inset: 18% 0 0; border-radius: 10px 10px 16px 16px; display: grid; place-items: center; align-content: center; gap: 4px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 90%, #fff), color-mix(in srgb, var(--acc) 50%, #14111c));
  color: #14111c; box-shadow: 0 30px 60px -20px #000a, inset 0 -10px 30px #0002; overflow: hidden; }
.box-body::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #ffffff18 0 10px, transparent 10px 20px); }
.box-q { font-size: clamp(64px, 22vw, 110px); line-height: 1; font-weight: 900; position: relative; }
.box-ser, .box-name { position: relative; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 0 8px; }
.lid { position: absolute; left: -3%; right: -3%; top: 6%; height: 18%; border-radius: 10px; z-index: 3;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 70%, #fff), color-mix(in srgb, var(--acc) 80%, #14111c));
  box-shadow: 0 8px 18px -8px #0008;
  transform: translateY(calc(var(--lid, 0) * -150%)) rotate(calc(var(--lid, 0) * -10deg)); }
.ub.revealed .lid { transition: transform .7s var(--ease), opacity .7s; transform: translate(40%, -260%) rotate(-28deg); opacity: 0; }
/* фольга: рвётся слева направо, оторванный кусок отгибается */
.foil { position: absolute; inset: -6px -2px auto; height: calc(100% + 12px); border-radius: 8px;
  background: linear-gradient(115deg, #d9d6e4, #ffffff 30%, #b9b3c9 45%, #f4f2fa 60%, #a8a2b8 80%, #e8e5f0);
  background-size: 220% 100%; animation: foil 3s linear infinite;
  clip-path: inset(0 0 0 calc(var(--tear, 0) * 100%)); box-shadow: inset 0 0 0 1px #ffffff80; }
.foil::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--tear, 0) * 100% - 6px); width: 12px;
  background: conic-gradient(from 90deg at 50% 50%, transparent 0 25%, #0003 0 50%, transparent 0); background-size: 12px 10px; opacity: .8; }
.foil-torn { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--tear, 0) * 100%); border-radius: 8px;
  background: linear-gradient(180deg, #f4f2fa, #a8a2b8); transform-origin: 100% 0;
  transform: translateY(calc(var(--tear, 0) * -60%)) rotate(calc(var(--tear, 0) * -14deg)); opacity: calc(1 - var(--tear, 0) * .6); }
.ub[data-step="lid"] .foil, .ub[data-step="open"] .foil { display: none; }
.tab { position: absolute; left: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--hot);
  box-shadow: 0 0 0 0 var(--hot); animation: ping 1.6s infinite; opacity: calc(1 - var(--tear, 0) * 4); }
@keyframes foil { to { background-position: -220% 0; } }
.ub.revealed .box { transform: translateY(42%) scale(.86); opacity: 0; transition-delay: .25s; pointer-events: none; }
.ub-sil { position: absolute; inset: 14% 18%; display: grid; place-items: center; z-index: 1; pointer-events: none; opacity: 0;
  transform: translateY(30%) scale(.5); }
.ub.revealed .ub-sil { opacity: 1; transform: none; transition: transform .9s var(--ease) .2s, opacity .4s .2s; }
.ub.revealed.has3d .ub-sil { opacity: 0; transition: opacity .5s; }
.ub-sil .sil { width: 100%; height: 100%; overflow: visible; }
.ub-sil .sil .sil-p[data-f] { filter: drop-shadow(0 0 30px var(--c)) drop-shadow(0 18px 24px #0008); }
.ub.is-secret .ub-sil .sil .sil-p[data-f] { animation: glow 2s ease-in-out infinite; }
/* пока движок собирает модель — нейтральный скелет силуэта: контур и дыхание, без заливки «изделием» */
.ub.loading .ub-sil .sil .sil-p[data-f] { fill-opacity: .1; stroke: var(--c); stroke-opacity: .75; stroke-width: 1.4;
  stroke-dasharray: 4 4; filter: none; animation: skel 1.4s ease-in-out infinite; }
.ub.loading .ub-sil .sil .sil-rel { opacity: 0; }
@keyframes skel { 50% { fill-opacity: .26; stroke-opacity: .4; } }
@keyframes glow { 50% { filter: drop-shadow(0 0 60px var(--c)) drop-shadow(0 0 20px #fff) drop-shadow(0 18px 24px #0008); } }
.st3 { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .6s; }
.ub.has3d .st3 { opacity: 1; }
.st-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.burst { position: absolute; left: 50%; top: 50%; z-index: 4; pointer-events: none; }
.burst i { position: absolute; left: 0; top: 0; width: 12px; height: 16px; border-radius: 3px; background: var(--c); }
.pill { position: absolute; left: 12px; top: 12px; z-index: 5; display: none; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 800;
  background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--fg); backdrop-filter: blur(8px); max-width: calc(100% - 24px); }
.pill:not(:empty) { display: block; }
.pill[data-sub]::after { content: " · " attr(data-sub); font-weight: 500; color: var(--mut); }
.ub.is-secret .pill { background: linear-gradient(110deg, var(--acc), var(--hot), #ffe08a); color: #14111c; }
.ub.is-secret .pill[data-sub]::after { color: #14111ccc; }
.ub-step { margin: 14px 0 10px; font-weight: 700; font-size: 17px; min-height: 1.5em; }
.ub[data-step="open"] .ub-step { color: var(--acc); }
.ub-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ub[data-step="open"] .ub-btns { display: none; }
/* карточка-вкладыш */
.card { margin-top: 16px; perspective: 900px; }
.card-in { position: relative; border-radius: var(--r); padding: 20px 18px 18px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--acc)) 26%, var(--card)), var(--card) 60%);
  border: 1px solid color-mix(in srgb, var(--c, var(--acc)) 50%, transparent); animation: flip .8s var(--ease) both; }
@keyframes flip { from { transform: rotateY(85deg) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.card.pearl .card-in { border-color: transparent;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 26%, var(--card)), var(--card) 60%) padding-box,
    linear-gradient(110deg, #ffd6f0, #c8f1ff, #fff3c4, #e2d4ff, #ffd6f0) border-box; background-size: 100% 100%, 300% 100%;
  border: 2px solid transparent; animation: flip .8s var(--ease) both, shim 3s linear infinite; }
.card.pearl .card-in::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, #ffffff40 48%, transparent 60%) 0 0 / 250% 100%; animation: sheen 2.6s ease-in-out infinite; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.c-badge { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--fg); color: var(--bg); }
.card.pearl .c-badge { background: linear-gradient(110deg, var(--acc), var(--hot), #ffe08a); color: #14111c; }
.c-name { font-size: clamp(30px, 9vw, 44px); font-weight: 900; margin: 10px 0 2px; text-wrap: balance; overflow-wrap: anywhere; }
.c-no { color: var(--mut); font-weight: 700; font-size: 14px; }
.c-facts, .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 16px 0 0; }
.c-facts div, .facts div { min-width: 0; }
dt { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.c-attr { margin-top: 14px; font-size: 11px; color: var(--mut); overflow-wrap: anywhere; }
.ub-after { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.ub-after .hint { flex-basis: 100%; }

/* --- шансы */
.fair-p { margin-top: 12px; color: var(--mut); max-width: 38em; }
.odds { display: grid; gap: 12px; margin: 20px 0; }
.odd { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px; }
.odd b { font-size: clamp(34px, 10vw, 56px); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.odd span { color: var(--mut); font-weight: 700; }
.odd .bar { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: var(--bg2); overflow: hidden; display: block; }
.odd .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--acc); border-radius: inherit; }
.sec-odd b { background: linear-gradient(110deg, var(--acc), var(--hot), #ffe08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-odd .bar i { background: linear-gradient(90deg, var(--hot), #ffe08a); }
.fair-l { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fair-l li { padding-left: 26px; position: relative; }
.fair-l li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }

/* --- что известно */
.kn { display: grid; gap: 14px; margin: 20px 0 14px; }
.kn dd { font-size: 16px; }
.kn-pal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sw i { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px #0002, 0 0 0 2px var(--bg2); }
.sw-secret i { box-shadow: inset 0 0 0 1px #0002, 0 0 0 2px var(--hot); }

/* --- обмен */
.swap-l { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.swap-none { color: var(--mut); font-style: italic; }
.swap-i { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--bg2); }
.swap-i .btn { grid-column: 1 / -1; }
.swap-sil .sil { width: 56px; height: 56px; }
.swap-n { display: grid; min-width: 0; }
.swap-n small { color: var(--mut); }

/* --- дроп */
.drop { text-align: left; }
.drop .ctas { margin-top: 22px; }
.drop-h { background: linear-gradient(100deg, var(--fg) 40%, var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }

.foot { padding: 30px 16px 120px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--mut); }
.attrs { list-style: none; margin: 6px 0 0; padding: 0; overflow-wrap: anywhere; }

/* --- лист и тост */
.sheet { border: 0; padding: 0; background: transparent; color: var(--fg); max-width: 100vw; }
.sheet::backdrop { background: #0009; backdrop-filter: blur(4px); }
.sheet-in { background: var(--card); border-radius: 26px 26px 0 0; padding: 10px 20px 22px; max-height: 86vh; overflow: auto; }
.grip { display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 26px; margin-bottom: 12px; overflow-wrap: anywhere; }
.sheet-body p { color: var(--mut); margin-bottom: 12px; }
.sheet-body .ctas { margin-top: 8px; }
.sheet-sil { width: 140px; margin: 0 auto 10px; color: var(--fg); }
.sheet-odds { text-align: center; font-weight: 800; color: var(--acc) !important; }
.sheet-act { margin-top: 18px; display: flex; justify-content: flex-end; }
.story-wrap { display: grid; justify-items: center; gap: 14px; }
.story-img { width: 200px; height: auto; border-radius: 16px; box-shadow: 0 16px 40px #0007; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 40; background: var(--fg); color: var(--bg); padding: 10px 18px;
  border-radius: 99px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* до загрузки скрипта коробка показывает себя, но кнопки серий ещё не работают — ничего не прячем */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .kin .ln2 .w { background-position: 0 0; }
  .cube { transform: rotateX(-18deg) rotateY(-28deg); }
}
/* тёмное изделие на полке — светлая подложка */
.cell.lt .tile { background: #ece7f3; color: #4b4458; }
.cell.lt .tile-name { color: #17131f; }

/* пак: цена из API, мелко — «Демонстраційні ціни»; сноска «демо» у шанса таємного */
.pk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 18px 0 0; }
.pk-price[hidden] { display: none; }
.pk-price .pk-v { font-size: 22px; font-weight: 800; }
.pk-price .pk-demo, .demo-mark { font-size: 12px; font-weight: 400; color: var(--mut); }
