:root {
  --bg-1: #100d1a;
  --bg-2: #211934;
  --ink: #fff8ef;
  --muted: #c8bfd7;
  --panel: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 113, 174, 0.18), transparent 28%),
    radial-gradient(circle at 85% 90%, rgba(87, 226, 255, 0.17), transparent 28%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255,255,255,.75) 0.6px, transparent 0.6px);
  background-size: 12px 12px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.ambient {
  position: fixed;
  width: 35vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .18;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}
.ambient-a { top: -12vw; left: -10vw; background: #ff4f9c; }
.ambient-b { right: -12vw; bottom: -14vw; background: #3fe0ff; animation-delay: -4s; }

.game-shell {
  width: min(1100px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 4px 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}


.ad-slot {
  width: 100%;
  min-height: 56px;
  margin: 0 auto 16px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.12);
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  padding: 16px 12px 8px;
}
.ad-slot .adsbygoogle {
  width: 100%;
  min-height: 50px;
}
.ad-label {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: rgba(255,255,255,.28);
  pointer-events: none;
}
.hero { text-align: center; margin-bottom: 8px; }
.logo-heading { margin: 0; line-height: 0; }
.site-logo-picture {
  display: block;
  width: min(900px, 100%);
  margin: 0 auto;
}
.site-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.2));
}
.secondary-tagline {
  margin: -3px auto 0;
  color: var(--muted);
  font-size: clamp(.74rem, 1.45vw, .92rem);
  font-style: italic;
  font-weight: 650;
  letter-spacing: .05em;
  min-height: 1.2em;
}
.tagline { margin: 2px 0 0; color: rgba(255,255,255,.58); font-size: clamp(.9rem, 1.8vw, 1.05rem); }
.tagline strong { font-weight: 900; }

