:root {
  color-scheme: dark;
  --bg: #040405;
  --panel: #111116;
  --panel-strong: #18171d;
  --ink: #f6f1e8;
  --muted: #b8b1ad;
  --line: rgba(246, 241, 232, 0.16);
  --line-strong: rgba(246, 201, 92, 0.42);
  --accent: #d6ad2f;
  --accent-2: #f5dc76;
  --hot: #b51223;
  --cyan: #36e7ff;
  --danger: #d84942;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(181, 18, 35, 0.13), transparent 32%),
    linear-gradient(180deg, #0b0b0d 0%, #040405 42%, #010102 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 76%);
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.46;
}

.desktop-guard {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.desktop-guard[hidden],
.app-shell[hidden],
.screen:not(.is-active),
.video-fallback[hidden],
.privacy-cover[hidden] {
  display: none !important;
}

.qr-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(11, 10, 14, 0.92);
  text-align: center;
}

.qr-card img {
  width: 220px;
  height: 220px;
  justify-self: center;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

.app-shell {
  width: min(520px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 220px),
    var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.screen {
  min-height: 100svh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.entry-window-screen {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.entry-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.entry-window-content {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  padding:var(--spacing-xs);
  text-align: center;
}

.entry-window-logo {
  width: min(78vw, 300px);
  height: auto;
  align-self: end;
}

.entry-window-info {
  display: grid;
  gap: clamp(4px, 0.9svh, 8px);
  color: rgba(246, 241, 232, 0.78);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(11px, 3.1vw, 15px);
  line-height: 1.45;
}

.entry-window-info p,
.entry-window-legal {
  margin: 0;
}

.entry-window-venue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.entry-window-venue img {
  width: 14px;
  height: 14px;
  opacity: 0.82;
}

.entry-window-access {
  margin-top: clamp(8px, 1.8svh, 18px) !important;
}

.entry-window-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}

.entry-window-button.secondary {
  background: rgba(255, 255, 255, 0.09);
}

.entry-window-legal {
  width: 100%;
  color: rgba(246, 241, 232, 0.46);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(8.5px, 2.35vw, 10px);
  line-height: 1.45;
  text-align: left;
}

.entry-window-plays {
  margin-top: clamp(14px, 2.6svh, 24px) !important;
  color: rgba(246, 241, 232, 0.86);
}

.entry-window-return-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  color: rgba(246, 241, 232, 0.78);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.static-entry-page {
  position: relative;
  width: min(520px, 100%);
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.static-entry-content {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(10px, 2.4svh, 24px);
  padding:
    calc(env(safe-area-inset-top) + clamp(18px, 4svh, 44px))
    clamp(24px, 8vw, 44px)
    calc(env(safe-area-inset-bottom) + clamp(10px, 2svh, 22px));
  text-align: center;
}

.static-entry-content.is-centered {
  gap: clamp(20px, 5svh, 44px);
}

.static-entry-logo {
  width: min(78vw, 300px);
  height: auto;
}

.static-entry-message,
.static-entry-date,
.static-entry-count-label {
  margin: 0;
  color: rgba(246, 241, 232, 0.76);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(11px, 3.1vw, 15px);
  line-height: 1.45;
}

.static-entry-date span::before {
  content: "● ";
  font-size: 0.7em;
}

.static-entry-count-label {
  margin-bottom: -10px;
  color: rgba(246, 241, 232, 0.54);
}

.static-entry-countdown {
  color: rgba(246, 241, 232, 0.88);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 400;
  letter-spacing: 0;
}

.static-abnormal-page {
  width: min(786px, 100%);
}

.static-abnormal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.static-abnormal-content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding:
    calc(env(safe-area-inset-top) + clamp(96px, 17svh, 160px))
    clamp(34px, 13vw, 96px)
    calc(env(safe-area-inset-bottom) + clamp(28px, 5svh, 56px));
}

.static-abnormal-logo {
  width: min(83vw, 520px);
  margin-top: clamp(42px, 7svh, 86px);
}

.static-abnormal-divider {
  width: min(52vw, 396px);
  height: auto;
  opacity: 0.9;
}

.static-abnormal-message {
  margin: clamp(42px, 7svh, 76px) 0 0;
  color: rgba(232, 229, 222, 0.74);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(15px, 3.7vw, 27px);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.static-abnormal-message-en {
  margin-top: clamp(50px, 8svh, 88px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 4.2vw, 28px);
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.static-abnormal-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: clamp(36px, 6svh, 62px) 0 clamp(36px, 6svh, 64px);
  color: rgba(232, 229, 222, 0.78);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(17px, 4.35vw, 30px);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.static-abnormal-schedule span {
  min-width: min(37vw, 190px);
  padding: 0 clamp(16px, 5vw, 38px);
}

.static-abnormal-schedule span + span {
  border-left: 1px solid rgba(151, 119, 77, 0.55);
}

.static-abnormal-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vw, 34px);
  margin-top: clamp(118px, 18svh, 208px);
}

.static-abnormal-social a {
  display: inline-flex;
  width: clamp(27px, 7.2vw, 48px);
  height: clamp(27px, 7.2vw, 48px);
  align-items: center;
  justify-content: center;
  opacity: 0.74;
}

.static-abnormal-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.static-abnormal-site {
  margin-top: clamp(20px, 3.6svh, 34px);
  color: rgba(232, 229, 222, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 3.2vw, 22px);
  letter-spacing: 0.22em;
  text-decoration: none;
}

.static-abnormal-ended .static-abnormal-content {
  padding-top: calc(env(safe-area-inset-top) + clamp(108px, 19svh, 178px));
}

.playlater-card {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 360px);
  max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);
  margin: calc(env(safe-area-inset-top) + 16px) auto 0;
  display: grid;
  align-content: center;
  gap: clamp(12px, 2.4svh, 20px);
  padding: clamp(28px, 5svh, 34px) 26px clamp(22px, 4svh, 30px);
  border: 1px solid rgba(232, 197, 90, 0.18);
  border-radius: 8px;
  background: rgba(14, 15, 18, 0.94);
  color: rgba(246, 241, 232, 0.78);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  text-align: center;
  overflow: hidden;
}

.playlater-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  color: rgba(246, 241, 232, 0.58);
  font-size: 28px;
  line-height: 1;
}

.playlater-card p,
.playlater-copy {
  margin: 0;
  color: rgba(246, 241, 232, 0.7);
  line-height: 1.7;
}

.playlater-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.playlater-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #ff2636;
  color: #0b0b0d;
  font: 900 34px/1 Georgia, serif;
}

.playlater-note {
  text-align: left;
}

.flow-permission-screen {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    calc(env(safe-area-inset-top) + 18px)
    24px
    calc(env(safe-area-inset-bottom) + 18px);
  overflow: hidden;
  background: #000;
}

.flow-permission-card {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
  display: grid;
  gap: clamp(20px, 4svh, 34px);
  justify-items: center;
  padding: clamp(42px, 8svh, 72px) clamp(26px, 7vw, 38px);
  border: 1px solid rgba(232, 197, 90, 0.18);
  border-radius: 8px;
  background: rgba(14, 15, 18, 0.94);
  overflow: hidden;
  text-align: center;
}

.flow-permission-card .screen-label {
  color: #f0d86d;
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(12px, 3vw, 14px);
  letter-spacing: 0.22em;
}

