/* Один экран-сцена: фон-канвас → виньетка и зерно → сцены по центру → конфетти поверх */
:root {
  --bg: #0A0612;
  --bg-2: #1B0B2F;
  --magenta: #FF2D87;
  --violet: #8B5CFF;
  --gold: #FFC24B;
  --cyan: #3BE8FF;
  --claude: #D97757;
  --claude-deep: #C15F3C;
  --cream: #F4F3EE;
  --gem-1: #4285F4;
  --gem-2: #9B72CB;
  --gem-3: #D96570;
  --ink: #F7F0FF;
  --muted: #A99CC8;
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; overflow: hidden; }

body {
  background:
    radial-gradient(120% 70% at 50% 115%, #2B0D40 0%, transparent 60%),
    radial-gradient(80% 50% at 0% 0%, var(--bg-2) 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(5, 2, 10, .8) 100%);
}

.grain {
  position: fixed; inset: -100px; z-index: 1; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .8s steps(5) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-30px, 20px); }
  40%  { transform: translate(25px, -35px); }
  60%  { transform: translate(-15px, 40px); }
  80%  { transform: translate(35px, 10px); }
  100% { transform: translate(0, 0); }
}

.flash { position: fixed; inset: 0; z-index: 5; pointer-events: none; background: var(--ink); opacity: 0; }

#stage { position: fixed; inset: 0; z-index: 2; }

.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
  text-align: center;
  visibility: hidden; opacity: 0;
}
#loader { visibility: visible; opacity: 1; }

.mono {
  font-family: var(--f-mono); font-weight: 500; font-size: 13px;
  letter-spacing: .08em; color: var(--muted);
}
.eyebrow { color: var(--gold); letter-spacing: .3em; }
em { font-style: normal; white-space: nowrap; color: var(--gold); text-shadow: 0 0 24px rgba(255, 194, 75, .45); }

/* --- кнопки --- */
.btn {
  font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: .02em;
  color: var(--ink); border: 0; border-radius: 999px; padding: 18px 44px; cursor: pointer;
  transition: transform .15s;
}
.btn:active { transform: scale(.96); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.btn-primary {
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 10px 40px rgba(255, 45, 135, .45);
  animation: glow 2.2s ease-in-out infinite;
}
@keyframes glow {
  50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 60px rgba(255, 45, 135, .75), 0 0 90px rgba(139, 92, 255, .5); }
}
.btn-ghost {
  background: transparent; color: var(--muted);
  font-family: var(--f-mono); font-weight: 500; font-size: 13px; padding: 10px 16px;
  text-decoration: underline; text-underline-offset: 4px;
}