.choice-panel {
  min-height: 270px; /* Reserve space before the image inventory fills the initial choices. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 2.6vw, 28px);
  align-items: center;
}

.choice {
  position: relative;
  min-height: 270px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.choice::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.18) 45%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .5s ease;
}
.choice:hover { transform: translateY(-7px) rotate(-.3deg); border-color: rgba(255,255,255,.35); box-shadow: 0 30px 90px rgba(0,0,0,.42); }
.choice:hover::after { transform: translateX(110%); }
.choice:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 4px; }
.choice.clicked { animation: buttonPop .26s ease; }
.choice-icon { font-size: clamp(4.5rem, 9vw, 7rem); filter: drop-shadow(0 16px 28px rgba(0,0,0,.3)); line-height: 1; }
.choice-label { margin-top: 12px; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 950; letter-spacing: .08em; }
.choice-sub { margin-top: 8px; color: rgba(255,255,255,.64); font-size: .9rem; font-weight: 700; }
.choice.crab { background: radial-gradient(circle at 50% 32%, rgba(255, 128, 93, .28), transparent 48%), linear-gradient(160deg, rgba(255, 99, 102, .18), rgba(255,255,255,.03)); }
.choice.skrimp { background: radial-gradient(circle at 50% 32%, rgba(86, 220, 255, .24), transparent 48%), linear-gradient(160deg, rgba(96, 170, 255, .16), rgba(255,255,255,.03)); }

.versus {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .08em;
}

.thinking {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.thinking-orbit { width: 170px; height: 170px; position: relative; animation: spin 2.8s linear infinite; }
.thinking-orbit::before, .thinking-orbit::after {
  content: ""; position: absolute; inset: 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
}
.thinking-orbit::after { inset: 43px; opacity: .6; }
.thinking-orbit span { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 30px rgba(255,255,255,.8); }
.thinking-orbit span:nth-child(1) { top: 8px; left: 76px; }
.thinking-orbit span:nth-child(2) { right: 4px; bottom: 52px; }
.thinking-orbit span:nth-child(3) { left: 16px; bottom: 30px; }
.thinking-text { margin-top: 24px; font-weight: 900; letter-spacing: .12em; font-size: clamp(1rem, 2vw, 1.2rem); }
.thinking-dots { display: flex; gap: 8px; margin-top: 10px; }
.thinking-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; animation: blink 1s infinite; }
.thinking-dots i:nth-child(2) { animation-delay: .2s; }
.thinking-dots i:nth-child(3) { animation-delay: .4s; }

.result { display: grid; place-items: center; }
.result-card {
  width: min(560px, 100%);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(13, 10, 23, .62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px) scale(.98);
}
.result-card.reveal { opacity: 1; transform: translateY(0) scale(1); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.result-card.win { border-color: rgba(102, 255, 185, .42); }
.result-card.lose { border-color: rgba(255, 143, 143, .35); }
.result-badge { font-size: .72rem; letter-spacing: .2em; font-weight: 900; color: var(--muted); }
.creature-frame {
  margin: 11px auto;
  width: min(350px, 100%);
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: radial-gradient(circle at center, rgba(255,255,255,.1), rgba(255,255,255,.02));
  display: grid;
  place-items: center;
}
.creature-frame.empty::before { content: "DROP A CREATURE IMAGE IN THE FOLDER"; padding: 20px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.creature-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.answer-line { color: var(--muted); font-size: .88rem; font-weight: 800; }
.result-card h2 { margin: 7px 0 4px; font-size: clamp(2rem, 5.4vw, 3.1rem); letter-spacing: -.04em; }
.result-card.win h2 { text-shadow: 0 0 32px rgba(114, 255, 183, .28); }
.result-card.level-unlocked {
  border-color: rgba(102, 255, 185, .72);
  box-shadow: 0 0 0 1px rgba(102, 255, 185, .14), 0 24px 90px rgba(0,0,0,.35), 0 0 44px rgba(102,255,185,.12);
}
.result-card.level-unlocked .again {
  padding: 16px 28px;
  font-size: clamp(.92rem, 2.1vw, 1.08rem);
  background: #66ffb9;
  color: #102018;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 12px 34px rgba(0,0,0,.25), 0 0 32px rgba(102,255,185,.32);
  animation: levelUnlockedPulse .82s cubic-bezier(.2,.8,.2,1) both;
}
.result-card.lose h2 { text-shadow: 0 0 32px rgba(255, 141, 141, .24); }
.result-card p { max-width: 480px; margin: 0 auto 10px; color: var(--muted); }
.result-card #resultMessage { font-style: italic; font-weight: 650; }
.again { border: 0; border-radius: 999px; padding: 14px 23px; font: inherit; font-weight: 950; letter-spacing: .08em; cursor: pointer; background: var(--ink); color: #1a1522; transition: transform .18s ease, box-shadow .18s ease; }
.again:hover { transform: translateY(-2px); box-shadow: 0 13px 32px rgba(0,0,0,.25); }
.again:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 4px; }

.footer { margin-top: 18px; text-align: center; color: rgba(255,255,255,.48); font-size: .7rem; letter-spacing: .16em; font-weight: 800; }
.footer-dot { padding: 0 8px; }
.footer-links { margin-top: 7px; }
.footer a { color: rgba(255,255,255,.58); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

[hidden] { display: none !important; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4vw,3vh,0) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%,100%{ opacity:.25; transform:scale(.8); } 50%{ opacity:1; transform:scale(1.15); } }
@keyframes buttonPop { 0%{ transform:scale(1); } 45%{ transform:scale(.95) rotate(1deg); } 100%{ transform:scale(1); } }
@keyframes levelUnlockedPulse {
  0% { transform: scale(.92); opacity: .72; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 7px 20px rgba(0,0,0,.18), 0 0 0 rgba(102,255,185,0); }
  55% { transform: scale(1.06); opacity: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.42), 0 13px 34px rgba(0,0,0,.25), 0 0 36px rgba(102,255,185,.38); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 760px) {
  .game-shell { width: min(100% - 20px, 620px); padding-top: 0; padding-bottom: 16px; }
  .ad-slot { min-height: 48px; margin-bottom: 10px; border-radius: 12px; }
  .hero { margin-bottom: 8px; }
  .site-logo-picture { width: min(600px, 100%); }
  .choice-panel:not(.secondary-choice-panel) { min-height: 480px; }
  .secondary-tagline { margin-top: 0; font-size: .8rem; }
  .choice-panel { grid-template-columns: 1fr; }
  .choice { min-height: 205px; padding: 16px; }
  .versus { margin: -4px auto; width: 42px; height: 42px; font-size: .68rem; }
  .choice-icon { font-size: 4.8rem; }
  .result-card { padding: 16px; }
  .creature-frame { margin: 11px auto; }
  .result-card h2 { line-height: .98; }
  .result-card p { margin-bottom: 12px; }
  .footer { margin-top: 14px; }
}


.footer-copyright {
  margin-top: 8px;
  font-size: 0.82rem;
  opacity: 0.58;
}

/* V2.2 arcade test additions */
.score-hud {
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 8px 15px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
}
.score-hud strong { color: var(--ink); }
.hud-divider { padding: 0 7px; color: rgba(255,255,255,.3); }

.secondary-choice-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.secondary-choice {
  min-height: 92px;
  padding: 15px 12px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  box-shadow: 0 14px 44px rgba(0,0,0,.22);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.secondary-choice:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.11); }
