
html.landscape .wheel {
  padding: calc(var(--safe-top) + 8px) calc(var(--safe-right) + 10px) calc(var(--safe-bottom) + 6px) calc(var(--safe-left) + 10px);
}

html.landscape .wheel-panel {
  --room: calc(100vw - var(--safe-left) - var(--safe-right) - 20px);
  --tall: calc(100vh - var(--safe-top) - var(--safe-bottom) - 14px);
  --ladder: clamp(118px, 15vw, 150px);
  --stage: min(420px, var(--tall), calc(var(--room) - var(--ladder) - 28px - 196px));
  --side: min(300px, calc(var(--room) - var(--ladder) - 28px - var(--stage)));
  display: grid;
  grid-template-columns: var(--ladder) var(--stage) var(--side);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-content: center;
  column-gap: 14px;
  row-gap: 4px;
  width: 100%;
  max-width: none;
  height: 100%;
  transition: grid-template-columns 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.landscape .wheel.cosmic .wheel-panel {
  grid-template-columns: 0px var(--stage) min(380px, calc(var(--room) - 28px - var(--stage)));
}

html.landscape .wheel-head,
html.landscape .wheel-ladder {
  display: contents;
}

html.landscape .wheel-panel > .wheel-stage,
html.landscape .wheel.cashback .wheel-panel > .wheel-stage {
  --stage: inherit;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
}

html.landscape .wheel-panel > .wheel-sign {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  margin: 44px 0 14px;
}

html.landscape .wheel-title {
  font-size: 1.5rem;
}

html.landscape .wheel-streak,
html.landscape .wheel-offer-note {
  grid-column: 3;
  grid-row: 3;
  align-self: end;
  font-size: 0.8rem;
}

html.landscape .wheel.cosmic .wheel-offer-note {
  grid-row: 2;
  align-self: center;
}

html.landscape .wheel-receipt {
  grid-column: 3;
  grid-row: 2 / span 2;
  align-self: center;
}

html.landscape .wheel:not(.cosmic) .wheel-receipt { display: none; }

html.landscape .wheel-panel > .wheel-foot {
  grid-column: 3;
  grid-row: 4;
  align-items: end;
}

html.landscape .wheel .screen-close {
  top: 6px;
  right: max(16px, var(--safe-right));
}

html.landscape .wheel-offer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  gap: 14px;
}

html.landscape .wheel-result {
  gap: 6px;
}

html.landscape .wheel-keys,
html.landscape .wheel-skip,
html.landscape .wheel-continue,
html.landscape .wheel-unlock {
  min-height: 48px;
}

html.landscape .wheel.cashback .wheel-prize {
  min-height: 56px;
}



html.landscape .wheel-bonus {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
  width: var(--ladder);
  padding: 30px 8px 12px;
  border: 2px solid var(--neon-pink);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(62, 20, 120, 0.94), rgba(22, 6, 52, 0.96));
  box-shadow: 0 0 0 1px var(--red-dark), 0 0 14px var(--magenta), inset 0 0 12px rgba(255, 79, 216, 0.3), 0 6px 0 rgba(0, 0, 0, 0.45);
  transition: opacity 320ms ease-out;
}

html.landscape .wheel.cosmic .wheel-bonus,
html.landscape .wheel.cosmic .wheel-streak {
  opacity: 0;
  transition: opacity 220ms ease-in;
}

html.landscape .wheel-bonus-title {
  position: absolute;
  left: 50%;
  top: -14px;
  display: block;
  padding: 0 10px 2px;
  transform: translateX(-50%);
  border: 2px solid var(--neon-pink);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--lacquer), var(--red-dark));
  box-shadow: 0 0 10px var(--magenta), inset 0 0 6px var(--magenta);
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--gold-light);
  text-shadow: 0 1px 0 var(--gold-deep), 0 2px 0 #3a1400, 0 0 6px var(--magenta);
}

html.landscape .wheel-bonus-bolt {
  position: absolute;
  top: -30px;
  left: -14px;
  display: block;
  width: 14px;
  height: 42px;
  transform: rotate(-24deg);
  filter: drop-shadow(0 0 4px var(--magenta)) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}

