:root {
  --bg: #050712;
  --bg-2: #090d1e;
  --text: #f8fafc;
  --muted: #a7b0c4;
  --line: rgba(255,255,255,0.14);
  --glass: rgba(10, 13, 28, 0.72);
  --primary: #8b5cf6;
  --secondary: #22d3ee;
  --accent: #facc15;
  --danger: #fb7185;
  --good: #34d399;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.24), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(139, 92, 246, 0.24), transparent 30%),
    radial-gradient(circle at 50% 96%, rgba(250, 204, 21, 0.11), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 52%, #03040b);
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, rgba(0,0,0,0.9), transparent 72%);
}
body::after {
  background: radial-gradient(circle at 50% 50%, transparent 0, transparent 45%, rgba(5,7,18,0.78) 86%);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
canvas { display: block; }

a { color: inherit; }

.app-shell,
.admin-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(18px, 3vw, 44px);
}

.app-shell {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.screen {
  width: min(100%, 1180px);
  min-height: calc(100vh - clamp(36px, 6vw, 88px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass,
.panel,
.game-card,
.stat-card,
.form-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.panel {
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 52px);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
}

.hero-art {
  position: relative;
  min-height: min(62vh, 720px);
  border-radius: 44px;
  overflow: hidden;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 90deg, var(--primary), var(--secondary), var(--accent), var(--danger), var(--primary));
  opacity: 0.72;
  animation: slowSpin 18s linear infinite;
  filter: blur(8px);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,0.18), rgba(5,7,18,0.88) 58%);
  border: 1px solid rgba(255,255,255,0.15);
}

.orb {
  position: absolute;
  z-index: 3;
  width: clamp(190px, 27vw, 360px);
  height: clamp(190px, 27vw, 360px);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background:
    radial-gradient(circle at 35% 25%, #fff, var(--secondary) 18%, var(--primary) 52%, #0b1026 76%);
  box-shadow:
    0 0 55px rgba(34,211,238,0.65),
    0 0 140px rgba(139,92,246,0.54),
    inset 0 0 42px rgba(255,255,255,0.28);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.orb-label {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(36px, 8vh, 90px);
  translate: -50% 0;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  width: 90%;
}

.logo-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 0 42px rgba(34,211,238,0.42);
}
.brand-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8.4vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
h3 {
  margin-bottom: 8px;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
}
p {
  color: var(--muted);
  line-height: 1.55;
}
.lead {
  max-width: 680px;
  font-size: clamp(1.06rem, 1.8vw, 1.4rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn,
button.btn {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 28px rgba(34,211,238,0.24), 0 12px 38px rgba(0,0,0,0.3);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 0 44px rgba(34,211,238,0.4), 0 16px 52px rgba(0,0,0,0.38);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.big { min-height: 78px; padding: 0 34px; font-size: 1.15rem; }
.btn.ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.warn { background: linear-gradient(135deg, var(--accent), var(--danger)); color: #111827; }
.btn.good { background: linear-gradient(135deg, var(--good), var(--secondary)); color: #041014; }

.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: rgba(3, 5, 16, 0.72);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
textarea.input { min-height: 150px; padding-top: 14px; }
.input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}
label { display: grid; gap: 8px; color: #dbeafe; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checkbox-row input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--secondary); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 18px;
  border-radius: 28px;
}
.topbar .mini-logo { display: flex; gap: 10px; align-items: center; font-weight: 900; }
.topbar .mini-logo img { width: 42px; height: 42px; border-radius: 12px; }
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

.campaign-grid,
.game-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.campaign-card,
.game-card,
.stat-card,
.form-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.campaign-card::before,
.game-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -55% -30%;
  height: 170px;
  background: radial-gradient(circle, rgba(34,211,238,0.28), transparent 58%);
  pointer-events: none;
}
.game-card.active { cursor: pointer; }
.game-card.coming { opacity: 0.58; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(34,211,238,0.12);
  color: #bff8ff;
  border: 1px solid rgba(34,211,238,0.24);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 0.8fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(74vh, 780px);
}
.wheel-glow {
  position: absolute;
  width: min(80vw, 660px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.28), rgba(139,92,246,0.18) 42%, transparent 70%);
  filter: blur(20px);
  animation: pulseGlow 2.7s ease-in-out infinite;
}
#wheelCanvas {
  position: relative;
  z-index: 2;
  width: min(78vw, 620px);
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 28px rgba(34,211,238,0.35)) drop-shadow(0 25px 45px rgba(0,0,0,0.45));
  transition: transform 4200ms cubic-bezier(0.12, 0.72, 0.08, 1);
}
.pointer {
  position: absolute;
  z-index: 3;
  top: calc(50% - min(39vw, 310px) - 2px);
  width: 0;
  height: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-top: 58px solid var(--accent);
  filter: drop-shadow(0 0 18px rgba(250,204,21,0.62));
}
.center-button {
  position: absolute;
  z-index: 4;
  width: min(28vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 35% 25%, #fff, var(--accent) 22%, var(--danger) 74%);
  color: #111827;
  font-size: clamp(1.1rem, 3vw, 2.1rem);
  font-weight: 1000;
  letter-spacing: -0.06em;
  box-shadow: 0 0 38px rgba(250,204,21,0.48), 0 14px 40px rgba(0,0,0,0.4);
}
.result-card {
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 14px;
}
.result-title {
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  letter-spacing: -0.09em;
  line-height: 0.88;
  color: var(--accent);
  text-shadow: 0 0 34px rgba(250,204,21,0.36);
}

.admin-shell { max-width: 1240px; margin: 0 auto; }
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.stat-card strong { display: block; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.07em; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; color: #dbeafe; }
.narrow-doc { max-width: 860px; margin: 0 auto; }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  max-width: min(92vw, 620px);
  border-radius: 999px;
  background: rgba(3,5,16,0.9);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.idle-ribbon {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  opacity: 0.82;
  pointer-events: none;
}

.hidden { display: none !important; }

@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.86; }
  50% { transform: scale(1.055); opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-in { animation: popIn 260ms ease both; }

@media (max-width: 920px) {
  .hero,
  .spin-layout { grid-template-columns: 1fr; }
  .hero-art { min-height: 340px; order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar .actions { width: 100%; }
}

@media (orientation: portrait) and (min-width: 700px) {
  .app-shell { padding: 34px; }
  .screen { min-height: calc(100vh - 68px); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 42vh; }
  h1 { font-size: clamp(5rem, 12vw, 10rem); }
  .btn.big { min-height: 92px; font-size: 1.35rem; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 180px; display: grid; align-content: center; }
}

@media (max-width: 560px) {
  .app-shell, .admin-shell { padding: 14px; }
  .panel { padding: 20px; border-radius: 24px; }
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.25rem; }
  .btn { width: 100%; }
  .actions { width: 100%; }
  .wheel-wrap { min-height: 440px; }
}

/* REV 0.1C: text-free magnetic attract screen */
.screen { width: min(100%, 1440px); }

.attract-screen-v2 {
  position: relative;
  min-height: calc(100vh - clamp(36px, 6vw, 88px));
  border-radius: clamp(28px, 4vw, 58px);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,0.06), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(34,211,238,0.22), transparent 36%),
    linear-gradient(160deg, rgba(255,255,255,0.085), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.16);
}

.attract-screen-v2::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(5,7,18,0.08) 38%, rgba(5,7,18,0.54) 74%, rgba(5,7,18,0.86) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 28%, rgba(0,0,0,0.18));
  z-index: -1;
}

.attract-screen-v2::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.4vw, 18px);
  border-radius: calc(clamp(28px, 4vw, 58px) - 10px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 0 40px rgba(255,255,255,0.05),
    inset 0 0 120px rgba(34,211,238,0.07),
    0 0 70px rgba(139,92,246,0.2);
  pointer-events: none;
}

