:root {
  color-scheme: dark;
  --ink: #fffaf1;
  --muted: #bcb4d2;
  --purple-950: #10021d;
  --purple-900: #17052b;
  --purple-800: #260b43;
  --purple-700: #42136f;
  --gold: #ffd45a;
  --gold-2: #ff9d2d;
  --teal: #4af7dc;
  --pink: #ff4fa3;
  --danger: #ff626b;
  --panel: rgba(25, 8, 45, 0.86);
  --panel-strong: rgba(17, 4, 31, 0.96);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--purple-950);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  background:
    radial-gradient(circle at 17% 24%, rgba(126, 50, 190, 0.38), transparent 28rem),
    radial-gradient(circle at 84% 74%, rgba(29, 165, 153, 0.18), transparent 30rem),
    linear-gradient(145deg, #11021f 0%, #210839 52%, #0c071a 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.background-noise {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.22;
  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: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.background-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 78px,
    rgba(255, 212, 90, 0.035) 79px 80px
  );
}

.spotlight {
  position: fixed;
  z-index: -3;
  width: 38vw;
  height: 85vh;
  top: -30vh;
  filter: blur(20px);
  opacity: 0.42;
  pointer-events: none;
}

.spotlight-left {
  left: 5vw;
  transform: rotate(18deg);
  background: conic-gradient(from 168deg at 50% 0%, transparent, rgba(255, 204, 80, 0.35), transparent 22%);
}

.spotlight-right {
  right: 1vw;
  transform: rotate(-20deg);
  background: conic-gradient(from 188deg at 50% 0%, transparent, rgba(74, 247, 220, 0.2), transparent 20%);
}

.f45-omen {
  --f45-omen-opacity: 0.08;
  --f45-image-opacity: 0.4;
  --f45-omen-scale: 0.94;
  --f45-omen-brightness: 0.52;
  --f45-omen-saturation: 0.52;
  --f45-omen-blur: 2px;
  --f45-omen-shift-x: 6vw;
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  filter: blur(0);
  transition: opacity 0.9s ease, filter 1.2s ease;
  will-change: opacity, filter;
}

.f45-omen::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 16% 72%, rgba(215, 208, 226, 0.44) 0 7%, transparent 23%),
    radial-gradient(ellipse at 39% 58%, rgba(151, 145, 165, 0.34) 0 9%, transparent 27%),
    radial-gradient(ellipse at 61% 66%, rgba(231, 226, 235, 0.34) 0 8%, transparent 26%),
    radial-gradient(ellipse at 84% 55%, rgba(139, 134, 151, 0.32) 0 10%, transparent 29%);
  filter: blur(16px);
  transform: translate3d(0, 14%, 0) scale(0.92);
}

.f45-omen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(16, 2, 29, 0.12), rgba(16, 2, 29, 0.56) 58%, rgba(16, 2, 29, 0.9)),
    linear-gradient(0deg, rgba(16, 2, 29, 0.82), transparent 52%, rgba(16, 2, 29, 0.28));
}

.f45-omen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  opacity: var(--f45-image-opacity);
  filter:
    saturate(var(--f45-omen-saturation))
    contrast(1.08)
    brightness(var(--f45-omen-brightness))
    blur(var(--f45-omen-blur));
  transform: translate3d(var(--f45-omen-shift-x), 0, 0) scale(var(--f45-omen-scale));
  transform-origin: 56% 48%;
  transition: opacity 1s ease, filter 1.2s ease, transform 1.35s cubic-bezier(0.18, 0.78, 0.22, 1);
  will-change: opacity, filter, transform;
}

.f45-omen span {
  position: absolute;
  left: clamp(20px, 4vw, 70px);
  bottom: clamp(78px, 10vh, 132px);
  z-index: 4;
  color: rgba(255, 238, 176, 0.26);
  font-family: "Black Han Sans", sans-serif;
  font-size: clamp(10px, 1.1vw, 15px);
  letter-spacing: 0.34em;
  text-shadow: 0 0 22px rgba(255, 212, 90, 0.2);
  transform: rotate(-1.5deg);
}

body[data-screen="start-screen"] .f45-omen {
  opacity: 0.24;
}

body[data-screen="start-screen"] .f45-omen img {
  opacity: 0.76;
  filter: saturate(0.82) contrast(1.08) brightness(0.75);
  transform: scale(1.025);
  animation: none;
}

body[data-screen="question-screen"] .f45-omen,
body[data-screen="thinking-screen"] .f45-omen {
  opacity: var(--f45-omen-opacity);
}

body[data-screen="question-screen"] .f45-omen img,
body[data-screen="thinking-screen"] .f45-omen img {
  animation: f45-omen-loom 6.8s ease-in-out infinite;
}

.f45-omen.is-f45-result {
  opacity: 0.52;
}

.f45-omen.is-f45-result img {
  opacity: 0.96;
  filter: saturate(1.12) contrast(1.12) brightness(0.9);
  transform: translate3d(-2vw, 0, 0) scale(1.54);
  animation: f45-omen-victory-loom 5.2s ease-in-out infinite;
}

.f45-omen.is-dispersing {
  opacity: var(--f45-omen-opacity);
  animation: f45-omen-vanish 2.1s cubic-bezier(0.18, 0.72, 0.3, 1) forwards;
}

.f45-omen.is-dispersing::before {
  animation: f45-omen-mist 1.95s ease-out forwards;
}

.f45-omen.is-dispersing img {
  animation: f45-omen-disperse-image 2.1s cubic-bezier(0.18, 0.72, 0.3, 1) forwards;
}

@keyframes f45-omen-loom {
  0%, 100% {
    transform: translate3d(var(--f45-omen-shift-x), 0, 0) scale(var(--f45-omen-scale));
  }
  50% {
    transform: translate3d(calc(var(--f45-omen-shift-x) - 1vw), 0.25vh, 0) scale(calc(var(--f45-omen-scale) + 0.018));
  }
}

@keyframes f45-omen-victory-loom {
  0%, 100% { transform: translate3d(-2vw, 0, 0) scale(1.54); }
  50% { transform: translate3d(-2.6vw, 0.35vh, 0) scale(1.575); }
}

@keyframes f45-omen-vanish {
  0% { opacity: var(--f45-omen-opacity); filter: blur(0); }
  34% { opacity: var(--f45-omen-opacity); }
  100% { opacity: 0; filter: blur(14px); }
}

@keyframes f45-omen-disperse-image {
  0% {
    opacity: var(--f45-image-opacity);
    filter:
      saturate(var(--f45-omen-saturation))
      contrast(1.08)
      brightness(var(--f45-omen-brightness))
      blur(var(--f45-omen-blur));
    transform: translate3d(var(--f45-omen-shift-x), 0, 0) scale(var(--f45-omen-scale));
  }
  45% { opacity: 0.34; }
  100% {
    opacity: 0;
    filter: saturate(0.15) contrast(0.72) brightness(0.42) blur(20px);
    transform: translate3d(13vw, -6vh, 0) scale(0.82);
  }
}

@keyframes f45-omen-mist {
  0% { opacity: 0; transform: translate3d(0, 14%, 0) scale(0.92); }
  36% { opacity: 0.8; }
  100% { opacity: 0; transform: translate3d(8%, -9%, 0) scale(1.24); }
}