html.landscape .wheel-bonus-bolt.flip {
  left: auto;
  right: -14px;
  transform: rotate(24deg) scaleX(-1);
}

html.landscape .wheel-days {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  margin: 0;
  padding-right: 36px;
}

html.landscape .wheel-day {
  flex-direction: row;
  justify-content: center;
  height: clamp(34px, calc((var(--tall) - 110px) / 5), 50px);
  gap: 0;
}

html.landscape .wheel-day::before {
  inset: 0;
  height: auto;
}

html.landscape .wheel-day-prize {
  height: 100%;
}

html.landscape .wheel-day-prize .pearl {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

html.landscape .wheel-day.today::before,
html.landscape .wheel-day.today .wheel-day-prize {
  transform: scale(1.06);
}

html.landscape .wheel-day-name {
  position: absolute;
  right: -36px;
  top: 50%;
  width: 16px;
  transform: translateY(-50%);
  font-size: 0.85rem;
  text-align: right;
}

html.landscape .wheel-day::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-top: -1px;
  background: var(--gold-deep);
}

html.landscape .wheel-day.done::after,
html.landscape .wheel-day.today::after {
  background: var(--gold);
}

html.landscape .wheel-track {
  left: auto;
  right: 24px;
  top: -3px;
  bottom: -3px;
  width: 8px;
  height: auto;
  border-radius: 4px;
}

html.landscape .wheel-track-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--fill, 0%);
  border-radius: 4px;
  background:
    repeating-linear-gradient(25deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 6px),
    var(--neon-cyan);
}


html.landscape .wheel-holo {
  position: relative;
  display: block;
  grid-column: 3;
  grid-row: 2;
  align-self: stretch;
  min-height: 0;
  transition: opacity 320ms ease-out;
}

html.landscape .wheel.cosmic .wheel-holo {
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease-in, visibility 220ms;
}

html.landscape .wheel-holo-dais {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(116px, 56%);
  aspect-ratio: 120 / 56;
  transform: translateX(-50%);
  background: url("../art/ui/chart-projector.webp") center / contain no-repeat;
}

html.landscape .wheel-holo-beam {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(150px, 74%);
  height: calc(100% - 22px);
  transform: translateX(-50%);
  background: linear-gradient(0deg, rgba(95, 230, 255, 0.55), rgba(95, 230, 255, 0.08) 75%, transparent);
  clip-path: polygon(36% 100%, 64% 100%, 100% 0, 0 0);
  animation: chart-beam 2.6s ease-in-out infinite alternate;
}

html.landscape .wheel-holo-planets {
  position: absolute;
  left: 50%;
  top: 4%;
  display: flex;
  justify-content: center;
  height: min(76px, 62%);
  transform: translateX(-50%);
  animation: chart-holo-float 3.4s ease-in-out infinite alternate;
}

html.landscape .wheel-holo-planets .pearl {
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  font-size: inherit;
  filter: drop-shadow(0 0 10px var(--p-glow));
}

html.landscape .wheel-holo-planets .pearl + .pearl {
  margin-left: -16%;
}

html.landscape .wheel-holo-planets::after {
  content: "";
  position: absolute;
  left: -22%;
  right: -22%;
  top: 38%;
  height: 26%;
  border: 2px solid rgba(185, 246, 255, 0.75);
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: 0 0 8px var(--neon-cyan);
  pointer-events: none;
}

@keyframes chart-holo-float {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, -6px); }
}

@keyframes chart-beam {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

body.scene-motion-paused :is(.wheel-holo-beam, .wheel-holo-planets),
body:has(> .sheet.open, > .pay.open) :is(.wheel-holo-beam, .wheel-holo-planets) {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  html.landscape .wheel-holo-beam,
  html.landscape .wheel-holo-planets {
    animation: none;
  }
  html.landscape .wheel.wheel :is(.wheel-panel, .wheel-bonus, .wheel-streak, .wheel-holo) {
    transition: none;
  }
}