.attract-v2-aurora {
  position: absolute;
  width: min(108vw, 1280px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px) saturate(1.22);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.aurora-one {
  top: -40%;
  left: -42%;
  background: conic-gradient(from 110deg, rgba(139,92,246,0), var(--primary), var(--secondary), rgba(250,204,21,0.62), rgba(139,92,246,0));
  animation: slowSpin 24s linear infinite;
}

.aurora-two {
  right: -48%;
  bottom: -44%;
  background: conic-gradient(from 260deg, rgba(34,211,238,0), var(--accent), var(--danger), var(--secondary), rgba(34,211,238,0));
  animation: slowSpin 30s linear infinite reverse;
}

.aurora-three {
  width: min(88vw, 920px);
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), rgba(34,211,238,0.28) 18%, rgba(139,92,246,0.14) 42%, transparent 70%);
  animation: breatheGlow 3.2s ease-in-out infinite;
}

.attract-v2-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.042) 1px, transparent 1px);
  background-size: clamp(38px, 5vw, 86px) clamp(38px, 5vw, 86px);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.86), transparent 74%);
  opacity: 0.72;
  pointer-events: none;
}

.attract-v2-frame {
  position: absolute;
  width: min(92vw, 980px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow:
    0 0 120px rgba(34,211,238,0.18),
    inset 0 0 100px rgba(139,92,246,0.16);
  animation: frameBreath 3.6s ease-in-out infinite;
  pointer-events: none;
}

.attract-touch-core {
  position: relative;
  z-index: 3;
  width: clamp(240px, 29vw, 440px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,0.48));
  touch-action: manipulation;
}

.touch-core-glass {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,0.96), rgba(255,255,255,0.26) 13%, transparent 20%),
    conic-gradient(from 140deg, var(--accent), var(--secondary), var(--primary), var(--danger), var(--accent));
  box-shadow:
    0 0 55px rgba(34,211,238,0.75),
    0 0 150px rgba(139,92,246,0.58),
    0 0 230px rgba(250,204,21,0.28),
    inset 0 0 30px rgba(255,255,255,0.28),
    inset -26px -30px 60px rgba(3,5,16,0.34);
  animation: coreFloat 2.5s ease-in-out infinite, slowSpin 14s linear infinite;
}

.touch-core-glass::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,0.52), rgba(255,255,255,0.08) 32%, rgba(3,5,16,0.16) 100%);
  border: 1px solid rgba(255,255,255,0.18);
}

.touch-core-mark {
  position: relative;
  z-index: 4;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(3,5,16,0.22);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.14), 0 0 30px rgba(255,255,255,0.18);
}

.touch-core-mark span {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  box-shadow:
    0 0 20px rgba(255,255,255,0.8),
    0 0 46px rgba(34,211,238,0.78),
    0 0 84px rgba(250,204,21,0.46);
  animation: innerPing 1.55s ease-in-out infinite;
}

.touch-ring,
.touch-ring::before,
.touch-ring::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 34px rgba(34,211,238,0.22), inset 0 0 28px rgba(139,92,246,0.13);
  pointer-events: none;
}

.ring-one { animation: ringPulse 1.8s ease-out infinite; }
.ring-two { inset: -22%; animation: ringPulse 1.8s ease-out infinite 0.45s; border-color: rgba(34,211,238,0.22); }
.ring-three { inset: -40%; animation: ringPulse 1.8s ease-out infinite 0.9s; border-color: rgba(250,204,21,0.2); }

.touch-orbit {
  position: absolute;
  z-index: 2;
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 24px var(--secondary), 0 0 54px rgba(34,211,238,0.5);
  offset-path: circle(52% at 50% 50%);
  animation: orbitDot 4.8s linear infinite;
}

.orbit-two {
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent), 0 0 54px rgba(250,204,21,0.5);
  offset-path: circle(68% at 50% 50%);
  animation-duration: 6.2s;
  animation-direction: reverse;
}

.orbit-three {
  background: var(--primary);
  box-shadow: 0 0 24px var(--primary), 0 0 54px rgba(139,92,246,0.5);
  offset-path: circle(82% at 50% 50%);
  animation-duration: 7.4s;
}

.attract-touch-core:hover .touch-core-glass,
.attract-touch-core:focus-visible .touch-core-glass,
.attract-screen-v2:focus-visible .touch-core-glass {
  box-shadow:
    0 0 72px rgba(34,211,238,0.95),
    0 0 180px rgba(139,92,246,0.72),
    0 0 260px rgba(250,204,21,0.36),
    inset 0 0 34px rgba(255,255,255,0.34),
    inset -26px -30px 60px rgba(3,5,16,0.34);
}

.attract-v2-particles span {
  position: absolute;
  width: clamp(7px, 1vw, 14px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 24px rgba(255,255,255,0.7), 0 0 50px rgba(34,211,238,0.42);
  animation: particleFloat 5.4s ease-in-out infinite;
}
.attract-v2-particles span:nth-child(1) { left: 18%; top: 18%; background: var(--secondary); animation-delay: -0.4s; }
.attract-v2-particles span:nth-child(2) { right: 18%; top: 24%; background: var(--accent); animation-delay: -1.1s; }
.attract-v2-particles span:nth-child(3) { left: 22%; bottom: 22%; background: var(--primary); animation-delay: -1.8s; }
.attract-v2-particles span:nth-child(4) { right: 20%; bottom: 18%; background: var(--danger); animation-delay: -2.5s; }
.attract-v2-particles span:nth-child(5) { left: 50%; top: 12%; background: rgba(255,255,255,0.9); animation-delay: -3.2s; }
.attract-v2-particles span:nth-child(6) { left: 50%; bottom: 11%; background: rgba(255,255,255,0.9); animation-delay: -4s; }

@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 0; }
  18% { opacity: 0.72; }
  100% { transform: scale(1.36); opacity: 0; }
}

@keyframes coreFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.035); }
}

@keyframes innerPing {
  0%, 100% { transform: scale(0.88); opacity: 0.75; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes orbitDot {
  to { offset-distance: 100%; }
}

@keyframes frameBreath {
  0%, 100% { transform: scale(0.92); opacity: 0.54; }
  50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes breatheGlow {
  0%, 100% { transform: scale(0.96); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes particleFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.92); opacity: 0.42; }
  45% { transform: translate3d(0, -18px, 0) scale(1.22); opacity: 0.95; }
}

@media (orientation: portrait) and (min-width: 700px) {
  .screen { width: min(100%, 1380px); }
  .attract-screen-v2 { min-height: calc(100vh - 68px); }
  .attract-touch-core { width: clamp(320px, 39vw, 620px); }
  .attract-v2-frame { width: min(94vw, 1120px); }
}

@media (min-width: 1800px) {
  .screen { width: min(100%, 1760px); }
  .attract-touch-core { width: clamp(380px, 26vw, 680px); }
}

@media (max-width: 560px) {
  .attract-touch-core { width: min(70vw, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  .attract-v2-aurora,
  .attract-v2-frame,
  .touch-core-glass,
  .touch-ring,
  .touch-orbit,
  .touch-core-mark span,
  .attract-v2-particles span { animation: none; }
}

/* REV 0.1B: single-card kiosk login, no scroll split layout */
.login-wrap {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - clamp(36px, 6vw, 88px));
  display: grid;
  place-items: center;
}

.login-kiosk-frame {
  position: relative;
  width: min(94vw, 920px);
  min-height: min(88vh, 1480px);
  max-height: calc(100svh - clamp(36px, 6vw, 88px));
  border-radius: clamp(34px, 4.4vw, 72px);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(26px, 5vw, 76px);
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 22%, rgba(34,211,238,0.16), transparent 25%),
    radial-gradient(circle at 50% 76%, rgba(139,92,246,0.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.16);
}

.login-kiosk-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 110deg, var(--primary), var(--secondary), var(--accent), var(--danger), var(--primary));
  opacity: 0.62;
  animation: slowSpin 20s linear infinite;
  filter: blur(10px);
  z-index: -2;
}

.login-kiosk-frame::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.4vw, 20px);
  border-radius: calc(clamp(34px, 4.4vw, 72px) - 12px);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.075), transparent 42%),
    rgba(5,7,18,0.9);
  border: 1px solid rgba(255,255,255,0.16);
  z-index: -1;
}

