/*
 * Hartii Biome — the rooms.
 *
 * READ THIS FIRST: the default styles below describe a NORMAL SCROLLING PAGE. Every room is an
 * ordinary section, stacked, fully readable. `html.js-rooms` (added by rooms.mjs, and never under
 * prefers-reduced-motion) is what turns the page into a fixed 3D stage you swipe through. So no
 * JS, an old browser and reduced motion all get complete content — nothing is only reachable by
 * swiping.
 *
 * Depth is built from two independent perspectives rather than one fragile preserve-3d tree:
 * each room's set dressing (.room-bg) and content (.room-inner) carry their OWN perspective, so a
 * room is a "painting with depth" that the stage can then rotate as a single plane. That survives
 * Safari's preserve-3d + overflow bugs, and it is cheaper to composite on a phone.
 */

/* ------------------------------------------------------------------ rooms, as a plain page */
.stage { position: relative; }
.room {
  --tint: #E5243B;
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.room-inner {
  position: relative; z-index: 2;
  min-height: inherit;
  display: grid; align-items: center;
  padding: clamp(84px, 12vh, 120px) var(--pad) clamp(96px, 13vh, 130px);
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.scene {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
  transform: rotateY(calc(var(--px, 0) * 3.5deg)) rotateX(calc(var(--py, 0) * -2.5deg));
  transition: transform .35s ease-out;
  transform-style: preserve-3d;
}

/* ------------------------------------------------------------------ set dressing */
.room-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  perspective: 900px; perspective-origin: 50% 56%;
  transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -9px), 0);
  transition: transform .5s ease-out;
}
.room-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 35%, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%),
    radial-gradient(50% 40% at 15% 80%, color-mix(in srgb, var(--tint) 10%, transparent), transparent 70%);
}

/* ------------------------------------------------------------------ copy */
.room-copy { transform: translateZ(40px); }
.room-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--tint);
}
.room-kicker svg { width: 22px; height: 22px; flex: none; }
.room-copy h1, .room-copy h2 { font-size: clamp(2.2rem, 5.6vw, 4rem); margin-top: 16px; }
.room-copy h1 .dim, .room-copy h2 .dim { color: var(--fg-3); }
.room-copy .lede { margin-top: 18px; max-width: 46ch; }
.room-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.room .btn-primary { background: var(--tint); border-color: var(--tint); box-shadow: 0 8px 26px -10px var(--tint); }

/* Stat plinths: nearest to the camera, so they slide the most when you move. */
.plinths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 420px; }
.plinth {
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(25,17,19,.92), rgba(11,7,8,.8));
  backdrop-filter: blur(6px);
  transform: translateZ(70px);
}
.plinth .v { font: 700 clamp(1.25rem, 2.4vw, 1.7rem)/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.plinth .k { font-size: 11.5px; color: var(--fg-3); margin-top: 5px; }

/* ------------------------------------------------------------------ exhibits */
.room-exhibit { position: relative; transform-style: preserve-3d; }
.frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tint) 45%, var(--line-2));
  background: var(--ink-850);
  transform: rotateY(-17deg) rotateX(5deg) translateZ(30px);
  box-shadow:
    0 50px 90px -40px #000,
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 80px -18px color-mix(in srgb, var(--tint) 70%, transparent);
  animation: frame-drift 9s ease-in-out infinite;
}
.frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@keyframes frame-drift {
  0%, 100% { transform: rotateY(-17deg) rotateX(5deg) translateZ(30px); }
  50%      { transform: rotateY(-11deg) rotateX(2deg) translateZ(54px) translateY(-8px); }
}
/* A slow sheen sweeping the glass. */
.frame::after {
  content: ''; position: absolute; inset: -40% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
/* The pool of light the frame stands in. */
.exhibit-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -34px; height: 46px;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--tint) 45%, transparent), transparent 70%);
  filter: blur(14px); opacity: .7; transform: translateZ(-20px);
}
.exhibit-list {
  /* Kept INSIDE the exhibit: translateZ(110px) magnifies this card under the room's perspective, so a
     negative right offset pushed its figures off the edge of a 1280px screen. */
  position: absolute; right: 7%; bottom: -12%; width: min(310px, 66%);
  border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(160deg, rgba(25,17,19,.96), rgba(11,7,8,.9));
  transform: translateZ(110px) rotateY(-8deg);
  box-shadow: 0 30px 60px -30px #000;
}
.exhibit-list h3 { font: 500 10.5px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sw-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sw-row:last-child { border-bottom: 0; }
.sw-row .n { color: var(--fg-3); font: 400 11px/1 var(--mono); width: 14px; flex: none; }
.sw-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-row .m { font: 400 12px/1 var(--mono); color: var(--fg-2); flex: none; }
.sw-empty { padding: 12px 14px; font-size: 12.5px; color: var(--fg-3); }

/* A stack of "papers" built entirely from CSS — no screenshot exists for this room (there is no
   browser chrome to photograph), and a stack of documents reads honestly as what the room is
   about, where a fake mockup would not. */
.doc-stack { position: relative; aspect-ratio: 16 / 10; transform-style: preserve-3d; animation: stack-drift 10s ease-in-out infinite; }
@keyframes stack-drift {
  0%, 100% { transform: rotateY(-14deg) rotateX(4deg) translateZ(20px); }
  50%      { transform: rotateY(-8deg) rotateX(1deg) translateZ(40px) translateY(-6px); }
}
.doc-card {
  position: absolute; inset: 6% 14%; border-radius: 10px;
  background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), var(--ink-850);
  border: 1px solid color-mix(in srgb, var(--tint) 30%, var(--line-2));
  box-shadow: 0 30px 60px -32px #000;
}
.doc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--tint); border-radius: 10px 10px 0 0; opacity: .85;
}
.doc-card-3 { transform: translateZ(-30px) translate(10%, 10%) rotate(6deg); opacity: .55; }
.doc-card-2 { transform: translateZ(0px) translate(4%, 4%) rotate(2deg); opacity: .8; }
.doc-card-1 { transform: translateZ(30px); display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 0 18%; }
.doc-card-line { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 22%, transparent); }
.doc-card-line.short { width: 55%; }

