.radv {
  --radv-night: #07143c;
  --radv-gold: #fedb00;
  --radv-blue: #001a72;
  --radv-muted: #bfcae3;
  color: #fff;
  background: var(--radv-night);
  font: 16px/1.5 ui-rounded,"Trebuchet MS",Arial,sans-serif;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
}

.radv * {
  box-sizing: border-box;
}

.radv [hidden] {
  display: none!important;
}

.radv button, .radv input, .radv select {
  font: inherit;
}

.radv button {
  cursor: pointer;
}

.radv button:focus-visible, .radv a:focus-visible, .radv canvas:focus-visible, .radv select:focus-visible {
  outline: 3px solid #00c8ff;
  outline-offset: 4px;
}

.radv a {
  color: inherit;
}

.radv-shell {
  max-width: 1440px;
  margin: auto;
  padding: 32px 36px 24px;
}

.radv-header {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 22px;
}

.radv-button, .radv .radv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 28px;
  background: var(--radv-gold);
  color: #07143c;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.35;
  box-shadow: none;
  white-space: normal;
}

.radv-button:hover, .radv .radv-button:hover {
  background: #ffe769;
  color: #07143c;
  transform: translateY(-1px);
}

.radv-button:disabled {
  cursor: default;
  opacity: .6;
  transform: none;
}

.radv-skip {
  flex-shrink: 0;
  max-width: 290px;
}

.radv-quiet, .radv .radv-quiet {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 1px solid #9eafd3;
  border-radius: 24px;
  padding: 8px 17px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
}

.radv-quiet:hover, .radv .radv-quiet:hover {
  background: #ffffff18;
  color: #fff;
}

.radv-quiet[aria-pressed=true] {
  border-color: var(--radv-gold);
  color: var(--radv-gold);
}

.radv-scene {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border: 1px solid #94b4e9;
  border-radius: 20px;
  background: #001a72;
}

.radv-background, .radv-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.radv-doors {
  position: absolute;
  inset: 31% 13% 11% 20%;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  grid-template-rows: repeat(5,minmax(0,1fr));
  gap: 1% 3%;
  z-index: 2;
}

.radv .radv-door {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  perspective: 500px;
  transition: transform .2s;
}

.radv-door img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.radv-door .radv-door-leaf {
  transform-origin: 17% 50%;
  transition: transform .8s,opacity .6s;
}

.radv-door.opening .radv-door-leaf {
  transform: rotateY(-100deg);
  opacity: 0;
}

.radv-door-number {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: clamp(14px,2.3vw,32px);
  font-weight: 800;
  color: #fff6d5;
  text-shadow: 0 2px 3px #001a72;
  line-height: 1;
}

.radv-door[data-state=past] .radv-door-number {
  color: #62420d;
  text-shadow: 0 1px 1px #ffffff99;
}

.radv-door[data-state=future] img {
  filter: saturate(.65) brightness(.9);
}