.login-frame-orb {
  position: absolute;
  width: min(66vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  top: 11%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle at 34% 25%, rgba(255,255,255,0.78), var(--secondary) 13%, var(--primary) 44%, transparent 72%);
  filter: blur(2px);
  opacity: 0.26;
  pointer-events: none;
  animation: pulseGlow 3.4s ease-in-out infinite;
}

.login-frame-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: clamp(38px, 5vw, 76px) clamp(38px, 5vw, 76px);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.86), transparent 74%);
  opacity: 0.52;
  pointer-events: none;
}

.login-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  max-height: calc(100svh - 160px);
  border-radius: clamp(22px, 3vw, 34px);
  padding: clamp(24px, 4.2vw, 48px);
  display: grid;
  gap: clamp(18px, 2.4vh, 30px);
  overflow: visible;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand .logo-mark {
  width: clamp(48px, 6.4vw, 72px);
  height: clamp(48px, 6.4vw, 72px);
}

.login-brand strong {
  display: block;
  color: var(--text);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
}

.login-heading {
  display: grid;
  gap: 12px;
}

.login-heading h1 {
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
}

.login-heading p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1rem, 1.65vw, 1.25rem);
}

.login-fields {
  display: grid;
  gap: 14px;
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.login-actions .btn {
  width: 100%;
  min-height: clamp(64px, 7.2vh, 86px);
  padding: 0 18px;
  text-align: center;
}

@media (orientation: portrait) and (min-width: 700px) {
  .login-wrap {
    min-height: calc(100vh - 68px);
  }

  .login-kiosk-frame {
    width: min(92vw, 980px);
    min-height: calc(100vh - 68px);
    max-height: calc(100vh - 68px);
  }

  .login-panel {
    width: min(78vw, 660px);
  }
}

@media (max-width: 560px) {
  .login-kiosk-frame {
    width: 100%;
    min-height: calc(100vh - 28px);
    max-height: none;
    padding: 22px;
  }

  .login-panel {
    max-height: none;
    width: 100%;
  }

  .login-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-kiosk-frame::before,
  .login-frame-orb { animation: none; }
}

/* REV 0.1D: responsive audio-reactive attract screen */
.screen:has(.attract-screen-v3) {
  width: min(100%, 1880px);
  min-height: calc(100vh - clamp(28px, 5vw, 88px));
  gap: 0;
}

.attract-screen-v3 {
  --mx: 50%;
  --my: 50%;
  --voice-pop: 1;
  --voice-bar: 24px;
  --voice-glow: 0.42;
  --voice-blur: 18px;
  --bar-radius: clamp(180px, 27vmin, 430px);
  position: relative;
  height: calc(100vh - clamp(28px, 5vw, 88px));
  min-height: 620px;
  border-radius: clamp(30px, 4vw, 70px);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.15), transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(34,211,238,0.17), transparent 36%),
    linear-gradient(145deg, rgba(15,20,48,0.96), rgba(4,7,20,0.98));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 36px 120px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 0 120px rgba(34,211,238,0.08);
}

.attract-screen-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.12), transparent 18%),
    conic-gradient(from 20deg at 50% 50%, rgba(139,92,246,0.16), rgba(34,211,238,0.28), rgba(250,204,21,0.2), rgba(251,113,133,0.2), rgba(139,92,246,0.16));
  filter: blur(var(--voice-blur));
  opacity: var(--voice-glow);
  animation: attractFieldDrift 18s ease-in-out infinite;
}

.attract-screen-v3::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.2vw, 20px);
  border-radius: calc(clamp(30px, 4vw, 70px) - 10px);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    inset 0 0 80px rgba(255,255,255,0.04),
    inset 0 0 170px rgba(139,92,246,0.13),
    0 0 80px rgba(34,211,238,0.18);
  pointer-events: none;
}

.attract-stage,
.stage-aurora,
.stage-grid,
.stage-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-aurora {
  width: min(120vw, 1600px);
  height: min(120vw, 1600px);
  border-radius: 50%;
  filter: blur(22px) saturate(1.25);
  opacity: 0.76;
  mix-blend-mode: screen;
}

.stage-aurora-a {
  left: -34%;
  top: -28%;
  background: conic-gradient(from 160deg, transparent, var(--secondary), var(--primary), transparent 74%);
  animation: slowSpin 32s linear infinite;
}

.stage-aurora-b {
  right: -38%;
  bottom: -36%;
  background: conic-gradient(from 290deg, transparent, var(--accent), var(--danger), var(--secondary), transparent 76%);
  animation: slowSpin 38s linear infinite reverse;
}

.stage-aurora-c {
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(86vw, 1120px);
  height: min(86vw, 1120px);
  background: radial-gradient(circle, rgba(255,255,255,0.2), rgba(34,211,238,0.18) 24%, rgba(139,92,246,0.13) 46%, transparent 72%);
  animation: voiceFieldBreath 3.4s ease-in-out infinite;
  scale: var(--voice-pop);
}

.stage-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: clamp(42px, 5vw, 96px) clamp(42px, 5vw, 96px);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.95), transparent 72%);
  opacity: 0.62;
}

.stage-sheen {
  background:
    radial-gradient(ellipse at var(--mx) var(--my), rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(120deg, transparent 22%, rgba(255,255,255,0.08), transparent 46%);
  mix-blend-mode: screen;
  opacity: 0.68;
}

.magnet-touch {
  --magnet-size: clamp(300px, 34vmin, 650px);
  position: relative;
  z-index: 3;
  width: var(--magnet-size);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  filter: drop-shadow(0 38px 95px rgba(0,0,0,0.58));
  touch-action: manipulation;
}

.magnet-orb {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,1), rgba(255,255,255,0.35) 13%, transparent 22%),
    radial-gradient(circle at 66% 72%, rgba(255,255,255,0.18), transparent 36%),
    conic-gradient(from 130deg, var(--accent), var(--secondary), var(--primary), var(--danger), var(--accent));
  box-shadow:
    0 0 calc(60px + var(--voice-glow) * 50px) rgba(34,211,238,0.76),
    0 0 180px rgba(139,92,246,0.54),
    0 0 280px rgba(250,204,21,0.26),
    inset 0 0 28px rgba(255,255,255,0.32),
    inset -34px -36px 76px rgba(3,5,16,0.36);
  animation: magnetFloat 2.4s ease-in-out infinite, slowSpin 16s linear infinite;
  scale: var(--voice-pop);
}

.magnet-orb::before,
.magnet-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 20%;
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,0.5), rgba(255,255,255,0.08) 36%, rgba(0,0,0,0.16));
  border: 1px solid rgba(255,255,255,0.18);
}

.magnet-orb::after {
  inset: -18%;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  box-shadow: inset 0 0 70px rgba(255,255,255,0.06), 0 0 90px rgba(34,211,238,0.16);
  animation: magnetHalo 2s ease-out infinite;
}