.site-header {
  width: min(1260px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 13px 4px 13px 4px;
  color: var(--purple-950);
  font-family: "Black Han Sans", sans-serif;
  font-size: 27px;
  line-height: 1;
  background: linear-gradient(145deg, #fff4a5, var(--gold-2));
  box-shadow: 0 0 28px rgba(255, 190, 56, 0.25);
  transform: rotate(-3deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.header-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.audio-toggle {
  --audio-color: 255, 212, 90;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--audio-color), 0.24);
  border-radius: 999px;
  color: rgb(var(--audio-color));
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.055em;
  background: rgba(var(--audio-color), 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.audio-toggle:hover {
  border-color: rgba(var(--audio-color), 0.5);
  background: rgba(var(--audio-color), 0.11);
  box-shadow: 0 0 20px rgba(var(--audio-color), 0.1), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.audio-toggle:active {
  transform: translateY(1px) scale(0.98);
}

.audio-toggle.is-playing {
  --audio-color: 74, 247, 220;
}

.audio-toggle.is-muted {
  --audio-color: 188, 180, 210;
  opacity: 0.76;
}

.audio-toggle.is-waiting {
  --audio-color: 255, 157, 45;
}

.audio-bars {
  width: 18px;
  height: 15px;
  display: inline-flex;
  flex: 0 0 18px;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.audio-bars b {
  width: 3px;
  height: 42%;
  border-radius: 3px 3px 1px 1px;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
  transform-origin: 50% 100%;
}

.audio-toggle.is-playing .audio-bars b {
  animation: audio-bar 0.72s ease-in-out infinite alternate;
}

.audio-toggle.is-playing .audio-bars b:nth-child(2) {
  animation-delay: -0.42s;
  animation-duration: 0.54s;
}

.audio-toggle.is-playing .audio-bars b:nth-child(3) {
  animation-delay: -0.2s;
  animation-duration: 0.82s;
}

.audio-toggle.is-muted .audio-bars b {
  height: 2px;
  animation: none;
  box-shadow: none;
}

.audio-toggle.is-waiting .audio-bars b {
  animation: audio-wait 1.1s ease-in-out infinite;
}

.audio-toggle.is-waiting .audio-bars b:nth-child(2) { animation-delay: 0.12s; }
.audio-toggle.is-waiting .audio-bars b:nth-child(3) { animation-delay: 0.24s; }

#audio-label {
  white-space: nowrap;
}

.header-chip {
  --status-color: 74, 247, 220;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(var(--status-color), 0.3);
  border-radius: 999px;
  color: rgb(var(--status-color));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(var(--status-color), 0.07);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 0 0 rgba(var(--status-color), 0);
  transform-origin: 50% 100%;
  transition: color 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--status-color));
  box-shadow: 0 0 12px rgba(var(--status-color), 0.9);
  animation: pulse 1.8s infinite;
}

.header-chip.status-idle,
.mobile-oracle-status.status-idle { --status-color: 74, 247, 220; }
.header-chip.status-questioning,
.mobile-oracle-status.status-questioning { --status-color: 255, 212, 90; }
.header-chip.status-thinking,
.mobile-oracle-status.status-thinking { --status-color: 195, 161, 255; }
.header-chip.status-shocked,
.mobile-oracle-status.status-shocked { --status-color: 255, 79, 163; }
.header-chip.status-confident,
.mobile-oracle-status.status-confident { --status-color: 255, 212, 90; }
.header-chip.status-fast,
.mobile-oracle-status.status-fast { --status-color: 255, 98, 107; }
.header-chip.status-offended,
.mobile-oracle-status.status-offended { --status-color: 255, 130, 92; }
.header-chip.status-exhausted,
.mobile-oracle-status.status-exhausted { --status-color: 188, 180, 210; }

.header-chip.status-thinking .live-dot,
.mobile-oracle-status.status-thinking .live-dot {
  animation: status-think 0.9s ease-in-out infinite alternate;
}

.header-chip.status-shocked,
.header-chip.status-fast,
.mobile-oracle-status.status-shocked,
.mobile-oracle-status.status-fast {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 24px rgba(var(--status-color), 0.18);
}

.header-chip.status-shocked .live-dot,
.header-chip.status-fast .live-dot,
.mobile-oracle-status.status-shocked .live-dot,
.mobile-oracle-status.status-fast .live-dot {
  animation-duration: 0.36s;
}

.header-chip.status-exhausted .live-dot,
.mobile-oracle-status.status-exhausted .live-dot {
  animation: none;
  opacity: 0.38;
}

.header-chip.status-hop,
.mobile-oracle-status.status-hop {
  animation: status-hop 0.62s cubic-bezier(0.18, 0.78, 0.26, 1.32);
}

.game-shell {
  width: min(1260px, calc(100% - 40px));
  min-height: calc(100vh - 158px);
  min-height: calc(100dvh - 158px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
}

.oracle-stage {
  position: relative;
  align-self: stretch;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

.oracle-stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 80px;
  height: 58px;
  z-index: -2;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  filter: blur(16px);
}

.oracle-aura {
  --magic-angle: 0deg;
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: -2;
  width: min(540px, 98%);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 30px rgba(255, 190, 48, 0.38));
  transition: filter 0.25s ease;
}

.oracle-aura::before,
.oracle-aura::after {
  content: "";
  position: absolute;
  inset: 2%;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
}

.oracle-aura::before {
  background: radial-gradient(circle, rgba(255, 220, 96, 0.14) 0 6%, transparent 31%);
  box-shadow: 0 0 62px rgba(255, 190, 48, 0.2);
}

.oracle-aura::after {
  z-index: 5;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 250, 210, 0.82), rgba(255, 209, 74, 0.25) 31%, transparent 66%);
  mix-blend-mode: screen;
}

.magic-step,
.magic-spin,
.magic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.magic-step {
  transform: rotate(var(--magic-angle));
  transform-origin: 50% 50%;
  transition: transform 0.76s cubic-bezier(0.18, 1.52, 0.34, 1);
  will-change: transform;
}

.magic-spin {
  transform-origin: 50% 50%;
  will-change: transform;
}

.magic-spin.is-spinning {
  animation: magic-final-spin 0.82s cubic-bezier(0.14, 0.74, 0.19, 1) both;
}

.magic-ring {
  overflow: visible;
}

.magic-outer {
  position: absolute;
  border-radius: 50%;
  inset: 6.5%;
  border: clamp(2px, 0.55vw, 4px) solid rgba(255, 214, 83, 0.92);
  background:
    repeating-conic-gradient(
      from -0.7deg,
      rgba(255, 224, 116, 0.88) 0deg 1.35deg,
      transparent 1.35deg 45deg
    );
  box-shadow:
    0 0 10px rgba(255, 218, 91, 0.78),
    0 0 36px rgba(255, 183, 44, 0.28),
    inset 0 0 12px rgba(255, 218, 91, 0.58);
}

.magic-ring i,
.magic-spin > i {
  --node-angle: calc(var(--node) * 45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10.5%;
  aspect-ratio: 1;
  border: clamp(2px, 0.42vw, 3px) solid rgba(255, 225, 117, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff8c5 0 8%, var(--gold) 24%, #bd6d1d 72%, #613009 100%);
  box-shadow:
    0 0 11px rgba(255, 218, 92, 0.88),
    0 0 26px rgba(255, 170, 39, 0.42),
    inset 0 0 8px rgba(255, 250, 196, 0.55);
  transform: translate(-50%, -50%) rotate(var(--node-angle)) translateY(-446%);
}

.magic-ring i::before,
.magic-spin > i::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 440%;
  border-radius: 99px;
  background: linear-gradient(to bottom, rgba(255, 232, 137, 0.96), rgba(218, 128, 24, 0.5));
  box-shadow: 0 0 7px rgba(255, 218, 95, 0.56);
  transform: translate(-50%, 8%);
  transform-origin: 50% 0;
}

.magic-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 15.5%;
  aspect-ratio: 1;
  border: clamp(2px, 0.5vw, 4px) solid rgba(255, 229, 126, 0.98);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #fffbd9 0 7%, #ffd75f 20%, #d17f24 52%, #633008 100%);
  box-shadow:
    0 0 14px rgba(255, 228, 117, 0.98),
    0 0 38px rgba(255, 175, 42, 0.48),
    inset 0 0 12px rgba(255, 249, 198, 0.62);
  transform: translate(-50%, -50%);
}

.magic-hub::before {
  content: "";
  position: absolute;
  inset: 27%;
  border: 1px solid rgba(103, 49, 5, 0.7);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff5b7 0 8%, #ffd45a 34%, #b76413 75%, #572702 100%);
  box-shadow: 0 0 13px rgba(255, 211, 82, 0.78);
}

#magic-clunk {
  position: absolute;
  top: 7%;
  right: 0;
  z-index: 8;
  opacity: 0;
  color: #fff4aa;
  font-family: "Black Han Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(22px, 4vw, 43px);
  line-height: 1;
  letter-spacing: 0.07em;
  text-shadow:
    3px 3px 0 #541652,
    0 0 8px #fff0a5,
    0 0 24px rgba(255, 184, 42, 0.82);
  transform: rotate(9deg) scale(0.42);
}

