.igp-player {
  --igp-control-size: 100px;
  --igp-background: #080609;
  --igp-accent: #ff7179;
  --igp-accent-bright: #ff6868;
  --igp-promo-start: #260406;
  --igp-promo-mid: #720b14;
  --igp-promo-end: #b71825;
  --igp-promo-outline: #350408;
  --igp-promo-glow: #ff66734f;
  --igp-promo-topline: #ffe3e5aa;
  --igp-hover-glow: #f02b3254;
  --igp-hover-outline: #600b12;
  --igp-close-bg: #16090ae8;
  --igp-action-text: #9c0d18;
  --igp-code-text: #ffd4d7;
  --igp-code-start: #250307c7;
  --igp-code-end: #5c0811c9;
  --igp-code-shadow: #2500054d;
  --igp-action-start: #fff;
  --igp-action-end: #fff5f5;
  --igp-action-inset: #e8d7d8;
  --igp-action-circle: #31040a;
  --igp-action-shadow: #31000673;
  --igp-action-hover-shadow: #31000680;
  --igp-action-circle-shadow: #78091370;
  --igp-wheel-dark: #3b0710;
  --igp-wheel-red: #e52c39;
  --igp-wheel-shadow: #45000880;
  --igp-redirect-overlay: #050203c7;
  --igp-redirect-start: #1b0306;
  --igp-redirect-glow: #ff687560;
  --igp-redirect-outline: #350408;
  --igp-redirect-brand: #ffb9bd;
  --igp-redirect-code: #260307c7;
  --igp-redirect-code-shadow: #26000570;
  --igp-redirect-timer: #fff0f1;
  --igp-redirect-action-text: #31040a;
  --igp-font-body: Manrope, system-ui, sans-serif;
  --igp-font-display: 'Russo One', Manrope, system-ui, sans-serif;
  box-sizing: border-box;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: var(--igp-background);
  font-family: var(--igp-font-body);
}

