


html.landscape #app .storm {
  isolation: isolate;
}

html.landscape #app .storm-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-height: none;
  display: grid;
  grid-template-columns: [side-l] minmax(0, 1fr) [mid] var(--ls-reels-w) [side-r] minmax(0, 1fr) [end];
  grid-template-rows: [strip] var(--ls-strip) repeat(6, minmax(0, 1fr));
  gap: 0 8px;
  padding: 0 var(--ls-r) 4px var(--ls-l);
  container-type: normal;
}

html.landscape #app .storm-depth > i:not(.fx-amb) {
  inset: 0 auto;
  display: block;
  width: calc(var(--parallax-reach) + var(--ls-l) + (100% - 2 * var(--parallax-reach) - var(--ls-l) - var(--ls-r) - var(--ls-reels-w)) / 2 + 24px);
  background-size: auto 100%;
}

html.landscape #app .storm-depth > i:not(.fx-amb):first-child {
  left: 0;
  background-position: left bottom;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
  mask-image: linear-gradient(90deg, #000 55%, transparent);
}

html.landscape #app .storm-depth > i:not(.fx-amb) + i:not(.fx-amb) {
  right: 0;
  background-position: right bottom;
  -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent);
  mask-image: linear-gradient(270deg, #000 55%, transparent);
}

html.landscape #app .storm-depth:not(.far) {
  --storm-pane: calc(var(--parallax-reach) + var(--ls-l) + (100% - 2 * var(--parallax-reach) - var(--ls-l) - var(--ls-r) - var(--ls-reels-w)) / 2 + 24px);
  --win-mask:
    linear-gradient(90deg, #000 calc(var(--storm-pane) * 0.55), transparent var(--storm-pane), transparent calc(100% - var(--storm-pane)), #000 calc(100% - var(--storm-pane) * 0.55)) intersect,
    var(--win-art) right bottom / auto 100% no-repeat add,
    var(--win-art) left bottom / auto 100% no-repeat;
}

html.landscape #app .storm-props {
  position: relative;
  inset: auto;
  grid-column: side-l;
  grid-row: 2 / span 5;
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  place-items: center;
}

html.landscape #app .storm-props > * {
  grid-area: 1 / 1;
}

html.landscape #app .storm-event {
  font-size: 136px;
  margin-top: 6px;
}

html.landscape #app .storm-disc {
  align-self: end;
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  font-size: 26px;
}

html.landscape #app .storm-disc.thunder { justify-self: start; left: 0; }
html.landscape #app .storm-disc.wind { justify-self: end; right: 0; }

html.landscape #app .storm-board {
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 3px 4px 4px;
}

html.landscape #app .storm-status {
  font-size: 0.9rem;
  line-height: 1.15;
}

html.landscape #app .storm.free .storm-detail {
  font-size: 0.7rem;
}

html.landscape #app .storm-detail {
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: clip;
}

html.landscape .free-show {
  padding: 0;
  background: none;
}

html.landscape .free-show-panel {
  top: clamp(calc(var(--safe-top) + 74px), var(--free-grid-y, 50%), calc(100% - var(--safe-bottom) - 74px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 2px 10px;
  width: min(calc(100% - var(--safe-left) - var(--safe-right) - 24px), calc(var(--free-grid-w, 460px) - 36px), 440px);
  max-height: calc(100% - var(--safe-top) - var(--safe-bottom) - 16px);
  padding: 12px 14px 10px;
}

html.landscape .free-show-gods {
  grid-column: 1;
  grid-row: 2 / span 2;
  flex-direction: column;
  gap: 2px;
}

html.landscape .free-show-gods img {
  width: 30px;
  height: 30px;
}

html.landscape .free-show-title {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-top: 2px;
  font-size: 1.6rem;
  line-height: 1.15;
}

html.landscape .free-show-main,
html.landscape .free-show.end .free-show-main {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 2.35rem;
}

html.landscape .free-show.end .free-show-main {
  font-size: 2.1rem;
}

html.landscape .free-show-sub {
  grid-column: 2;
  grid-row: 3;
  font-size: 0.9rem;
  white-space: nowrap;
}

html.landscape .free-show-tap {
  grid-column: 3;
  grid-row: 2 / span 2;
  width: auto;
  min-width: 92px;
  min-height: 44px;
  margin-top: 0;
  padding: 8px 12px;
  font-size: 1rem;
}


html.landscape #app .lagoon-lantern,
html.landscape #app .lagoon-pad {
  display: block;
  position: absolute;
  align-self: auto;
  margin: 0;
  pointer-events: none;
}

html.landscape #app .lagoon-lantern {
  top: calc(var(--ls-strip) + 4px);
  width: 58px;
  height: 58px;
}