.oracle-aura.is-clunking {
  animation: magic-aura-clunk 0.64s cubic-bezier(0.15, 0.82, 0.25, 1);
  filter: drop-shadow(0 0 52px rgba(255, 196, 52, 0.62));
}

.oracle-aura.is-clunking::after {
  animation: magic-flash 0.58s ease-out;
}

.oracle-aura.is-clunking #magic-clunk {
  animation: magic-clunk-word 0.64s cubic-bezier(0.13, 0.84, 0.23, 1.24);
}

.speech-bubble {
  position: absolute;
  top: 22px;
  right: -2%;
  z-index: 4;
  width: min(330px, 74%);
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px 22px;
  border: 3px solid #2a123c;
  border-radius: 23px 23px 23px 5px;
  color: #24102f;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
  background: #fffaf1;
  box-shadow: 7px 8px 0 rgba(7, 1, 13, 0.55), 0 16px 45px rgba(0, 0, 0, 0.3);
  transform: rotate(1deg);
  transition: transform 0.2s ease;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -22px;
  width: 28px;
  height: 28px;
  border-right: 3px solid #2a123c;
  border-bottom: 3px solid #2a123c;
  background: #fffaf1;
  transform: skewY(42deg) rotate(20deg);
}

.speech-bubble.is-talking {
  animation: talk 0.42s ease;
}

.oracle-character-button {
  position: relative;
  z-index: 1;
  width: min(540px, 115%);
  max-height: 590px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 92%;
}

.oracle-character-button::after {
  content: "";
  position: absolute;
  inset: 10% 14% 5%;
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 212, 90, 0.24), transparent 68%);
  transition: opacity 0.2s ease;
}

.oracle-character-button:not(:disabled):hover::after,
.oracle-character-button:focus-visible::after {
  opacity: 1;
}

.oracle-character-button:disabled {
  cursor: default;
}

.oracle-character-button:focus-visible {
  outline-offset: -18px;
  border-radius: 50%;
}

.oracle-character {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 590px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 26px 32px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 90%;
  animation: float 4.6s ease-in-out infinite;
  transition: filter 0.2s ease;
}

.oracle-character-button:not(:disabled):hover .oracle-character {
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(255, 212, 90, 0.13));
}

.oracle-character-button.is-poked {
  animation: oracle-poke 0.72s cubic-bezier(0.18, 0.78, 0.25, 1.25);
}

.oracle-character.is-poked {
  animation: oracle-poke-image 0.72s cubic-bezier(0.18, 0.78, 0.25, 1.25);
}

.oracle-click-hint {
  position: absolute;
  right: 1%;
  bottom: 120px;
  z-index: 4;
  padding: 6px 10px;
  border: 1px solid rgba(255, 212, 90, 0.28);
  border-radius: 999px;
  color: rgba(255, 239, 187, 0.78);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(27, 7, 44, 0.76);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  transform: rotate(2deg);
  animation: hint-nudge 2.4s ease-in-out infinite;
}

.oracle-click-hint::before {
  content: "↖";
  margin-right: 4px;
  color: var(--gold);
}

.oracle-click-hint.is-dismissed {
  opacity: 0;
  visibility: hidden;
  animation: none;
  transform: translateY(5px) scale(0.94);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

body[data-screen="start-screen"] .oracle-click-hint {
  display: none;
}

.oracle-character.is-celebrating {
  animation: celebrate 0.75s cubic-bezier(0.2, 0.75, 0.25, 1.25);
}

.oracle-character.is-shocked {
  animation: shocked 0.58s ease;
}

.oracle-nameplate {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 3;
  width: min(330px, 76%);
  padding: 10px 22px 12px;
  border: 1px solid rgba(255, 215, 90, 0.55);
  border-radius: 11px;
  text-align: center;
  background: linear-gradient(110deg, rgba(19, 5, 32, 0.96), rgba(60, 17, 92, 0.96));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.12);
  transform: translateX(-50%) rotate(-1deg);
}

.oracle-nameplate span,
.oracle-nameplate strong,
.oracle-nameplate small {
  display: block;
}

.oracle-nameplate span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.oracle-nameplate strong {
  margin: 2px 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.oracle-nameplate small {
  color: var(--muted);
  font-size: 9px;
}

.game-panel {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px 7px 30px 7px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), transparent 28%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.game-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--gold), transparent 26%) top left / 70% 2px no-repeat,
    linear-gradient(180deg, var(--teal), transparent 24%) top right / 2px 55% no-repeat;
}

.panel-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -190px;
  top: -150px;
  border-radius: 50%;
  background: rgba(255, 202, 70, 0.12);
  filter: blur(50px);
  pointer-events: none;
}

.mobile-oracle-start,
.mobile-oracle-card {
  display: none;
}

.mobile-oracle-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 80%;
}

.mobile-oracle-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 2px solid rgba(255, 222, 109, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, rgba(55, 17, 78, 0.98), rgba(15, 4, 27, 0.98) 72%),
    var(--purple-950);
  box-shadow:
    0 0 0 3px rgba(132, 56, 155, 0.48),
    0 0 20px rgba(255, 200, 60, 0.28),
    inset 0 0 20px rgba(255, 215, 82, 0.12);
}

.mobile-oracle-avatar::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 0;
  border: 1px dashed rgba(255, 214, 83, 0.56);
  border-radius: 50%;
  animation: mobile-oracle-ring 12s linear infinite;
}

.mobile-oracle-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.38));
}

.mobile-oracle-dialog {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.mobile-oracle-status {
  --status-color: 74, 247, 220;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(var(--status-color), 0.34);
  border-radius: 999px;
  color: rgb(var(--status-color));
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.035em;
  background: rgba(var(--status-color), 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.mobile-oracle-status .live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
}

.mobile-oracle-speech {
  position: relative;
  min-height: 55px;
  display: grid;
  margin: 0;
  padding: 9px 11px;
  place-items: center start;
  border: 2px solid #2a123c;
  border-radius: 8px 16px 16px 16px;
  color: #24102f;
  font-size: clamp(10px, 3vw, 12px);
  font-weight: 900;
  line-height: 1.48;
  text-align: left;
  background: #fffaf1;
  box-shadow: 4px 5px 0 rgba(7, 1, 13, 0.46);
}

.mobile-oracle-speech::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -9px;
  width: 15px;
  height: 15px;
  border-bottom: 2px solid #2a123c;
  border-left: 2px solid #2a123c;
  background: #fffaf1;
  transform: rotate(45deg);
}

.mobile-oracle-speech.is-talking {
  animation: talk 0.42s ease;
}

.mobile-oracle-button.is-poked {
  animation: oracle-poke 0.72s cubic-bezier(0.18, 0.78, 0.25, 1.25);
}

.mobile-oracle-button.is-celebrating {
  animation: celebrate 0.75s cubic-bezier(0.2, 0.75, 0.25, 1.25);
}

.mobile-oracle-button.is-shocked {
  animation: shocked 0.58s ease;
}

.mobile-oracle-button.is-clunking .mobile-oracle-avatar {
  animation: mobile-oracle-clunk 0.56s cubic-bezier(0.15, 0.82, 0.25, 1);
}

.mobile-oracle-button.is-spinning .mobile-oracle-avatar::before {
  animation-duration: 0.48s;
}

.screen {
  display: none;
  width: 100%;
  padding: clamp(34px, 5vw, 68px);
}

.screen.is-active {
  display: block;
  animation: screen-in 0.38s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 212, 90, 0.65);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: "Black Han Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(38px, 4.7vw, 66px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

h1 span {
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 188, 55, 0.22);
}