.secondary-choice:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 4px; }
.secondary-choice.clicked { animation: buttonPop .26s ease; }
.secondary-choice-label { display: block; font-size: clamp(.9rem, 1.7vw, 1.15rem); line-height: 1.1; }
.secondary-choice-sub { display: block; margin-top: 7px; color: var(--muted); font-size: .65rem; letter-spacing: .06em; font-weight: 700; text-transform: none; }

.high-scores {
  width: min(620px, 100%);
  margin: auto auto 0;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(0,0,0,.16);
  overflow: hidden;
}
.high-scores summary {
  padding: 11px 15px;
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
  list-style: none;
}
.high-scores summary::-webkit-details-marker { display: none; }
.high-scores summary::before { content: '▶ '; font-size: .62rem; }
.high-scores[open] summary::before { content: '▼ '; }
.leaderboard-wrap { padding: 4px 14px 14px; }
.leaderboard-wrap table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.leaderboard-wrap th, .leaderboard-wrap td { padding: 7px 5px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: center; }
.leaderboard-wrap th { color: rgba(255,255,255,.35); font-size: .56rem; letter-spacing: .14em; }
.leaderboard-wrap td { color: var(--muted); font-size: .78rem; font-weight: 800; }
.leaderboard-wrap td:first-child { width: 20%; }
.leaderboard-wrap td:nth-child(2) { color: var(--ink); letter-spacing: .14em; }
.leaderboard-wrap td:last-child { width: 35%; text-align: right; color: var(--ink); }
.empty-score { text-align: center !important; color: rgba(255,255,255,.28) !important; letter-spacing: .1em; }
.leaderboard-status { margin: 10px 0 0; text-align: center; color: rgba(255,255,255,.32); font-size: .64rem; }

.score-submit {
  margin: 14px auto 4px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.score-submit-title { font-size: .82rem; font-weight: 950; letter-spacing: .16em; }
.score-submit-copy { margin-top: 4px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .16em; }
.score-submit form { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 10px; }
#tagInput {
  width: 76px;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  color: var(--ink);
  text-align: center;
  text-transform: uppercase;
  font: inherit;
  font-weight: 950;
  letter-spacing: .16em;
}
#tagInput:focus { outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }
.score-save { border: 0; border-radius: 999px; padding: 10px 13px; background: var(--ink); color: #1a1522; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 950; letter-spacing: .06em; }
.score-submit-status { min-height: 1.15em; margin-top: 8px; color: var(--muted); font-size: .68rem; font-weight: 800; }

@media (max-width: 760px) {
  .score-hud { font-size: .58rem; padding: 7px 10px; letter-spacing: .09em; }
  .hud-divider { padding: 0 4px; }
  .secondary-choice-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secondary-choice { min-height: 78px; }
  .score-submit form { flex-direction: column; }
  .score-save { width: 100%; }
  #tagInput { width: 90px; }
}


/* V3 beta: category thumbnails, base-category icons, All-or-Nothing, and result animations */
.secondary-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 108px;
}
.secondary-choice-thumb,
.secondary-choice-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 14px;
}
.secondary-choice-thumb {
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.05);
}
.secondary-choice-icon {
  display: grid;
  place-items: center;
  font-size: 2.65rem;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.28));
}
.secondary-choice-text {
  min-width: 0;
  text-align: left;
}
.secondary-choice-label { overflow-wrap: anywhere; }