.magnet-core {
  position: relative;
  z-index: 4;
  width: 29%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(3,5,16,0.24);
  border: 1px solid rgba(255,255,255,0.23);
  box-shadow:
    inset 0 0 28px rgba(255,255,255,0.16),
    0 0 38px rgba(255,255,255,0.2);
  scale: var(--voice-pop);
}

.tap-pulse {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  box-shadow:
    0 0 22px rgba(255,255,255,0.9),
    0 0 54px rgba(34,211,238,0.88),
    0 0 90px rgba(250,204,21,0.48);
  animation: tapPulse 1.32s ease-in-out infinite;
}

.magnet-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.13);
  box-shadow: 0 0 40px rgba(34,211,238,0.2), inset 0 0 36px rgba(139,92,246,0.13);
  pointer-events: none;
}

.magnet-ring-a { inset: 2%; animation: magnetRing 1.75s ease-out infinite; }
.magnet-ring-b { inset: -18%; border-color: rgba(34,211,238,0.2); animation: magnetRing 1.75s ease-out infinite 0.48s; }
.magnet-ring-c { inset: -38%; border-color: rgba(250,204,21,0.18); animation: magnetRing 1.75s ease-out infinite 0.96s; }

.voice-bars {
  position: absolute;
  inset: -46%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.74;
}

.voice-bars i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(4px, 0.75vmin, 10px);
  height: var(--voice-bar);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(34,211,238,0.72), rgba(139,92,246,0.08));
  box-shadow: 0 0 20px rgba(34,211,238,0.54), 0 0 40px rgba(139,92,246,0.26);
  transform-origin: center var(--bar-radius);
  transform: translate(-50%, -50%) rotate(var(--rot)) translateY(calc(-1 * var(--bar-radius)));
  opacity: var(--voice-glow);
  animation: voiceBarIdle 1.45s ease-in-out infinite;
  animation-delay: var(--delay);
}

.voice-live .voice-bars i {
  animation-duration: 0.82s;
}