.lead {
  max-width: 590px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  line-height: 1.95;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.feature-row span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ddd4e9;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.045);
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 0 24px;
  border-radius: 12px 4px 12px 4px;
  color: #23112c;
  font-size: 15px;
  text-decoration: none;
  background: linear-gradient(110deg, #fff09d, var(--gold) 48%, var(--gold-2));
  box-shadow: 0 14px 30px rgba(255, 164, 39, 0.18), inset 0 1px rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.primary-button b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px 3px 8px 3px;
  background: rgba(35, 17, 44, 0.12);
  font-size: 19px;
}

.primary-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 20px 40px rgba(255, 164, 39, 0.25), inset 0 1px rgba(255, 255, 255, 0.7);
}

.fine-print {
  margin: 13px 0 0;
  color: #81788e;
  font-size: 9px;
  text-align: center;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #d8d0e7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

#candidate-count {
  color: var(--teal);
}

.progress-track {
  height: 6px;
  overflow: hidden;
  margin-bottom: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 0 18px rgba(74, 247, 220, 0.3);
  transition: width 0.45s ease;
}

.thinking-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #9a8baa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.thinking-label span,
.thinking-label span::before,
.thinking-label span::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
}

.thinking-label span {
  position: relative;
  margin: 0 8px;
  animation: dots 1.2s infinite;
}

.thinking-label span::before,
.thinking-label span::after {
  content: "";
  position: absolute;
  top: 0;
}

.thinking-label span::before {
  left: -9px;
  animation: dots 1.2s -0.2s infinite;
}

.thinking-label span::after {
  right: -9px;
  animation: dots 1.2s 0.2s infinite;
}

.screen-question h2 {
  min-height: 116px;
  margin-bottom: 8px;
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -0.035em;
}

.question-note {
  min-height: 22px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

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

.answer {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px 3px 10px 3px;
  color: #f9f4ff;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.answer-unknown {
  grid-column: 1 / -1;
}

.answer-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px 3px 9px 3px;
  font-size: 16px;
  font-weight: 900;
  opacity: 0.78;
}

.answer:hover {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.answer-yes { color: #78ffd2; }
.answer-no { color: #ff858c; }
.answer-unknown { color: #dad1e5; }
.answer-partial { color: #ffdb74; }
.answer-probably-no { color: #c3a1ff; }

.answer strong {
  color: #fff;
}

.screen-thinking {
  text-align: center;
}

.screen-thinking .eyebrow {
  justify-content: center;
  margin-bottom: 13px;
}

.screen-thinking h2 {
  max-width: 560px;
  margin: 0 auto 12px;
  font-family: "Black Han Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(30px, 3.7vw, 48px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.screen-thinking > p {
  max-width: 500px;
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.thinking-orbit {
  position: relative;
  width: 142px;
  aspect-ratio: 1;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 212, 90, 0.17);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 212, 90, 0.17) 0 29%, transparent 30%),
    radial-gradient(circle, rgba(110, 46, 164, 0.34), transparent 70%);
  box-shadow: 0 0 60px rgba(119, 57, 184, 0.24), inset 0 0 26px rgba(255, 212, 90, 0.05);
}

.thinking-orbit::before,
.thinking-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.thinking-orbit::before {
  inset: -8px;
  border: 2px dashed rgba(74, 247, 220, 0.28);
  animation: thinking-spin 5s linear infinite;
}

.thinking-orbit::after {
  inset: 18px;
  border: 1px dotted rgba(255, 212, 90, 0.48);
  animation: thinking-spin 3.4s linear infinite reverse;
}

.thinking-orbit b {
  position: relative;
  z-index: 2;
  color: var(--gold);
  font-family: "Black Han Sans", sans-serif;
  font-size: 49px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 212, 90, 0.55);
  animation: thinking-question 1.15s ease-in-out infinite;
}

.thinking-orbit span {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border: 2px solid var(--purple-900);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(74, 247, 220, 0.85);
}

.thinking-orbit span:nth-child(1) { top: 5px; left: 63px; }
.thinking-orbit span:nth-child(2) { right: 9px; bottom: 27px; animation: thinking-blip 0.9s -0.25s infinite; }
.thinking-orbit span:nth-child(3) { left: 4px; bottom: 38px; animation: thinking-blip 0.9s -0.5s infinite; }

.thinking-readout {
  max-width: 470px;
  margin: 0 auto;
  display: grid;
  gap: 7px;
  text-align: left;
}

.thinking-readout span {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 7px 12px 7px 35px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px 2px 7px 2px;
  color: rgba(207, 198, 222, 0.42);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.025);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.thinking-readout span::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.thinking-readout span::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
}

.thinking-readout span.is-active {
  border-color: rgba(74, 247, 220, 0.25);
  color: #bafff4;
  background: rgba(74, 247, 220, 0.065);
  transform: translateX(4px);
}

.thinking-readout span.is-active::after {
  opacity: 1;
  animation: thinking-scan 1.1s ease infinite;
}

.thinking-dots {
  height: 20px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.thinking-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 11px rgba(255, 79, 163, 0.55);
  animation: thinking-dot-hop 0.9s ease-in-out infinite;
}

.thinking-dots i:nth-child(2) { animation-delay: 0.14s; }
.thinking-dots i:nth-child(3) { animation-delay: 0.28s; }

.screen-guess,
.screen-exhausted {
  text-align: center;
}

.screen-guess .eyebrow,
.screen-exhausted .eyebrow {
  justify-content: center;
}

.guess-intro {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vehicle-portrait {
  position: relative;
  width: min(330px, 100%);
  aspect-ratio: 330 / 107;
  margin: 0 auto 16px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 218, 90, 0.4);
  border-radius: 14px 4px 14px 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 32%),
    radial-gradient(ellipse at 50% 78%, rgba(74, 247, 220, 0.11), transparent 54%),
    rgba(8, 3, 18, 0.76);
  box-shadow:
    0 17px 38px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(255, 187, 52, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.vehicle-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.42;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--gold), transparent 38%) top left / 54% 2px no-repeat,
    linear-gradient(270deg, var(--teal), transparent 38%) bottom right / 54% 2px no-repeat,
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(255, 255, 255, 0.018) 9px 10px);
}

.vehicle-portrait::after {
  content: "画像、戦場で迷子";
  position: absolute;
  z-index: 1;
  opacity: 0;
  color: #aa9db8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease;
}

#vehicle-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  padding: 5px 0;
  opacity: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.5)) saturate(1.06) contrast(1.03);
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-portrait.has-image #vehicle-image {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.vehicle-portrait.image-failed #vehicle-image {
  display: none;
}

.vehicle-portrait.image-failed::after {
  opacity: 1;
}

.vehicle-portrait .vehicle-fallback,
.vehicle-portrait .vehicle-icon-fallback {
  position: relative;
  z-index: 1;
  display: none;
  color: var(--gold);
  font-size: 36px;
  filter: drop-shadow(0 0 18px rgba(255, 212, 90, 0.28));
}

.vehicle-portrait.image-failed .vehicle-fallback,
.vehicle-portrait.image-failed .vehicle-icon-fallback {
  display: block;
  transform: translateY(-11px);
}

