/* Optional local bonus scene. The ordinary site keeps its original composition. */
.gear-skin .gear-hero .gear-wheel[data-bonus-source] > .gear-rotor {
  transform: rotate(calc(var(--gear-turn, 0deg) + var(--bonus-turn, 0deg)));
}
[data-bonus-source].bonus-source-hidden { visibility: hidden; }
.bonus-entry {
  position: absolute; z-index: 4; left: 50%; bottom: -7px;
  width: min(290px, 90%); transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; text-align: center;
}
.bonus-ready .bonus-entry { display: flex; }
/* Secret activation: no entry control, charging copy or meter is visible. */
.bonus-entry, .bonus-ready .bonus-entry, #bonus-trigger,
#bonus-charge-note, #bonus-energy, #bonus-replay { display: none !important; }
.gear-skin #bonus-trigger {
  pointer-events: none; opacity: 0; min-height: 36px; padding: 6px 13px;
  border: 1px solid #82909a66; border-radius: 100px; color: #c6ced4;
  background: #20252ade; font: 500 12px/1.3 Golos, Arial, sans-serif;
  transition: opacity 180ms ease, border-color 180ms ease;
}
.gear-skin #bonus-trigger:focus-visible,
.gear-skin #bonus-trigger[data-saved="true"],
.bonus-is-charging #bonus-trigger {
  opacity: 1; pointer-events: auto;
}
.gear-skin #bonus-trigger:hover { border-color: #cbb68d; color: #f4e9d4; }
#bonus-charge-note {
  max-width: 100%; margin: 0; color: #cbb68d;
  font: 500 11px/1.4 Golos, Arial, sans-serif; opacity: 0;
}
.bonus-is-charging #bonus-charge-note { opacity: 1; }
#bonus-energy { width: 122px; height: 3px; appearance: none; opacity: 0; }
.bonus-is-charging #bonus-energy { opacity: 1; }
#bonus-energy::-webkit-meter-bar { height: 3px; border: 0; background: #59636d; }
#bonus-energy::-webkit-meter-optimum-value { background: #cbb68d; }
#bonus-energy::-moz-meter-bar { background: #cbb68d; }
.bonus-shell {
  position: fixed; inset: 0; z-index: 110; isolation: isolate; overflow: hidden;
  color: #f1f3f4; overscroll-behavior: contain; touch-action: none;
  font-family: Golos, Arial, sans-serif;
}
.bonus-shell::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 48%, #39444edb 0%, #1d2429f5 46%, #11181cfc 100%);
  animation: bonus-room-in 700ms ease both;
}
.bonus-scene-header {
  position: absolute; top: clamp(20px, 4vw, 46px); left: clamp(20px, 4vw, 52px);
  right: clamp(20px, 4vw, 52px); z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.bonus-scene-header h2 {
  margin: 0; color: #eef1f3; font-size: 18px; font-weight: 600;
  line-height: 1.3; letter-spacing: -.02em;
}
.bonus-scene-header p { margin: 8px 0 0; font-size: 12px; color: #b9c2c8; line-height: 1.5; }
.bonus-shell #bonus-skip {
  color: #c5cdd3; border: 1px solid #82909a66; background: #20282daa;
  border-radius: 100px; min-height: 40px; padding: 10px 17px;
  font: 500 12px/1.3 Golos, Arial, sans-serif; white-space: nowrap;
}
.bonus-shell #bonus-skip:hover { border-color: #d8c6a5; color: #fff2d9; }
.bonus-stage { position: absolute; inset: 0; pointer-events: none; }
.bonus-flight {
  position: absolute; left: 50%; top: 51%;
  width: min(77svh, 70vw, 760px); aspect-ratio: 1; transform-origin: 50% 50%;
  transform: translate(-50%, -50%) translate(var(--flight-from-x, 0px), var(--flight-from-y, 0px)) scale(var(--flight-from-scale, 1));
  transition: transform 650ms cubic-bezier(.22,.72,.22,1), opacity 500ms ease;
  will-change: transform;
}
.bonus-flight.is-centered { transform: translate(-50%, -50%) translate(0,0) scale(1); }
#indep-bonus [data-bonus-display] {
  display: block; width: 100%; height: auto; overflow: visible;
  transform: none; opacity: 1; filter: drop-shadow(0 22px 34px #0009);
}
#indep-bonus .gear-rotor,
#indep-bonus .bonus-prize-ring {
  transform: rotate(var(--bonus-turn, 0deg));
  transform-box: view-box; transform-origin: 50% 50%;
}
#indep-bonus .gear-face { transform: none; }
#indep-bonus .gear-face > g:not(.gear-monogram) { transition: opacity 700ms ease; }
#indep-bonus.bonus-has-sectors .gear-face > g:not(.gear-monogram) { opacity: 0; }
.bonus-prize-ring { opacity: 0; transition: opacity 850ms ease; }
.bonus-has-sectors .bonus-prize-ring { opacity: 1; }
.bonus-sector-face { stroke: #aab5be; stroke-width: 1.6; fill-opacity: .94; }
.bonus-sector-value { fill: #f2f4f5; font: 600 72px/1 Golos, Arial, sans-serif; letter-spacing: -4px; }
.bonus-sector-oil-label { fill: #222c32; font: 700 30px/1 Golos, Arial, sans-serif; letter-spacing: 2px; }
.bonus-sector-oil-icon { stroke: #26343b; fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.bonus-pointer { opacity: 0; transition: opacity 650ms ease; filter: drop-shadow(0 3px 3px #0009); }
.bonus-has-sectors .bonus-pointer { opacity: 1; }
.bonus-flight::after {
  content: ""; position: absolute; inset: 4%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, #fff7df2e 46%, #fff7df73 49%, transparent 61%);
  transform: translateX(-130%); opacity: 0; mix-blend-mode: screen;
}
.bonus-has-sectors .bonus-flight::after { animation: bonus-polish 1000ms 100ms ease-out both; }
.bonus-prize-ring .is-winner .bonus-sector-face { stroke: #fff0c9; stroke-width: 5; fill-opacity: 1; }
.bonus-prize-ring .is-winner .bonus-sector-value { fill: #fff5d8; }
.bonus-result {
  position: absolute; z-index: 5; left: 50%; top: 51%; transform: translate(-50%, -50%);
  width: min(430px, calc(100% - 40px)); padding: 34px 32px 24px;
  border: 1px solid #d9c8a676; border-radius: 18px; text-align: center;
  background: linear-gradient(155deg, #344049f5, #192228fa 68%);
  box-shadow: inset 0 1px 0 #f1f5f51a, 0 26px 95px #0009;
  animation: bonus-result-in 450ms cubic-bezier(.22,.72,.22,1) both;
}
.bonus-result-kicker { display: block; color: #d8c6a1; font-size: 13px; font-weight: 500; margin-bottom: 13px; }
.bonus-result h2 { color: #f7f8f9; font-size: clamp(30px, 3vw, 43px); line-height: 1.12; letter-spacing: -.045em; margin: 0; }
.bonus-result h2:focus { outline: none; }
.bonus-result p { max-width: none; color: #c8d0d6; font-size: 14px; line-height: 1.7; margin: 18px 0 0; }
.bonus-result #bonus-expiry { font-size: 12px; color: #ddcaaa; margin-top: 12px; }
.bonus-result-actions { display: grid; gap: 10px; margin-top: 25px; }
.bonus-shell #bonus-close {
  background: linear-gradient(135deg, #f0f3f4, #c9d2d8); color: #20282d;
  border: 1px solid #f6f8f9; border-radius: 7px; padding: 14px 20px;
  min-height: 48px; font: 600 14px/1.4 Golos, Arial, sans-serif;
}
.bonus-shell #bonus-close:hover { background: #fff; }
.bonus-shell #bonus-replay {
  background: transparent; color: #b7c2cb; min-height: 36px;
  font: 400 11px/1.4 Golos, Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px;
}
.bonus-result #bonus-demo-note { font-size: 10px; line-height: 1.5; color: #9dabb5; margin-top: 20px; }
.bonus-shell[data-phase="result"] .bonus-flight { opacity: .56; }
.bonus-shell[data-phase="result"] .bonus-flight::after { display: none; }
.bonus-shell[data-phase="result"] #bonus-skip { visibility: hidden; }
.bonus-shell :where(button,a):focus-visible { outline: 3px solid #e4cda5; outline-offset: 5px; }
/* Silver/champagne fireworks surround the result; the center stays readable. */
.bonus-confetti { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.bonus-firework {
  position: absolute; left: var(--burst-x, 10%); top: var(--burst-y, 20%);
  width: 1px; height: 1px; opacity: 0; color: #e2d1ac;
  --firework-radius: clamp(40px, var(--burst-size, 7vw), 110px);
}
.bonus-firework:nth-child(2n) { color: #dce8ef; }
.bonus-firework::before {
  content: ""; position: absolute; left: -1px; top: 0;
  width: 2px; height: 46px; border-radius: 50%; opacity: 0;
  background: linear-gradient(currentColor, transparent);
  box-shadow: 0 0 9px currentColor;
}
.bonus-firework::after {
  content: ""; position: absolute; left: -2px; top: -2px;
  width: 4px; height: 4px; border-radius: 50%; opacity: 0;
  background: currentColor; box-shadow: 0 0 12px 2px currentColor;
}
.bonus-firework b {
  position: absolute; left: -1px; top: -1px; width: 4px; height: 4px;
  border-radius: 50%; background: currentColor; opacity: 0;
  box-shadow: 0 0 8px currentColor;
  transform: rotate(var(--spark-angle, 0deg)) translateX(0);
}
.bonus-firework b::after {
  content: ""; position: absolute; right: 1px; top: 1px;
  width: 20px; height: 2px; opacity: .85;
  background: linear-gradient(90deg, transparent, currentColor);
}
.bonus-celebrate .bonus-firework { animation: bonus-burst-life 2400ms var(--burst-delay, 0s) both; }
.bonus-celebrate .bonus-firework::before { animation: bonus-rocket 480ms var(--burst-delay, 0s) ease-out both; }
.bonus-celebrate .bonus-firework::after { animation: bonus-bloom 800ms calc(var(--burst-delay, 0s) + 230ms) ease-out both; }
.bonus-celebrate .bonus-firework b {
  animation: bonus-spark 1900ms calc(var(--burst-delay, 0s) + var(--spark-delay, 0s) + 240ms) cubic-bezier(.12,.64,.3,1) both;
}
@media (max-width: 720px) {
  .bonus-flight { width: min(96vw, 69svh); top: 49svh; }
  .bonus-scene-header { top: 22px; left: 20px; right: 20px; gap: 12px; }
  .bonus-scene-header h2 { font-size: 15px; }
  .bonus-scene-header p { font-size: 11px; max-width: 210px; }
  .bonus-shell #bonus-skip { font-size: 10px; min-height: 38px; padding: 8px 11px; }
  .bonus-result { padding: 28px 25px 21px; top: 49svh; }
  .bonus-result p { font-size: 13px; }
  .bonus-entry { bottom: -4px; }
  /* On phones the card nearly spans the width: celebrate above and below it. */
  .bonus-firework:nth-child(1) { left: 10%; top: 8%; }
  .bonus-firework:nth-child(2) { left: 35%; top: 14%; }
  .bonus-firework:nth-child(3) { left: 65%; top: 8%; }
  .bonus-firework:nth-child(4) { left: 90%; top: 14%; }
  .bonus-firework:nth-child(5) { left: 10%; top: 86%; }
  .bonus-firework:nth-child(6) { left: 35%; top: 92%; }
  .bonus-firework:nth-child(7) { left: 65%; top: 86%; }
  .bonus-firework:nth-child(8) { left: 90%; top: 92%; }
}
@media (pointer: coarse) {
  .gear-skin .gear-stage [data-bonus-source] { pointer-events: auto; touch-action: pan-y; }
}
@media (prefers-reduced-motion: reduce) {
  .gear-skin #bonus-trigger { opacity: 1; pointer-events: auto; }
  .bonus-shell *, .bonus-shell::before, .bonus-flight::after { animation: none !important; transition: none !important; }
  .bonus-flight { will-change: auto; }
  .bonus-confetti { display: none; }
}
@keyframes bonus-room-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bonus-polish { 0% { opacity: 0; transform: translateX(-130%); } 30% { opacity: .6; } 100% { opacity: 0; transform: translateX(130%); } }
@keyframes bonus-result-in { from { opacity: 0; translate: 0 12px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes bonus-confetti-fall { 0% { opacity: 0; transform: translate(0,-20px) rotate(0deg); } 12% { opacity: .9; } 85% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--piece-drift,0px),110svh) rotate(var(--piece-turn,240deg)); } }

@keyframes bonus-burst-life { 0%, 98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bonus-rocket { 0% { opacity: 0; transform: translateY(64px) scaleY(.3); } 28% { opacity: .8; } 100% { opacity: 0; transform: translateY(0) scaleY(.12); } }
@keyframes bonus-bloom { 0% { opacity: 0; transform: scale(.2); } 22% { opacity: .85; } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes bonus-spark {
  0% { opacity: 0; transform: rotate(var(--spark-angle)) translateX(0) scale(.8); }
  14% { opacity: 1; }
  65% { opacity: .95; }
  100% { opacity: 0; transform: rotate(var(--spark-angle)) translateX(calc(var(--firework-radius) * var(--spark-distance, 1))) scale(.6); }
}

/* Longer secret message remains above a scrollable result on compact screens. */
.bonus-shell[data-phase="result"] { overflow-y: auto; }
.bonus-shell[data-phase="result"] .bonus-scene-header {
  position: relative; inset: auto; padding: 28px 24px 0;
  max-width: 880px; margin: 0 auto; display: block;
}
.bonus-shell[data-phase="result"] #bonus-scene-status { white-space: pre-line; max-width: 720px; line-height: 1.6; }
.bonus-shell[data-phase="result"] .bonus-result {
  position: relative; left: auto; top: auto; transform: none;
  margin: clamp(18px, 4svh, 36px) auto 32px;
}
.bonus-shell .bonus-register {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 20px; border-radius: 7px;
  color: #20282d; background: linear-gradient(135deg, #f0f3f4, #c9d2d8);
  border: 1px solid #f6f8f9; font: 600 14px/1.4 Golos, Arial, sans-serif; text-decoration: none;
}
.bonus-shell .bonus-register:hover { background: #fff; }
.bonus-demo-wrap { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 64px; }
.bonus-demo-crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #59656e; font-size: 14px; margin-bottom: 40px; }
.bonus-demo-eyebrow { font-size: 12px; letter-spacing: .14em; font-weight: 600; color: #5b6771; }
.bonus-demo-page h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.08; letter-spacing: -.045em; margin: 18px 0 24px; }
.bonus-demo-page h2 { font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
.bonus-demo-page p { line-height: 1.6; }
.bonus-demo-lead { font-size: 20px; color: #59656e; max-width: 650px; }
.bonus-demo-card { margin: 30px 0 24px; padding: 25px; background: #fff9; border: 1px solid #bfc8cf; border-radius: 12px; }
.bonus-demo-card p { font-size: 15px; color: #59656e; margin-bottom: 0; }
.bonus-demo-notice { padding: 18px 20px; border-left: 3px solid #82909a; background: #e9edf0c9; border-radius: 0 8px 8px 0; font-size: 15px; }
.bonus-demo-form { display: grid; gap: 12px; padding: 28px 0 16px; max-width: 580px; }
.bonus-demo-form > label { font-size: 16px; font-weight: 600; }
.bonus-demo-form label span { font-weight: 400; color: #59656e; }
.bonus-demo-form input[type="text"], .bonus-demo-form input[type="tel"] {
  display: block; width: 100%; min-width: 0; min-height: 52px; border: 1px solid #a9b4bd; border-radius: 7px;
  background: #fffffff2; color: #222b32; padding: 12px 14px; font: 16px/1.4 Golos, Arial, sans-serif; margin-bottom: 10px;
}
.bonus-demo-form input:focus-visible { outline: 3px solid #82909a66; outline-offset: 2px; }
.bonus-demo-page .bonus-demo-fine { font-size: 13px; color: #59656e; margin: 0 0 12px; }
.bonus-demo-consent { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 12px; margin: 4px 0 12px; }
.bonus-demo-consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #344049; }
.bonus-demo-consent label { font-size: 14px; line-height: 1.6; }
#bonus-demo-submit { min-height: 52px; border-radius: 7px; background: #303940; color: #fff; padding: 14px 22px; border: 1px solid #20282d; font: 600 16px/1.4 Golos, Arial, sans-serif; }
#bonus-demo-submit:hover { background: #1c252c; }
#bonus-demo-submit:disabled { opacity: .5; cursor: default; }
.bonus-demo-confirmation { padding: 22px; background: #e1e8e9; border: 1px solid #a9b4bd; border-radius: 8px; }
.bonus-demo-document { max-width: 740px; }
.bonus-demo-document h2 { margin-top: 34px; }
.bonus-demo-page a { text-underline-offset: 3px; }
@media (max-width:720px) {
  .bonus-shell[data-phase="result"] .bonus-scene-header { padding: 22px 20px 0; }
  .bonus-shell[data-phase="result"] #bonus-scene-status { max-width: none; font-size: 12px; }
  .bonus-demo-wrap { padding-top: 26px; }
  .bonus-demo-crumbs { margin-bottom: 28px; }
  .bonus-demo-lead { font-size: 17px; }
  .bonus-demo-card { padding: 20px; }
}