.magnet-particles span {
  position: absolute;
  width: clamp(8px, 1.2vmin, 18px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 26px rgba(255,255,255,0.72), 0 0 58px rgba(34,211,238,0.42);
  animation: magnetParticle 6s ease-in-out infinite;
  pointer-events: none;
}

.magnet-particles span:nth-child(1) { left: 14%; top: 15%; background: var(--secondary); animation-delay: -0.2s; }
.magnet-particles span:nth-child(2) { left: 77%; top: 18%; background: var(--accent); animation-delay: -0.9s; }
.magnet-particles span:nth-child(3) { left: 19%; top: 76%; background: var(--primary); animation-delay: -1.6s; }
.magnet-particles span:nth-child(4) { left: 82%; top: 72%; background: var(--danger); animation-delay: -2.3s; }
.magnet-particles span:nth-child(5) { left: 48%; top: 10%; background: rgba(255,255,255,0.9); animation-delay: -3s; }
.magnet-particles span:nth-child(6) { left: 52%; top: 88%; background: rgba(255,255,255,0.9); animation-delay: -3.7s; }
.magnet-particles span:nth-child(7) { left: 8%; top: 48%; background: var(--accent); animation-delay: -4.4s; }
.magnet-particles span:nth-child(8) { left: 90%; top: 50%; background: var(--secondary); animation-delay: -5.1s; }

.touch-burst .magnet-orb,
.touch-burst .magnet-core {
  scale: 1.14;
}

.touch-burst .magnet-ring-a,
.touch-burst .magnet-ring-b,
.touch-burst .magnet-ring-c {
  border-color: rgba(255,255,255,0.36);
  box-shadow: 0 0 80px rgba(255,255,255,0.34), inset 0 0 46px rgba(34,211,238,0.24);
}

@keyframes magnetRing {
  0% { transform: scale(0.66); opacity: 0; }
  18% { opacity: 0.76; }
  100% { transform: scale(1.32); opacity: 0; }
}

@keyframes magnetFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes magnetHalo {
  0% { transform: scale(0.88); opacity: 0.66; }
  100% { transform: scale(1.28); opacity: 0; }
}

@keyframes tapPulse {
  0%, 100% { transform: scale(0.82); opacity: 0.68; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes voiceBarIdle {
  0%, 100% { scale: 1 0.52; filter: brightness(0.82); }
  50% { scale: 1 1.1; filter: brightness(1.24); }
}

@keyframes voiceFieldBreath {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 0.96; }
}

@keyframes attractFieldDrift {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(18deg) scale(1.12); }
}

@keyframes magnetParticle {
  0%, 100% { transform: translate3d(0,0,0) scale(0.84); opacity: 0.38; }
  45% { transform: translate3d(0,-28px,0) scale(1.22); opacity: 0.95; }
}

@media (orientation: portrait) {
  .attract-screen-v3 {
    --bar-radius: clamp(220px, 35vw, 540px);
    min-height: calc(100vh - clamp(28px, 5vw, 88px));
  }
  .magnet-touch { --magnet-size: clamp(340px, 46vw, 720px); }
  .stage-aurora-a { left: -66%; top: -24%; }
  .stage-aurora-b { right: -72%; bottom: -24%; }
}

@media (orientation: landscape) {
  .attract-screen-v3 {
    --bar-radius: clamp(170px, 33vh, 430px);
  }
  .magnet-touch { --magnet-size: clamp(300px, 38vh, 620px); }
  .stage-aurora-a { left: -22%; top: -56%; }
  .stage-aurora-b { right: -26%; bottom: -58%; }
}

@media (max-height: 740px) {
  .attract-screen-v3 { min-height: calc(100vh - 28px); }
  .magnet-touch { --magnet-size: clamp(230px, 44vh, 420px); }
  .attract-screen-v3 { --bar-radius: clamp(145px, 32vh, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .attract-screen-v3::before,
  .stage-aurora,
  .stage-aurora-c,
  .magnet-orb,
  .magnet-orb::after,
  .magnet-ring,
  .tap-pulse,
  .voice-bars i,
  .magnet-particles span { animation: none !important; }
}

/* REV 0.1E: low-memory attract screen.
   Uses one capped-DPR canvas instead of large blurred DOM layers. */
.screen:has(.attract-screen-v4) {
  width: min(100%, 1880px);
  min-height: calc(100vh - clamp(20px, 4vw, 72px));
  gap: 0;
}

.attract-screen-v4 {
  --touch-x: 50%;
  --touch-y: 50%;
  position: relative;
  height: calc(100vh - clamp(20px, 4vw, 72px));
  min-height: 560px;
  border-radius: clamp(28px, 4vw, 64px);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background: #050712;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
}

.attract-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.kiosk-touch-target {
  position: absolute;
  left: var(--touch-x);
  top: var(--touch-y);
  z-index: 2;
  width: clamp(170px, 20vmin, 330px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  touch-action: manipulation;
}

.touch-core {
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #fff 0 8%, rgba(255,255,255,0.55) 16%, rgba(34,211,238,0.95) 44%, rgba(139,92,246,0.88) 72%, rgba(7,11,28,0.45) 100%);
  box-shadow: 0 0 28px rgba(255,255,255,0.55), 0 0 62px rgba(34,211,238,0.5), 0 0 120px rgba(139,92,246,0.32);
  animation: lowMemCorePulse 1.8s ease-in-out infinite;
}

.touch-halo {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  opacity: 0;
  animation: lowMemHalo 2s ease-out infinite;
}

.touch-halo-b {
  animation-delay: 0.72s;
  border-color: rgba(34,211,238,0.2);
}

.touch-burst .touch-core {
  transform: scale(1.12);
}

.touch-burst .touch-halo {
  border-color: rgba(255,255,255,0.38);
}

@keyframes lowMemCorePulse {
  0%, 100% { transform: scale(0.96); opacity: 0.92; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes lowMemHalo {
  0% { transform: scale(0.6); opacity: 0; }
  16% { opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (orientation: landscape) {
  .attract-screen-v4 {
    min-height: calc(100vh - clamp(20px, 4vw, 72px));
  }

  .kiosk-touch-target {
    width: clamp(160px, 24vh, 300px);
  }
}

@media (orientation: portrait) {
  .kiosk-touch-target {
    width: clamp(180px, 25vw, 340px);
  }
}

@media (max-height: 740px) {
  .attract-screen-v4 {
    min-height: calc(100vh - 24px);
    height: calc(100vh - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .touch-core,
  .touch-halo {
    animation: none !important;
  }
}

/* REV 0.1F: ultra-low-motion camera-reactive attract screen.
   No fullscreen canvas, no face storage, no ML, no audio, no heavy filters. */
.screen:has(.attract-screen-v5) {
  width: min(100%, 1880px);
  min-height: calc(100dvh - clamp(18px, 4vw, 72px));
  gap: 0;
}

.attract-screen-v5 {
  --motion: 0;
  --motion-x: 50%;
  --motion-y: 50%;
  position: relative;
  height: calc(100dvh - clamp(18px, 4vw, 72px));
  min-height: 520px;
  border-radius: clamp(28px, 4vw, 64px);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background:
    radial-gradient(circle at var(--motion-x) var(--motion-y), rgb(34 211 238 / calc(0.16 + (var(--motion) * 0.26))) 0, transparent 34vmin),
    radial-gradient(circle at calc(100% - var(--motion-x)) calc(100% - var(--motion-y)), rgb(250 204 21 / calc(0.10 + (var(--motion) * 0.20))) 0, transparent 38vmin),
    linear-gradient(145deg, #070a1a 0%, #030510 46%, #09071a 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 58px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.12);
}

.motion-video {
  position: absolute;
  width: 2px;
  height: 2px;
  left: -8px;
  top: -8px;
  opacity: 0.001;
  pointer-events: none;
}

.motion-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: clamp(44px, 6vmin, 86px) clamp(44px, 6vmin, 86px);
  opacity: calc(0.30 + (var(--motion) * 0.38));
  transition: opacity 420ms ease, background-position 420ms ease;
  background-position: calc(var(--motion-x) / 12) calc(var(--motion-y) / 12);
}

.motion-texture {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  opacity: calc(0.38 + (var(--motion) * 0.38));
  transform: translate3d(0, 0, 0) scale(calc(1 + (var(--motion) * 0.14)));
  transition: opacity 380ms ease, transform 380ms ease, left 380ms ease, top 380ms ease, right 380ms ease, bottom 380ms ease;
}

.texture-a {
  width: min(72vmax, 1040px);
  aspect-ratio: 1;
  left: calc(-28vmax + (var(--motion) * 28px));
  top: calc(-18vmax + (var(--motion) * 18px));
  background: radial-gradient(circle at 52% 48%, rgba(34,211,238,0.42), rgba(34,211,238,0.12) 34%, transparent 68%);
}

.texture-b {
  width: min(64vmax, 920px);
  aspect-ratio: 1;
  right: calc(-22vmax - (var(--motion) * 18px));
  bottom: calc(-18vmax - (var(--motion) * 24px));
  background: radial-gradient(circle at 50% 50%, rgba(250,204,21,0.36), rgba(251,113,133,0.16) 36%, transparent 70%);
}

.texture-c {
  width: min(46vmax, 720px);
  aspect-ratio: 1;
  left: calc(var(--motion-x) - 23vmax);
  top: calc(var(--motion-y) - 23vmax);
  background: radial-gradient(circle at 50% 50%, rgba(139,92,246,0.28), rgba(34,211,238,0.10) 40%, transparent 72%);
  opacity: calc(0.18 + (var(--motion) * 0.42));
}

.motion-touch-target {
  position: absolute;
  left: var(--motion-x);
  top: var(--motion-y);
  z-index: 3;
  width: clamp(176px, 22vmin, 330px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  touch-action: manipulation;
  transition: left 420ms ease, top 420ms ease, transform 240ms ease;
}

.motion-orb {
  position: relative;
  z-index: 4;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,0.96) 0 9%, rgba(255,255,255,0.42) 18%, transparent 28%),
    conic-gradient(from 145deg, #facc15, #22d3ee, #8b5cf6, #fb7185, #facc15);
  box-shadow:
    0 0 24px rgba(255,255,255,0.44),
    0 0 calc(48px + (var(--motion) * 38px)) rgba(34,211,238,0.48),
    0 0 calc(92px + (var(--motion) * 64px)) rgba(139,92,246,0.34),
    inset -18px -24px 44px rgba(3,5,16,0.34),
    inset 0 0 18px rgba(255,255,255,0.24);
  transform: scale(calc(1 + (var(--motion) * 0.22)));
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.motion-orb img {
  width: 42%;
  height: 42%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.38));
}

.motion-ripple {
  position: absolute;
  inset: 24%;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.20);
  opacity: calc(0.20 + (var(--motion) * 0.55));
  transform: scale(calc(1.1 + (var(--motion) * 1.1)));
  transition: opacity 260ms ease, transform 260ms ease, border-color 260ms ease;
}

.ripple-b {
  inset: 10%;
  border-color: rgba(34,211,238,0.20);
  opacity: calc(0.14 + (var(--motion) * 0.44));
  transform: scale(calc(1.18 + (var(--motion) * 1.2)));
}

.attract-screen-v5.person-near .motion-ripple {
  border-color: rgba(255,255,255,0.42);
}

.attract-screen-v5.person-near .motion-touch-target {
  transform: scale(1.04);
}

.attract-screen-v5.vision-fallback .motion-orb {
  animation: fallbackBreath 2.8s ease-in-out infinite;
}

.attract-screen-v5.vision-fallback .motion-ripple {
  animation: fallbackRipple 2.8s ease-out infinite;
}

.ripple-b { animation-delay: 0.7s; }

@keyframes fallbackBreath {
  0%, 100% { transform: scale(0.98); }
  50% { transform: scale(1.08); }
}

@keyframes fallbackRipple {
  0% { opacity: 0.12; transform: scale(0.92); }
  45% { opacity: 0.52; }
  100% { opacity: 0; transform: scale(2.12); }
}

@media (orientation: landscape) {
  .attract-screen-v5 {
    min-height: calc(100dvh - clamp(18px, 4vw, 72px));
  }
  .motion-touch-target {
    width: clamp(150px, 30vh, 300px);
  }
}

@media (orientation: portrait) {
  .motion-touch-target {
    width: clamp(174px, 28vw, 340px);
  }
}

@media (max-height: 720px) {
  .attract-screen-v5 {
    height: calc(100dvh - 22px);
    min-height: calc(100dvh - 22px);
  }
  .motion-touch-target {
    width: clamp(138px, 27vh, 230px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .attract-screen-v5.vision-fallback .motion-orb,
  .attract-screen-v5.vision-fallback .motion-ripple {
    animation: none !important;
  }
}

/* REV 0.1G: Android-safe mirror-field attract screen.
   Camera is sampled at tiny resolution; visuals are drawn at capped canvas size.
   No image/video storage, no face recognition, no ML model. */
.screen:has(.attract-screen-v6) {
  width: min(100%, 1880px);
  min-height: calc(100dvh - clamp(12px, 3vw, 52px));
  gap: 0;
}

.attract-screen-v6 {
  position: relative;
  height: calc(100dvh - clamp(12px, 3vw, 52px));
  min-height: 460px;
  border-radius: clamp(26px, 4vw, 58px);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background: #050713;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 20px 56px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(139,92,246,0.10);
}

.attract-screen-v6::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  border-radius: calc(clamp(26px, 4vw, 58px) - 10px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 0 28px rgba(34,211,238,0.08),
    0 0 36px rgba(139,92,246,0.10);
}

.attract-screen-v6::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035), transparent 18%, transparent 82%, rgba(255,255,255,0.035)),
    radial-gradient(circle at 50% 50%, transparent 0 38%, rgba(0,0,0,0.22) 100%);
  opacity: 0.8;
}

.mirror-field-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.mirror-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 28%, rgba(0,0,0,0.20) 70%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 22%, transparent 78%, rgba(255,255,255,0.03));
  mix-blend-mode: normal;
}

.mirror-start-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.motion-video {
  position: absolute;
  width: 2px;
  height: 2px;
  left: -8px;
  top: -8px;
  opacity: 0.001;
  pointer-events: none;
}

.attract-screen-v6[data-vision="live"] {
  box-shadow:
    0 22px 62px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.13),
    inset 0 0 0 1px rgba(34,211,238,0.12);
}

@media (orientation: landscape) {
  .attract-screen-v6 {
    height: calc(100dvh - clamp(12px, 3vw, 52px));
    min-height: 420px;
  }
}

@media (max-height: 720px) {
  .screen:has(.attract-screen-v6) {
    min-height: calc(100dvh - 18px);
  }
  .attract-screen-v6 {
    height: calc(100dvh - 18px);
    min-height: calc(100dvh - 18px);
    border-radius: 28px;
  }
  .attract-screen-v6::before {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mirror-field-canvas {
    opacity: 0.82;
  }
}


/* REV 0.1H: depth-line attract treatment.
   One visual language: no orb/globe; camera motion creates thin/fat mirrored light lines. */
.screen:has(.attract-screen-v8),
.screen:has(.attract-screen-v7),
.screen:has(.attract-screen-v6) {
  width: 100%;
  max-width: none;
  min-height: 100vh;
}

.attract-screen-v8,
.attract-screen-v7,
.attract-screen-v6 {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  width: 100vw;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background: #02040b;
  border: 0;
  box-shadow: none;
}

.attract-screen-v8::before,
.attract-screen-v7::before,
.attract-screen-v6::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34,211,238,0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(139,92,246,0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(34,211,238,0.07), transparent 42%),
    linear-gradient(135deg, #02040b, #070817 50%, #010207);
  background-size: 54px 54px, 54px 54px, auto, auto;
}

.attract-screen-v8::after,
.attract-screen-v7::after,
.attract-screen-v6::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.48), transparent 18%, transparent 82%, rgba(0,0,0,0.48)),
    radial-gradient(circle at 50% 50%, transparent 0 44%, rgba(0,0,0,0.50) 88%);
}

.mirror-field-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.motion-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mirror-vignette {
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.05),
    inset 0 0 90px rgba(34,211,238,0.06),
    inset 0 0 220px rgba(139,92,246,0.06);
}

.mirror-start-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.attract-screen-v8[data-vision="live"] .mirror-vignette,
.attract-screen-v7[data-vision="live"] .mirror-vignette,
.attract-screen-v6[data-vision="live"] .mirror-vignette {
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.08),
    inset 0 0 90px rgba(34,211,238,0.09),
    inset 0 0 220px rgba(139,92,246,0.08);
}