.screen-exhausted .vehicle-icon {
  width: 82px;
  height: 82px;
  display: grid;
  margin: 0 auto 10px;
  place-items: center;
  border: 1px solid rgba(255, 218, 90, 0.36);
  border-radius: 50%;
  font-size: 43px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.15), rgba(255, 185, 47, 0.07));
  box-shadow: 0 0 40px rgba(255, 187, 52, 0.12);
}

.screen-guess h2,
.screen-exhausted h2 {
  margin: 0 0 8px;
  font-family: "Black Han Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
}

.vehicle-tagline {
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.confidence-box {
  max-width: 440px;
  margin: 0 auto 18px;
  padding: 12px 15px;
  border: 1px solid rgba(74, 247, 220, 0.16);
  border-radius: 8px;
  background: rgba(74, 247, 220, 0.045);
}

.confidence-box > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.confidence-box strong {
  color: var(--teal);
  font-size: 17px;
}

.confidence-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.confidence-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-roast {
  max-width: 500px;
  margin: 0 auto 17px;
  color: #f3ecfb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}

.reason-list {
  max-width: 500px;
  margin: 0 auto 24px;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
  text-align: left;
}

.reason-list li {
  position: relative;
  padding: 9px 12px 9px 32px;
  border-left: 2px solid rgba(255, 212, 90, 0.7);
  border-radius: 0 6px 6px 0;
  color: #ccc4d9;
  font-size: 11px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.035);
}

.reason-list li::before {
  content: "✓";
  position: absolute;
  left: 11px;
  top: 8px;
  color: var(--gold);
  font-weight: 900;
}

.result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.72fr);
  gap: 10px;
}

.wiki-button {
  min-height: 56px;
}

.secondary-button {
  min-height: 56px;
  border: 1px solid rgba(255, 98, 107, 0.5);
  border-radius: 10px 3px 10px 3px;
  color: #ffabb0;
  background: rgba(255, 98, 107, 0.08);
  transition: background 0.18s ease, transform 0.18s ease;
}

.secondary-button:hover {
  background: rgba(255, 98, 107, 0.16);
  transform: translateY(-2px);
}

#x-share-button,
.share-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px 3px 10px 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 54%),
    #09080c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 9px 20px rgba(0, 0, 0, 0.18);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#x-share-button:hover,
#x-share-button:focus-visible,
.share-button:hover,
.share-button:focus-visible {
  border-color: rgba(255, 212, 90, 0.72);
  color: #fff7d3;
  background:
    linear-gradient(135deg, rgba(255, 212, 90, 0.15), transparent 58%),
    #111016;
  box-shadow: 0 0 22px rgba(255, 190, 47, 0.17), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

#x-share-button:active,
.share-button:active {
  transform: translateY(0) scale(0.98);
}

#x-share-button .x-share-glyph,
#x-share-button .share-icon,
.share-button .share-icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.text-button {
  margin-top: 15px;
  padding: 5px;
  color: #988ea5;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
}

.text-button:hover {
  color: #fff;
}

.screen-exhausted p {
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.9;
}

footer {
  width: min(1260px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 0 14px;
  color: #71677e;
  font-size: 9px;
}

.footer-copy {
  min-width: 0;
}

.footer-copy > span {
  display: block;
  font-weight: 900;
  letter-spacing: 0.15em;
}

footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.65;
}

.creator-credits {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #a49aaf;
  font-size: 10px;
  white-space: nowrap;
}

.credit-label,
.credit-join {
  font-weight: 900;
}

.credit-join {
  color: #665c72;
}

.creator-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px 3px 9px 3px;
  color: #ded6e8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.creator-credit:hover,
.creator-credit:focus-visible {
  color: #fff;
  border-color: rgba(255, 212, 90, 0.34);
  background: rgba(255, 212, 90, 0.075);
  transform: translateY(-2px);
}

.creator-credit strong {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.credit-icon {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 7px 2px 7px 2px;
  color: #fff;
  font-size: 12px;
  background: #08070b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.credit-icon-ai,
.credit-icon-suno {
  padding: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 14px rgba(255, 255, 255, 0.08);
}

.credit-icon > img,
.credit-icon-ai > img,
.credit-icon-suno > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.credit-suno:hover,
.credit-suno:focus-visible {
  border-color: rgba(255, 88, 160, 0.48);
  background: rgba(184, 61, 232, 0.1);
}

.credit-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 15px);
  z-index: 20;
  width: min(270px, calc(100vw - 32px));
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 13px 15px 13px 77px;
  visibility: hidden;
  opacity: 0;
  border: 2px solid #2a123c;
  border-radius: 17px 17px 17px 5px;
  color: #26102f;
  white-space: normal;
  background: #fffaf1;
  box-shadow: 6px 7px 0 rgba(7, 1, 13, 0.48), 0 18px 45px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform: translate(-50%, 9px) rotate(-0.5deg) scale(0.97);
  transform-origin: 50% 100%;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.credit-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 2px solid #2a123c;
  border-bottom: 2px solid #2a123c;
  background: #fffaf1;
  transform: translateX(-50%) rotate(45deg);
}

.credit-tooltip img {
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 72px;
  height: 76px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(3px 5px 4px rgba(0, 0, 0, 0.22));
  transform: translateY(22px) rotate(-5deg);
  transition: transform 0.28s cubic-bezier(0.18, 0.8, 0.22, 1.3);
}

.credit-tooltip b {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.6;
  text-align: left;
}

.creator-credit:hover .credit-tooltip,
.creator-credit:focus-visible .credit-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0) rotate(-0.5deg) scale(1);
}

.creator-credit:hover .credit-tooltip img,
.creator-credit:focus-visible .credit-tooltip img {
  transform: translateY(2px) rotate(-2deg);
}

.mobile-about {
  display: none;
  width: min(100%, 520px);
  color: #ded6e8;
}

.mobile-about summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 212, 90, 0.2);
  border-radius: 13px 4px 13px 4px;
  color: #fff5c7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  list-style: none;
  background: rgba(255, 212, 90, 0.07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-about summary::-webkit-details-marker {
  display: none;
}

.mobile-about-toggle {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  color: #1d082b;
  font-size: 18px;
  line-height: 1;
  background: #ffd45a;
  transition: transform 0.2s ease;
}

.mobile-about[open] .mobile-about-toggle {
  transform: rotate(45deg);
}

.mobile-about-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 0 0 13px 4px;
  background: rgba(11, 3, 20, 0.86);
}

.mobile-about-oracle {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 3px 4px 8px;
}

.mobile-about-oracle img {
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255, 212, 90, 0.45);
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle, rgba(255, 212, 90, 0.2), rgba(65, 16, 92, 0.72));
}

.mobile-about-oracle p {
  margin: 0;
  color: #fff7da;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.65;
}

.mobile-about-person {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px 3px 10px 3px;
  color: #f4edf8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.mobile-about-person .credit-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.mobile-about-person > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mobile-about-person strong,
.mobile-about-person small {
  white-space: normal;
  overflow-wrap: anywhere;
}

.mobile-about-person strong {
  font-size: 11px;
}

.mobile-about-person small {
  color: #c9becf;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
}

.credit-ai .credit-tooltip {
  right: 0;
  left: auto;
  transform: translateY(9px) rotate(0.5deg) scale(0.97);
}

.credit-ai .credit-tooltip::after {
  right: 38px;
  left: auto;
  transform: rotate(45deg);
}

.credit-ai:hover .credit-tooltip,
.credit-ai:focus-visible .credit-tooltip {
  transform: translateY(0) rotate(0.5deg) scale(1);
}

.credit-suno .credit-tooltip {
  right: 0;
  left: auto;
  width: min(250px, calc(100vw - 32px));
  transform: translateY(9px) rotate(0.5deg) scale(0.97);
  transform-origin: calc(100% - 34px) 100%;
}

.credit-suno .credit-tooltip::after {
  right: 34px;
  left: auto;
  transform: rotate(45deg);
}

.credit-suno:hover .credit-tooltip,
.credit-suno:focus-visible .credit-tooltip {
  transform: translateY(0) rotate(0.5deg) scale(1);
}

canvas.f45-confetti {
  position: fixed;
  inset: 0;
  z-index: 9000;
  width: 100vw;
  height: 100vh;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0s linear 0.16s;
  contain: strict;
}

canvas.f45-confetti.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

#smoke-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.48s ease, visibility 0s linear 0.48s;
  isolation: isolate;
}