/* Center an incomplete final row instead of leaving an orphaned category flush-left. */
@media (min-width: 761px) {
  .secondary-choice-panel > .secondary-choice:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    width: calc((100% - 28px) / 3);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .secondary-choice-panel > .secondary-choice:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    width: calc((100% - 14px) / 2);
    justify-self: center;
  }
}

.all-in-status {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 14px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 214, 102, .42);
  border-radius: 999px;
  background: rgba(255, 198, 74, .10);
  color: #ffe4a8;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-align: center;
}
.all-in-offer {
  margin: 15px auto 7px;
  padding: 16px;
  border: 1px solid rgba(255, 214, 102, .38);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 205, 74, .11), rgba(255,255,255,.035));
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.all-in-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 950;
  letter-spacing: .13em;
}
.all-in-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.all-in-copy strong { color: var(--ink); }
.all-in-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.all-in-action {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  cursor: pointer;
}
.go-all-in { background: var(--ink); color: #1a1522; }
.keep-playing { background: rgba(255,255,255,.10); color: var(--ink); border: 1px solid rgba(255,255,255,.15); }
.all-in-action:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 3px; }

@keyframes resultWinPop {
  0% { transform: scale(.88); opacity: .35; }
  55% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes resultWinBounce {
  0%,100% { transform: translateY(0); }
  35% { transform: translateY(-12px); }
  65% { transform: translateY(3px); }
}
@keyframes resultWinPulse {
  0%,100% { transform: scale(1); }
  45% { transform: scale(1.07); }
}
@keyframes resultWinFloat {
  0% { transform: translateY(10px) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0); }
}
@keyframes resultWinCelebrate {
  0% { transform: rotate(0); }
  25% { transform: rotate(-5deg) scale(1.03); }
  50% { transform: rotate(5deg) scale(1.06); }
  75% { transform: rotate(-3deg) scale(1.03); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes resultLoseShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
@keyframes resultLoseDroop {
  0% { transform: translateY(0) rotate(0); }
  55% { transform: translateY(8px) rotate(3deg); }
  100% { transform: translateY(4px) rotate(1deg); }
}
@keyframes resultLoseTilt {
  0% { transform: rotate(0); }
  45% { transform: rotate(8deg); }
  100% { transform: rotate(0); }
}
@keyframes resultLoseSink {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(10px) scale(.96); }
  100% { transform: translateY(4px) scale(.985); }
}
@keyframes resultLoseWobble {
  0%,100% { transform: rotate(0); }
  30% { transform: rotate(-4deg); }
  60% { transform: rotate(4deg); }
}

.creatureImage, #creatureImage { will-change: transform; }
#creatureImage.win-pop { animation: resultWinPop .55s cubic-bezier(.2,.85,.3,1) both; }
#creatureImage.win-bounce { animation: resultWinBounce .62s ease-out both; }
#creatureImage.win-pulse { animation: resultWinPulse .58s ease-in-out both; }
#creatureImage.win-float { animation: resultWinFloat .66s ease-out both; }
#creatureImage.win-celebrate { animation: resultWinCelebrate .72s ease-in-out both; }
#creatureImage.lose-shake { animation: resultLoseShake .52s ease-out both; }
#creatureImage.lose-droop { animation: resultLoseDroop .62s ease-out both; }
#creatureImage.lose-tilt { animation: resultLoseTilt .56s ease-in-out both; }
#creatureImage.lose-sink { animation: resultLoseSink .58s ease-out both; }
#creatureImage.lose-wobble { animation: resultLoseWobble .58s ease-in-out both; }

@media (max-width: 760px) {
  .secondary-choice { min-height: 92px; padding: 11px 9px; }
  .secondary-choice-thumb,
  .secondary-choice-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .secondary-choice-icon { font-size: 2.2rem; }
  .all-in-actions { flex-direction: column; }
  .all-in-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #creatureImage.win-pop,
  #creatureImage.win-bounce,
  #creatureImage.win-pulse,
  #creatureImage.win-float,
  #creatureImage.win-celebrate,
  #creatureImage.lose-shake,
  #creatureImage.lose-droop,
  #creatureImage.lose-tilt,
  #creatureImage.lose-sink,
  #creatureImage.lose-wobble {
    animation: none !important;
  }
}