@media (orientation: landscape) {
  .mirror-vignette { inset: 12px; }
}

@media (max-width: 720px) {
  .mirror-vignette { inset: 8px; }
}

/* REV 0.1J: focused logo-assembly attract screen.
   Removes the straight-line and circle/ripple visual language. The camera/voice now only feeds the logo build. */
.screen:has(.attract-screen-v9) {
  width: 100%;
  max-width: none;
  min-height: 100vh;
}

.attract-screen-v9 {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  width: 100vw;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background: #02040b;
  border: 0;
  box-shadow: none;
}

.attract-screen-v9::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(34,211,238,0.085), transparent 36%),
    radial-gradient(circle at 50% 78%, rgba(250,204,21,0.045), transparent 38%),
    linear-gradient(135deg, #02040b, #070817 54%, #010207);
}

.attract-screen-v9::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.52), transparent 20%, transparent 80%, rgba(0,0,0,0.52)),
    radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(0,0,0,0.54) 90%);
}

.attract-screen-v9 .mirror-field-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.attract-screen-v9 .motion-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attract-screen-v9 .mirror-vignette {
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.035),
    inset 0 0 120px rgba(34,211,238,0.035),
    inset 0 0 240px rgba(139,92,246,0.035);
  transition: box-shadow 240ms ease, border-color 240ms ease;
}

.attract-screen-v9[data-vision="live"] .mirror-vignette {
  border-color: rgba(255,255,255,0.11);
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.075),
    inset 0 0 120px rgba(34,211,238,0.07),
    inset 0 0 240px rgba(139,92,246,0.055);
}

.attract-screen-v9[data-complete="true"] .mirror-vignette {
  border-color: rgba(250,204,21,0.18);
  box-shadow:
    inset 0 0 0 1px rgba(250,204,21,0.10),
    inset 0 0 120px rgba(34,211,238,0.08),
    inset 0 0 260px rgba(250,204,21,0.055);
}

.attract-screen-v9 .mirror-start-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

@media (orientation: landscape) {
  .attract-screen-v9 .mirror-vignette { inset: 12px; }
}

@media (max-width: 720px) {
  .attract-screen-v9 .mirror-vignette { inset: 8px; }
}


/* REV 0.1K: interaction-led logo reactor.
   Organic squiggle strokes feed logo fragments. No auto-complete without camera/audio/touch engagement. */
.screen:has(.attract-screen-v10) {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.attract-screen-v10 {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  width: 100vw;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background: #02030a;
  border: 0;
  box-shadow: none;
}

.attract-screen-v10::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(34,211,238,0.065), transparent 34%),
    linear-gradient(315deg, rgba(250,204,21,0.045), transparent 40%),
    linear-gradient(180deg, #030511 0%, #08091a 48%, #02030a 100%);
}

.attract-screen-v10::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.46), transparent 20%, transparent 80%, rgba(0,0,0,0.46)),
    linear-gradient(180deg, rgba(0,0,0,0.60), transparent 22%, transparent 72%, rgba(0,0,0,0.68));
}

.attract-screen-v10 .mirror-field-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

.attract-screen-v10 .motion-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attract-screen-v10 .logo-vignette,
.attract-screen-v10 .mirror-vignette {
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.065);
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.030),
    inset 0 0 120px rgba(34,211,238,0.030),
    inset 0 0 220px rgba(139,92,246,0.028);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.attract-screen-v10[data-vision="live"] .logo-vignette,
.attract-screen-v10[data-vision="live"] .mirror-vignette {
  border-color: rgba(34,211,238,0.12);
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.070),
    inset 0 0 135px rgba(34,211,238,0.055),
    inset 0 0 250px rgba(139,92,246,0.044);
}

.attract-screen-v10[data-complete="true"] .logo-vignette,
.attract-screen-v10[data-complete="true"] .mirror-vignette {
  border-color: rgba(250,204,21,0.17);
  box-shadow:
    inset 0 0 0 1px rgba(250,204,21,0.10),
    inset 0 0 130px rgba(34,211,238,0.060),
    inset 0 0 260px rgba(250,204,21,0.050);
}

.attract-screen-v10 .mirror-start-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

@media (orientation: landscape) {
  .attract-screen-v10 .logo-vignette,
  .attract-screen-v10 .mirror-vignette { inset: 12px; }
}

@media (max-width: 720px) {
  .attract-screen-v10 .logo-vignette,
  .attract-screen-v10 .mirror-vignette { inset: 8px; }
}


/* REV 0.1L: Living Logo attract screen.
   Camera/mic input feeds a reveal mask. The logo does not build without interaction. */