#smoke-curtain::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 2;
  opacity: 0;
  background:
    radial-gradient(circle at 10% 86%, #e5e0e4 0 14%, transparent 31%),
    radial-gradient(circle at 32% 78%, #aaa6b0 0 18%, transparent 37%),
    radial-gradient(circle at 55% 88%, #e7e1e5 0 17%, transparent 35%),
    radial-gradient(circle at 78% 77%, #aaa7b1 0 18%, transparent 38%),
    radial-gradient(circle at 96% 88%, #ddd8df 0 16%, transparent 34%),
    linear-gradient(to top, #817e88 0 52%, rgba(128, 124, 137, 0.86) 68%, transparent 88%);
  filter: contrast(1.06);
  transform: translateY(108%);
}

#smoke-curtain span {
  --smoke-size: 38vmin;
  position: absolute;
  left: calc(var(--smoke-x, 50) * 1%);
  bottom: calc(var(--smoke-bottom, -18) * 1vmin);
  z-index: 3;
  width: var(--smoke-size);
  aspect-ratio: 1;
  border-radius: 44% 56% 61% 39% / 52% 42% 58% 48%;
  opacity: 0;
  background:
    radial-gradient(circle at 39% 34%, rgba(255, 255, 255, 0.94), rgba(202, 199, 207, 0.94) 42%, rgba(105, 101, 113, 0.7) 69%, transparent 72%);
  box-shadow:
    calc(var(--smoke-size) * -0.28) calc(var(--smoke-size) * 0.04) 0 calc(var(--smoke-size) * -0.17) rgba(214, 211, 218, 0.88),
    calc(var(--smoke-size) * 0.29) calc(var(--smoke-size) * 0.08) 0 calc(var(--smoke-size) * -0.18) rgba(167, 164, 174, 0.86),
    0 0 calc(var(--smoke-size) * 0.2) rgba(234, 230, 234, 0.34);
  filter: blur(5px);
  transform: translate(-50%, 88%) scale(0.45) rotate(var(--smoke-tilt, 0deg));
  will-change: transform, opacity;
}

#smoke-curtain span:nth-child(1) { --smoke-x: 2; --smoke-size: 43vmin; --smoke-tilt: -13deg; }
#smoke-curtain span:nth-child(2) { --smoke-x: 13; --smoke-size: 36vmin; --smoke-tilt: 9deg; }
#smoke-curtain span:nth-child(3) { --smoke-x: 24; --smoke-size: 48vmin; --smoke-tilt: -6deg; }
#smoke-curtain span:nth-child(4) { --smoke-x: 36; --smoke-size: 40vmin; --smoke-tilt: 16deg; }
#smoke-curtain span:nth-child(5) { --smoke-x: 48; --smoke-size: 52vmin; --smoke-tilt: -10deg; }
#smoke-curtain span:nth-child(6) { --smoke-x: 59; --smoke-size: 39vmin; --smoke-tilt: 8deg; }
#smoke-curtain span:nth-child(7) { --smoke-x: 70; --smoke-size: 47vmin; --smoke-tilt: -17deg; }
#smoke-curtain span:nth-child(8) { --smoke-x: 82; --smoke-size: 41vmin; --smoke-tilt: 13deg; }
#smoke-curtain span:nth-child(9) { --smoke-x: 94; --smoke-size: 49vmin; --smoke-tilt: -8deg; }
#smoke-curtain span:nth-child(10) { --smoke-x: 18; --smoke-size: 58vmin; --smoke-bottom: -34; --smoke-tilt: 5deg; }
#smoke-curtain span:nth-child(11) { --smoke-x: 52; --smoke-size: 61vmin; --smoke-bottom: -38; --smoke-tilt: -4deg; }
#smoke-curtain span:nth-child(12) { --smoke-x: 86; --smoke-size: 55vmin; --smoke-bottom: -31; --smoke-tilt: 7deg; }

#smoke-curtain p {
  position: absolute;
  left: 50%;
  bottom: 16vh;
  z-index: 5;
  width: min(560px, calc(100% - 40px));
  margin: 0;
  color: #201827;
  font-family: "Black Han Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(20px, 4vw, 44px);
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translate(-50%, 36px) rotate(-1deg);
}

#smoke-curtain.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

#smoke-curtain.is-active::before {
  animation: smoke-sheet-rise 1.18s cubic-bezier(0.22, 0.7, 0.2, 1) 0.28s both;
}

#smoke-curtain.is-active span {
  animation: smoke-puff-rise 1.24s cubic-bezier(0.16, 0.72, 0.24, 1) both;
}

#smoke-curtain.is-active p {
  animation: smoke-message-in 0.44s ease 0.72s both;
}

#smoke-curtain.is-active span:nth-child(2),
#smoke-curtain.is-active span:nth-child(6),
#smoke-curtain.is-active span:nth-child(10) { animation-delay: 0.07s; }

#smoke-curtain.is-active span:nth-child(3),
#smoke-curtain.is-active span:nth-child(7),
#smoke-curtain.is-active span:nth-child(11) { animation-delay: 0.14s; }

#smoke-curtain.is-active span:nth-child(4),
#smoke-curtain.is-active span:nth-child(8),
#smoke-curtain.is-active span:nth-child(12) { animation-delay: 0.21s; }

#smoke-curtain.is-active span:nth-child(5),
#smoke-curtain.is-active span:nth-child(9) { animation-delay: 0.28s; }

#smoke-curtain.is-clearing {
  visibility: visible;
  opacity: 0;
  transition: opacity 0.64s ease, visibility 0s linear 0.64s;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(13px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes smoke-message-in {
  to { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }
}

@keyframes audio-bar {
  from { height: 28%; opacity: 0.62; }
  to { height: 100%; opacity: 1; }
}

@keyframes audio-wait {
  0%, 70%, 100% { height: 24%; opacity: 0.34; }
  35% { height: 82%; opacity: 1; }
}

@keyframes magic-final-spin {
  0% { transform: rotate(0deg) scale(1); filter: brightness(1); }
  14% { transform: rotate(-18deg) scale(0.98); filter: brightness(1.24); }
  78% { transform: rotate(990deg) scale(1.035); filter: brightness(1.48); }
  100% { transform: rotate(1080deg) scale(1); filter: brightness(1.06); }
}

@keyframes magic-aura-clunk {
  0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
  18% { transform: translateX(-50%) translate(-7px, 2px) scale(1.018); }
  33% { transform: translateX(-50%) translate(8px, -3px) scale(0.992); }
  51% { transform: translateX(-50%) translate(-4px, 1px) scale(1.008); }
  68% { transform: translateX(-50%) translate(3px, 0) scale(1); }
}

@keyframes magic-flash {
  0% { opacity: 0; transform: scale(0.68); }
  21% { opacity: 0.82; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.24); }
}

@keyframes magic-clunk-word {
  0% { opacity: 0; transform: translate(12px, 15px) rotate(16deg) scale(0.35); }
  25% { opacity: 1; transform: translate(-4px, -6px) rotate(5deg) scale(1.2); }
  58% { opacity: 1; transform: translate(0, 0) rotate(9deg) scale(1); }
  100% { opacity: 0; transform: translate(-4px, -14px) rotate(6deg) scale(0.9); }
}