/* круглые кнопки в верхних углах: звук справа, полный экран слева */
.corner-btn {
  position: fixed; z-index: 6;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(247, 240, 255, .18); background: rgba(20, 10, 36, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.corner-btn svg { width: 20px; height: 20px; }
.corner-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mute { right: 14px; }
.fs { left: 14px; }
.mute .off, .mute.is-muted .on { display: none; }
.mute.is-muted .off { display: block; }

/* --- загрузка --- */
.loader-orb {
  width: 72px; height: 72px; border-radius: 50%;
  background: conic-gradient(var(--magenta), var(--violet), var(--gold), var(--magenta));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* --- вход --- */
.gate-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 8.5vw, 64px); line-height: 1.05;
  max-width: 12ch; text-wrap: balance;
}
.hint { color: var(--muted); font-size: 14px; }

/* --- отсчёт --- */
.cd-wrap { position: relative; width: min(78vw, 62vh); aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; }
.cd-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.cd-ring circle { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.cd-ring .track { stroke: rgba(247, 240, 255, .08); }
.cd-ring .arc { stroke: url(#ringGrad); stroke-dasharray: 1; stroke-dashoffset: 1; }
.shock { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
.cd-glow { filter: drop-shadow(0 0 28px rgba(255, 45, 135, .55)); }
.cd-num {
  display: block;
  font-family: var(--f-display); font-weight: 900;
  font-size: min(44vw, 36vh); line-height: 1;
  background: linear-gradient(180deg, #fff 10%, var(--gold) 50%, var(--magenta) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- поздравление --- */
.greet-lines { display: flex; flex-direction: column; align-items: center; }
.line {
  font-family: var(--f-display); font-weight: 900; line-height: 1.14; /* запас сверху под точки «Ё» */
  text-transform: uppercase; white-space: nowrap;
}
.ch { display: inline-block; }
.name { position: relative; margin-top: .12em; }
.name-text { position: relative; display: inline-block; filter: drop-shadow(0 0 30px rgba(255, 194, 75, .35)); }
.name-letters .ch {
  background: linear-gradient(180deg, #FFF3C9 0%, var(--gold) 45%, var(--magenta) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strike { position: absolute; left: -5%; right: -5%; top: 50%; height: 0; pointer-events: none; }
.strike i {
  position: absolute; left: 0; width: 100%; height: .11em; border-radius: 999px;
  background: var(--magenta); box-shadow: 0 0 16px rgba(255, 45, 135, .8);
  transform-origin: left center; transform: scaleX(0);
}
.strike i:first-child { top: -.16em; rotate: -6deg; }
.strike i:last-child { top: .02em; left: 6%; width: 90%; rotate: 4deg; }

/* глитч: две цветные копии текста режутся полосами и дёргаются */
.name-text::before, .name-text::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.is-glitching .name-text::before { opacity: .9; color: var(--magenta); mix-blend-mode: screen; animation: glitch-a .3s steps(2) infinite; }
.is-glitching .name-text::after  { opacity: .9; color: var(--cyan);    mix-blend-mode: screen; animation: glitch-b .25s steps(2) infinite; }
.is-glitching { animation: jitter .12s steps(2) infinite; }
@keyframes glitch-a {
  0%   { clip-path: inset(10% 0 60% 0); transform: translate(-6px, -2px); }
  50%  { clip-path: inset(55% 0 10% 0); transform: translate(5px, 2px); }
  100% { clip-path: inset(30% 0 40% 0); transform: translate(-3px, 1px); }
}
@keyframes glitch-b {
  0%   { clip-path: inset(65% 0 5% 0);  transform: translate(6px, 1px); }
  50%  { clip-path: inset(5% 0 70% 0);  transform: translate(-5px, -2px); }
  100% { clip-path: inset(40% 0 35% 0); transform: translate(3px, 0); }
}
@keyframes jitter {
  0%   { transform: translate(0) skewX(0); }
  50%  { transform: translate(-3px, 1px) skewX(-8deg); }
  100% { transform: translate(2px, -1px) skewX(6deg); }
}
/* персонажи по бокам: за текстом и полупрозрачные, чтобы главным оставался текст */
.greet-lines { position: relative; z-index: 1; }
.side {
  position: absolute; top: 50%; z-index: 0; pointer-events: none; opacity: 0; visibility: hidden;
  filter: drop-shadow(0 0 30px rgba(139, 92, 255, .6)) saturate(.85); /* на обёртке: маска картинки свечение не обрежет */
}
.side-l { left: 0; }
.side-r { right: 0; }
.side.alien { height: min(64vh, 580px); }
.side.andr { height: min(46vh, 420px, 72vw); }
.side.andr img { -webkit-mask-image: linear-gradient(#000 62%, transparent 97%); mask-image: linear-gradient(#000 62%, transparent 97%); } /* плечи растворяются, без жёсткого среза */
.side img { display: block; height: 100%; width: auto; }
.side-r img { transform: scaleX(-1); }
.side.is-glitch img { animation: side-glitch .16s steps(2) infinite; }
@keyframes side-glitch {
  0%   { filter: drop-shadow(-8px 0 rgba(255, 45, 135, .9)) drop-shadow(8px 0 rgba(59, 232, 255, .9)); clip-path: inset(0 0 40% 0); }
  50%  { filter: drop-shadow(8px 0 rgba(255, 45, 135, .9)) drop-shadow(-8px 0 rgba(59, 232, 255, .9)); clip-path: inset(35% 0 0 0); }
  100% { filter: drop-shadow(-4px 0 rgba(255, 45, 135, .9)); clip-path: inset(10% 0 20% 0); }
}

/* --- фото-фигуры --- */
.shape { position: relative; flex: none; }
.shape::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 135, .45), rgba(139, 92, 255, .15) 55%, transparent 72%);
  filter: blur(30px);
}
.tile {
  position: absolute; left: 50%; top: 50%;
  border-radius: 22%; background-size: cover; background-position: center;
  border: 2px solid rgba(247, 240, 255, .92);
  box-shadow: 0 6px 16px rgba(5, 2, 10, .55);
  will-change: transform;
}
.shape.is-tappable { cursor: pointer; }
.shape:focus-visible { outline: 3px solid var(--gold); outline-offset: 12px; border-radius: 24px; }
.tap-hint {
  font-weight: 700; font-size: 16px; color: var(--gold); opacity: 0; visibility: hidden;
  animation: hint-pulse 1.4s ease-in-out infinite;
}
@keyframes hint-pulse { 50% { transform: scale(1.08); } }
.caption {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(18px, 5.2vw, 30px); line-height: 1.2;
  max-width: 18ch; min-height: 2.4em; text-wrap: balance;
}

/* --- финал интро --- */
.outro-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(32px, 9vw, 72px); line-height: 1.02;
  max-width: 11ch; text-wrap: balance;
}
.outro-text { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 32ch; }

@media (prefers-reduced-motion: reduce) {
  .grain, .btn-primary { animation: none; }
}

/* --- мем-лента: колода карточек как в тиндере --- */
.memes-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(24px, 6.5vw, 40px); line-height: 1.05;
}
.deck {
  position: relative; flex: none;
  width: min(84vw, 420px); height: min(54vh, 520px); max-width: 100%;
}
.meme-card {
  position: absolute; inset: 0;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 22px; background: var(--bg-2);
  border: 1px solid rgba(247, 240, 255, .14);
  box-shadow: 0 18px 50px rgba(5, 2, 10, .6);
  touch-action: none; cursor: grab; will-change: transform;
}
.meme-card:active { cursor: grabbing; }
.meme-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; } /* мем целиком, ничего не срезано */
.stamp {
  position: absolute; top: 22px; padding: 6px 14px; border-radius: 10px; border: 4px solid;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(22px, 7vw, 34px);
  letter-spacing: .04em; background: rgba(10, 6, 18, .55); opacity: 0; pointer-events: none;
}
.stamp-lol { left: 18px; color: var(--gold); border-color: var(--gold); transform: rotate(-14deg); }
.stamp-cringe { right: 18px; color: var(--cyan); border-color: var(--cyan); transform: rotate(14deg); }
.choices { display: flex; gap: 14px; }
.btn-choice {
  padding: 15px 26px; font-size: 16px;
  background: rgba(20, 10, 36, .7); border: 1px solid rgba(247, 240, 255, .2);
}
.btn-lol {
  background: linear-gradient(135deg, var(--magenta), var(--violet)); border-color: transparent;
  box-shadow: 0 10px 34px rgba(255, 45, 135, .4);
}

/* --- уровни --- */
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(247, 240, 255, .18); }
.dot.is-done { background: var(--gold); }
.dot.is-now { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.win-pop {
  position: fixed; left: 50%; top: 45%; z-index: 7; translate: -50% -50%;
  width: max-content; max-width: calc(100vw - 32px); text-align: center; text-wrap: balance;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 8vw, 64px); line-height: 1.05;
  color: var(--gold); pointer-events: none;
  padding: 14px 24px; border-radius: 20px; border: 2px solid var(--gold);
  background: rgba(10, 6, 18, .85); box-shadow: 0 0 60px rgba(255, 194, 75, .35);
  text-shadow: 0 0 24px rgba(255, 194, 75, .5);
  opacity: 0; visibility: hidden;
}

/* викторина и кодовое слово */
.quiz-q {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(22px, 6vw, 36px); line-height: 1.15; max-width: 20ch; text-wrap: balance;
}
.quiz-options { display: grid; gap: 10px; width: min(100%, 420px); }
.quiz-opt {
  font: 700 17px var(--f-body); color: var(--ink); text-align: left;
  padding: 16px 18px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(247, 240, 255, .18); background: rgba(20, 10, 36, .7);
  transition: background .2s, border-color .2s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--violet); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-right { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.quiz-opt.is-wrong { opacity: .35; text-decoration: line-through; }
.quiz-opt:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.quiz-feedback { min-height: 1.5em; max-width: 30ch; font-size: 17px; font-weight: 700; color: var(--gold); }
.pw-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(100%, 420px); }
.pw-form input {
  flex: 1 1 200px; min-width: 0; text-align: center;
  font: 600 18px var(--f-body); color: var(--ink);
  background: rgba(20, 10, 36, .75); border: 1px solid rgba(247, 240, 255, .22);
  border-radius: 999px; padding: 15px 22px;
  user-select: text; -webkit-user-select: text;
}
.pw-form input:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* поймай торт */
.game-canvas {
  display: block; max-width: 100%; border-radius: 22px; touch-action: none;
  background: rgba(20, 10, 36, .55); border: 1px solid rgba(247, 240, 255, .14);
}

/* пазл */
.puzzle {
  position: relative; flex: none; max-width: 100%; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(5, 2, 10, .6), 0 0 0 1px rgba(247, 240, 255, .14);
}
.tile-p {
  position: absolute; left: 0; top: 0; padding: 0; border: 0; cursor: pointer;
  background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(10, 6, 18, .7);
  will-change: transform;
}
.tile-p.is-picked { z-index: 2; box-shadow: inset 0 0 0 4px var(--gold); }
.tile-p:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.puzzle.is-solved .tile-p { box-shadow: none; }
.puzzle-full { position: absolute; inset: 0; z-index: 3; background: center / 100% 100% no-repeat; }
.puzzle-row { display: flex; align-items: center; gap: 14px; }
.puzzle-ref {
  flex: none; height: 56px; width: auto; aspect-ratio: 1; max-width: 120px; border-radius: 10px;
  background: center / cover no-repeat; border: 2px solid rgba(247, 240, 255, .5);
}

/* --- коробка с подарком --- */
.giftbox {
  position: relative; flex: none; width: min(56vw, 240px); max-width: 100%; aspect-ratio: 1;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.giftbox:focus-visible { outline: 3px solid var(--gold); outline-offset: 10px; border-radius: 16px; }
.rays {
  position: absolute; inset: -70%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(rgba(255, 194, 75, .32) 0deg 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 62%);
  mask: radial-gradient(circle, #000 15%, transparent 62%);
}
.box-body {
  position: absolute; left: 10%; right: 10%; bottom: 4%; height: 58%; border-radius: 12px;
  background: linear-gradient(160deg, #FF4F9A, var(--magenta) 45%, #B8126A);
  box-shadow: 0 24px 60px rgba(255, 45, 135, .45);
}
.box-lid {
  position: absolute; left: 4%; right: 4%; top: 26%; height: 18%; border-radius: 12px; z-index: 2;
  background: linear-gradient(160deg, #FF6FB0, #E0207A); box-shadow: 0 8px 0 rgba(90, 10, 50, .35);
}
.box-body::before, .box-lid::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 16%; translate: -50% 0;
  background: linear-gradient(180deg, #FFE38A, var(--gold));
}
.bow { position: absolute; left: 50%; bottom: 88%; width: 62%; height: 72%; translate: -50% 0; }
.bow::before, .bow::after {
  content: ""; position: absolute; bottom: 0; width: 50%; height: 78%;
  border: 7px solid var(--gold); border-radius: 50%;
}
.bow::before { left: 0; rotate: -24deg; }
.bow::after { right: 0; rotate: 24deg; }

/* --- финал в стиле Claude: терракотовый акцент, серифный шрифт --- */
.sprite { position: absolute; }
#reveal {
  overflow-y: auto; justify-content: flex-start; gap: 16px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 72px); /* не под кнопкой звука */
  /* своя тонкая полоса прокрутки вместо серой браузерной */
  scrollbar-width: thin; scrollbar-color: rgba(217, 119, 87, .45) transparent;
}
#reveal::-webkit-scrollbar { width: 6px; }
#reveal::-webkit-scrollbar-track { background: transparent; }
#reveal::-webkit-scrollbar-thumb { background: rgba(217, 119, 87, .45); border-radius: 999px; }
#reveal::-webkit-scrollbar-thumb:hover { background: rgba(217, 119, 87, .8); }
#reveal > .eyebrow { margin-top: auto; }
#reveal > :last-child { margin-bottom: auto; }
#reveal::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 28%, rgba(217, 119, 87, .3), transparent 70%);
}
.claude-logo { flex: none; width: clamp(56px, min(22vw, 11vh), 104px); aspect-ratio: 1; filter: drop-shadow(0 0 26px rgba(217, 119, 87, .8)); }
.claude-logo svg { display: block; width: 100%; height: 100%; fill: var(--claude); animation: spin 30s linear infinite; }
.gift-card {
  display: grid; gap: 14px; width: min(100%, 420px); padding: 22px 20px; text-align: left;
  border-radius: 24px; background: rgba(14, 8, 26, .9); border: 1.5px solid rgba(217, 119, 87, .7);
  box-shadow: 0 0 90px rgba(217, 119, 87, .25), 0 18px 50px rgba(5, 2, 10, .6);
}
.gift-label { color: var(--claude); letter-spacing: .25em; }
.gift-title { font-family: var(--f-serif); font-weight: 600; font-size: clamp(36px, 10vw, 52px); line-height: 1; color: var(--cream); }
.claude-msg {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px;
  background: rgba(244, 243, 238, .06); border: 1px solid rgba(244, 243, 238, .1);
}
.claude-ava {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(217, 119, 87, .16);
}
.claude-ava svg { width: 19px; height: 19px; fill: var(--claude); }
.claude-msg > div:last-child { min-width: 0; }
.claude-name { font-weight: 800; font-size: 13px; color: var(--claude); margin-bottom: 2px; }
.claude-text {
  min-height: 4.5em; font-family: var(--f-serif); font-size: 16px; line-height: 1.5;
  color: var(--cream); white-space: pre-wrap; overflow-wrap: anywhere;
}
.claude-text.is-typing::after { content: "▍"; color: var(--claude); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cred {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(244, 243, 238, .06); border: 1px solid rgba(244, 243, 238, .12);
}
.cred .mono { grid-column: 1 / -1; font-size: 11px; letter-spacing: .15em; }
.cred code {
  min-width: 0; font-family: var(--f-mono); font-size: 16px; color: var(--cream);
  overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}
.copy {
  font: 700 13px var(--f-body); color: #fff; background: var(--claude);
  border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.copy:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.btn-claude {
  display: block; text-align: center; text-decoration: none; color: #fff;
  background: var(--claude); box-shadow: 0 10px 34px rgba(217, 119, 87, .45);
}
.btn-claude:hover { background: var(--claude-deep); }
.gift-note { font-size: 12px; }

/* --- бонус Gemini: звёздочку надо поймать --- */
.bonus-star {
  position: fixed; left: 0; top: 0; z-index: 8; width: 68px; height: 68px; padding: 6px;
  border: 0; background: none; cursor: pointer; touch-action: none;
  filter: drop-shadow(0 0 14px rgba(66, 133, 244, .85)) drop-shadow(0 0 30px rgba(155, 114, 203, .6));
}
.bonus-star svg { display: block; width: 100%; height: 100%; }
.bonus-star:focus-visible { outline: 3px solid var(--gem-1); outline-offset: 2px; border-radius: 50%; }
.bonus-hint {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 8; translate: -50% 0;
  max-width: calc(100vw - 32px); padding: 9px 16px; border-radius: 999px; text-align: center;
  font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap;
  background: rgba(20, 10, 36, .88); border: 1px solid rgba(138, 180, 248, .5);
}
.bonus-card {
  display: grid; gap: 12px; width: min(100%, 420px); padding: 18px 20px; text-align: left; border-radius: 22px;
  border: 1.5px solid transparent;
  background: linear-gradient(rgba(14, 8, 26, .95), rgba(14, 8, 26, .95)) padding-box,
              linear-gradient(120deg, var(--gem-1), var(--gem-2), var(--gem-3)) border-box;
  box-shadow: 0 0 60px rgba(66, 133, 244, .25);
}
.bonus-head { display: flex; align-items: center; gap: 12px; }
.bonus-head svg { flex: none; width: 40px; height: 40px; }
.bonus-label { color: #8AB4F8; letter-spacing: .25em; font-size: 11px; }
.bonus-title {
  font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.1;
  background: linear-gradient(90deg, var(--gem-1), var(--gem-2), var(--gem-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bonus-text { font-size: 15px; line-height: 1.5; color: var(--ink); opacity: .88; }
.btn-gemini {
  display: block; text-align: center; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, var(--gem-1), var(--gem-2) 55%, var(--gem-3));
  box-shadow: 0 10px 30px rgba(66, 133, 244, .35);
}
