.source-page #cp-stage {
  --ink: #25263e;
  --gold: #ffd43b;
  --paper: #fff9e9;
  --mint: #a9e7d0;
  --magenta: #eb779c;
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1080px;
  height: 1920px;
  padding: 40px 48px 18px;
  transform: translate(-50%, -50%) scale(var(--cp-scale, 1));
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--ink);
  font: 900 28px/1.15 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-stroke: .4px #25263e;
  paint-order: stroke fill;
}
#cp-stage *, #cp-stage *::before, #cp-stage *::after { box-sizing: border-box; }
#cp-stage :is(h1,h2,p) { margin: 0; }
#cp-stage [hidden] { display: none !important; }
.cp-sheet {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 9px 9px 0 var(--ink);
  overflow: hidden;
}
.cp-mast {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand clock" "title clock";
  align-items: center;
  padding: 26px 37px 27px;
  background: var(--gold);
  border-bottom: 4px solid var(--ink);
}
.cp-brand, #cp-phase, .cp-key, #cp-call-label, .cp-gifts-head {
  font-size: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.cp-brand { grid-area: brand; display: flex; align-items: center; gap: 11px; width: max-content; }
.cp-brand-glyph { position: relative; width: 36px; height: 23px; transform: skew(-13deg); }
.cp-brand-glyph::before, .cp-brand-glyph::after {
  content: ""; position: absolute; top: 0; width: 16px; height: 23px;
  border-top: 7px solid var(--ink); border-right: 7px solid var(--ink);
}
.cp-brand-glyph::after { left: 17px; }
.cp-title { grid-area: title; }
.cp-title h1 { font-size: 93px; letter-spacing: -8px; line-height: .99; font-weight: 900; }
.cp-title h1 span { padding-left: 2px; }
.cp-clock { grid-area: clock; display: flex; align-items: center; gap: 15px; text-align: left; }
.cp-clock > div { min-width: 125px; }
#cp-phase, #cp-time { display: block; }
#cp-phase { font-size: 19px; }
#cp-time { margin-top: 5px; font-size: 40px; line-height: .98; font-variant-numeric: tabular-nums; letter-spacing: -2px; }
#cp-ring {
  width: 75px; height: 75px; border: 3px solid var(--ink); border-radius: 50%;
  background: conic-gradient(var(--ink) var(--ring, 100%), #fff4bf 0);
  position: relative;
}
#cp-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
#cp-ring::after {
  content: ""; position: absolute; left: 31px; top: 16px; width: 14px; height: 25px;
  border-left: 5px solid var(--ink); border-bottom: 5px solid var(--ink); transform: rotate(-16deg);
}
.cp-question-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 246px;
  align-items: center;
  gap: 10px;
  padding: 22px 26px 16px 36px;
}
#cp-mascot { width: 246px; height: auto; }
#cp-question {
  font-size: 77px; font-weight: 900; line-height: .99; letter-spacing: -4.5px;
  -webkit-text-stroke: 1.2px var(--ink); overflow-wrap: anywhere; text-wrap: balance;
}
#cp-question[data-size=medium] { font-size: 62px; letter-spacing: -3px; }
#cp-question[data-size=long] { font-size: 52px; letter-spacing: -2px; }
.cp-board { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 36px 26px; }
.cp-key, .cp-gifts-head { display: flex; align-items: center; gap: 15px; }
.cp-key { min-height: 37px; margin-bottom: 14px; font-size: 22px; }
.cp-key > i, .cp-gifts-head > i { height: 2px; background: var(--ink); flex: 1; }
#cp-bar-key { font-size: 19px; display: flex; align-items: center; gap: 9px; letter-spacing: .75px; }
#cp-bar-key em { display: inline-block; width: 25px; height: 16px; border: 2px solid var(--ink); background: var(--mint); border-radius: 3px; }
#cp-bar-key em:nth-of-type(2), .cp-paid {
  background: repeating-linear-gradient(115deg, var(--gold) 0 7px, #9a6725 7px 10px, var(--gold) 10px 13px);
}
#cp-options { flex: 1; min-height: 0; display: grid; grid-auto-rows: 1fr; gap: 15px; }
.cp-option {
  position: relative; isolation: isolate; container-type: size; min-height: 0;
  display: grid;
  grid-template-columns: 83px minmax(0,1fr);
  align-content: center; align-items: center;
  gap: 5px 19px; padding: 11px 22px;
  border: 3px solid var(--ink); border-radius: 16px;
  background: #fffdf5; box-shadow: 0 4px 0 var(--ink);
}
.cp-option[data-out=true] { border-style: dashed; box-shadow: none; background: #f0ebde; }
.cp-option[data-winner=true] { background: #fff1b1; border-width: 5px; }
.cp-number {
  grid-column: 1; grid-row: 1 / 3; width: 75px; height: 75px; display: grid; place-items: center;
  border: 3px solid var(--ink); border-radius: 19px 15px 17px 12px; background: var(--tint);
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-5deg);
  font-size: 49px; font-variant-numeric: tabular-nums; line-height: 1;
}
.cp-option:nth-child(even) .cp-number { transform: rotate(4deg); }
.cp-choice { grid-column: 2; min-width: 0; }
.cp-option-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-label { font-size: 46px; letter-spacing: -2px; line-height: 1.02; overflow-wrap: anywhere; }
.cp-label[data-long=true] { font-size: 35px; letter-spacing: -1px; }
.cp-percent { font-size: 36px; font-variant-numeric: tabular-nums; letter-spacing: -1.5px; }
.cp-track {
  height: 24px; display: flex; overflow: hidden; margin-top: 9px;
  border: 3px solid var(--ink); border-radius: 12px;
  background: repeating-linear-gradient(90deg,#efeadd 0 2px,#faf6e9 2px 26px);
}
.cp-track i { display: block; width: 0; transition: width .34s cubic-bezier(.2,.82,.29,1); }
.cp-organic { background: var(--mint); }
.cp-paid:not([style*="width: 0%"]) { border-left: 2px solid var(--ink); }
.cp-count { grid-column: 2; font-size: 20px; line-height: 1; letter-spacing: .25px; font-variant-numeric: tabular-nums; }
#cp-stage[data-many=true] .cp-option { grid-template-columns: 61px minmax(0,1fr); gap: 3px 15px; padding: 5px 17px; }
#cp-stage[data-many=true] .cp-number { width: 54px; height: 54px; border-radius: 12px; font-size: 34px; }
#cp-stage[data-many=true] .cp-label { font-size: 34px; }
#cp-stage[data-many=true] .cp-label[data-long=true] { font-size: 29px; }
#cp-stage[data-many=true] .cp-percent { font-size: 28px; }
#cp-stage[data-many=true] .cp-track { margin-top: 5px; height: 17px; }
#cp-stage[data-many=true] .cp-count { font-size: 17px; }
#cp-stage[data-many=true] #cp-options { gap: 10px; }
#cp-stage[data-blind=true] .cp-track { background: repeating-linear-gradient(115deg,#fff9e9 0 10px,#e6dfd0 10px 13px); }
#cp-call {
  position: relative; display: flex; align-items: center; gap: 18px;
  min-height: 134px; padding: 16px 36px; border-block: 3px solid var(--ink); background: var(--mint);
}
#cp-call-icon { flex: none; width: 86px; height: 86px; }
.cp-call-copy { flex: 1; min-width: 0; }
#cp-call-label { display: block; font-size: 20px; line-height: 1.2; }
#cp-result { font-size: 37px; line-height: 1.06; letter-spacing: -1.4px; overflow-wrap: anywhere; }
#cp-impact { flex: none; font-size: 55px; letter-spacing: -3px; transform: rotate(-4deg); }
#cp-call[data-kind=gift], #cp-call[data-kind=winner] { background: var(--gold); }
#cp-call[data-kind=tie] { background: #e3d6ff; }
#cp-stage[data-many=true] #cp-call { min-height: 110px; }
.cp-flights { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.cp-gift-floater {
  position: absolute; right: 5%; top: calc(50% + 49px); max-width: 77%;
  display: flex; align-items: center; gap: 9px; padding: 5px 18px 6px 10px;
  border: 4px solid var(--ink); border-radius: 10px; background: var(--gold); color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink), inset 0 0 0 3px #fff0a5;
  font-size: 44px; line-height: 1.05; letter-spacing: -1.4px; font-weight: 900; white-space: nowrap;
  animation: cp-delivery 1.8s both cubic-bezier(.16,.8,.26,1);
}
.cp-stamp-art { flex: none; width: 48px; height: 48px; }
.cp-gift-floater b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cp-gift-floater i { font-style: normal; border-left: 2px dashed var(--ink); padding-left: 10px; }
.cp-rays { position: absolute; top: -42%; left: -9%; width: 118%; height: 184%; pointer-events: none; animation: cp-rays 1.15s both; }
.cp-gift-floater[data-galaxy=true] { box-shadow: 5px 5px 0 var(--ink), inset 0 0 0 4px #e3ccfa; }
.cp-gift-floater[data-galaxy=true] .cp-rays { animation-duration: 1.55s; }
@keyframes cp-rays {
  0% { transform: scale(.65); opacity: 0; }
  18%, 65% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.08); opacity: 0; }
}
@container (max-height: 220px) {
  .cp-option:has(.cp-gift-floater) .cp-choice { margin-right: 235px; }
  .cp-gift-floater {
    right: 2.2%; top: calc(50% - 21px); max-width: 227px; gap: 4px; padding: 5px 8px 5px 5px;
    font-size: 26px; letter-spacing: -1px; border-width: 3px; border-radius: 8px; box-shadow: 3px 3px 0 var(--ink);
  }
  .cp-stamp-art { width: 30px; height: 30px; }
  .cp-gift-floater i { padding-left: 5px; }
}
.cp-flash { position: absolute; inset: -4px; border: 9px solid var(--gold); border-radius: 18px; animation: cp-flash .95s both; }
@keyframes cp-delivery {
  0% { transform: translate(65px,-20px) scale(.65) rotate(9deg); opacity: 0; }
  12% { transform: translate(-7px,2px) scale(1.08) rotate(-3deg); opacity: 1; }
  24%, 85% { transform: rotate(-2deg); opacity: 1; }
  100% { transform: translateY(-12px) rotate(-2deg); opacity: 0; }
}
@keyframes cp-flash { from { opacity: 1; } to { opacity: 0; transform: scale(1.02); } }
.cp-gifts { padding: 22px 36px 26px; background: #fffaee; }
.cp-gifts-head h2 { font-size: 24px; letter-spacing: 1px; }
#cp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 34px; margin-top: 14px; }
.cp-gift {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; column-gap: 9px; min-width: 0;
  border-bottom: 2px dotted #c7bfa8; padding-bottom: 4px; font-size: 29px; letter-spacing: -.9px;
}
.cp-gift > :is(img,canvas) { width: 46px; height: 46px; object-fit: contain; }
.cp-gift > strong { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-gift > b { white-space: nowrap; font-size: 27px; letter-spacing: -.8px; }
#cp-connection:not(:has(.tt-core-notice:not([hidden]))) { display: none; }
#cp-connection { flex: none; }
#cp-connection .tt-core-overlay-status { position: static; width: 100%; transform: none; margin: 0; }
#cp-connection .tt-core-pill { display: none !important; }
#cp-connection .tt-core-notice {
  margin: 0; padding: 12px 24px; border: 3px solid var(--ink); border-radius: 14px;
  color: #25263e; background: #fff9e9; text-align: left; box-shadow: 4px 4px 0 var(--ink);
  font: 700 20px/1.25 Inter, "Segoe UI", Arial, sans-serif; -webkit-text-stroke: 0;
}
#cp-connection .tt-core-notice :is(strong,a) { color: #25263e; font-size: inherit; font-weight: 900; }
#cp-connection .tt-game-page-link { display: block; margin-top: .25em; }
#cp-stage footer {
  flex: none; font-size: 21px; letter-spacing: .5px; text-align: center; color: white;
  -webkit-text-stroke: 3.5px #25263e; paint-order: stroke fill;
}
[data-reduced-motion="1"] .cp-track i { transition: none; }
[data-reduced-motion="1"] :is(.cp-gift-floater,.cp-flash,.cp-rays) { animation: none; }
[data-reduced-motion="1"] .cp-flash { opacity: .5; }
@media (prefers-reduced-motion: reduce) {
  .cp-track i { transition: none; }
  .cp-gift-floater, .cp-flash, .cp-rays { animation: none; }
  .cp-flash { opacity: .5; }
}