@keyframes smoke-sheet-rise {
  0% { opacity: 0; transform: translateY(108%); }
  28% { opacity: 0.7; }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes smoke-puff-rise {
  0% { opacity: 0; transform: translate(-50%, 88%) scale(0.42) rotate(var(--smoke-tilt, 0deg)); }
  18% { opacity: 0.9; }
  70% { opacity: 1; }
  100% { opacity: 0.94; transform: translate(-50%, -182%) scale(2.2) rotate(calc(var(--smoke-tilt, 0deg) + 24deg)); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes celebrate {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-24px) rotate(-4deg) scale(1.04); }
  65% { transform: translateY(-8px) rotate(3deg) scale(1.02); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes shocked {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-10px) rotate(-2deg); }
  40% { transform: translateX(10px) rotate(2deg); }
  60% { transform: translateX(-6px) rotate(-1deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}

@keyframes talk {
  0%, 100% { transform: rotate(1deg) scale(1); }
  50% { transform: rotate(-1deg) scale(1.04); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes dots {
  0%, 70%, 100% { opacity: 0.3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

@keyframes status-think {
  from { opacity: 0.45; transform: translateX(-1px) scale(0.8); }
  to { opacity: 1; transform: translateX(2px) scale(1.18); }
}

@keyframes status-hop {
  0%, 100% { transform: translateY(0) rotate(0); }
  24% { transform: translateY(-12px) rotate(-3deg) scale(1.06); }
  48% { transform: translateY(2px) rotate(2deg) scale(0.98); }
  68% { transform: translateY(-4px) rotate(-1deg); }
  84% { transform: translateY(1px) rotate(0.5deg); }
}

@keyframes oracle-poke {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  16% { transform: translateY(7px) rotate(-2deg) scaleX(1.08) scaleY(0.9); }
  38% { transform: translateY(-25px) rotate(4deg) scaleX(0.94) scaleY(1.08); }
  60% { transform: translateY(-4px) rotate(-3deg) scale(1.02); }
  78% { transform: translateY(-10px) rotate(1deg) scale(1.01); }
}

@keyframes oracle-poke-image {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  18% { transform: translateY(7px) rotate(-2deg) scaleX(1.07) scaleY(0.91); }
  42% { transform: translateY(-23px) rotate(4deg) scaleX(0.95) scaleY(1.07); }
  66% { transform: translateY(-4px) rotate(-2deg) scale(1.02); }
}

@keyframes hint-nudge {
  0%, 100% { opacity: 0.56; transform: translate(0, 0) rotate(2deg); }
  50% { opacity: 0.92; transform: translate(-5px, -3px) rotate(0deg); }
}

@keyframes thinking-spin {
  to { transform: rotate(360deg); }
}

@keyframes thinking-question {
  0%, 100% { transform: translateY(0) scale(0.94) rotate(-3deg); opacity: 0.75; }
  50% { transform: translateY(-5px) scale(1.06) rotate(3deg); opacity: 1; }
}

@keyframes thinking-blip {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes thinking-scan {
  to { transform: translateX(100%); }
}

@keyframes thinking-dot-hop {
  0%, 60%, 100% { opacity: 0.36; transform: translateY(0) scale(0.8); }
  30% { opacity: 1; transform: translateY(-7px) scale(1); }
}

@keyframes mobile-oracle-ring {
  to { transform: rotate(360deg); }
}

@keyframes mobile-oracle-clunk {
  0%, 100% { transform: rotate(0) scale(1); }
  35% { transform: rotate(-7deg) scale(0.92); }
  64% { transform: rotate(5deg) scale(1.08); }
}

@media (max-width: 980px) {
  .header-controls {
    gap: 6px;
  }

  .audio-toggle {
    padding-inline: 9px;
  }

  .game-shell {
    grid-template-columns: minmax(260px, 0.78fr) minmax(470px, 1.22fr);
    gap: 16px;
  }

  .oracle-stage {
    min-height: 570px;
  }

  .speech-bubble {
    right: -5%;
    width: 86%;
  }

  .screen {
    padding: 38px;
  }

  .result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-actions .wiki-button {
    grid-column: 1 / -1;
  }

  .creator-credits {
    flex-wrap: wrap;
    gap: 5px;
  }

  .creator-credit {
    padding-right: 7px;
  }
}

@media (min-width: 781px) and (max-height: 850px) {
  .site-header {
    min-height: 68px;
  }

  .game-shell {
    height: calc(100vh - 124px);
    height: calc(100dvh - 124px);
    min-height: 0;
  }

  .oracle-stage,
  .game-panel {
    height: calc(100vh - 124px);
    height: calc(100dvh - 124px);
    min-height: 0;
  }

  .oracle-character-button,
  .oracle-character {
    max-height: min(535px, calc(100dvh - 164px));
  }

  .oracle-aura {
    width: min(470px, 66vh);
    bottom: 34px;
  }

  .speech-bubble {
    top: 8px;
    min-height: 74px;
    padding: 12px 18px;
    font-size: clamp(12px, 1.2vw, 15px);
  }

  .oracle-click-hint {
    bottom: 94px;
  }

  .oracle-nameplate {
    bottom: 3px;
    padding-block: 8px 9px;
  }

  .screen {
    padding: clamp(22px, 3.6vh, 34px);
  }

  .vehicle-portrait {
    width: min(300px, 100%);
    margin-bottom: 10px;
  }

  .screen-guess h2 {
    font-size: clamp(32px, 4vw, 48px);
  }

  .vehicle-tagline {
    margin-bottom: 12px;
  }

  .confidence-box {
    margin-bottom: 12px;
    padding-block: 9px;
  }

  .vehicle-roast {
    margin-bottom: 11px;
    line-height: 1.55;
  }

  .reason-list {
    margin-bottom: 14px;
    gap: 5px;
  }

  .reason-list li {
    padding-block: 6px;
    line-height: 1.42;
  }

  .wiki-button,
  .secondary-button,
  #x-share-button {
    min-height: 50px;
  }

  .text-button {
    margin-top: 9px;
  }

  footer {
    height: 56px;
    min-height: 56px;
    padding: 6px 0 8px;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 76px;
    gap: 12px;
  }

  .header-chip {
    display: flex;
    flex: 0 0 auto;
    max-width: 150px;
    padding: 6px 9px;
    font-size: 9px;
    letter-spacing: 0.035em;
  }

  .header-controls {
    min-width: 0;
    gap: 6px;
  }

  .audio-toggle {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .audio-bars {
    width: 16px;
    flex-basis: 16px;
  }

  .game-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-top: 0;
  }

  .oracle-stage {
    min-height: 420px;
    align-items: flex-end;
  }

  .oracle-character-button {
    width: min(430px, 94vw);
    max-height: 390px;
  }

  .oracle-character {
    width: 100%;
    max-height: 390px;
  }

  .oracle-aura {
    width: 410px;
    bottom: 20px;
  }

  #magic-clunk {
    right: 5%;
  }

  .speech-bubble {
    top: 5px;
    right: 4%;
    width: min(320px, 72%);
    min-height: 76px;
    padding: 13px 16px;
    font-size: 13px;
  }

  .oracle-nameplate {
    bottom: -1px;
  }

  .oracle-click-hint {
    right: 5%;
    bottom: 88px;
  }

  .game-panel {
    min-height: 570px;
  }

  footer {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px 0 28px;
  }

  .footer-copy {
    flex: 1 1 300px;
  }

  .creator-credits {
    margin-left: auto;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .site-header,
  .game-shell,
  footer {
    width: min(100% - 24px, 1260px);
  }

  .brand strong {
    font-size: 10px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-header {
    min-height: 112px;
    flex-wrap: wrap;
    align-content: center;
    padding: 9px 0;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .header-chip {
    margin-left: 0;
    max-width: 158px;
  }

  .audio-toggle {
    max-width: calc(100% - 166px);
  }

  #audio-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .oracle-stage {
    min-height: 356px;
  }

  .oracle-character-button,
  .oracle-character {
    max-height: 330px;
  }

  .oracle-aura {
    width: 350px;
  }

  #magic-clunk {
    top: 11%;
    right: 7%;
    font-size: 25px;
  }

  .speech-bubble {
    top: 0;
    width: 68%;
    min-height: 66px;
    border-width: 2px;
    font-size: 11px;
    box-shadow: 5px 6px 0 rgba(7, 1, 13, 0.55);
  }

  .speech-bubble::after {
    bottom: -17px;
    width: 22px;
    height: 22px;
    border-width: 0 2px 2px 0;
  }

  .oracle-nameplate {
    width: 72%;
    padding: 8px 14px 9px;
  }

  .oracle-nameplate strong {
    font-size: 17px;
  }

  .oracle-click-hint {
    right: 1%;
    bottom: 77px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .game-panel {
    min-height: 590px;
    border-radius: 21px 5px 21px 5px;
  }

  .screen {
    padding: 28px 20px;
  }

  h1 {
    font-size: clamp(35px, 12vw, 50px);
  }

  .feature-row {
    margin-bottom: 25px;
  }

  .screen-question h2 {
    min-height: 124px;
    font-size: 25px;
  }

  .answer {
    min-height: 57px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .answer-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

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

  .vehicle-portrait {
    width: min(330px, 100%);
    margin-bottom: 13px;
  }

  .thinking-orbit {
    width: 116px;
    margin-bottom: 18px;
  }

  .thinking-orbit span:nth-child(1) { left: 50px; }

  .thinking-orbit b {
    font-size: 41px;
  }

  .screen-thinking h2 {
    font-size: 30px;
  }

  .screen-thinking > p {
    margin-bottom: 20px;
    font-size: 11px;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  footer p {
    margin-top: 6px;
    text-align: center;
  }

  .creator-credits {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  .creator-credit strong {
    font-size: 9px;
  }

  .credit-suno {
    order: 3;
  }

  .credit-tooltip {
    position: fixed;
    right: 16px !important;
    bottom: 18px;
    left: 16px !important;
    width: auto;
    transform: translateY(9px) rotate(-0.5deg) scale(0.97);
  }

  .credit-tooltip::after,
  .credit-ai .credit-tooltip::after {
    display: none;
  }

  .creator-credit:hover .credit-tooltip,
  .creator-credit:focus-visible .credit-tooltip,
  .credit-ai:hover .credit-tooltip,
  .credit-ai:focus-visible .credit-tooltip {
    transform: translateY(0) rotate(-0.5deg) scale(1);
  }

  .f45-omen img {
    object-position: 50% 50%;
  }

  .f45-omen span {
    display: none;
  }

  body[data-screen="start-screen"] .f45-omen {
    opacity: 0.2;
  }

  #smoke-curtain span {
    filter: blur(3px);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    flex-wrap: nowrap;
    align-content: normal;
    gap: 8px;
    padding: 7px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-chip {
    display: none;
  }

  .header-controls {
    width: auto;
    margin-left: auto;
  }

  .audio-toggle {
    max-width: min(178px, 48vw);
  }

  #audio-label {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .game-shell {
    min-height: 0;
    display: block;
  }

  .oracle-stage {
    display: none;
  }

  .game-panel {
    min-height: 0;
    display: block;
    overflow: hidden;
    border-radius: 21px 5px 21px 5px;
  }

  body[data-screen="start-screen"] .mobile-oracle-start {
    position: relative;
    z-index: 7;
    min-height: 176px;
    display: grid;
    grid-template-columns: minmax(142px, 46%) minmax(0, 1fr);
    align-items: end;
    gap: 4px;
    margin: 8px 10px 0;
    padding: 5px 10px 0 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 90, 0.2);
    border-radius: 18px 5px 18px 5px;
    background:
      radial-gradient(circle at 25% 64%, rgba(255, 212, 90, 0.18), transparent 44%),
      linear-gradient(135deg, rgba(97, 35, 137, 0.24), transparent 58%),
      rgba(16, 4, 29, 0.88);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
  }

  .mobile-oracle-start-character {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    max-height: 176px;
    display: block;
    align-self: end;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.48));
    transform: translateY(2px);
  }

  .mobile-oracle-start-speech {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-height: 72px;
    display: grid;
    place-items: center;
    margin: 0 0 4px;
    padding: 10px 11px;
    border: 2px solid #2a123c;
    border-radius: 14px 14px 14px 4px;
    color: #26102f;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.62;
    text-align: left;
    background: #fffaf1;
    box-shadow: 4px 5px 0 rgba(7, 1, 13, 0.46);
  }

  .mobile-oracle-start-speech::before {
    content: "";
    position: absolute;
    top: 24px;
    left: -9px;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid #2a123c;
    border-left: 2px solid #2a123c;
    background: #fffaf1;
    transform: rotate(45deg);
  }

  .mobile-oracle-start-nameplate {
    position: relative;
    left: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: 100%;
    margin: 0 0 8px;
    padding: 6px 7px 7px;
    border-radius: 8px 3px 8px 3px;
    transform: none;
  }

  .mobile-oracle-start-nameplate span {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .mobile-oracle-start-nameplate strong {
    margin: 1px 0;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: 0.02em;
  }

  .mobile-oracle-start-nameplate small {
    font-size: 7px;
  }

  .mobile-oracle-card {
    position: relative;
    z-index: 7;
    display: grid;
    grid-template-columns: clamp(72px, 21vw, 88px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 10px 10px 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 215, 90, 0.2);
    border-radius: 18px 5px 18px 5px;
    background:
      linear-gradient(135deg, rgba(255, 212, 90, 0.07), transparent 46%),
      rgba(16, 4, 29, 0.88);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
  }

  body[data-screen="start-screen"] .mobile-oracle-card {
    display: none;
  }

  .screen {
    padding: 22px 18px 26px;
  }

  h1 {
    font-size: clamp(35px, 12vw, 42px);
  }

  .screen-question h2 {
    min-height: 0;
    margin-bottom: 8px;
    font-size: clamp(21px, 6.5vw, 27px);
    line-height: 1.38;
  }

  .question-note {
    min-height: 0;
    margin-bottom: 14px;
  }

  .answer-grid {
    gap: 8px;
  }

  .answer {
    min-height: 53px;
    padding: 7px 9px;
  }

  .answer-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .thinking-orbit {
    margin-bottom: 14px;
  }

  .screen-thinking h2 {
    font-size: clamp(27px, 8.5vw, 34px);
  }

  .screen-thinking > p {
    margin-bottom: 18px;
  }

  .vehicle-portrait {
    width: min(300px, 100%);
  }

  .screen-guess h2,
  .screen-exhausted h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

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

  br.is-pc-only {
    display: none;
  }

  #x-share-button > span:last-child {
    white-space: nowrap;
  }

  .creator-credits {
    display: none;
  }

  .mobile-about {
    display: block;
    width: 100%;
  }

  footer {
    margin-top: 12px;
    padding: 8px 0 12px;
    gap: 8px;
  }

  .footer-copy {
    flex: none;
  }

  .footer-copy p {
    margin-top: 2px;
    line-height: 1.45;
  }
}

@media (max-width: 360px) {
  .mobile-oracle-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 8px;
  }

  .mobile-oracle-speech {
    min-height: 51px;
    padding: 8px 9px;
    font-size: 10px;
  }

  .screen {
    padding-inline: 14px;
  }

  .answer {
    font-size: 10px;
  }
}

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

  canvas.f45-confetti {
    display: none;
  }
}