.screen:has(.attract-screen-v11) {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.attract-screen-v11 {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  width: 100vw;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  background: #02030a;
  border: 0;
  box-shadow: none;
}

.attract-screen-v11::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(34,211,238,0.055), transparent 34%),
    linear-gradient(315deg, rgba(236,0,140,0.040), transparent 40%),
    linear-gradient(180deg, #030511 0%, #08091a 48%, #02030a 100%);
}

.attract-screen-v11::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.48), transparent 20%, transparent 80%, rgba(0,0,0,0.48)),
    linear-gradient(180deg, rgba(0,0,0,0.62), transparent 22%, transparent 72%, rgba(0,0,0,0.70));
}

.attract-screen-v11 .mirror-field-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

.attract-screen-v11 .motion-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attract-screen-v11 .logo-vignette,
.attract-screen-v11 .mirror-vignette {
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.052);
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.026),
    inset 0 0 100px rgba(34,211,238,0.026),
    inset 0 0 210px rgba(236,0,140,0.022);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.attract-screen-v11[data-vision="calibrating"] .logo-vignette,
.attract-screen-v11[data-vision="calibrating"] .mirror-vignette {
  border-color: rgba(255,255,255,0.075);
}

.attract-screen-v11[data-vision="live"] .logo-vignette,
.attract-screen-v11[data-vision="live"] .mirror-vignette {
  border-color: rgba(34,211,238,0.11);
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.058),
    inset 0 0 125px rgba(34,211,238,0.040),
    inset 0 0 245px rgba(236,0,140,0.036);
}

.attract-screen-v11[data-complete="true"] .logo-vignette,
.attract-screen-v11[data-complete="true"] .mirror-vignette {
  border-color: rgba(250,204,21,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(250,204,21,0.085),
    inset 0 0 118px rgba(34,211,238,0.052),
    inset 0 0 250px rgba(236,0,140,0.042);
}

.attract-screen-v11 .mirror-start-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

@media (orientation: landscape) {
  .attract-screen-v11 .logo-vignette,
  .attract-screen-v11 .mirror-vignette { inset: 12px; }
}

@media (max-width: 720px) {
  .attract-screen-v11 .logo-vignette,
  .attract-screen-v11 .mirror-vignette { inset: 8px; }
}


/* REV 0.1Q: smoother living-logo timing + corrected welcome bezel screen.
   Keeps the REV 0.1L attract concept and exact JAMi logo asset. */

/* Make the existing logo attract screen slightly calmer without changing the design language. */
.attract-screen-v11::before {
  background:
    linear-gradient(135deg, rgba(34,211,238,0.045), transparent 34%),
    linear-gradient(315deg, rgba(236,0,140,0.032), transparent 40%),
    linear-gradient(180deg, #030511 0%, #08091a 48%, #02030a 100%);
}

.attract-screen-v11[data-vision="live"] .logo-vignette,
.attract-screen-v11[data-vision="live"] .mirror-vignette {
  border-color: rgba(34,211,238,0.095);
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.046),
    inset 0 0 110px rgba(34,211,238,0.032),
    inset 0 0 220px rgba(236,0,140,0.030);
}

.attract-screen-v11[data-complete="true"] .logo-vignette,
.attract-screen-v11[data-complete="true"] .mirror-vignette {
  border-color: rgba(250,204,21,0.13);
  box-shadow:
    inset 0 0 0 1px rgba(250,204,21,0.065),
    inset 0 0 112px rgba(34,211,238,0.042),
    inset 0 0 235px rgba(236,0,140,0.035);
}

/* Full-screen centred login, modelled as a dark display with an animated glowing bezel. */
.login-wrap-simple {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  width: 100vw;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.4vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(34,211,238,0.11), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(139,92,246,0.12), transparent 34%),
    linear-gradient(135deg, #02040b, #070716 52%, #02030a);
}

.login-bezel-screen {
  position: relative;
  width: min(92vw, 720px);
  height: min(94dvh, 1100px);
  min-height: 560px;
  border-radius: clamp(34px, 4.4vw, 62px);
  display: grid;
  place-items: center;
  padding: clamp(26px, 5vw, 70px);
  overflow: hidden;
  isolation: isolate;
  background: #030511;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 30px 92px rgba(0,0,0,0.56),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 120px rgba(34,211,238,0.045);
}

.login-bezel-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: conic-gradient(
    from 0deg,
    rgba(139,92,246,0.28),
    rgba(34,211,238,0.78),
    rgba(236,0,140,0.62),
    rgba(250,204,21,0.58),
    rgba(139,92,246,0.28)
  );
  opacity: 0.68;
  animation: loginBezelPulse 8.5s linear infinite;
}

.login-bezel-screen::after {
  content: "";
  position: absolute;
  inset: clamp(12px, 1.7vw, 22px);
  z-index: -2;
  border-radius: calc(clamp(34px, 4.4vw, 62px) - 14px);
  background:
    radial-gradient(circle at 50% 48%, rgba(34,211,238,0.055), transparent 34%),
    radial-gradient(circle at 50% 62%, rgba(236,0,140,0.038), transparent 42%),
    rgba(2,3,10,0.955);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.035),
    inset 0 0 90px rgba(0,0,0,0.72),
    0 0 44px rgba(34,211,238,0.10);
}

.login-bezel-screen .login-frame-grid {
  position: absolute;
  inset: clamp(16px, 2vw, 30px);
  z-index: -1;
  opacity: 0.30;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: clamp(42px, 5.6vw, 76px) clamp(42px, 5.6vw, 76px);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.82), transparent 72%);
}

.login-panel-simple {
  position: relative;
  z-index: 2;
  width: min(80%, 460px);
  max-width: 460px;
  display: grid;
  gap: clamp(16px, 2.4vh, 24px);
  padding: clamp(22px, 3.2vw, 34px);
  border-radius: clamp(22px, 3vw, 32px);
  background: linear-gradient(145deg, rgba(8,11,25,0.84), rgba(5,7,18,0.74));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 18px 58px rgba(0,0,0,0.44),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-heading-simple {
  display: block;
  text-align: center;
}

.login-heading-simple h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-shadow: 0 0 30px rgba(255,255,255,0.16);
}

.login-fields-simple {
  display: grid;
  gap: 14px;
}

.login-fields-simple label {
  color: rgba(226,232,240,0.90);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-fields-simple .input {
  min-height: clamp(50px, 6vh, 62px);
  border-radius: 14px;
  background: rgba(2,4,12,0.88);
  border-color: rgba(255,255,255,0.12);
}

.login-actions-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-actions-simple .btn {
  width: 100%;
  min-height: clamp(54px, 6.2vh, 70px);
  padding: 0 16px;
  text-align: center;
}

.login-copyright {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 3.2vh, 38px);
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(226,232,240,0.46);
  font-size: clamp(0.66rem, 1vw, 0.82rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@keyframes loginBezelPulse {
  0% { transform: rotate(0deg) scale(1); opacity: 0.52; }
  50% { transform: rotate(180deg) scale(1.025); opacity: 0.82; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.52; }
}

@media (orientation: landscape) {
  .login-bezel-screen {
    width: min(44vw, 720px);
    height: min(94dvh, 1060px);
  }

  .login-panel-simple {
    width: min(78%, 430px);
  }
}

@media (orientation: portrait) {
  .login-bezel-screen {
    width: min(94vw, 980px);
    height: min(96dvh, 1700px);
  }

  .login-panel-simple {
    width: min(78vw, 560px);
  }
}

@media (max-width: 560px), (max-height: 660px) {
  .login-wrap-simple { padding: 10px; }
  .login-bezel-screen {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    min-height: 0;
    padding: 22px;
  }
  .login-panel-simple {
    width: min(90vw, 420px);
    padding: 20px;
  }
  .login-heading-simple h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .login-actions-simple { grid-template-columns: 1fr; }
  .login-copyright { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-bezel-screen::before { animation: none !important; }
}


/* REV0.1U: barely-visible microphone control layer + JAMi QR landing screen */
.mic-hover-control {
  position: absolute;
  z-index: 20;
  top: 14px;
  left: 14px;
  width: 22px;
  min-height: 22px;
  opacity: 0.16;
  transition: opacity 180ms ease, width 220ms ease, transform 180ms ease;
  pointer-events: auto;
}

.mic-hover-control:hover,
.mic-hover-control:focus-within,
.mic-hover-control.is-open {
  opacity: 0.92;
  width: 210px;
  transform: translateY(1px);
}

.mic-hover-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: radial-gradient(circle at 42% 38%, rgba(255,255,255,0.55), rgba(34,211,238,0.16) 44%, rgba(2,4,12,0.50));
  box-shadow: 0 0 12px rgba(34,211,238,0.16);
  padding: 0;
  cursor: pointer;
}

.mic-hover-panel {
  position: absolute;
  top: 24px;
  left: 0;
  width: 210px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2,4,12,0.76);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 18px 42px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-5px) scale(0.98);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}