.igp-player *, .igp-player *::before, .igp-player *::after { box-sizing: border-box; }
.igp-player::backdrop { background: var(--igp-background); }
.igp-stage, .igp-stage iframe, .igp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.igp-stage video { display: block; object-fit: contain; background: #000; }
.igp-close {
  position: absolute; z-index: 4; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left));
  display: grid; place-items: center; width: var(--igp-control-size); height: var(--igp-control-size); padding: 0;
  border: 1px solid var(--igp-accent-bright); border-radius: 14px; color: #fff; background: var(--igp-close-bg);
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.igp-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.igp-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 24px; color: #d7c9d3; background: var(--igp-background); font-size: 15px; text-align: center; }
.igp-loading.is-hidden { display: none; }
.igp-loading.is-error { z-index: 2; color: #fff; }
.igp-promo {
  position: absolute; z-index: 4; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  display: grid; grid-template-columns: minmax(0, 1fr) 150px; width: 390px; height: var(--igp-control-size); padding: 0;
  overflow: hidden; border: 1px solid var(--igp-accent); border-radius: 17px; color: #fff;
  background: linear-gradient(120deg, var(--igp-promo-start) 0, var(--igp-promo-mid) 48%, var(--igp-promo-end) 100%);
  box-shadow: 0 20px 46px #000c, 0 0 0 1px var(--igp-promo-outline), inset 0 1px 0 #ffffff52;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer; text-decoration: none;
  text-transform: uppercase; isolation: isolate; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.igp-promo:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 24px 52px #000d, 0 0 30px var(--igp-hover-glow), 0 0 0 1px var(--igp-hover-outline), inset 0 1px 0 #ffffff5c; }
.igp-promo:active { transform: translateY(1px); }
.igp-promo::before { position: absolute; z-index: 0; inset: 0; background: radial-gradient(circle at 47% 110%, var(--igp-promo-glow) 0, transparent 48%), linear-gradient(112deg, transparent 0 40%, #ffffff10 41% 47%, transparent 48% 100%); content: ''; pointer-events: none; }
.igp-promo::after { position: absolute; z-index: 3; left: 16px; right: 16px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--igp-promo-topline), transparent); content: ''; pointer-events: none; }
.igp-promo-copy { position: relative; z-index: 1; display: block; min-width: 0; padding: 10px; }
.igp-promo-code { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px; border: 1px solid #ffffff42; border-radius: 11px; color: var(--igp-code-text); background: linear-gradient(145deg, var(--igp-code-start), var(--igp-code-end)); font-weight: 800; line-height: 1; white-space: nowrap; box-shadow: inset 0 1px #ffffff1f, 0 7px 18px var(--igp-code-shadow); }
.igp-promo-code small { font-size: 11px; letter-spacing: .75px; }
.igp-promo-code b { color: #fff; font-family: var(--igp-font-display); font-size: 28px; font-weight: 400; letter-spacing: 1.5px; }
.igp-promo-note { opacity: .72; }
.igp-promo-action { position: relative; z-index: 2; align-self: stretch; margin: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #fff; border-radius: 11px; color: var(--igp-action-text); background: linear-gradient(180deg, var(--igp-action-start) 0, var(--igp-action-end) 100%); box-shadow: 0 8px 20px var(--igp-action-shadow), inset 0 -3px var(--igp-action-inset); font-family: var(--igp-font-display); font-size: 18px; font-weight: 400; line-height: 1; letter-spacing: .35px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.igp-promo-action > b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--igp-action-circle); line-height: 1; box-shadow: 0 5px 13px var(--igp-action-circle-shadow), 0 0 0 1px #efc56780; transition: transform .2s ease; }
.igp-wheel { display: block; width: 38px; height: 38px; overflow: visible; filter: drop-shadow(0 2px 2px var(--igp-wheel-shadow)); }
.igp-wheel-disc { transform-origin: 24px 24px; animation: igp-wheel-disc 3.2s linear infinite; }
.igp-wheel-ball { transform-origin: 24px 24px; animation: igp-wheel-ball 1.15s linear infinite reverse; }
.igp-promo:hover .igp-promo-action { transform: translateY(-1px); box-shadow: 0 11px 24px var(--igp-action-hover-shadow), inset 0 -3px var(--igp-action-inset); }
.igp-promo:hover .igp-promo-action > b { transform: translate(2px, -2px); }
.igp-promo:hover .igp-wheel-disc { animation-duration: 1.45s; }
.igp-promo:hover .igp-wheel-ball { animation-duration: .72s; }
.igp-redirect[hidden] { display: none; }
.igp-redirect { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--igp-redirect-overlay); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.igp-redirect-card { position: relative; width: min(430px, 100%); overflow: hidden; padding: 34px 30px 30px; border: 1px solid var(--igp-accent); border-radius: 20px; background: linear-gradient(145deg, var(--igp-redirect-start), var(--igp-promo-mid) 65%, var(--igp-promo-end)); box-shadow: 0 28px 80px #000, 0 0 0 1px var(--igp-redirect-outline), inset 0 1px #ffffff4d; text-align: center; text-transform: uppercase; }
.igp-redirect-card::before { position: absolute; inset: 0; background: radial-gradient(circle at 50% 115%, var(--igp-redirect-glow), transparent 52%), linear-gradient(112deg, transparent 0 44%, #ffffff0d 45% 52%, transparent 53%); content: ''; pointer-events: none; }
.igp-redirect-card > * { position: relative; z-index: 1; }
.igp-redirect-close { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0 0 3px; border: 1px solid #ffffff45; border-radius: 50%; color: #fff; background: #0003; font: 400 25px/1 var(--igp-font-body); cursor: pointer; }
.igp-redirect-close:hover { border-color: #fff; background: #ffffff18; }
.igp-redirect-brand { display: block; margin-bottom: 13px; color: var(--igp-redirect-brand); font-size: 11px; font-weight: 900; letter-spacing: 1.2px; }
.igp-redirect-card > strong { display: block; color: #fff; font-family: var(--igp-font-display); font-size: 28px; font-weight: 400; line-height: 1.05; }
.igp-redirect-code { display: block; margin: 20px 0 17px; padding: 15px 18px; border: 1px solid #ffffff45; border-radius: 12px; background: var(--igp-redirect-code); color: #fff; font-family: var(--igp-font-display); font-size: 42px; font-weight: 400; line-height: 1; letter-spacing: 2px; box-shadow: inset 0 1px #ffffff24, 0 10px 28px var(--igp-redirect-code-shadow); }
.igp-redirect-timer { display: block; min-height: 56px; padding: 17px 12px; color: var(--igp-redirect-timer); font-size: 13px; font-weight: 900; line-height: 22px; letter-spacing: .35px; }
.igp-redirect-timer b { display: inline-block; min-width: 18px; color: #fff; font-family: var(--igp-font-display); font-size: 21px; font-weight: 400; }
.igp-redirect-timer[hidden], .igp-redirect-action[hidden] { display: none; }
.igp-redirect-action { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 18px; border: 1px solid #fff; border-radius: 12px; color: var(--igp-redirect-action-text); background: linear-gradient(180deg, var(--igp-action-start), var(--igp-action-end)); box-shadow: 0 9px 24px var(--igp-action-shadow), inset 0 -3px var(--igp-action-inset); font-family: var(--igp-font-display); font-size: 19px; line-height: 1; letter-spacing: .25px; text-decoration: none; }
.igp-redirect-action span { font-family: var(--igp-font-body); font-size: 25px; line-height: .7; transition: transform .18s ease; }
.igp-redirect-action:hover { box-shadow: 0 12px 30px var(--igp-action-hover-shadow), inset 0 -3px var(--igp-action-inset); filter: brightness(1.03); }
.igp-redirect-action:hover span { transform: translateX(3px); }
.igp-redirect-progress { display: block; height: 4px; margin-top: 17px; overflow: hidden; border-radius: 99px; background: #ffffff24; }
.igp-redirect-progress::after { display: block; width: 100%; height: 100%; border-radius: inherit; background: #fff; transform-origin: left; animation: igp-countdown var(--igp-countdown-duration, 3000ms) linear forwards; content: ''; }

@keyframes igp-countdown { to { transform: scaleX(0); } }
@keyframes igp-wheel-disc { to { transform: rotate(360deg); } }
@keyframes igp-wheel-ball { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .igp-player { --igp-control-size: 88px; }
  .igp-close { border-radius: 13px; }
  .igp-promo { grid-template-columns: minmax(0, 1fr) 112px; width: min(390px, calc(100vw - 124px)); border-radius: 13px; }
  .igp-promo-copy { padding: 8px; }
  .igp-promo-code { gap: 4px; padding: 6px; }
  .igp-promo-code small { font-size: 10px; }
  .igp-promo-code b { font-size: 24px; }
  .igp-promo-action { margin: 8px; gap: 3px; border-radius: 9px; font-size: 15px; }
  .igp-promo-action > b { width: 34px; height: 34px; }
  .igp-wheel { width: 32px; height: 32px; }
  .igp-redirect { padding: 18px; }
  .igp-redirect-card { padding: 27px 20px 23px; border-radius: 17px; }
  .igp-redirect-brand { font-size: 9px; }
  .igp-redirect-card > strong { font-size: 23px; }
  .igp-redirect-code { margin: 17px 0 15px; padding: 13px; font-size: 36px; }
  .igp-redirect-timer { min-height: 52px; padding: 15px 10px; font-size: 12px; }
  .igp-redirect-action { min-height: 52px; padding: 12px 14px; font-size: 17px; }
}

@media (max-width: 400px) {
  .igp-player { --igp-control-size: 76px; }
  .igp-promo { grid-template-columns: minmax(0, 1fr) 78px; width: calc(100vw - 112px); }
  .igp-promo-copy { padding: 5px; }
  .igp-promo-code { gap: 3px; padding: 4px; }
  .igp-promo-code small { font-size: 9px; letter-spacing: .45px; }
  .igp-promo-code b { font-size: 21px; }
  .igp-promo-action { margin: 5px; gap: 2px; font-size: 13px; }
  .igp-promo-action > b { width: 34px; height: 34px; }
  .igp-wheel { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .igp-player *, .igp-player *::before, .igp-player *::after { animation: none !important; transition: none !important; }
}