html.landscape #app .lagoon-lantern.left { left: 10px; }
html.landscape #app .lagoon-lantern.right { right: 10px; }

html.landscape #app .lagoon-pad {
  bottom: 6px;
  width: 60px;
  height: 60px;
}

html.landscape #app .lagoon-pad.one { left: 4px; }
html.landscape #app .lagoon-pad.two { right: 4px; }

html.landscape .koi-show {
  padding: var(--safe-top) max(16px, var(--safe-right)) var(--safe-bottom) max(16px, var(--safe-left));
  background:
    radial-gradient(circle at 50% 45%, var(--lagoon-screens-koi-show-tone-126), var(--lagoon-screens-koi-show-tone-127) 70%),
    rgba(1, 10, 18, 0.78);
}

html.landscape .koi-show::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../art/ui/lagoon-scene.webp") center bottom / cover no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

html.landscape .koi-show-panel,
html.landscape .koi-show.show .koi-show-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 4px 28px;
  width: min(100%, 620px);
  max-height: 100%;
  padding: 0;
}

html.landscape .koi-show-pearls {
  grid-column: 1;
  grid-row: 1 / span 5;
  flex-direction: column;
  gap: 2px;
}

html.landscape .koi-show-pearls i { width: 60px; height: 60px; }
html.landscape .koi-show-pearls i:nth-child(2) { width: 80px; height: 80px; }

html.landscape .koi-show-title,
html.landscape .koi-show-main,
html.landscape .koi-show-sub,
html.landscape .koi-show-jackpots,
html.landscape .koi-show-tap {
  grid-column: 2;
}

html.landscape .koi-show-title { grid-row: 1; font-size: 2.6rem; }
html.landscape .koi-show-main { grid-row: 2; font-size: 4.4rem; padding: 6px 16px; margin: 0; }
html.landscape .koi-show.end .koi-show-main { font-size: 3.2rem; }
html.landscape .koi-show-sub { grid-row: 3; }
html.landscape .koi-show-jackpots { grid-row: 4; max-width: 360px; }
html.landscape .koi-show-tap { grid-row: 5; margin-top: 8px; }

html.landscape .koi-show-jackpot { padding: 4px 0; }


html.landscape #app .hint-part {
  display: block;
}

html.landscape #app .hint-dot {
  display: none;
}

html.landscape #app .studio-hint-text {
  text-align: center;
  text-wrap: balance;
}

html.landscape .studio-show {
  padding: var(--safe-top) max(16px, var(--safe-right)) var(--safe-bottom) max(16px, var(--safe-left));
}

html.landscape .studio-show-scene {
  object-position: 50% 0;
}

html.landscape .studio-show::after {
  background:
    radial-gradient(circle at 50% 46%, var(--kit-glow-soft, transparent), transparent 52%),
    linear-gradient(180deg, transparent 50%, var(--studio-hall, var(--bg-deep)));
}

html.landscape .studio-show-panel,
html.landscape .studio-show.show .studio-show-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 4px 24px;
  width: min(100%, 640px);
  max-height: 100%;
  padding: 0;
}

html.landscape .studio-show-hero {
  grid-column: 1;
  grid-row: 1 / span 6;
  width: 170px;
  height: 170px;
  margin: 0;
}

html.landscape .studio-show-title,
html.landscape .studio-show-main,
html.landscape .studio-show-sub,
html.landscape .studio-show-jackpots,
html.landscape .studio-show-note,
html.landscape .studio-show-go {
  grid-column: 2;
}

html.landscape .studio-show-title { grid-row: 1; font-size: 2.6rem; }
html.landscape .studio-show-main { grid-row: 2; font-size: 3.4rem; margin: 0; }
html.landscape .studio-show-sub { grid-row: 3; }
html.landscape .studio-show-jackpots { grid-row: 4; max-width: 400px; }
html.landscape .studio-show-note { grid-row: 5; max-width: 400px; font-size: 0.75rem; line-height: 1.3; }
html.landscape .studio-show-go { grid-row: 6; margin-top: 8px; }
html.landscape .studio-show-jackpot { padding: 3px 2px; }

html.landscape #app .storm-ladder-head,
html.landscape #app .lagoon-hint {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 6px;
  text-align: left;
}

html.landscape #app .storm-ladder-head > span[aria-hidden] {
  grid-column: 1;
  grid-row: 1 / span 2;
}

html.landscape #app :is(.storm-ladder-head, .lagoon-hint) > .hint-part {
  grid-column: 2;
}

html.landscape #app .lagoon-hint::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 1.7em;
  height: 1.7em;
  margin: 0;
}

html.landscape .studio-sign.hold .studio-detail { white-space: normal; text-overflow: clip; text-align: center; }