/* V3.1 Quickstore integration */
.hero-store-link-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: min(900px, 100%);
  margin: -10px auto 2px;
  padding: 0 2px;
  position: relative;
  z-index: 3;
}
.store-top-link,
.feedback-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(16,13,26,.64);
  color: var(--ink);
  text-decoration: none;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .16em;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.store-top-link:hover,
.feedback-top-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
}
.store-top-link:focus-visible,
.feedback-top-link:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

.store-promo {
  width: min(900px, 100%);
  margin: 20px auto 8px;
  padding: 18px 18px 20px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.025));
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  text-align: center;
}
.store-promo-kicker {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .2em;
}
.store-promo h2 {
  margin: 7px auto 14px;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.store-promo-picture {
  display: block;
  width: 100%;
}
.store-promo-image-link {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
}
.store-promo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  transition: transform .22s ease;
}
.store-promo-image-link:hover .store-promo-image {
  transform: scale(1.012);
}
.store-promo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #1a1522;
  text-decoration: none;
  font: inherit;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .1em;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  transition: transform .16s ease, box-shadow .16s ease;
}
.store-promo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}
.store-promo-button:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .hero-store-link-row {
    margin-top: -5px;
    padding-right: 2px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .store-top-link,
  .feedback-top-link { min-width: 68px; padding: 6px 11px; font-size: .56rem; }
  .store-promo { margin-top: 14px; padding: 13px 10px 15px; border-radius: 18px; }
  .store-promo-image { max-height: 360px; }
  .store-promo-button { width: 100%; }
}



.store-promo-divider {
  width: min(900px, 100%);
  margin: 18px auto 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.store-promo-window-note {
  margin-top: 7px;
  color: rgba(255,255,255,.42);
  font-size: .58rem;
  font-style: italic;
  letter-spacing: .04em;
}
.store-promo.store-promo-win {
  width: min(560px, 100%);
  margin-top: 10px;
  padding: 12px 12px 14px;
  border-radius: 20px;
}
.store-promo.store-promo-win .store-promo-kicker { font-size: .58rem; }
.store-promo.store-promo-win h2 { margin: 5px auto 9px; font-size: clamp(.94rem, 2vw, 1.2rem); }
.store-promo.store-promo-win .store-promo-image-link { border-radius: 14px; }
.store-promo.store-promo-win .store-promo-image { max-height: 235px; width: 100%; object-fit: contain; }
.store-promo.store-promo-win .store-promo-button { margin-top: 9px; padding: 9px 14px; font-size: .62rem; }
.store-promo.store-promo-win .store-promo-window-note { margin-top: 5px; font-size: .52rem; }

/* V3.3 beta experience additions */
.high-score-notice {
  margin: 14px auto 5px;
  padding: 13px 15px;
  border: 1px solid rgba(102, 255, 185, .38);
  border-radius: 16px;
  background: rgba(102, 255, 185, .08);
  color: var(--ink);
  text-align: center;
}
.high-score-notice strong {
  display: block;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .14em;
}
.high-score-notice span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}
.result-feedback-link {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255,255,255,.48);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
}
.result-feedback-link:hover { color: var(--ink); text-decoration: underline; }
.result-feedback-link:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 3px; }
.all-in-note {
  display: block;
  margin-top: 8px;
  color: #ffe4a8;
  font-size: .68rem;
  font-weight: 800;
}
.secondary-choice-thumb,
.secondary-choice-icon,
.choice-icon {
  will-change: transform;
}
.icon-hover-reaction { animation: iconHoverReaction .32s ease-out 1; }
@keyframes iconHoverReaction {
  0% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.07) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .icon-hover-reaction { animation: none !important; }
  .result-card.level-unlocked .again { animation: none !important; }
}