.radv-door[data-state=today] {
  z-index: 1;
  filter: drop-shadow(0 0 8px #fedb00) drop-shadow(0 0 18px #fedb0080);
  animation: radv-pulse 2.2s ease-in-out infinite;
}

.radv-door-today {
  position: absolute;
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--radv-gold);
  color: var(--radv-night);
  font-size: clamp(9px,1vw,12px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.radv-door:hover {
  transform: translateY(-3px);
}

.radv-door-star {
  position: absolute;
  right: 10%;
  bottom: 2%;
  color: #fedb00;
  font-size: 19px;
  text-shadow: 0 1px 3px #001a72;
}

.radv-elf {
  position: absolute;
  left: 1%;
  bottom: 4%;
  width: 20%;
  height: 40%;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

.radv-scene-caption {
  position: absolute;
  bottom: 3%;
  left: 20%;
  right: 10%;
  text-align: center;
  font-size: clamp(14px,2.2vw,29px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
  color: #fff8df;
  z-index: 4;
  text-shadow: 0 2px 3px #001a72;
}

.radv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  flex-wrap: wrap;
}

.radv-progress {
  font-weight: 700;
}

.radv-timing {
  font-size: 13px;
  color: var(--radv-muted);
}

.radv-tools {
  display: flex;
  gap: 10px;
}

.radv-alerts {
  color: var(--radv-muted);
  margin: 14px 0 0;
  text-align: center;
}

.radv-alerts a {
  color: #fedb00;
  text-underline-offset: 4px;
}

.radv-notice, .radv-preview {
  background: #132a5d;
  border: 1px solid #6a88c3;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 16px;
}

.radv-notice button {
  margin-left: 12px;
}

.radv-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.radv-preview select {
  color: #07143c;
  background: white;
  padding: 7px;
  border-radius: 5px;
}

.radv-preview a {
  color: #fedb00;
}

.radv-preview strong {
  color: #fedb00;
}

.radv-preview button {
  font-size: 13px;
  min-height: 36px;
}

.radv-snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.radv-flake {
  position: absolute;
  top: -15px;
  color: white;
  opacity: .6;
  animation: radv-fall 12s linear infinite;
  font-size: 14px;
}

.radv.simple .radv-snow {
  display: none;
}

.radv.simple .radv-door {
  animation: none;
  filter: none;
}

.radv.simple .radv-door-leaf {
  transition: none;
}

.radv-dialog {
  width: min(780px,calc(100% - 32px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid #6f8bbe;
  border-radius: 20px;
  background: #0c2053;
  color: white;
  box-shadow: 0 24px 100px #0009;
  overflow: auto;
  overscroll-behavior: contain;
  font: 16px/1.5 ui-rounded,"Trebuchet MS",Arial,sans-serif;
}

.radv-dialog::backdrop {
  background: #030c29bb;
  backdrop-filter: blur(5px);
}

.radv-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid #becae6;
  border-radius: 50%;
  background: #07143ce8;
  color: white;
  font-size: 30px;
  line-height: 1;
}

.radv-dialog-content {
  padding: 32px;
}

.radv-dialog h2 {
  color: inherit;
  font: 800 clamp(25px,3vw,36px)/1.15 ui-rounded,"Trebuchet MS",Arial,sans-serif;
  margin: 0 52px 12px 0;
  letter-spacing: -.6px;
}

.radv-dialog p {
  margin: 0 0 18px;
}

.radv-message {
  padding: 28px 10px;
  text-align: center;
}

.radv-message img {
  height: 200px;
  max-width: 100%;
  object-fit: contain;
}

.radv-message h2 {
  margin-right: 0;
}

.radv-message .radv-button {
  margin-top: 10px;
}

.radv-game-instructions {
  color: #ccd8f0;
  font-size: 16px;
}

.radv-game-stage {
  position: relative;
  background: radial-gradient(ellipse at center,#123575,#08163c);
  border: 1px solid #456ba2;
  border-radius: 14px;
  overflow: hidden;
}

.radv-game-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
}

.radv-game-progress {
  height: 8px;
  border-radius: 4px;
  background: #304672;
  margin: 20px 0 8px;
  overflow: hidden;
}

.radv-game-progress div {
  height: 100%;
  width: 0;
  background: #fedb00;
  transition: width .1s;
}

.radv-game-score {
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.radv-game-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.radv-offer {
  color: #10234b;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.radv-offer.premium {
  color: #f4e9ce;
  background: #141415;
}

.radv-offer-image {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}

.radv-offer-body {
  padding: 28px;
}

.radv-offer-kicker {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #00738c;
  margin-bottom: 10px;
}

.radv-offer.premium .radv-offer-kicker {
  color: #e9cb86;
}

.radv-offer h2 {
  margin-right: 0;
}

.radv-price {
  font-size: 24px;
  font-weight: 800;
}

.radv-countdown {
  font-size: 13px;
  color: #52617b;
  font-variant-numeric: tabular-nums;
}

.radv-offer.premium .radv-countdown {
  color: #c1b89f;
}

.radv-offer .radv-button {
  width: 100%;
  margin: 4px 0 12px;
}

.radv-code {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eef4fa;
  border: 1px dashed #61779d;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #07143c;
  flex-wrap: wrap;
}

.radv-code code {
  font-weight: 700;
  background: none;
  color: inherit;
}

.radv-code button {
  border: 0;
  background: none;
  color: #004e79;
  text-decoration: underline;
  min-height: 36px;
}

.radv-terms {
  border-top: 1px solid #cad4e5;
  padding-top: 18px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
}

.radv-terms h3 {
  font-size: 14px;
  color: inherit;
  margin: 0 0 8px;
  font-weight: 800;
}

.radv-terms p {
  margin-bottom: 10px;
}

.radv-offer-tools {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.radv-offer-tools button, .radv-offer-tools a {
  border: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 7px 0;
  min-height: 44px;
}

.radv-clue {
  margin: 16px 0 0!important;
  font-size: 14px;
}

.radv-score-result {
  font-size: 14px;
  color: #d3ddf1;
  text-align: center;
  margin: 0 0 18px!important;
}

.radv-offer.premium .radv-sold {
  color: #ffafba;
}

.radv-sold {
  color: #a02c46;
  font-size: 17px;
  font-weight: 800;
}

.radv-confetti {
  position: absolute;
  top: 15%;
  width: 9px;
  height: 14px;
  z-index: 5;
  pointer-events: none;
  animation: radv-confetti 1.5s ease-out forwards;
}

.radv-opening {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
}

.radv-opening img {
  height: 240px;
}

.radv-opening h2 {
  margin: 15px 0;
}

.radv-draft-note {
  padding: 8px 12px;
  border-left: 4px solid #dba617;
  background: #fff8e1;
  color: #4d3b00;
  font-size: 14px;
}

.radv-copy-status {
  font-size: 13px;
  min-height: 20px;
  margin: 5px 0!important;
}

@keyframes radv-pulse {
  50% {
    filter: drop-shadow(0 0 12px #fedb00) drop-shadow(0 0 28px #fedb00b0);
  }
}

@keyframes radv-fall {
  to {
    transform: translate3d(35px,1000px,0);
  }
}

@keyframes radv-confetti {
  to {
    transform: translate(var(--dx),600px) rotate(540deg);
    opacity: 0;
  }
}

@media(min-width:1500px) {
  .radv-door-number {
    font-size: 32px;
  }
}

@media(max-width:1000px) {
  .radv-shell {
    padding: 24px;
  }
  .radv-skip {
    font-size: 14px;
    padding: 12px 18px;
  }
  .radv-timing {
    order: 3;
    flex-basis: 100%;
    text-align: center;
  }
  .radv-progress {
    font-size: 14px;
  }
  .radv-dialog-content {
    padding: 25px;
  }
}

@media(max-width:680px) {
  .radv-shell {
    padding: 22px 12px 18px;
  }
  .radv-header {
    justify-content: center;
    margin-bottom: 18px;
  }
  .radv-skip {
    min-height: 46px;
  }
  .radv-scene {
    aspect-ratio: 2/3;
    border-radius: 14px;
  }
  .radv-doors {
    inset: 24% 8% 10%;
    gap: 2% 1.5%;
  }
  .radv-door-number {
    font-size: clamp(14px,4.8vw,25px);
  }
  .radv-door-star {
    font-size: 13px;
    bottom: 0;
    right: 1%;
  }
  .radv-elf {
    display: none;
  }
  .radv-scene-caption {
    left: 8%;
    right: 8%;
    bottom: 3.1%;
    font-size: clamp(13px,3.9vw,20px);
  }
  .radv-footer {
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
  .radv-progress {
    flex-basis: 100%;
  }
  .radv-timing {
    font-size: 12px;
  }
  .radv-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 16px;
  }
  /* Tighter padding on phones gives the game canvas more of the screen. */
  .radv-dialog-content {
    padding: 18px 8px 14px;
  }
  .radv-dialog-content > h2, .radv-dialog-content > p {
    margin-left: 6px;
  }
  .radv-dialog h2 {
    font-size: 26px;
    margin-right: 44px;
  }
  .radv-close {
    top: 9px;
    right: 9px;
    width: 38px;
    height: 38px;
    font-size: 26px;
  }
  .radv-offer-body {
    padding: 20px;
  }
  .radv-offer h2 {
    margin-right: 0;
    font-size: 26px;
  }
  .radv-offer-image {
    aspect-ratio: 4/3;
  }
  .radv-game-instructions {
    font-size: 14px;
    margin-right: 20px!important;
  }
  .radv-game-actions .radv-button {
    font-size: 14px;
    padding: 12px 20px;
  }
  .radv-preview {
    font-size: 12px;
  }
  .radv-message img {
    height: 160px;
  }
  .radv-notice {
    font-size: 14px;
  }
  .radv-offer-kicker {
    padding-right: 30px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .radv *, .radv *:before, .radv *:after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
  .radv-snow {
    display: none;
  }
}