.flow-permission-card h2 {
  color: rgba(246, 241, 232, 0.96);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(22px, 5.8vw, 31px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.flow-permission-card p {
  color: rgba(246, 241, 232, 0.62);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 1.6;
}

.flow-permission-card .permission-checklist {
  width: 100%;
  gap: 8px;
}

.flow-permission-card .permission-checklist span {
  min-height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  font-size: clamp(11px, 3vw, 13px);
}

.flow-permission-card .two-actions {
  width: 100%;
  grid-template-columns: 1fr 1fr;
}

.permission-cancel-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 197, 90, 0.52);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.queue-card {
  gap: clamp(14px, 3svh, 24px);
}

.queue-position {
  color: #f6f1e8;
  font-size: clamp(30px, 9vw, 52px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.queue-eta {
  color: rgba(246, 241, 232, 0.58);
  font-size: clamp(12px, 3vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@supports (height: 100dvh) {
  .entry-window-screen,
  .static-entry-page {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .entry-window-content,
  .static-entry-content {
    height: 100dvh;
  }

  .playlater-card {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);
  }

  .flow-permission-screen {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .flow-permission-card {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
  }
}

@media (max-height: 700px) {
  .entry-window-logo,
  .static-entry-logo {
    width: min(70vw, 250px);
  }

  .entry-window-info,
  .static-entry-message,
  .static-entry-date,
  .static-entry-count-label {
    font-size: 11px;
    line-height: 1.36;
  }

  .entry-window-actions {
    gap: 8px;
  }

  .entry-window-button {
    min-height: 34px;
    font-size: 12px;
  }

  .entry-window-legal {
    font-size: 8px;
    line-height: 1.35;
  }

  .flow-permission-card {
    gap: 12px;
    padding: 32px 20px;
  }

  .flow-permission-card h2 {
    font-size: 21px;
  }
}

.dashboard-screen {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-inline: 16px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow,
.screen-label,
h1,
h2,
.countdown {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
}

.eyebrow,
h1,
h2,
p {
  margin: 0;
}

.eyebrow {
  color: #e7e1dc;
  font-size: clamp(34px, 11vw, 58px);
  line-height: 0.88;
  text-shadow: 0 3px 0 #585858;
}

h1 {
  font-size: 34px;
  line-height: 0.94;
}

h2 {
  font-size: 34px;
  line-height: 0.95;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.env-pill,
.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: #fff3c6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.home-hero,
.hero-panel,
.status-panel,
.notice-panel,
.artist-panel,
.panel,
.summary-grid article,
.home-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.home-hero {
  position: relative;
  min-height: min(74vh, 680px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  margin: calc(-1 * max(18px, env(safe-area-inset-top))) -16px 0;
  padding: max(18px, env(safe-area-inset-top)) 16px 18px;
  background:
    linear-gradient(180deg, rgba(4, 4, 5, 0.18), rgba(4, 4, 5, 0.08) 32%, rgba(4, 4, 5, 0.84) 74%, #040405 100%),
    linear-gradient(125deg, rgba(181, 18, 35, 0.42), transparent 38%),
    url("./assets/backgrounds/garden-night-wide.jpg") center / cover no-repeat;
  border: 0;
  border-radius: 0;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 34%, transparent 66%, rgba(0, 0, 0, 0.56)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-copy {
  align-self: end;
  display: grid;
  gap: 10px;
  max-width: 460px;
  padding-top: 96px;
}

.home-copy h2 {
  max-width: 8ch;
  color: #f7f2ea;
  font-size: clamp(62px, 17vw, 92px);
  line-height: 0.84;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.5),
    0 0 26px rgba(212, 175, 55, 0.22);
}

.home-copy p:not(.screen-label) {
  max-width: 32rem;
  color: rgba(245, 241, 237, 0.82);
  font-size: 17px;
}

.hero-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-cues span,
.permission-checklist span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(246, 201, 92, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: rgba(246, 241, 232, 0.88);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  text-transform: uppercase;
}

.hero-cues span::before,
.permission-checklist span::before {
  content: "";
  width: 7px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(245, 220, 118, 0.68);
}

.home-status {
  border-color: var(--line-strong);
  background: rgba(5, 5, 6, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel,
.status-panel,
.notice-panel,
.artist-panel,
.panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.panel {
  box-shadow: var(--shadow);
}

.screen-label {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.ghost-action,
.hud-button {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.ghost-action,
.hud-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.primary-action:focus-visible,
.ghost-action:focus-visible,
.hud-button:focus-visible,
.capture-action:focus-visible,
.align-back:focus-visible,
.align-status:focus-visible,
.link-action:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.start-action {
  min-height: 64px;
  border-radius: 999px;
  font-size: 18px;
}

.home-hero .start-action {
  min-height: 66px;
  font-size: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  min-height: 92px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.summary-grid span,
.artist-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid strong {
  font-size: clamp(22px, 7vw, 30px);
  line-height: 1;
}

.home-steps {
  display: grid;
  gap: 10px;
}

.home-steps article {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 14px;
}

.home-steps article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid rgba(246, 201, 92, 0.76);
  opacity: 0.7;
  pointer-events: none;
}

.home-steps span {
  grid-row: span 2;
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  color: #fff3c6;
  font-size: 12px;
  font-weight: 900;
}

.home-steps strong {
  font-size: 15px;
  text-transform: uppercase;
}

.home-steps p {
  font-size: 14px;
}

.artist-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.artist-list article {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.artist-list article span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--artist-color);
}

.artist-list strong,
.artist-list small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-list strong {
  font-size: 10px;
}

.artist-list small {
  color: var(--muted);
  font-size: 11px;
}

.notice-panel {
  border-color: rgba(216, 73, 66, 0.36);
  background:
    linear-gradient(90deg, rgba(181, 18, 35, 0.22), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.notice-panel strong {
  color: #ffb8b4;
  text-transform: uppercase;
}

.two-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.permission-checklist {
  display: grid;
  gap: 8px;
}

.permission-checklist span {
  justify-content: flex-start;
  border-radius: 8px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.dev-skip-action {
  width: 100%;
  color: #fff3c6;
}

.ar-screen {
  padding: 0;
}

.ar-stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #050506;
}

.ar-camera {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050506;
}

.stage-bg,
.giant-video,
.giant-model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-bg {
  z-index: 0;
  object-fit: cover;
  background: #050506;
  opacity: 0.58;
}

.giant-video,
.giant-model {
  z-index: 1;
  pointer-events: none;
}

.giant-video {
  object-fit: contain;
}

.giant-model {
  width: min(88vw, 440px);
  height: min(78vh, 700px);
  inset: auto 50% max(72px, calc(env(safe-area-inset-bottom) + 44px)) auto;
  background: transparent;
  transform: translateX(50%);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
  opacity: 1;
  transition:
    opacity 260ms ease,
    filter 260ms ease;
}

.giant-model.is-out-of-line,
.giant-video.is-out-of-line {
  opacity: 1;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
}

.video-fallback {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 30%;
  z-index: 2;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 24px 18px;
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-radius: 16px;
  background: rgba(5, 5, 6, 0.62);
  text-align: center;
}

.ar-screen .video-fallback {
  display: none !important;
}

.video-fallback span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.video-fallback strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 38px;
}

.video-fallback small {
  color: var(--muted);
}

.capture-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: space-between;
  gap: 10px;
  padding: max(74px, env(safe-area-inset-top)) 18px max(160px, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-transform: uppercase;
}

.capture-shield span:nth-child(2n) {
  text-align: right;
}

#watermark-id {
  grid-column: 1 / -1;
  text-align: center;
}

.ar-hud,
.ar-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 4;
}

.ar-hud {
  top: max(18px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.capture-action {
  position: absolute;
  left: 50%;
  bottom: max(136px, calc(env(safe-area-inset-bottom) + 112px));
  z-index: 5;
  min-width: 190px;
  min-height: 52px;
  border: 1px solid rgba(212, 175, 55, 0.86);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #050506;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.ar-caption {
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.78);
  border-radius: 14px;
  background: rgba(5, 5, 7, 0.82);
  text-align: center;
  text-transform: uppercase;
}

.ar-caption span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.ar-caption strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 28px;
}

.cooldown-screen,
.blocked-screen,
.capture-review-screen,
.location-screen,
.motion-screen,
.cm-tap-screen,
.permission-screen,
.ending-screen {
  display: grid;
  align-content: center;
}

.permission-shutter-bg {
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(0.9) contrast(1.12) brightness(0.58);
}

.permission-screen .flow-permission-card {
  gap: clamp(18px, 3svh, 26px);
}

.permission-screen #permission-copy,
.motion-screen #motion-copy,
.cm-tap-screen #motion-copy {
  white-space: pre-line;
  width: 100%;
  padding-inline: var(--spacing-2xs);
  text-align: left;
}

#location-copy {
  white-space: pre-line;
}

.motion-screen {
  place-items: center;
  padding: 24px;
  background: #000;
}

.cm-tap-screen {
  place-items: center;
  padding: 24px;
  background: #000;
}

.cm-tap-screen .screen-bg {
  object-position: center center;
}

.cm-tap-brand {
  position: absolute;
  top: max(28px, calc(env(safe-area-inset-top) + 18px));
  left: 50%;
  z-index: 2;
  width: min(62vw, 220px);
  transform: translateX(-50%);
  pointer-events: none;
}

.cm-tap-brand .logo-grey {
  width: 100%;
  height: auto;
}

.cm-tap-corners {
  position: absolute;
  inset: max(76px, calc(env(safe-area-inset-top) + 62px)) 16px max(20px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 2;
  pointer-events: none;
  opacity: 0.78;
  background:
    linear-gradient(#b09862, #b09862) left top / 24px 1px no-repeat,
    linear-gradient(#b09862, #b09862) left top / 1px 24px no-repeat,
    linear-gradient(#b09862, #b09862) right top / 24px 1px no-repeat,
    linear-gradient(#b09862, #b09862) right top / 1px 24px no-repeat,
    linear-gradient(#b09862, #b09862) left bottom / 24px 1px no-repeat,
    linear-gradient(#b09862, #b09862) left bottom / 1px 24px no-repeat,
    linear-gradient(#b09862, #b09862) right bottom / 24px 1px no-repeat,
    linear-gradient(#b09862, #b09862) right bottom / 1px 24px no-repeat;
}

.cm-tap-screen .modal {
  z-index: 3;
  transform: translateY(1.5rem);
}

.motion-screen .entry-art,
.motion-screen #motion-cancel {
  display: none;
}

.motion-screen .flow-permission-card {
  width: min(86vw, 520px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
  z-index: 1;
}

.motion-screen #continue-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  border: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  opacity: 0;
  z-index: 2;
}

.permission-ar-frame {
  width: min(64vw, 260px);
  aspect-ratio: 1;
  position: relative;
  margin: 0 auto clamp(2px, 1svh, 8px);
}

.permission-ar-frame::before,
.permission-ar-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#b89c63, #b89c63) left top / 42px 2px no-repeat,
    linear-gradient(#b89c63, #b89c63) left top / 2px 42px no-repeat,
    linear-gradient(#b89c63, #b89c63) right top / 42px 2px no-repeat,
    linear-gradient(#b89c63, #b89c63) right top / 2px 42px no-repeat,
    linear-gradient(#b89c63, #b89c63) left bottom / 42px 2px no-repeat,
    linear-gradient(#b89c63, #b89c63) left bottom / 2px 42px no-repeat,
    linear-gradient(#b89c63, #b89c63) right bottom / 42px 2px no-repeat,
    linear-gradient(#b89c63, #b89c63) right bottom / 2px 42px no-repeat;
  opacity: 0.9;
}

.permission-ar-frame::after {
  inset: 18%;
  border: 1px solid rgba(184, 156, 99, 0.28);
  background: none;
}

.ending-panel {
  gap: 14px;
}

.ending-badge {
  width: 100%;
  max-height: 48vh;
  object-fit: contain;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 14px;
  background: #050506;
}

.link-action {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}



.align-camera {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: transparent;
}

.indoor-poster-tracker {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.indoor-poster-tracker.is-visible {
  opacity: 1;
  visibility: visible;
}

.indoor-poster-video {
  position: absolute;
  left: var(--poster-performer-left, 50%);
  top: var(--poster-performer-top, 50%);
  width: var(--poster-performer-width, min(38vw, 180px));
  height: var(--poster-performer-height, min(32vh, 300px));
  object-fit: contain;
  object-position: center bottom;
  clip-path: inset(0 18% 0 18%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.align-back,
.align-brand,
.align-visual,
.align-message,
.align-stats {
  position: relative;
  z-index: 1;
}

.stage-target {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 74px;
  aspect-ratio: 1;
  border: 3px solid rgba(246, 205, 101, 0.96);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(246, 205, 101, 0.62);
  transform: translateX(-50%);
}

.stage-target::before,
.stage-target::after {
  content: "";
  position: absolute;
  background: rgba(246, 205, 101, 0.96);
  box-shadow: 0 0 18px rgba(246, 205, 101, 0.6);
}

.stage-target::before {
  left: 50%;
  top: -15px;
  bottom: -15px;
  width: 3px;
  transform: translateX(-50%);
}

.stage-target::after {
  top: 50%;
  left: -15px;
  right: -15px;
  height: 3px;
  transform: translateY(-50%);
}

.stage-target span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #f7d36f;
  box-shadow: 0 0 22px rgba(247, 211, 111, 0.8);
  transform: translate(-50%, -50%);
}

.stage-path {
  position: absolute;
  left: 50%;
  top: calc(20% + 74px);
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(246, 205, 101, 0.95), rgba(246, 205, 101, 0.2));
  box-shadow: 0 0 18px rgba(246, 205, 101, 0.72);
  transform: translateX(-50%);
}

.stage-path::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 16px;
  height: 74px;
  border-top: 2px solid rgba(246, 205, 101, 0.6);
  border-bottom: 2px solid rgba(246, 205, 101, 0.28);
  transform: translateX(-50%);
}

.target-line,
.heading-needle,
.tolerance {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 4px;
  height: 120%;
  border-radius: 999px;
  transform-origin: 50% 100%;
}

.target-line {
  width: 3px;
  height: 210%;
  background: linear-gradient(0deg, rgba(246, 205, 101, 0), rgba(246, 205, 101, 0.98));
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(246, 205, 101, 0.72);
}

.tolerance {
  display: none;
}

.align-status {
  min-height: 50px;
  min-width: 210px;
  padding: 8px 22px;
  border: 1px solid rgba(212, 175, 55, 0.78);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #f4d36b;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 21px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.align-status:disabled {
  filter: none;
  opacity: 1;
}

.turn-command {
  min-width: min(74vw, 360px);
  padding: 12px 22px;
  border: 1px solid rgba(212, 175, 55, 0.72);
  border-radius: 999px;
  background: rgba(3, 3, 3, 0.58);
  color: rgba(235, 232, 226, 0.9);
  font-size: clamp(24px, 7vw, 38px);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

#heading-copy[data-align="ok"] {
  border-color: rgba(52, 255, 86, 0.78);
  color: #34ff56;
  box-shadow: 0 0 24px rgba(52, 255, 86, 0.24);
}

#heading-copy[data-align="orange"] {
  border-color: rgba(255, 104, 43, 0.78);
  color: #ff682b;
  box-shadow: 0 0 24px rgba(255, 104, 43, 0.2);
}

#heading-copy[data-align="red"] {
  border-color: rgba(255, 31, 31, 0.78);
  color: #ff1f1f;
  box-shadow: 0 0 24px rgba(255, 31, 31, 0.2);
}

.align-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.78);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.44);
}

.align-stats span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 15px 8px;
  text-transform: uppercase;
}

.align-stats span + span {
  border-left: 1px solid rgba(212, 175, 55, 0.24);
}

.align-stats strong {
  color: var(--ink);
  font-size: clamp(24px, 7vw, 40px);
  line-height: 1;
}

.align-stats small {
  color: #d4af37;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.countdown {
  color: var(--accent);
  font-size: clamp(68px, 22vw, 112px);
  line-height: 0.9;
  text-align: center;
}

.privacy-cover {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: center;
  gap: 10px;
  background: #050506;
  text-align: center;
}

.privacy-cover strong {
  color: var(--accent);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 40px;
  text-transform: uppercase;
}

.privacy-cover span {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 12px;
  background: rgba(7, 7, 10, 0.94);
  color: #fff7dc;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 18px));
  background: rgba(0, 0, 0, 0.72);
}

.cookie-overlay[hidden] {
  display: none !important;
}

.cookie-panel {
  width: min(100%, 540px);
  display: grid;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border: 1px solid var(--color-surface-border-dark);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-muted);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.52);
}

.cookie-panel-body {
  display: grid;
  gap: 8px;
}

.cookie-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-privacy-link {
  color: rgba(216, 186, 111, 0.88);
  font-family: "Noto Serif JP", "Yu Mincho", Georgia, serif;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-ok-action {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid rgba(232, 197, 90, 0.52);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(173, 147, 88, 0.96), rgba(126, 104, 66, 0.96));
  color: rgba(250, 246, 232, 0.96);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
}

.out-of-service-screen {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom));
  background: #000;
}

.out-of-service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.out-of-service-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.out-of-service-content {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  min-height: calc(100svh - 70px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(22px, 4svh, 34px);
  color: rgba(242, 238, 228, 0.82);
  text-align: center;
}

.out-of-service-content .entry-logo {
  width: min(78vw, 360px);
  height: auto;
  opacity: 0.86;
}

.out-of-service-content .entry-divider {
  width: min(48vw, 210px);
  height: auto;
  opacity: 0.78;
}

.out-of-service-copy {
  margin: 0;
  color: rgba(242, 238, 228, 0.74);
  font-family: "Noto Serif JP", "Yu Mincho", Georgia, serif;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.8;
}

.schedule-row {
  width: min(100%, 440px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}

.schedule-col {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.schedule-date,
.schedule-time {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", Georgia, serif;
}

.schedule-date {
  color: rgba(242, 238, 228, 0.88);
  font-size: clamp(16px, 4vw, 19px);
}

.schedule-time {
  color: rgba(216, 186, 111, 0.86);
  font-size: clamp(13px, 3.4vw, 16px);
}

.schedule-divider {
  width: 1px;
  background: rgba(216, 186, 111, 0.34);
}

.secondary-action-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(216, 186, 111, 0.48);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(242, 238, 228, 0.86);
  font-family: "Noto Serif JP", "Yu Mincho", Georgia, serif;
  font-size: 15px;
  text-decoration: none;
}

.event-ended-content {
  min-height: calc(100svh - 64px);
  align-content: space-between;
  padding-block: 52px 34px;
}

.event-ended-top,
.event-ended-bottom {
  display: grid;
  justify-items: center;
  gap: 22px;
}

@media (max-width: 390px) {
  .app-header .eyebrow {
    font-size: clamp(28px, 8vw, 36px);
  }

  .app-header h1 {
    font-size: 28px;
  }

  .home-copy h2 {
    max-width: 7ch;
    font-size: clamp(52px, 15vw, 68px);
  }

  .hero-cues span {
    min-height: 31px;
    font-size: 11px;
    padding-inline: 10px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .artist-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body.minimal-ui {
  --bg: #0b0b0c;
  --panel: #141416;
  --ink: #faf7ef;
  --muted: #aaa6a0;
  --line: rgba(250, 247, 239, 0.14);
  --line-strong: rgba(214, 173, 47, 0.38);
  --accent: #d6ad2f;
  --accent-2: #f2d874;
  background: #0b0b0c;
}

body.minimal-ui::before {
  display: none;
}

.minimal-ui .app-shell {
  background: var(--bg);
  box-shadow: none;
}

.minimal-ui .screen {
  padding: max(20px, env(safe-area-inset-top)) 18px max(26px, env(safe-area-inset-bottom));
}

.minimal-ui .dashboard-screen {
  gap: 14px;
  padding-inline: 18px;
}

.minimal-ui .home-hero {
  min-height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 22px;
  grid-template-rows: auto auto auto auto;
  overflow: visible;
}

.minimal-ui .home-hero::after {
  display: none;
}

.minimal-ui .app-header {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.minimal-ui .eyebrow {
  color: var(--ink);
  font-size: 14px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-shadow: none;
}

.minimal-ui h1 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.05;
}

.minimal-ui .env-pill,
.minimal-ui .status-pill {
  min-height: 32px;
  border-color: var(--line);
  background: #1b1b1d;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

.minimal-ui .home-copy {
  align-self: auto;
  max-width: none;
  padding-top: 0;
  gap: 12px;
}

.minimal-ui .screen-label {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.minimal-ui h2,
.minimal-ui .countdown {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.minimal-ui .home-copy h2 {
  max-width: 7.5ch;
  color: var(--ink);
  font-size: clamp(42px, 12vw, 56px);
  font-weight: 950;
  line-height: 0.96;
  text-shadow: none;
  overflow-wrap: normal;
}

.minimal-ui .home-copy p:not(.screen-label) {
  max-width: 28rem;
  color: var(--muted);
  font-size: 16px;
}

.minimal-ui .hero-cues {
  gap: 6px;
}

.minimal-ui .hero-cues span,
.minimal-ui .permission-checklist span {
  border-color: var(--line);
  background: #141416;
  color: var(--ink);
}

.minimal-ui .hero-cues span::before,
.minimal-ui .permission-checklist span::before {
  background: var(--accent);
  box-shadow: none;
}

.minimal-ui .home-status,
.minimal-ui .status-panel,
.minimal-ui .notice-panel,
.minimal-ui .artist-panel,
.minimal-ui .panel,
.minimal-ui .summary-grid article,
.minimal-ui .home-steps article {
  border-color: var(--line);
  background: #111113;
  box-shadow: none;
  backdrop-filter: none;
}

.minimal-ui .home-status {
  border-color: var(--line-strong);
  padding: 18px;
}

.minimal-ui .status-panel h2,
.minimal-ui .panel h2 {
  color: var(--ink);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.minimal-ui .ghost-action,
.minimal-ui .hud-button {
  min-height: 54px;
  border-radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding-inline: 14px;
  text-align: center;
  white-space: normal;
}

.minimal-ui .ghost-action,
.minimal-ui .hud-button {
  border-color: var(--line);
  background: #171719;
}

.minimal-ui .start-action,
.minimal-ui .home-hero .start-action {
  min-height: 60px;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
}

.minimal-ui .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.minimal-ui .summary-grid article {
  min-height: 78px;
  padding: 12px 10px;
}

.minimal-ui .summary-grid span,
.minimal-ui .artist-panel > span {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.minimal-ui .summary-grid strong {
  font-size: clamp(16px, 5vw, 22px);
}

.minimal-ui .home-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.minimal-ui .home-steps article {
  min-height: 72px;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 14px;
}

.minimal-ui .home-steps article::after {
  display: none;
}

.minimal-ui .home-steps span {
  width: 34px;
  border-color: var(--line-strong);
  color: var(--accent-2);
}

.minimal-ui .home-steps strong {
  color: var(--ink);
  font-size: 15px;
}

.minimal-ui .artist-panel,
.minimal-ui .notice-panel,
.minimal-ui #reset-dev {
  margin-top: 2px;
}

.minimal-ui .artist-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.minimal-ui .artist-list article {
  border-color: var(--line);
  border-radius: 8px;
  background: #171719;
}

.minimal-ui .notice-panel {
  background: #111113;
}

.minimal-ui .notice-panel strong {
  color: var(--ink);
}

.minimal-ui .permission-screen,
.minimal-ui .cooldown-screen,
.minimal-ui .blocked-screen,
.minimal-ui .capture-review-screen,
.minimal-ui .location-screen,
.minimal-ui .ending-screen {
  align-content: center;
}

.minimal-ui .panel {
  gap: 16px;
  padding: 18px;
}

.minimal-ui .two-actions {
  gap: 8px;
}

.minimal-ui .ending-badge {
  border-color: var(--line);
  border-radius: 8px;
}

.minimal-ui .ar-caption {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(12, 12, 13, 0.88);
}

.minimal-ui .ar-caption strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0;
}

.minimal-ui .capture-action {
  min-width: 184px;
  min-height: 54px;
  border-radius: 8px;
  background: var(--accent-2);
  color: #111113;
}

.minimal-ui .turn-command,
.minimal-ui .align-stats {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.78);
}

.minimal-ui .turn-command {
  font-size: clamp(20px, 6vw, 30px);
  letter-spacing: 0;
}

@media (max-width: 430px) {
  .minimal-ui .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .minimal-ui .home-copy h2 {
    font-size: clamp(40px, 11.5vw, 50px);
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.dev-reset-action {
  display: none;
}

body.is-dev-build .dev-reset-action {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 90;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(232, 197, 90, 0.72);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  color: #e8c55a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

body.minimal-ui {
  --bg: #0a0a0a;
  --panel: #111;
  --ink: #f4f1e8;
  --muted: #9a9a9a;
  --line: #262626;
  --accent: #e8c55a;
  --ready: #5dcaa5;
  --error: #e2645f;
  background: #0a0a0a;
}

.spotter-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #0a0a0a;
}

.spotter-header {
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
}

.round-icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f1e8;
}

.round-icon-button svg,
.spotter-sub-actions svg,
.sheet-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.spotter-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.spotter-brand span {
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.spotter-brand strong {
  max-width: 100%;
  color: #e8c55a;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 44vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, #1c1c1c, #050505);
  isolation: isolate;
}

.home-camera {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 50% 30%, #1c1c1c, #050505);
}

.camera-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.04), transparent 18rem),
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.74) 100%);
  pointer-events: none;
}

.ar-target {
  position: relative;
  z-index: 2;
  width: 140px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(232, 197, 90, 0.72);
  border-radius: 18px;
  color: #e8c55a;
  background: rgba(10, 10, 10, 0.2);
}

.ar-target svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  opacity: 0.92;
}

.camera-panel.is-detected .ar-target {
  border-style: solid;
  border-color: #e8c55a;
  background: rgba(232, 197, 90, 0.08);
}

.camera-guide {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 58px;
  z-index: 2;
  margin: 0;
  color: rgba(244, 241, 232, 0.88);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.permission-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.permission-dot {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #6b6b6b;
}

.permission-dot.is-ready {
  background: #5dcaa5;
}

.permission-dot.is-error {
  background: #e2645f;
}

.permission-dot.is-checking {
  background: #6b6b6b;
}

.spotter-action-bar {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  padding: 16px 20px max(22px, env(safe-area-inset-bottom));
  border-top: 0.5px solid #262626;
  background: #111;
}

.spotter-main-action,
.request-access-action {
  min-height: 56px;
  width: 100%;
  border-radius: 30px;
  padding: 0 18px;
  font-weight: 900;
  text-align: center;
}

.spotter-main-action {
  background: #e8c55a;
  color: #1a1505;
}

.spotter-main-action:disabled {
  background: rgba(232, 197, 90, 0.35);
  color: rgba(26, 21, 5, 0.68);
  filter: none;
  opacity: 1;
}

.request-access-action {
  min-height: 46px;
  border: 1px solid rgba(232, 197, 90, 0.36);
  background: transparent;
  color: #e8c55a;
  font-size: 13px;
}

.spotter-sub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sub-action,
.howto-link {
  min-height: 44px;
  color: #9a9a9a;
  background: transparent;
  font-size: 13px;
}

.sub-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
}

.sub-action span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-action .chevron-down {
  width: 16px;
  height: 16px;
}

.howto-link {
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.member-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
}

.member-strip[hidden] {
  display: none !important;
}

.member-strip::-webkit-scrollbar {
  display: none;
}

.member-avatar {
  position: relative;
  flex: 0 0 48px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.member-avatar > span {
  position: relative;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--artist-color);
}

.member-avatar em {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8c55a;
  color: #1a1505;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.member-avatar strong {
  max-width: 58px;
  color: #c8c3b8;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.58);
}

.sheet-backdrop[hidden],
.bottom-sheet[hidden] {
  display: none !important;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  display: grid;
  gap: 16px;
  max-height: min(72vh, 560px);
  padding: 10px 20px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #262626;
  border-radius: 18px 18px 0 0;
  background: #111;
  color: #f4f1e8;
}

.sheet-handle {
  justify-self: center;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #3a3a3a;
}

.bottom-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bottom-sheet h2 {
  margin: 0;
  color: #f4f1e8;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.sheet-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f1e8;
}

.bottom-sheet ul,
.bottom-sheet ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #c8c3b8;
}

.bottom-sheet li {
  line-height: 1.45;
}

.bottom-sheet ol li {
  padding-left: 4px;
}

.bottom-sheet ol strong {
  display: block;
  color: #e8c55a;
}

.bottom-sheet ol span {
  display: block;
}

.align-camera {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.align-zone {
  position: absolute;
  left: 30%;
  top: max(70px, calc(env(safe-area-inset-top) + 46px));
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 72px));
  width: 28%;
  z-index: 2;
  pointer-events: none;
  border: 2px solid rgba(52, 255, 86, 0.78);
  background:
    linear-gradient(90deg, rgba(52, 255, 86, 0.22), rgba(52, 255, 86, 0.1)),
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 18px
    );
  box-shadow:
    inset 0 0 36px rgba(52, 255, 86, 0.16),
    0 0 24px rgba(52, 255, 86, 0.24);
  opacity: 0.78;
}

.align-stage[data-band="orange"] .align-zone {
  border-color: rgba(255, 104, 43, 0.82);
  background:
    linear-gradient(90deg, rgba(255, 104, 43, 0.18), rgba(255, 104, 43, 0.08)),
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 18px
    );
  box-shadow:
    inset 0 0 36px rgba(255, 104, 43, 0.14),
    0 0 24px rgba(255, 104, 43, 0.18);
}

.align-stage[data-band="red"] .align-zone,
.align-stage:not([data-band]) .align-zone {
  border-color: rgba(255, 31, 31, 0.76);
  background:
    linear-gradient(90deg, rgba(255, 31, 31, 0.14), rgba(255, 31, 31, 0.06)),
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.07) 0,
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px,
      transparent 18px
    );
  box-shadow:
    inset 0 0 36px rgba(255, 31, 31, 0.12),
    0 0 24px rgba(255, 31, 31, 0.16);
}

.stage-target,
.stage-path,
.align-message h2,
.align-status,
.turn-command,
.align-stats {
  display: none !important;
}

/* Journey v0.1 AR found and congrats flow */
.minimal-ui .ar-screen {
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.ar-stage {
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  background: #000;
}

.ar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.04) 24%, rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(0, 0, 0, 0.38) 100%);
}

.ar-stage::after,
.ar-corners {
  content: "";
  position: absolute;
  inset: max(70px, calc(env(safe-area-inset-top) + 46px)) 30px max(92px, calc(env(safe-area-inset-bottom) + 72px));
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(#d0ad4a, #d0ad4a) left top / 42px 2px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) left top / 2px 42px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) right top / 42px 2px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) right top / 2px 42px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) left bottom / 42px 2px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) left bottom / 2px 42px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) right bottom / 42px 2px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) right bottom / 2px 42px no-repeat;
}

.ar-camera {
  z-index: 0;
  object-fit: cover;
}

.ar-stage.is-outdoor-ar .ar-camera {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.stage-bg {
  z-index: 1;
  opacity: 1;
}

.giant-video,
.giant-model,
.video-fallback {
  z-index: 3;
}

.giant-video {
  object-fit: contain;
  object-position: center bottom;
}

.giant-model {
  width: min(96vw, 480px);
  height: min(86vh, 760px);
  inset: auto 50% max(72px, calc(env(safe-area-inset-bottom) + 44px)) auto;
  z-index: 3;
}

.capture-shield,
.ar-caption,
.capture-action,
.ar-hud .hud-button {
  display: none !important;
}

.ar-hud {
  position: absolute;
  top: max(24px, calc(env(safe-area-inset-top) + 12px));
  right: 28px;
  z-index: 7;
  display: block;
}

.status-pill {
  display: none;
}

.ar-brand,
.ending-brand {
  position: absolute;
  top: max(28px, calc(env(safe-area-inset-top) + 16px));
  left: 50%;
  z-index: 7;
  width: min(76vw, 440px);
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgba(242, 238, 228, 0.82);
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}

.ar-brand strong,
.ending-brand strong {
  color: rgba(242, 238, 228, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 400;
  line-height: 0.98;
}

.ar-brand b,
.ending-brand b {
  color: rgba(242, 238, 228, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 400;
  line-height: 0.96;
}

.ar-brand span,
.ending-brand span {
  display: inline-grid;
  grid-template-columns: 44px auto 44px;
  align-items: center;
  gap: 8px;
  color: rgba(242, 238, 228, 0.72);
  font-size: clamp(8px, 2.3vw, 11px);
  font-weight: 700;
  letter-spacing: 0.28em;
}

.ar-brand span::before,
.ar-brand span::after,
.ending-brand span::before,
.ending-brand span::after {
  content: "";
  height: 1px;
  background: rgba(242, 238, 228, 0.72);
}

.ar-guide {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: max(80px, calc(env(safe-area-inset-bottom) + 60px));
  z-index: 7;
  margin: 0;
  color: rgba(250, 248, 242, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 4vw, 20px);
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

.ar-back-soft {
  position: absolute;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 8;
  min-width: 104px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(242, 238, 228, 0.78);
  font-size: 18px;
  transform: translateX(-50%);
}

.ending-screen,
.thanks-screen {
  padding: 0;
  background: #000;
}

.thanks-flow-card {
  width: min(74vw, 330px);
  gap: 22px;
  padding: 48px 26px 36px;
}

.thanks-flow-card h2 {
  color: rgba(242, 238, 228, 0.86);
}

.thanks-flow-card p {
  font-size: 18px;
  line-height: 1.8;
}

.thanks-flow-card p + p {
  padding-top: 8px;
  border-top: 0;
}

.ending-share-action,
.ending-continue-action,
.ending-home-action {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.ending-share-action {
  border: 1px solid rgba(232, 197, 90, 0.45);
  background: linear-gradient(180deg, rgba(173, 147, 88, 0.88), rgba(83, 67, 43, 0.88));
  color: rgba(250, 246, 232, 0.92);
}

.ending-continue-action {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #19191b;
  color: rgba(232, 197, 90, 0.72);
}

.ending-home-action {
  width: min(100%, 220px);
  border: 1px solid rgba(232, 197, 90, 0.52);
  background: linear-gradient(180deg, rgba(173, 147, 88, 0.96), rgba(126, 104, 66, 0.96));
  color: rgba(250, 246, 232, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ar-screen .giant-video {
  transform: scale(0.85);
  transform-origin: 50% 100%;
}

.ar-screen .giant-model {
  width: min(82vw, 408px);
  height: min(73vh, 646px);
}

.ar-stage .ar-hud,
.ar-stage .ar-guide,
.ar-stage .ar-caption {
  transition: opacity 240ms ease, visibility 240ms ease;
}

.ar-stage.is-clean-playback .ar-hud,
.ar-stage.is-clean-playback .ar-guide,
.ar-stage.is-clean-playback .ar-caption {
  opacity: 0;
  visibility: hidden;
}

.entry-window-logo {
  width: min(76vw, 292px);
  align-self: end;
}

.entry-window-info {
  gap: clamp(5px, 1svh, 8px);
}

.entry-window-actions {
  margin-top: clamp(12px, 2.4svh, 26px);
}

.entry-window-button {
  min-height: 44px;
  font-size: clamp(13px, 3.4vw, 15px);
}

.entry-window-legal {
  max-height: 4.9em;
  overflow: hidden;
}

@media (max-height: 740px) {
  .entry-window-content {
    grid-template-rows: minmax(205px, 32svh) auto auto auto;
    gap: 12px;
  }

  .entry-window-logo {
    width: min(70vw, 250px);
  }

  .entry-window-access {
    margin-top: 6px !important;
  }

  .entry-window-button {
    min-height: 38px;
  }

  .entry-window-legal {
    max-height: 3.9em;
  }
}

/* Flow N2/N4 overrides kept last so the live SPA matches the storyboard screens. */
.entry-window-screen {
  background: #000;
}

.entry-window-screen .entry-art {
  opacity: 0.18;
}

.entry-window-logo {
  width: min(86vw, 370px);
  align-self: end;
}

.entry-window-info {
  gap: clamp(32px, 7svh, 64px);
  color: rgba(246, 241, 232, 0.68);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(14px, 3.65vw, 18px);
  line-height: 1.9;
  letter-spacing: 0;
}

.entry-window-date {
  color: rgba(236, 231, 221, 0.58);
  font-size: clamp(13px, 3.5vw, 17px);
}

.entry-window-access {
  margin-top: 0 !important;
  color: rgba(238, 234, 226, 0.78);
}

.entry-window-actions {
  grid-template-columns: 1fr;
  gap: clamp(18px, 3.4svh, 28px);
  width: min(100%, 560px);
}

.entry-window-button {
  display: grid;
  grid-template-columns: clamp(46px, 12vw, 72px) minmax(0, 1fr) 22px;
  align-items: center;
  column-gap: clamp(10px, 3.2vw, 24px);
  min-height: clamp(76px, 10svh, 92px);
  border-radius: 6px;
  padding: 0 clamp(20px, 5vw, 34px);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: clamp(15px, 3.9vw, 25px);
  font-weight: 700;
  line-height: 1;
  text-align: left;
  letter-spacing: 0;
  width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 20px rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.34);
}

.entry-button-icon {
  width: clamp(42px, 11vw, 54px);
  height: clamp(42px, 11vw, 54px);
  border: 2px solid rgba(246, 241, 232, 0.78);
  justify-self: start;
  position: relative;
}

.entry-button-icon-image {
  justify-self: start;
  object-fit: contain;
}

.entry-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 10px;
  margin-top: clamp(12px, 2.4svh, 22px);
  color: rgba(186, 155, 99, 0.9);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.entry-remind-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-top-width: 3px;
  position: relative;
}

.entry-remind-icon::before,
.entry-remind-icon::after {
  content: "";
  position: absolute;
}

.entry-remind-icon::before {
  left: 4px;
  right: 4px;
  top: 7px;
  border-top: 1px solid currentColor;
}

.entry-remind-icon::after {
  inset: 11px 5px 4px;
  background:
    radial-gradient(circle, currentColor 1.2px, transparent 1.4px) 0 0 / 6px 6px;
}

.entry-remind-icon-image {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (max-height: 740px) {
  .entry-window-content {
    grid-template-rows: minmax(126px, 25svh) auto auto auto;
    gap: 18px;
    padding:
      calc(env(safe-area-inset-top) + 22px)
      28px
      calc(env(safe-area-inset-bottom) + 16px);
  }

  .entry-window-logo {
    width: min(78vw, 310px);
  }

  .entry-window-info {
    gap: 18px;
    font-size: clamp(12px, 3.1vw, 14px);
    line-height: 1.72;
  }

  .entry-window-access {
    margin-top: 0 !important;
  }

  .entry-window-button {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    min-height: 66px;
    font-size: clamp(13.5px, 3.55vw, 18px);
  }
}

/* Home 01/13 production match */
.entry-window-screen {
  background: #000;
}

.entry-window-screen .entry-art {
  opacity: 0;
}

.entry-language-menu {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 1.6rem);
  right: clamp(1.25rem, 5.8vw, 2rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.43rem;
  min-height: 2.36rem;
  padding: 0.36rem 0.72rem;
  border: 1px solid rgba(229, 229, 229, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: rgba(229, 229, 229, 0.86);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: clamp(0.75rem, 3vw, 0.88rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.entry-language-menu,
.language-toggle {
  display: none !important;
}

.entry-language-menu svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-language-menu .entry-language-chevron {
  width: 0.74rem;
  height: 0.74rem;
  stroke-width: 2;
}

.entry-window-logo-crop {
  width: min(82vw, 24.5rem);
  aspect-ratio: 648 / 126;
  align-self: end;
  overflow: hidden;
  margin-bottom: 1.22rem;
}

.entry-window-logo {
  display: block;
  width: 100%;
  height: auto;
}

.entry-window-info {
  display: grid;
  gap: 0.62rem;
  width: min(calc(100% - 4rem), 32rem);
  color: rgba(218, 218, 218, 0.75);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(1.02rem, 3.65vw, 1.22rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.entry-window-date {
  color: rgba(188, 188, 188, 0.76);
  font-size: clamp(0.98rem, 3.45vw, 1.1rem);
  letter-spacing: 0.12em;
}

.entry-window-experience {
  display: grid;
  grid-template-columns: minmax(2.7rem, 1fr) auto minmax(2.7rem, 1fr);
  align-items: center;
  gap: clamp(0.65rem, 3.2vw, 1.45rem);
  width: min(100%, 32rem);
  margin: 0 auto;
  color: rgba(190, 166, 117, 0.86);
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(0.82rem, 3.35vw, 1.08rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.34em;
}

.entry-window-experience::before,
.entry-window-experience::after {
  content: "";
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 124, 88, 0.75));
}

.entry-window-experience::after {
  background: linear-gradient(90deg, rgba(139, 124, 88, 0.75), transparent);
}

.entry-window-experience span {
  white-space: nowrap;
}

.entry-window-access {
  margin-top: 5.25rem !important;
  color: rgba(219, 219, 219, 0.86);
  font-size: clamp(0.86rem, 3.35vw, 1.04rem);
  white-space: nowrap;
}

.entry-window-actions {
  display: grid;
  position: relative;
  z-index: 4;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xs);
  width: 100%;
  min-width: 0;
  max-width: 18.25rem;
  margin-top: var(--spacing-md);
  margin-inline: auto;
  justify-self: center;
}

.entry-window-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 4.24rem;
  padding: 0 4.5rem;
  border-radius: 0.5rem;
  border-width: 1px;
  border-style: solid;
  background: transparent;
  color: rgba(221, 221, 221, 0.9);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: clamp(0.88rem, 3.6vw, 1.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 28px rgba(255, 255, 255, 0.045),
    0 0 28px rgba(0, 0, 0, 0.45);
}

.entry-button-chevron {
  position: absolute;
  right: 1.34rem;
  width: 0.96rem;
  height: 0.96rem;
  border-top: 2px solid rgba(221, 221, 221, 0.72);
  border-right: 2px solid rgba(221, 221, 221, 0.72);
  transform: rotate(45deg);
  pointer-events: none;
}

.entry-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.9rem;
  margin-top: 3.1rem;
  border-bottom: 0;
  color: rgba(180, 155, 106, 0.86);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(0.98rem, 3.6vw, 1.22rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.entry-remind-icon-image {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: 0.92;
}

@media (max-width: 380px) {
  .entry-window-content {
    grid-template-rows: minmax(11.6rem, 23svh) auto auto auto;
    padding-inline: 0;
  }

  .entry-window-logo-crop {
    width: min(84vw, 21.5rem);
  }

  .entry-window-info {
    gap: 0.5rem;
  }

  .entry-window-access {
    margin-top: 3.75rem !important;
    font-size: clamp(0.76rem, 3.2vw, 0.92rem);
  }

  .entry-window-actions {
    margin-top: 2.35rem;
    width: min(calc(100% - 3.2rem), 30rem);
  }

  .entry-window-button {
    min-height: 4.05rem;
    padding-inline: 3.8rem;
    font-size: clamp(0.8rem, 3.45vw, 0.95rem);
  }

  .entry-button-icon-image {
  }

  .entry-button-chevron {
    right: 1rem;
  }
}

@media (max-height: 760px) {
  .entry-window-content {
    grid-template-rows: minmax(10.1rem, 22svh) auto auto auto;
    padding-top: calc(env(safe-area-inset-top) + 1rem);
    padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
    padding-inline: 0;
  }

  .entry-language-menu {
    top: calc(env(safe-area-inset-top) + 1rem);
  }

  .entry-window-logo-crop {
    width: min(74vw, 20rem);
    margin-bottom: 0.85rem;
  }

  .entry-window-info {
    gap: 0.52rem;
    font-size: clamp(0.9rem, 3.35vw, 1rem);
    line-height: 1.62;
  }

  .entry-window-date {
    font-size: clamp(0.84rem, 3.2vw, 0.98rem);
  }

  .entry-window-experience {
    font-size: clamp(0.74rem, 3vw, 0.9rem);
  }

  .entry-window-access {
    margin-top: 4.6rem !important;
    font-size: clamp(0.8rem, 3.1vw, 0.9rem);
  }

  .entry-window-actions {
    gap: 1.72rem;
    margin-top: 1.8rem;
    width: min(calc(100% - 3.4rem), 30rem);
  }

  .entry-window-button {
    min-height: 4.24rem;
    padding-inline: 3.85rem;
    font-size: clamp(0.78rem, 3.3vw, 0.92rem);
  }

  .entry-home-link {
    margin-top: 1.65rem;
  }
}

.beforestart-screen {
  background: #000;
}

.beforestart-copy dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.beforestart-copy dl div {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(232, 197, 90, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.beforestart-copy dt {
  margin: 0 0 3px;
  color: rgba(246, 241, 232, 0.9);
  font-weight: 700;
}

.beforestart-copy dd {
  margin: 0;
  color: rgba(246, 241, 232, 0.56);
}

/* Normal-2 storyboard screen */
.beforestart-screen.flow-permission-screen {
  align-items: stretch;
  justify-items: center;
}

.dev-reset-action {
  display: none !important;
}

.align-zone,
.align-stage[data-band="orange"] .align-zone,
.align-stage[data-band="red"] .align-zone,
.align-stage:not([data-band]) .align-zone {
  display: none !important;
}

.align-message p::before {
  content: "▲ ";
  color: #ff3846;
}

.align-stage[data-band="orange"] .align-message p {
  color: #ff7a38;
}

.align-stage[data-band="orange"] .align-message p::before {
  color: #ff7a38;
}

.align-stage[data-band="green"] .align-message p {
  padding-inline: 14px;
  background: rgba(12, 13, 15, 0.66);
  color: #d9bd70;
}

.align-stage[data-band="green"] .align-message p::before {
  content: "";
}

.align-stage.is-indoor-poster-scan .align-visual,
.align-stage.is-indoor-poster-scan .align-stats,
.align-stage.is-indoor-poster-scan .compass-widget {
  display: none !important;
}

.align-stage.is-indoor-poster-scan .align-camera {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  opacity: 1;
}

.align-stage.is-indoor-poster-scan .align-message {
  top: max(292px, calc(env(safe-area-inset-top) + 252px));
}

@media (max-height: 740px) {
  .align-message {
    top: max(230px, calc(env(safe-area-inset-top) + 190px));
  }
}

/* Normal-8 found screen */
.ar-stage::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.04) 24%, rgba(0, 0, 0, 0.06) 58%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(ellipse at 50% 44%, transparent 48%, rgba(0, 0, 0, 0.14) 74%, rgba(0, 0, 0, 0.56) 100%);
}

.ar-stage::after,
.ar-corners {
  inset: max(84px, calc(env(safe-area-inset-top) + 60px)) 20px max(84px, calc(env(safe-area-inset-bottom) + 62px));
  background:
    linear-gradient(#d0ad4a, #d0ad4a) left top / 24px 1px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) left top / 1px 24px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) right top / 24px 1px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) right top / 1px 24px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) left bottom / 24px 1px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) left bottom / 1px 24px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) right bottom / 24px 1px no-repeat,
    linear-gradient(#d0ad4a, #d0ad4a) right bottom / 1px 24px no-repeat;
  opacity: 0.78;
}

.ar-brand {
  top: max(92px, calc(env(safe-area-inset-top) + 58px));
  width: min(56vw, 250px);
  gap: 0;
}

.ar-brand strong {
  font-size: clamp(13px, 4vw, 18px);
}

.ar-brand b {
  font-size: clamp(17px, 5vw, 24px);
}

.ar-brand span {
  grid-template-columns: 34px auto 34px;
  gap: 7px;
  font-size: clamp(7px, 2.1vw, 10px);
}

.ar-back-soft {
  top: max(100px, calc(env(safe-area-inset-top) + 66px));
  left: 18px;
  bottom: auto;
  min-width: 28px;
  width: 28px;
  min-height: 28px;
  height: 28px;
  border-radius: 0;
  background: url("./assets/icons/icon-exit.svg") center / 20px 20px no-repeat;
  color: transparent;
  font-size: 0;
  transform: none;
  opacity: 0.76;
}

.ar-hud {
  top: max(108px, calc(env(safe-area-inset-top) + 74px));
  right: 25px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: url("./assets/icons/north-arrow-compass-5287.png") center / contain no-repeat;
  filter: invert(82%) sepia(51%) saturate(699%) hue-rotate(359deg) brightness(98%) contrast(86%);
}

.ar-guide {
  left: 20px;
  right: 20px;
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 62px));
  color: #d9bd70;
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.84);
}

.ar-screen .giant-video {
  transform: scale(1.08);
  transform-origin: 50% 100%;
}

.ar-stage.is-indoor-ar .stage-bg {
  opacity: 0;
}

.ar-stage.is-indoor-ar .ar-camera {
  display: none !important;
}

.ar-stage.is-outdoor-ar .stage-bg {
  opacity: 0;
  visibility: hidden;
}

.ar-screen .ar-stage.is-indoor-ar .giant-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  clip-path: none;
  transform: none;
  transform-origin: 50% 100%;
  mix-blend-mode: normal;
}

@media (max-width: 430px) {
  .ar-screen .ar-stage.is-indoor-ar .giant-video {
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

.ar-screen .giant-model {
  width: 100%;
  height: 100%;
  bottom: 0;
  transform: translateX(50%) translateY(7%) scale(1.3);
  transform-origin: 50% 100%;
}

.ar-screen .ar-stage.is-outdoor-ar.is-compass-anchored .giant-model {
  transform:
    perspective(900px)
    translateX(50%)
    translate3d(
      var(--world-anchor-x, 0px),
      calc(0% + var(--world-anchor-y, 0px) - var(--world-anchor-lift, 0px)),
      0
    )
    rotateX(var(--world-anchor-tilt, 0deg))
    scale(calc(1.1 * var(--world-anchor-zoom, 1)));
  transform-origin: center bottom;
  will-change: transform;
}

.ar-stage.is-clean-playback .ar-guide {
  opacity: 1;
  visibility: visible;
}

.ar-stage.is-guide-hidden .ar-guide {
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (max-height: 740px) {
  .ar-brand {
    top: max(74px, calc(env(safe-area-inset-top) + 44px));
  }

  .ar-back-soft {
    top: max(80px, calc(env(safe-area-inset-top) + 50px));
  }

  .ar-hud {
    top: max(86px, calc(env(safe-area-inset-top) + 56px));
  }

  .ar-guide {
    bottom: max(74px, calc(env(safe-area-inset-bottom) + 52px));
  }
}