/* ------------------------------------------------------------------ entrance */
.mark-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 1.25; max-width: 540px; margin-inline: auto; transform-style: preserve-3d; }
.mark {
  width: 92%; height: auto; position: relative; z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 50px color-mix(in srgb, var(--tint) 40%, transparent));
  transform: translateZ(90px);
  animation: mark-float 7s ease-in-out infinite;
}
@keyframes mark-float { 0%, 100% { transform: translateZ(90px) translateY(0); } 50% { transform: translateZ(120px) translateY(-12px); } }
.swipe-hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font: 400 12px/1 var(--mono); color: var(--fg-3);
}
.swipe-hint i { display: inline-block; width: 8px; height: 8px; border-right: 2px solid var(--tint); border-top: 2px solid var(--tint); transform: rotate(45deg); animation: nudge 1.4s ease-in-out infinite; }
.swipe-hint i:nth-child(2) { animation-delay: .15s; opacity: .7; }
.swipe-hint i:nth-child(3) { animation-delay: .3s; opacity: .4; }
@keyframes nudge { 0%, 100% { transform: translateX(0) rotate(45deg); } 50% { transform: translateX(6px) rotate(45deg); } }
html:not(.js-rooms) .swipe-hint { display: none; }

/* ------------------------------------------------------------------ arcade ring */
.room[data-room="arcade"] { --tint: var(--g1, #ff234f); }
.arcade-scene { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.ring-wrap {
  position: relative; height: clamp(300px, 46vh, 380px);
  perspective: 1100px; perspective-origin: 50% 46%;
  touch-action: pan-y; cursor: grab; user-select: none;
}
.ring-wrap:active { cursor: grabbing; }
.ring {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r, 380px) * -1)) rotateY(var(--rot, 0deg));
  transition: transform .85s cubic-bezier(.2, .75, .2, 1);
}
.ring.no-anim { transition: none; }
.cab {
  --w: clamp(168px, 17vw, 208px);
  position: absolute; width: var(--w); left: calc(var(--w) / -2); top: -150px; height: 300px;
  transform: rotateY(calc(var(--i) * var(--step, 36deg))) translateZ(var(--r, 380px));
  backface-visibility: hidden;
  border-radius: 14px 14px 10px 10px; padding: 10px 10px 14px;
  border: 1px solid color-mix(in srgb, var(--c1) 50%, var(--line-2));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 16%, #0d0809), #0a0607 60%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 30px 50px -30px #000;
  cursor: pointer; transition: box-shadow .5s, filter .5s;
  filter: brightness(.55) saturate(.8);
}
.cab.is-front {
  filter: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 30px 60px -30px #000, 0 0 70px -14px var(--c1);
}
/* The marquee strip every cabinet wears. */
.cab::before {
  content: ''; display: block; height: 6px; border-radius: 4px; margin-bottom: 9px;
  background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 0 16px var(--c1);
}
.cab-screen { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: #07040a; }
.cab-name { font: 700 1rem/1.15 var(--display); margin-top: 12px; letter-spacing: -.02em; }
.cab-genre { font: 400 10.5px/1.3 var(--mono); color: var(--c2); margin-top: 5px; text-transform: uppercase; letter-spacing: .08em; }

.ring-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.ring-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11,7,8,.7);
  color: var(--fg); font-size: 16px; cursor: pointer; transition: border-color .2s, transform .15s;
}
.ring-btn:hover { border-color: var(--tint); transform: scale(1.06); }
.ring-count { font: 400 12px/1 var(--mono); color: var(--fg-3); min-width: 54px; text-align: center; }