.mic-hover-control:hover .mic-hover-panel,
.mic-hover-control:focus-within .mic-hover-panel,
.mic-hover-control.is-open .mic-hover-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mic-hover-title {
  color: rgba(248,250,252,0.82);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mic-hover-panel input[type="range"] {
  width: 100%;
  accent-color: #22d3ee;
}

.mic-hover-value {
  margin-top: 6px;
  color: rgba(248,250,252,0.58);
  font-size: 11px;
  text-align: right;
}

.jami-qr-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(34,211,238,0.12), transparent 34%),
    radial-gradient(circle at 50% 72%, rgba(236,0,140,0.07), transparent 42%),
    linear-gradient(180deg, #030511 0%, #08091a 52%, #02030a 100%);
}

.jami-qr-screen::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 2.4vw, 34px);
  border-radius: clamp(30px, 5vw, 72px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 120px rgba(34,211,238,0.04), 0 0 70px rgba(34,211,238,0.055);
  pointer-events: none;
}

.jami-qr-card {
  position: relative;
  z-index: 2;
  width: min(58vmin, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vmin, 34px);
  border-radius: clamp(24px, 4vmin, 42px);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 26px 76px rgba(0,0,0,0.42), 0 0 52px rgba(34,211,238,0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.jami-qr-card:hover,
.jami-qr-card:focus-visible {
  transform: scale(1.015);
  box-shadow: 0 30px 86px rgba(0,0,0,0.48), 0 0 68px rgba(34,211,238,0.18);
}

.jami-qr-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

@media (orientation: landscape) {
  .jami-qr-card { width: min(48vmin, 360px); }
}


/* REV0.1V: QR unlock gate + stronger mic/camera calibration controls */
.screen:has(.jami-qr-screen) {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}

.attract-screen-v11[data-qr-unlocked="true"] .logo-vignette,
.attract-screen-v11[data-qr-unlocked="true"] .mirror-vignette {
  border-color: rgba(250,204,21,0.22);
  box-shadow:
    inset 0 0 0 1px rgba(250,204,21,0.13),
    inset 0 0 130px rgba(34,211,238,0.07),
    inset 0 0 260px rgba(250,204,21,0.065),
    0 0 60px rgba(250,204,21,0.12);
}

.attract-screen-v11.qr-locked-pulse .logo-vignette,
.attract-screen-v11.qr-locked-pulse .mirror-vignette {
  animation: qrLockedPulse 620ms ease-out;
}

@keyframes qrLockedPulse {
  0% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 120px rgba(34,211,238,0.04); }
  44% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20), inset 0 0 160px rgba(236,0,140,0.12), 0 0 32px rgba(236,0,140,0.12); }
  100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 120px rgba(34,211,238,0.04); }
}

.mic-hover-control:hover,
.mic-hover-control:focus-within,
.mic-hover-control.is-open {
  width: 260px;
}

.mic-hover-panel {
  width: 260px;
  padding: 13px;
}

.control-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 5px;
  color: rgba(248,250,252,0.78);
  font-size: 10px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.control-slider strong {
  color: rgba(248,250,252,0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.mic-hover-panel input[type="range"] {
  width: 100%;
  height: 18px;
  accent-color: #22d3ee;
}

.jami-qr-screen {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 0;
}

.jami-qr-card {
  margin: auto;
  width: min(62vmin, 460px);
  max-width: 82vw;
  max-height: 82vh;
}

@media (orientation: portrait) {
  .jami-qr-card { width: min(66vw, 520px); }
}

@media (orientation: landscape) {
  .jami-qr-card { width: min(52vmin, 400px); }
}


/* REV0.1W: brightness and contrast calibration controls */
.attract-screen-v11 .mirror-field-canvas {
  filter: brightness(var(--attract-brightness, 1)) contrast(var(--attract-contrast, 1));
}

.mic-hover-control:hover,
.mic-hover-control:focus-within,
.mic-hover-control.is-open {
  width: 290px;
}

.mic-hover-panel {
  width: 290px;
  max-height: min(72vh, 470px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.mic-hover-panel input[type="range"] {
  cursor: pointer;
}


/* REV0.1X: client logo upload control */
.mic-hover-control:hover,
.mic-hover-control:focus-within,
.mic-hover-control.is-open {
  width: 340px;
}

.mic-hover-panel {
  width: 340px;
  max-height: min(80vh, 610px);
}

.logo-upload-block {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: grid;
  gap: 7px;
}

.logo-upload-heading {
  color: rgba(248,250,252,0.86);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-upload-spec {
  color: rgba(248,250,252,0.52);
  font-size: 10px;
  line-height: 1.35;
}

.logo-file-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.logo-upload-button,
.logo-reset-button {
  width: 100%;
  min-height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.13);
  display: grid;
  place-items: center;
  background: rgba(34,211,238,0.10);
  color: rgba(248,250,252,0.84);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.logo-upload-button:hover,
.logo-reset-button:hover {
  background: rgba(34,211,238,0.18);
  border-color: rgba(34,211,238,0.30);
}

.logo-reset-button {
  background: rgba(248,113,113,0.08);
}

.logo-reset-button:hover {
  background: rgba(248,113,113,0.16);
  border-color: rgba(248,113,113,0.28);
}

.logo-upload-status {
  color: rgba(248,250,252,0.58);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}


/* REV0.2B analytics label controls */
.analytics-label-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: grid;
  gap: 6px;
}
.control-text {
  color: rgba(226,232,240,0.76);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.control-text-input {
  width: 100%;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2,6,23,0.72);
  color: rgba(248,250,252,0.92);
  padding: 0 9px;
  font-size: 0.76rem;
  outline: none;
}
.control-text-input:focus {
  border-color: rgba(34,211,238,0.38);
  box-shadow: 0 0 0 2px rgba(34,211,238,0.12);
}


/* REV0.2D analytics admin dashboard polish */
.analytics-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.analytics-date-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  min-width: min(100%, 320px);
}
.analytics-stats .stat-card strong {
  font-size: clamp(1.7rem, 4vw, 3.4rem);
}
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  margin-top: 18px;
}
.funnel-list {
  display: grid;
  gap: 10px;
}
.funnel-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}
.funnel-list span {
  color: var(--muted);
}
.funnel-list strong {
  font-size: 1.15rem;
}
.report-copy {
  white-space: pre-wrap;
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  color: #e5e7eb;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .analytics-toolbar { align-items: stretch; flex-direction: column; }
  .analytics-grid { grid-template-columns: 1fr; }
}
