/* Midnight Boardwalk cabinet. Raster skins have explicit, measured live-data openings. */
.terminal-console-profile { display: none; }
body[data-presentation=portrait] .terminal-marquee { display: none; }

body[data-presentation=landscape]:has(.lobby) {
  --lobby-width: var(--app-width, 100vw);
  --lobby-height: var(--app-height, 100dvh);
  --settings-size: clamp(32px, calc(var(--lobby-height) * .085), 48px);
  --settings-gutter: calc(var(--settings-size) + 10px + max(env(safe-area-inset-left), env(safe-area-inset-right)));
  --marquee-width: min(calc(var(--lobby-width) - 2 * var(--settings-gutter)), calc(var(--lobby-height) * 1.74));
  --marquee-height: calc(var(--marquee-width) * .124);
  --cabinet-top: calc(max(var(--marquee-height), var(--settings-size) + 8px) + env(safe-area-inset-top));
  /* One scale for the 2172 x 322 console and all its independent controls. */
  --console-width: min(var(--lobby-width), calc(var(--lobby-height) * 1.55), 2172px);
  --cabinet-console: calc(var(--console-width) * 322 / 2172);
  --cabinet-bottom: calc(var(--cabinet-console) * .86);
  --terminal-sidebar: min(calc(var(--lobby-width) * .19), calc(var(--lobby-height) * .28));
  height: 100svh; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; isolation: isolate;
  background: #102657;
}
body[data-presentation=landscape]:has(.lobby)::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url('/assets/atlas-background.webp') center / cover, #102657;
  animation: atlas-world-breathe 16s ease-in-out infinite alternate;
}
body[data-presentation=landscape]:has(.lobby)::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 20% 75%,#622ec433,transparent 45%), radial-gradient(ellipse at 85% 30%,#30ceff22,transparent 50%);
}
@keyframes atlas-world-breathe { to { transform: scale(1.035); } }
body[data-presentation=landscape] #app:has(> .lobby) { flex: 1; min-height: 0; display: grid; }
body[data-presentation=landscape] #top.player-top {
  height: var(--cabinet-top); min-height: 0; flex: 0 0 var(--cabinet-top);
  position: relative; z-index: 3; padding: 0; border: 0; background: none;
  margin: 0; display: block;
}
body[data-presentation=landscape] .player-top > .brand,
body[data-presentation=landscape] .player-top .portal-label { display: none; }
.terminal-marquee {
  width: var(--marquee-width); height: var(--marquee-height); position: relative; margin: env(safe-area-inset-top) auto 0;
  filter: drop-shadow(0 5px 6px #03133299);
}
/* Reuse the two halves of the original casting at their intrinsic ratio.
   The central crest bridges the join without touching any live-value opening. */
body[data-presentation=landscape] .terminal-jackpots {
  display: block; position: absolute; top: 50%; width: 90%; height: auto;
  margin: 0; padding: 0; border: 0; border-radius: 0; overflow: visible;
  aspect-ratio: 2156 / 250; transform: translateY(-50%);
  background: url('/assets/lobby-jackpot-bar-base-v1.webp') center / 100% auto no-repeat;
}
body[data-presentation=landscape] #terminal-jackpots-right {
  left: 0; clip-path: inset(0 47.7% 0 0);
}
body[data-presentation=landscape] #terminal-jackpots-left {
  right: 0; clip-path: inset(0 0 0 52.3%);
}
.terminal-marquee-brand {
  position: absolute; z-index: 2; left: 52.07%; top: 50%; width: 16%; aspect-ratio: 1448 / 1086;
  transform: translate(-50%,-50%); pointer-events: none;
  animation: crest-bump 8s ease-in-out infinite;
}
.terminal-marquee-brand img { display: block; width: 100%; height: 100%; }
/* The previous masks follow the old crest and do not align with the new logo. */
body:not([data-lobby-mode=skill]) .terminal-marquee-brand::before,
body:not([data-lobby-mode=skill]) .terminal-marquee-brand::after { display: none; }
.terminal-marquee-brand::before,.terminal-marquee-brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  mask-position: center; mask-size: 100% 100%; mask-repeat: no-repeat;
  -webkit-mask-position: center; -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat;
}
.terminal-marquee-brand::before {
  background: radial-gradient(ellipse at 50% 47%,#ec4fff 0%,#a41bc9 48%,#660078 100%);
  mask-image: url('/assets/atlas-brand-crest-enamel-mask.png');
  -webkit-mask-image: url('/assets/atlas-brand-crest-enamel-mask.png');
  mix-blend-mode: screen; animation: crest-enamel-glow 3.6s ease-in-out infinite;
}
.terminal-marquee-brand::after {
  background: linear-gradient(110deg,transparent 45%,#fff7c7aa 48%,#fffef2 50%,#ffd77caa 52%,transparent 55%);
  background-size: 250% 100%; background-position: 150% 0; background-repeat: no-repeat;
  mask-image: url('/assets/atlas-brand-crest-gold-smooth-mask.png');
  -webkit-mask-image: url('/assets/atlas-brand-crest-gold-smooth-mask.png');
  mix-blend-mode: screen; opacity: .8; animation: crest-gold-sweep 4.2s linear infinite;
}
@keyframes crest-enamel-glow { 0%,100% { opacity: .08; } 50% { opacity: .42; } }
@keyframes crest-gold-sweep { 0% { background-position: 150% 0; } 72%,100% { background-position: -100% 0; } }
@keyframes crest-bump {
  0%,68%,100% { transform: translate(-50%,-50%) scale(1); }
  74% { transform: translate(-50%,-50%) scale(1.025); }
  80% { transform: translate(-50%,-50%) scale(.993); }
  86% { transform: translate(-50%,-50%) scale(1.012); }
  92% { transform: translate(-50%,-50%) scale(1); }
}
body[data-presentation=landscape] .terminal-jackpots > div {
  position: absolute; top: 46%; height: 37%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; box-shadow: none; overflow: hidden; border-radius: 25%;
  --spark: #ffc36d;
}
.terminal-jackpots .grand { left: 9.1%; width: 21.2%; }
.terminal-jackpots .major { left: 33.7%; width: 15.2%; --spark: #eaa5ff; }
.terminal-jackpots .minor { left: 55.8%; width: 15.2%; --spark: #a6ffbe; }
.terminal-jackpots .mini { left: 74.5%; width: 16.1%; --spark: #81eaff; }
/* Tier names are part of the casting. Keep the text available to assistive technology. */
body[data-presentation=landscape] .terminal-jackpots span {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
body[data-presentation=landscape] .terminal-jackpots strong {
  position: relative; z-index: 1; color: #fff6cc; white-space: nowrap;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; font-weight: 900; font-variant-numeric: tabular-nums;
  font-size: clamp(13px, calc(var(--marquee-width) * .027), 54px); line-height: 1;
  text-shadow: 0 2px 1px #491714, 0 3px 6px #0a0626;
}
body[data-presentation=landscape] .terminal-jackpots > div::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(circle at 10px 10px,var(--spark) 1px,transparent 3px), radial-gradient(circle at 36px 28px,var(--spark) 1px,transparent 2px);
  background-size: 67px 46px; animation: atlas-jackpot-motes 4s linear infinite;
  mask-image: linear-gradient(transparent,#000,transparent);
}
@keyframes atlas-jackpot-motes { to { background-position: 0 -46px; } }

/* Raster masks isolate the gold trim so the moving light never washes over
   the live amounts, purple enamel, or category lettering. */
body[data-presentation=landscape] .terminal-jackpots::after,
body[data-presentation=landscape] .player-rail::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(108deg,transparent 47%,#fff2bd99 49%,#fffdf3e8 50%,#ffce70a8 51%,transparent 53%);
  background-size: 230% 100%; background-position: 150% 0; background-repeat: no-repeat;
  opacity: .72; mix-blend-mode: screen;
  mask: var(--rim-mask) center / 100% 100% no-repeat;
  -webkit-mask: var(--rim-mask) center / 100% 100% no-repeat;
  animation: cabinet-gold-shine 3.8s linear infinite;
}
body[data-presentation=landscape] .terminal-jackpots::after { --rim-mask: url('/assets/atlas-marquee-rail-v2-mask.png'); }
body[data-presentation=landscape] .player-rail::before {
  --rim-mask: url('/assets/atlas-console-base-smooth-v2-mask.png'); animation-duration: 4.6s; animation-delay: -2s;
}
@keyframes cabinet-gold-shine {
  0% { background-position: 150% 0; }
  80%,100% { background-position: -100% 0; }
}

body[data-presentation=landscape] .lobby {
  position: relative; max-width: none; width: 100%; min-height: 0;
  margin: 0; padding: 0 .6vw var(--cabinet-bottom); gap: .55vw;
  display: grid;
  grid-template: 'profile navigation' max(48px, calc(var(--terminal-sidebar) * 292 / 744))
                 '. games' minmax(0,1fr)
                 'wheel games' calc(var(--terminal-sidebar) / 3)
                 / var(--terminal-sidebar) minmax(0,1fr);
}
body[data-presentation=landscape] .lobby::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .6;
  background: radial-gradient(circle at 33px 17px,#ffe9ac 1px,transparent 3px), radial-gradient(circle at 90px 92px,#8ddcff 1px,transparent 3px);
  background-size: 291px 233px,397px 271px;
  animation: atlas-fireflies 24s linear infinite;
}
@keyframes atlas-fireflies { to { background-position: 291px -233px,-397px -271px; } }
body[data-presentation=landscape] #jackpots { display: none; }
body[data-presentation=landscape] :is(#game-stage,.catalog,.catalog-content) { display: contents; }
.terminal-navigation {
  grid-area: navigation; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; min-width: 0;
}
.terminal-dock {
  grid-area: 1 / 2; display: flex; align-items: center; justify-content: safe center;
  gap: clamp(4px, 1vw, 12px);
  min-width: 0; padding: 3px 0; overflow: auto hidden;
  scrollbar-width: none; scroll-snap-type: x proximity; touch-action: pan-x pan-y;
}
.terminal-dock::-webkit-scrollbar { display: none; }
.terminal-dock button {
  flex: 0 0 auto; min-height: 44px; padding: 4px clamp(7px, 1.2vw, 18px);
  border: 0; border-radius: 8px; background: transparent; color: #fff3da;
  font: 750 clamp(16px, 2.8vmin, 23px)/1.2 'Segoe UI', system-ui, sans-serif;
  white-space: nowrap; text-shadow: 0 2px 3px #110417;
  scroll-snap-align: start; touch-action: manipulation;
}
.terminal-dock button[aria-pressed=true] { color: #ffdb8e; text-decoration: underline; text-underline-offset: .34em; }
.terminal-dock button:hover { color: #ffdf9f; }
.terminal-dock button:focus-visible { outline: 2px solid #ffe19e; outline-offset: -2px; }
.terminal-dock.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.terminal-category-arrow {
  grid-row: 1; display: grid; place-items: center;
  width: clamp(36px, 7vmin, 46px); min-height: 44px; padding: 0; border-radius: 8px;
  border: 1px solid #c29262; background: #260c42; color: #ffe1a8;
  font: bold 27px/1 system-ui, sans-serif; touch-action: manipulation;
}
.terminal-category-arrow[data-category-scroll="-1"] { grid-column: 1; }
.terminal-category-arrow[data-category-scroll="1"] { grid-column: 3; }
.terminal-category-arrow[hidden] { display: none; }
.terminal-category-arrow:disabled { opacity: .4; cursor: default; }
.terminal-carousel { grid-area: games; position: relative; min-width: 0; min-height: 0; isolation: isolate; }
.terminal-carousel .terminal-game-track {
  display: flex; align-items: center; justify-content: flex-start; gap: clamp(10px,1.4vw,26px);
  width: 100%; height: 100%; max-width: none; min-width: 0; min-height: 0; margin: 0;
  padding: min(1.4vw,2svh) min(1.8vw,2.5svh);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 clamp(24px, 3.5vw, 52px), #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 clamp(24px, 3.5vw, 52px), #000 100%);
  scroll-snap-type: x proximity; scroll-padding-inline: min(1.8vw,2.5svh);
  scrollbar-width: none; touch-action: pan-x pinch-zoom; cursor: grab;
}
.terminal-game-track::-webkit-scrollbar { display: none; }
.terminal-game-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.terminal-game-track.is-dragging .game-tile { pointer-events: none; }
.terminal-carousel .game-tile {
  flex: 0 0 auto; height: 100%; width: auto; aspect-ratio: 2/3;
  min-width: 0; padding: 0; border: 0; border-radius: 6%; overflow: hidden;
  background: none;
  scroll-snap-align: start; user-select: none; -webkit-user-drag: none;
  box-shadow: none; filter: drop-shadow(0 5px 12px #080521a8);
  transition: filter .15s, transform .15s;
  container-type: inline-size;
}
.terminal-carousel .game-tile:hover { filter: brightness(1.12) drop-shadow(0 0 12px #f3bb4970); box-shadow: none; }
.terminal-carousel .game-tile:active { transform: scale(.985); }
.terminal-carousel .game-tile:focus-visible { outline: 3px solid #fff1bd; outline-offset: 3px; }
.terminal-carousel .game-tile::before { content: ''; position: absolute; inset: 2.86% 3.9%; border-radius: 5%; background: #251044; }
.terminal-carousel :is(.terminal-spirit-cover, .thunderhead-cover) { inset: 2.86% 3.9%; border-radius: 5%; }
.terminal-carousel .animated-game-cover { inset: 2.86% 3.9%; border-radius: 5%; }
.terminal-carousel .game-tile .cabinet-cover {
  inset: 2.86% 3.9%; width: 92.2%; height: 94.28%; border-radius: 5%;
}
.terminal-card-rim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url('/assets/atlas-game-card-frame.webp') center / contain no-repeat; }
.terminal-carousel .tile-caption {
  inset: auto 4% 3.5%; padding: 18% 4% 7%; min-height: 42%; pointer-events: none;
  background: linear-gradient(transparent,#18082b99 42%,#18082bf5); border-radius: 0 0 7% 7%;
}
.terminal-carousel .tile-caption strong { font-size: clamp(14px,12cqw,36px); line-height: 1.05; }
.terminal-carousel img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.terminal-scroll-arrow {
  position: absolute; z-index: 4; top: 42%; width: clamp(32px,5.5svh,64px); aspect-ratio: 1;
  height: auto; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: url('/assets/atlas-carousel-arrow.webp') center/contain no-repeat;
  filter: drop-shadow(0 2px 6px #090420c0); transition: filter .15s;
}
.terminal-scroll-arrow[data-terminal-scroll="-1"] { left: 0; transform: scaleX(-1); }
.terminal-scroll-arrow[data-terminal-scroll="1"] { right: 0; }
.terminal-scroll-arrow:hover { filter: brightness(1.2) drop-shadow(0 0 6px #ffd56880); }
.terminal-scroll-arrow[hidden] { display: none; }
.terminal-carousel .empty { align-self: center; padding: 2rem; color: #ffe5ac; }
.terminal-spirit-cover { position: absolute; inset: 0; background: url('/assets/reel-terminal-spirit-cover.webp') center/cover; }
.terminal-cover-title { width: 100%; height: auto; }

body[data-presentation=landscape] .daily-wheel-entry:not([hidden]) {
  grid-area: wheel; position: relative; display: block; justify-self: center; align-self: center;
  width: 100%; height: auto; aspect-ratio: 3/1; max-width: 100%; min-height: 0;
  container-type: inline-size;
  padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  background: url('/assets/atlas-wheel-compact.webp') center/contain no-repeat;
  filter: drop-shadow(0 5px 5px #09133299);
}
body[data-presentation=landscape] .daily-wheel-entry .daily-wheel-emblem,
body[data-presentation=landscape] #daily-wheel-status { display: none; }
body[data-presentation=landscape] .daily-wheel-entry > span:nth-child(2) {
  position: absolute; left: 33%; top: 21%; width: 60%; height: 28%; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
body[data-presentation=landscape] #daily-wheel-title {
  font: 800 clamp(10px,7.2cqw,20px)/1 'Segoe UI', system-ui, sans-serif;
  color: #ffe9b2; white-space: nowrap;
}
body[data-presentation=landscape] .daily-wheel-entry .daily-wheel-cta {
  position: absolute; left: 33%; top: 49%; width: 60%; height: 29%; min-width: 0;
  display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0; background: none;
  font: 750 clamp(11px,8.8cqw,24px)/1 'Segoe UI', system-ui, sans-serif;
  font-variant-numeric: tabular-nums; color: #fff6df; text-shadow: 0 2px 2px #380b12;
}
body[data-presentation=landscape] .daily-wheel-entry:disabled { opacity: 1; cursor: default; }
body[data-presentation=landscape] .daily-wheel-entry:not(:disabled) { animation: atlas-wheel-ready 3s ease-in-out infinite alternate; }
@keyframes atlas-wheel-ready { to { filter: brightness(1.12) drop-shadow(0 0 12px #e9b44b77); } }
body[data-presentation=landscape] #terminal-profile { grid-area: profile; min-height: 0; }
body[data-presentation=landscape] #profile {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 744/292; min-height: 0; padding: 0; border: 0;
  background: url('/assets/atlas-category-top.webp') center / contain no-repeat; container-type: inline-size;
  color: #ffebb6; text-align: center;
}
body[data-presentation=landscape] #profile > span:last-child {
  position: absolute; inset: 20% 13% 20% 40%; display: grid;
  grid-template: 38% 44% 18% / minmax(0, 1fr); place-items: center;
}
body[data-presentation=landscape] #profile strong { font: 700 clamp(8px,7cqw,22px)/1.1 Georgia,serif; white-space: nowrap; }
body[data-presentation=landscape] #profile .terminal-player-name { max-width: 100%; color: #e1d6eb; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(7px,5cqw,15px); line-height: 1.1; }
body[data-presentation=landscape] #profile .tier-index { position: absolute; width: 17%; left: 16%; top: 36%; color: #51220d; font-size: clamp(12px,10cqw,30px); font-weight: 900; text-shadow: 0 1px #fff6b4; background: none; border: 0; padding: 0; }
body[data-presentation=landscape] #profile .tier-index { height: 33%; top: 34%; line-height: 1; }
body[data-presentation=landscape] #profile progress { width: 100%; height: clamp(2px,3cqw,7px); min-height: 2px; margin: 0; accent-color: #66e8e1; appearance: none; border: 1px solid #c39458; border-radius: 20px; overflow: hidden; }
body[data-presentation=landscape] #profile progress::-webkit-progress-bar { background: #170c2b; }
body[data-presentation=landscape] #profile progress::-webkit-progress-value { background: #66e8e1; }

body[data-presentation=landscape] #meters {
  position: absolute; left: 50%; bottom: 0; width: var(--console-width);
  height: var(--cabinet-console); transform: translateX(-50%); z-index: 1;
  pointer-events: none;
}
body[data-presentation=landscape] .player-rail {
  width: 100%; height: 100%; position: relative; display: block; padding: 0; border: 0; border-radius: 0;
  background: url('/assets/atlas-console-base.webp') center bottom / contain no-repeat;
}
body[data-presentation=landscape] .player-rail > .balance-pill {
  position: absolute; top: 42%; height: 35%; min-width: 0; padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
body[data-presentation=landscape] .player-rail .entries-pill { left: 10.8%; width: 11.3%; }
body[data-presentation=landscape] .player-rail .winnings-pill { left: 30.1%; width: 10.8%; }
body[data-presentation=landscape] .balance-pill small { font-size: clamp(7px,calc(var(--console-width) * .015),17px); font-weight: 750; color: #f9db98; white-space: nowrap; }
body[data-presentation=landscape] .balance-pill strong { font: 900 clamp(13px,calc(var(--console-width) * .026),45px)/1.1 'Trebuchet MS','Segoe UI',sans-serif; font-variant-numeric: tabular-nums; color: #fff0bc; white-space: nowrap; text-shadow: 0 2px 4px #190b24; }
body[data-presentation=landscape] .player-rail .balance-pill > :is(small, strong) { flex: 1 0 50%; min-height: 0; display: grid; place-items: center; line-height: 1; }
body[data-presentation=landscape] #rebuy,
body[data-presentation=landscape] .terminal-console-profile,
body[data-presentation=landscape] #lobby-menu {
  display: block; position: absolute; padding: 0; min-height: 0; border: 0; border-radius: 25%;
  background: var(--button-regular) center / contain no-repeat;
  color: transparent; font-size: 0; pointer-events: auto; box-shadow: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
body[data-presentation=landscape] #rebuy {
  --button-regular: url('/assets/atlas-buyback-regular.webp');
  --button-over: url('/assets/atlas-buyback-over.webp');
  --button-pressed: url('/assets/atlas-buyback-pressed.webp');
  left: 42%; width: 28%; bottom: 12%; height: auto; aspect-ratio: 1124 / 400;
}
body[data-presentation=landscape] .terminal-console-profile {
  --button-regular: url('/assets/atlas-profile-regular.webp');
  --button-over: url('/assets/atlas-profile-over.webp');
  --button-pressed: url('/assets/atlas-profile-pressed.webp');
  left: 71%; width: 12%; bottom: 12%; height: auto; aspect-ratio: 526 / 480;
}
body[data-presentation=landscape] #lobby-menu {
  --button-regular: url('/assets/atlas-menu-regular.webp');
  --button-over: url('/assets/atlas-menu-over.webp');
  --button-pressed: url('/assets/atlas-menu-pressed.webp');
  position: fixed; left: calc(50% + var(--console-width) * .35); width: calc(var(--console-width) * .10);
  bottom: calc(var(--cabinet-console) * .12); height: auto; aspect-ratio: 436 / 480;
}
body[data-presentation=landscape] #lobby-menu span { display: none; }
/* All three raster states are mounted, so the first press never flashes while loading. */
body[data-presentation=landscape] :is(#rebuy,.terminal-console-profile,#lobby-menu)::before,
body[data-presentation=landscape] :is(#rebuy,.terminal-console-profile,#lobby-menu)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--button-over) center / contain no-repeat; opacity: 0;
  transition: opacity .09s linear;
}
body[data-presentation=landscape] :is(#rebuy,.terminal-console-profile,#lobby-menu)::after {
  background-image: var(--button-pressed); transition: none;
}
@media (hover: hover) {
  body[data-presentation=landscape] :is(#rebuy,.terminal-console-profile,#lobby-menu):hover::before { opacity: 1; }
}
body[data-presentation=landscape] :is(#rebuy,.terminal-console-profile,#lobby-menu):focus-visible::before { opacity: 1; }
body[data-presentation=landscape] :is(#rebuy,.terminal-console-profile,#lobby-menu):active::after { opacity: 1; }
body[data-presentation=landscape] :is(#rebuy,.terminal-console-profile,#lobby-menu):focus-visible { outline: 2px solid #ffe19e; outline-offset: -4px; }
body[data-presentation=landscape] .player-top .top-right { display: none; }
body[data-presentation=landscape] .player-top.menu-open #player-menu-shade { display: block; position: fixed; inset: 0; background: #080c245e; }
body[data-presentation=landscape] .player-top.menu-open .top-right {
  position: fixed; right: calc(50vw - var(--console-width) * .45); bottom: calc(var(--cabinet-console) + 4px); z-index: 2;
  display: grid; gap: 5px; width: min(300px,45vw); padding: 12px;
  border: 2px solid #e8b861; border-radius: 18px; background: #2b1048;
  box-shadow: inset 0 0 20px #7d389a66, 0 8px 25px #03041aa3;
}
body[data-presentation=landscape] .player-top .drawer-heading { display: flex; align-items: center; justify-content: space-between; color: #ffdf9a; }
body[data-presentation=landscape] #drawer-close { background: none; color: #ffdf9a; border: 0; font-size: 22px; padding: 0 12px; }
body[data-presentation=landscape] .player-top .portrait-action { display: flex; }
body[data-presentation=landscape] .player-top .top-right > .quiet { background: #461c68; border-color: #926638; color: #ffe6ae; }
/* Cabinet menu: reuse the lobby's illustrated gold frame and button artwork. */
body[data-presentation=landscape] .player-top.menu-open .top-right {
  isolation: isolate; gap: 7px; width: min(320px, max(220px, 48vw), calc(100vw - 20px)); padding: 20px 22px;
  border: 0; border-radius: 0; background: transparent;
  box-shadow: none; filter: drop-shadow(0 10px 18px #03000eb3);
}
body[data-presentation=landscape] .player-top.menu-open .top-right::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 42px solid transparent;
  border-image: url('/assets/atlas-profile-dialog-frame-v1.webp') 128 fill / 1 / 0 stretch;
}
body[data-presentation=landscape] .player-top .drawer-heading {
  padding: 0 1px 4px; font: 700 clamp(14px,1.5vw,19px)/1.1 Georgia,serif;
  text-shadow: 0 2px 3px #260712;
}
body[data-presentation=landscape] .player-top #drawer-close {
  width: 36px; height: 36px; min-height: 0; padding: 0; border: 0;
  background: transparent; color: #ffdfa0; font: 700 25px/1 Arial,sans-serif;
}
body[data-presentation=landscape] .player-top .top-right > .quiet {
  display: grid; place-items: center; min-height: 44px; padding: 7px 15px;
  border: 0; border-radius: 0; color: #fff0c5;
  background: url('/assets/atlas-signin-key-v1.webp') center / 100% 100% no-repeat;
  box-shadow: none; text-align: center; text-shadow: 0 2px 3px #210a20;
}
body[data-presentation=landscape] .player-top .top-right > .quiet:hover { filter: brightness(1.18); }
body[data-presentation=landscape] .player-top .top-right > .quiet:active { filter: brightness(.88); }
body[data-presentation=landscape] .player-top .top-right :is(.quiet,#drawer-close):focus-visible { outline: 2px solid #ffdf9a; outline-offset: 2px; }
body[data-presentation=landscape] .player-top .terminal-signout { display: inline; }
body[data-presentation=landscape] .player-top .portrait-signout { display: none; }

/* The vertical cabinet uses the same marquee, artwork and console as the
   horizontal cabinet, with its game deck centered between the controls. */
body[data-cabinet-portrait=true]:has(.lobby) {
  --portrait-width: min(var(--lobby-width), calc(var(--lobby-height) * .72));
  --marquee-width: var(--portrait-width);
  --cabinet-top: calc(var(--marquee-height) + env(safe-area-inset-top));
  --console-width: var(--portrait-width);
  --portrait-card-height: min(calc(var(--portrait-width) * .88), calc(var(--lobby-height) * .44));
  --portrait-index-height: clamp(20px, calc(var(--portrait-width) * .065), 48px);
  --settings-size: clamp(32px, calc(var(--portrait-width) * .095), 52px);
  --utility-offset: max(calc(var(--settings-size) + 10px), clamp(28px, calc(var(--lobby-height) * .066), 72px));
  --cabinet-bottom: calc(var(--cabinet-console) + env(safe-area-inset-bottom));
  background: #34064e;
}
body[data-cabinet-portrait=true]:has(.lobby)::before {
  background: url('/assets/portrait-terminal-gold-purple-v2.png') center / cover no-repeat, #34064e;
}
body[data-cabinet-portrait=true]:has(.lobby)::after {
  background: radial-gradient(ellipse at 50% 30%, #e85bff20, transparent 55%), radial-gradient(ellipse at 50% 95%, #ffbf4320, transparent 50%);
}
body[data-cabinet-portrait=true] .lobby::before {
  background: radial-gradient(circle at 33px 17px,#ffe5a8 1px,transparent 3px), radial-gradient(circle at 90px 92px,#eab0ff 1px,transparent 3px);
  background-size: 291px 233px,397px 271px;
}
body[data-cabinet-portrait=true] .lobby {
  grid-template:
    "profile wheel" calc(var(--portrait-width) * .125)
    ". ." minmax(0, 1fr)
    "navigation navigation" 50px
    "games games" minmax(0, calc(var(--portrait-card-height) + var(--portrait-index-height)))
    / minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(4px, calc(var(--lobby-height) * .009), 16px);
  width: var(--portrait-width); margin-inline: auto;
  padding: var(--utility-offset) 2.5% calc(var(--cabinet-bottom) + 4px);
}
body[data-cabinet-portrait=true] #terminal-profile,
body[data-cabinet-portrait=true] #daily-wheel {
  width: min(100%, calc(var(--portrait-width) * .31));
  justify-self: center;
}
body[data-cabinet-portrait=true] #profile {
  height: 100%;
}
body[data-cabinet-portrait=true] #profile strong { font-size: clamp(7px,6.1cqw,22px); }
body[data-cabinet-portrait=true] #daily-wheel { width: min(100%, calc(var(--portrait-width) * .38)); }
body[data-cabinet-portrait=true] .terminal-carousel .terminal-game-track {
  position: relative;
  display: grid;
  place-items: center;
  overflow: clip;
  padding: 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  touch-action: pan-y pinch-zoom;
}
body[data-cabinet-portrait=true] .terminal-carousel .game-tile {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: var(--portrait-index-height);
  height: min(calc(100% - var(--portrait-index-height)), var(--portrait-card-height));
  transform: translateX(-50%);
  transition: transform .28s ease, opacity .28s ease, filter .18s;
}
body[data-cabinet-portrait=true] .game-tile[data-carousel-slot=center] { z-index: 2; }
body[data-cabinet-portrait=true] .game-tile[data-carousel-slot=previous] {
  transform: translateX(calc(-50% - var(--portrait-width) * .45)) scale(.77);
}
body[data-cabinet-portrait=true] .game-tile[data-carousel-slot=next] {
  transform: translateX(calc(-50% + var(--portrait-width) * .45)) scale(.77);
}
body[data-cabinet-portrait=true] .game-tile:is([data-carousel-slot=previous], [data-carousel-slot=next]) {
  opacity: .72;
}
body[data-cabinet-portrait=true] .game-tile[data-carousel-slot=off] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body[data-cabinet-portrait=true] .terminal-scroll-arrow {
  top: auto;
  bottom: calc(var(--portrait-index-height) + min((100% - var(--portrait-index-height)) / 2, var(--portrait-card-height) / 2));
  translate: 0 50%;
}
.cabinet-carousel-status {
  position: absolute;
  inset: auto 0 0;
  color: #ffe5ac;
  text-align: center;
  font-weight: 800;
  font-size: clamp(11px, calc(var(--portrait-width) * .033), 24px);
  line-height: var(--portrait-index-height);
  text-shadow: 0 2px 5px #100822;
  pointer-events: none;
}