.game-genre { font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--g2, var(--fg-3)); margin-top: 22px; }
.game-name { font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--display); margin-top: 8px; transition: color .4s; }
.game-how { margin-top: 12px; font-size: 1.02rem; color: var(--fg); }
.game-desc { margin-top: 8px; font-size: .9rem; color: var(--fg-2); max-width: 44ch; }

/* ------------------------------------------------------------------ live room */
.live-scene { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 980px; }
.tickers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ticker {
  padding: 20px 18px; border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(25,17,19,.94), rgba(11,7,8,.82));
  transform: translateZ(50px);
  position: relative; overflow: hidden;
}
.ticker::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--tint); box-shadow: 0 0 14px var(--tint); }
.ticker .v { font: 700 clamp(1.5rem, 3.2vw, 2.3rem)/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ticker .k { font-size: 12px; color: var(--fg-2); margin-top: 8px; }
.ticker .s { font: 400 10.5px/1.4 var(--mono); color: var(--fg-3); margin-top: 4px; }

.live-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.panel { border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: linear-gradient(160deg, rgba(25,17,19,.94), rgba(11,7,8,.82)); transform: translateZ(30px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font: 500 10.5px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed-row:last-child { border-bottom: 0; }
.feed-row .tag { font: 500 9.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--tint) 16%, transparent); color: var(--tint); flex: none; }
.feed-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .m { font: 400 12px/1 var(--mono); color: var(--fg-2); flex: none; }
.side-card { padding: 16px; }
.side-card + .side-card { border-top: 1px solid var(--line); }
.side-card .v { font: 400 .92rem/1.5 var(--mono); overflow-wrap: anywhere; margin-top: 8px; }
.side-card .s { font-size: 12px; color: var(--fg-3); margin-top: 6px; line-height: 1.55; }
.live-links { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--fg-3); }
.live-links a { color: var(--fg-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.live-links a:hover { color: var(--fg); border-color: var(--tint); }
/* Discord panel: the join link is a real target, not decoration, so it gets a
   44px touch height like every other primary action on a phone. */
.dc-join { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 14px;
  border-radius: 8px; border: 1px solid color-mix(in srgb, var(--tint) 55%, var(--line-2));
  color: var(--fg); text-decoration: none; font: 500 13px/1 var(--body);
  background: color-mix(in srgb, var(--tint) 14%, transparent); transition: border-color .2s, background .2s; }
.dc-join:hover { border-color: var(--tint); background: color-mix(in srgb, var(--tint) 24%, transparent); }
.dc-unit { font: 400 13px/1 var(--body); color: var(--fg-3); }
.fineprint { font-size: 11.5px; color: var(--fg-3); line-height: 1.6; max-width: 80ch; }

/* ------------------------------------------------------------------ HUD */
.hud { display: none; }
html.js-rooms .hud {
  display: flex; position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 45;
  align-items: center; justify-content: center; gap: 12px; pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(11,7,8,.72); backdrop-filter: blur(10px);
  color: var(--fg); font-size: 17px; cursor: pointer; transition: border-color .2s, opacity .3s, transform .15s;
}
.hud-arrow:hover { border-color: var(--room-tint, var(--red)); transform: scale(1.06); }
.stage.at-first ~ .hud [data-room-prev], .stage.at-last ~ .hud [data-room-next] { opacity: .25; pointer-events: none; }
.hud-dots {
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(11,7,8,.72); backdrop-filter: blur(10px);
}
.hud-dot {
  font: 500 11.5px/1 var(--body); color: var(--fg-3); background: none; border: 0; cursor: pointer;
  padding: 9px 13px; border-radius: 999px; transition: color .2s, background .3s;
}
.hud-dot:hover { color: var(--fg); }
.hud-dot[aria-current="true"] { background: var(--room-tint, var(--red)); color: #fff; }

/* ------------------------------------------------------------------ THE STAGE (JS only) */
html.js-rooms, html.js-rooms body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.js-rooms .stage {
  position: fixed; inset: 0; overflow: hidden;
  perspective: 1500px; perspective-origin: 50% 44%;
  touch-action: pan-y;
}
html.js-rooms .room {
  position: absolute; inset: 0; min-height: 0; border-bottom: 0;
  transform: translate3d(calc(var(--d, 0) * 86vw), 0, calc(var(--ad, 0) * -640px)) rotateY(calc(var(--d, 0) * -50deg));
  opacity: calc(1 - var(--ad, 0) * .88);
  will-change: transform, opacity;
}
html.js-rooms .stage.ready .room { transition: transform 1.05s cubic-bezier(.62, .02, .18, 1), opacity .75s ease; }
html.js-rooms .stage.dragging .room { transition: none; }
html.js-rooms .room-inner { position: absolute; inset: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
html.js-rooms .room-inner::-webkit-scrollbar { display: none; }
html.js-rooms .stage.has-moved .swipe-hint { opacity: 0; transition: opacity .6s; }
html.js-rooms .nav { position: fixed; left: 0; right: 0; top: 0; }
html.js-rooms .footer { display: none; }

/* Content settles into place each time you arrive in a room. */
html.js-rooms .room .room-copy > *, html.js-rooms .room .room-exhibit, html.js-rooms .room .ticker, html.js-rooms .room .panel {
  opacity: 0; translate: 0 18px;
  transition: opacity .7s ease, translate .8s cubic-bezier(.2, .7, .2, 1);
}
html.js-rooms .room.is-active .room-copy > *, html.js-rooms .room.is-active .room-exhibit, html.js-rooms .room.is-active .ticker, html.js-rooms .room.is-active .panel { opacity: 1; translate: 0 0; }
html.js-rooms .room.is-active .room-copy > *:nth-child(1) { transition-delay: .25s; }
html.js-rooms .room.is-active .room-copy > *:nth-child(2) { transition-delay: .33s; }
html.js-rooms .room.is-active .room-copy > *:nth-child(3) { transition-delay: .41s; }
html.js-rooms .room.is-active .room-copy > *:nth-child(4) { transition-delay: .49s; }
html.js-rooms .room.is-active .room-copy > *:nth-child(n+5) { transition-delay: .57s; }
html.js-rooms .room.is-active .room-exhibit { transition-delay: .35s; }
html.js-rooms .room.is-active .ticker:nth-child(1) { transition-delay: .25s; }
html.js-rooms .room.is-active .ticker:nth-child(2) { transition-delay: .32s; }
html.js-rooms .room.is-active .ticker:nth-child(3) { transition-delay: .39s; }
html.js-rooms .room.is-active .ticker:nth-child(4) { transition-delay: .46s; }
html.js-rooms .room.is-active .panel { transition-delay: .5s; }

/* Ambient canvas sits behind everything. */
.ambient { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html:not(.js-rooms) .ambient { display: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .scene, .arcade-scene { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .room-exhibit { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  /* On a phone the cabinets ARE the room, so they must not sit under a screen of text. The copy
     block dissolves into the grid (display: contents) and the ring slots in right after the
     headline; what follows it is the description of whichever cabinet is facing you. */
  .arcade-scene { gap: 10px; }
  .arcade-scene .room-copy { display: contents; }
  .arcade-scene .room-kicker { order: 1; }
  .arcade-scene .room-copy h2 { order: 2; margin-bottom: 0; }
  .arcade-scene .lede { order: 3; margin-bottom: 0; }
  .arcade-scene .room-exhibit { order: 4; max-width: none; }
  .arcade-scene .game-genre { order: 5; }
  .arcade-scene .game-name { order: 6; }
  .arcade-scene .game-how { order: 7; }
  .arcade-scene .game-desc { order: 8; }
  .arcade-scene .room-actions { order: 9; margin-top: 8px; }
  .frame { transform: rotateY(-10deg) rotateX(4deg); animation: none; }
  .doc-stack { transform: rotateY(-10deg) rotateX(4deg); animation: none; }
  .exhibit-list { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 18px; transform: none; }
  .mark-wrap { max-width: 250px; }
  .tickers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-cols { grid-template-columns: minmax(0, 1fr); }
  .wall-word { top: 7%; }
  .room-inner { align-items: start; }
}
@media (max-width: 560px) {
  .room-copy h1, .room-copy h2 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .plinths { max-width: none; }
  .hud-dot { padding: 9px 10px; font-size: 11px; }
  .hud { padding-inline: 12px; }
  .hud-dots { max-width: calc(100vw - 24px); overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .hud-dots::-webkit-scrollbar { display: none; }
  .hud-dot { flex: 0 0 auto; min-height: 44px; }
  .hud-arrow { display: none; } /* swiping is the native gesture on a phone; the dots remain */
  .ring-wrap { height: 310px; }
  .room-actions .btn { flex: 1 1 auto; justify-content: center; }
}
/* No hover parallax on touch: give the scene a slow idle drift instead so it still breathes. */
@media (hover: none) {
  html.js-rooms .room.is-active .scene { animation: idle-drift 12s ease-in-out infinite; }
  @keyframes idle-drift { 0%, 100% { transform: rotateY(-1.6deg) rotateX(.8deg); } 50% { transform: rotateY(1.6deg) rotateX(-.8deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .frame, .frame::after, .mark, .swipe-hint i { animation: none !important; }
}
