/* Little Sprout Games — shared touch-first design */
:root {
  --ink: #25304a;
  --muted: #65708a;
  --purple: #7257dc;
  --purple-dark: #4d389f;
  --pink: #ff7094;
  --blue: #4d83ff;
  --yellow: #ffc83d;
  --mint: #3cc89d;
  --orange: #ff9657;
  --line: #e7eaf3;
  --shadow: 0 12px 28px rgba(53, 45, 109, .13);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #fff7e8 0%, #f4f2ff 55%, #ecfbf7 100%);
  font-family: ui-rounded, "Nunito", system-ui, -apple-system, sans-serif;
}
button, a { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 4px solid #f2ae34; outline-offset: 3px; }
.app { width: min(100%, 650px); margin: 0 auto; padding: 14px 16px 32px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
/* Nav link uses class "back". Do not give .back rotateY — only .face.back flips. */
a.back, .topbar .back { transform: none; }
.back { display: inline-flex; align-items: center; min-height: 64px; min-width: 64px; gap: 5px; padding: 9px 13px; color: var(--purple); font-weight: 900; text-decoration: none; background: #fff; border-radius: 15px; box-shadow: 0 4px 12px #5f4fc314; touch-action: manipulation; }
.brand { color: #9472d6; font-size: 13px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.hero { margin: 4px auto 17px; text-align: center; }
.hero h1 { margin: 0 0 9px; font-size: clamp(29px, 8vw, 46px); line-height: 1; letter-spacing: -.04em; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; font-weight: 750; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pill { padding: 8px 13px; color: var(--ink); font-size: 14px; font-weight: 900; background: #fff; border: 2px solid var(--line); border-radius: 999px; box-shadow: 0 4px 12px #5f4fc30b; }
.prompt { margin-bottom: 14px; padding: 16px 17px; text-align: center; background: #fff; border: 2px solid #fff; border-radius: 24px; box-shadow: var(--shadow); }
.prompt .eyebrow { margin-bottom: 4px; color: #8879b9; font-size: 12px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.prompt h2 { margin: 0; font-size: clamp(22px, 6vw, 34px); line-height: 1.12; }
.hint { margin: 7px 0 0; color: var(--muted); font-size: 14px; font-weight: 750; }
.visual-prompt { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 84px; }
.visual-prompt .copy { text-align: left; }
.target-tile { display: grid; place-items: center; width: 82px; height: 82px; flex: 0 0 82px; color: #fff; font-size: 48px; font-weight: 950; background: linear-gradient(145deg, #8a74ec, #574fc5); border: 4px solid #fff; border-radius: 22px; box-shadow: 0 7px 14px #5a56c933; }
.board { min-height: 230px; padding: 14px; background: rgba(255,255,255,.68); border: 2px solid rgba(255,255,255,.86); border-radius: 27px; box-shadow: var(--shadow); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: grid; place-items: center; min-width: 64px; min-height: 76px; padding: 8px; color: var(--ink); background: #fff; border: 3px solid #fff; border-radius: 21px; box-shadow: 0 6px 13px #45358c18; touch-action: manipulation; transition: transform .12s, filter .12s, box-shadow .18s; }
.choice:active, .tap-target:active { transform: scale(.93); }
.choice.correct { background: #dffff2 !important; animation: pop .42s ease; }
.choice.wrong { animation: shake .32s ease; filter: saturate(.7); }
.tap-target { min-width: 64px; min-height: 64px; touch-action: manipulation; }
.replay, .sound-toggle { min-height: 64px; padding: 9px 15px; color: var(--purple); font-weight: 900; background: #fff; border: 2px solid var(--line); border-radius: 15px; touch-action: manipulation; }
.replay { display: block; margin: 16px auto 0; }
.sound-toggle { display: block; margin: 10px auto 0; font-size: 13px; }
.sound-toggle[aria-pressed="false"] { color: var(--muted); }
.progress-line { margin: 10px 0 0; color: var(--purple); font-size: 16px; font-weight: 950; }
.progress-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 2px auto 9px; }
.progress-dot { display: grid; place-items: center; width: 38px; height: 38px; color: #7c8498; font-size: 17px; font-weight: 950; background: #f0f1f7; border: 3px solid #e2e4ed; border-radius: 50%; }
.progress-dot.done { color: #fff; background: var(--mint); border-color: var(--mint); }
.progress-dot.next { color: var(--purple); background: #fff4c5; border-color: var(--yellow); transform: scale(1.1); }
.primary { min-height: 64px; padding: 13px 18px; color: #fff; font-weight: 950; background: var(--purple); border: 0; border-radius: 16px; box-shadow: 0 5px 0 var(--purple-dark); touch-action: manipulation; }
.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--purple-dark); }
.success { position: fixed; inset: auto 18px 18px; z-index: 20; padding: 13px 16px; color: #fff; text-align: center; font-size: 17px; font-weight: 950; background: #25304a; border-radius: 18px; box-shadow: 0 8px 24px #25304a33; animation: toast .6s ease both; }
.celebrate-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; pointer-events: none; }
.celebrate-card { padding: 16px 22px; color: #fff; font-size: clamp(21px, 6vw, 30px); font-weight: 950; text-align: center; background: #7257dc; border: 4px solid #fff; border-radius: 24px; box-shadow: 0 14px 35px #40318a55; animation: celebrate-in .7s ease both; }
.particle { position: fixed; z-index: 31; pointer-events: none; font-size: 25px; animation: particle-fly .9s ease-out forwards; }
button:disabled { cursor: default; }

/* Shared visual vocabulary */
.shape { display: block; width: 62px; height: 62px; background: var(--shape-color); }
.circle { border-radius: 50%; }
.square { border-radius: 14px; }
.triangle { width: 0; height: 0; background: transparent; border-right: 34px solid transparent; border-bottom: 62px solid var(--shape-color); border-left: 34px solid transparent; }
.diamond { width: 48px; height: 48px; border-radius: 9px; transform: rotate(45deg); }
.target-shape { display: block; width: 74px; height: 74px; background: var(--shape-color); border: 4px solid #fff; box-shadow: 0 7px 14px #45358c22; }
.target-shape.triangle { width: 0; height: 0; border: 0; border-right: 40px solid transparent; border-bottom: 74px solid var(--shape-color); border-left: 40px solid transparent; background: transparent; box-shadow: none; }
.color-blob { width: 78px; height: 78px; flex: 0 0 78px; background: var(--blob-color); border: 4px solid #fff; border-radius: 50%; box-shadow: inset -9px -10px 0 #00000012, 0 7px 14px #45358c22; }
.letter-target { display: grid; place-items: center; width: 84px; height: 84px; flex: 0 0 84px; color: #fff; font-size: 52px; font-weight: 950; background: linear-gradient(145deg, #8a74ec, #574fc5); border: 4px solid #fff; border-radius: 22px; box-shadow: 0 7px 14px #5a56c933; }
.big-silhouette { display: grid; place-items: center; width: 92px; height: 92px; flex: 0 0 92px; font-size: 69px; filter: grayscale(1) brightness(.24); }
.pattern-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; min-height: 58px; margin: 2px 0 8px; }
.pattern-piece { width: 38px; height: 38px; border: 3px solid #fff; border-radius: 11px; box-shadow: 0 3px 7px #45358c22; }
.pattern-piece.dot { border-radius: 50%; }
.pattern-piece.missing { position: relative; background: #f2f3f7 !important; border: 3px dashed #a9aec0; box-shadow: none; }
.pattern-piece.missing::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; color: #9299ae; font-size: 25px; font-weight: 950; }
.number-chip { display: grid; place-items: center; width: 42px; height: 42px; color: #4b6edb; font-size: 21px; font-weight: 950; background: #fff; border: 3px solid #dfe3ef; border-radius: 50%; }
.number-chip.done { color: #fff; background: var(--mint); border-color: var(--mint); }
.number-chip.next { background: #fff4c5; border-color: var(--yellow); transform: scale(1.12); }

/* Memory cards */
.memory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.memory-card { aspect-ratio: 1; min-width: 64px; min-height: 64px; padding: 0; background: transparent; border: 0; border-radius: 20px; perspective: 700px; touch-action: manipulation; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.25,1); }
.memory-card.flipped .card-inner, .memory-card.matched .card-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 20px; backface-visibility: hidden; }
.face.front { color: #fff; font-size: 34px; font-weight: 950; background: linear-gradient(140deg, #836be7, #5a56c9); box-shadow: inset 0 0 0 4px #ffffff32, 0 6px 11px #5a56c933; }
.face.back { transform: rotateY(180deg); font-size: 49px; background: #fff6d9; box-shadow: inset 0 0 0 4px #ffc95e88; }
.memory-card.matched .face.back { background: #dff9ef; box-shadow: inset 0 0 0 4px #54d6b2, 0 0 0 5px #54d6b244, 0 7px 16px #54d6b255; }

/* Bubbles and balloons */
.bubble-board { display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 10px; min-height: 310px; }
.bubble { width: 74px; height: 74px; max-width: 100%; justify-self: center; border: 3px solid #fff; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #fff9 0 9%, transparent 10%), linear-gradient(145deg, #70ddff, #5a7cff); box-shadow: inset -7px -9px 0 #4168d520, 0 6px 9px #4168d522; touch-action: manipulation; }
.bubble:active { transform: scale(.9); }
.bubble.popped { animation: pop .35s ease forwards; pointer-events: none; opacity: .35; }
.bubble.disabled { opacity: .18; filter: grayscale(.8); pointer-events: none; }
.sky { position: relative; height: 400px; overflow: hidden; background: linear-gradient(#dff4ff, #f5f0ff); }
.balloon { position: absolute; width: 68px; height: 84px; padding: 0; border: 4px solid #fff; border-radius: 50% 50% 48% 48%; background: var(--balloon-color); box-shadow: inset -10px -10px 0 #00000013, 0 5px 9px #25304a20; touch-action: manipulation; animation: rise var(--rise-time) linear forwards; }
.balloon::after { content: ''; position: absolute; top: 100%; left: 50%; width: 2px; height: 30px; background: #7a8192; }
.balloon::before { content: ''; position: absolute; bottom: -6px; left: 26px; border: 6px solid transparent; border-top-color: var(--balloon-color); }
.balloon.disabled { opacity: .22; pointer-events: none; }

@keyframes pop { 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes shake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@keyframes toast { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes celebrate-in { 0% { transform: scale(.72) rotate(-3deg); opacity: 0; } 60% { transform: scale(1.05) rotate(2deg); opacity: 1; } 100% { transform: scale(1); } }
@keyframes particle-fly { to { transform: translate(var(--x), var(--y)) rotate(25deg); opacity: 0; } }
@keyframes rise { from { transform: translateY(90px); } to { transform: translateY(-520px); } }
@media (min-width: 520px) {
  .app { padding-top: 24px; }
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choice { min-height: 96px; }
  .memory { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card-inner { transition: none; }
  .particle { display: none !important; }
  .celebrate-overlay { animation: none; }
  .streak-pill.streak-hot { animation: none; }
}

/* Illustrated storybook worlds — each game gets its own soft scene. */
.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 28px);
  border-radius: 32px;
}
.scene > * { position: relative; z-index: 1; }
.scene::before, .scene::after { content: ''; position: absolute; z-index: 0; pointer-events: none; }
.scene::before { top: -80px; right: -55px; width: 180px; height: 180px; background: #fff8; border-radius: 50%; box-shadow: -210px 90px 0 -40px #fff7, -120px 210px 0 -48px #fff6; }
.scene::after { right: -60px; bottom: -110px; left: -60px; height: 190px; background: #75c98f66; border-radius: 50% 50% 0 0 / 35% 35% 0 0; }
.scene-shape { background: linear-gradient(#bde8ff 0%, #fef4d5 57%, #b8e8b6 100%); }
.scene-count { background: linear-gradient(#82d8f2 0%, #c7f5ed 58%, #66c5a3 100%); }
.scene-animal { background: linear-gradient(#b9dfff 0%, #f9eabf 54%, #83c979 55%, #58ad68 100%); }
.scene-color { background: linear-gradient(145deg, #ffd9e7 0%, #dcd7ff 54%, #ffe99e 100%); }
.scene-letter { background: linear-gradient(#c5d4ff 0%, #fff0c7 57%, #c49a72 58%, #996f56 100%); }
.scene-number { background: linear-gradient(#172957 0%, #51458e 57%, #f3a05b 58%, #d9795e 100%); }
.scene-pattern { background: linear-gradient(#bdeaff 0%, #eddbff 52%, #a6db8e 53%, #69b56b 100%); }
.scene-shadow { background: linear-gradient(#243966 0%, #4c548d 53%, #9bc47a 54%, #5b9968 100%); }
.scene-balloon { background: linear-gradient(#91dfff 0%, #ddf6ff 56%, #9fdc9a 57%, #61b879 100%); }
.scene-fruit { background: linear-gradient(#ffc4d9 0%, #fff0ba 53%, #94d67b 54%, #57ae63 100%); }
.scene-decor { position: absolute !important; z-index: 0 !important; inset: 0; overflow: hidden; pointer-events: none; }
.scene-decor span { position: absolute; font-size: 42px; filter: drop-shadow(0 5px 3px #30456b22); animation: drift 6s ease-in-out infinite; }
.scene-decor .cloud { font-size: 48px; opacity: .75; }
.scene-decor .sun { top: -8px; right: 8%; font-size: 62px; filter: drop-shadow(0 5px 6px #eaa83b55); }
.scene-decor .hill { right: -5%; bottom: 4%; left: -5%; height: 120px; background: #5aa96b88; border-radius: 50% 50% 0 0; animation: none; }
.scene-shape .d1 { top: 142px; left: 7%; }
.scene-shape .d2 { top: 280px; right: 5%; animation-delay: -2s; }
.scene-count .d1 { top: 150px; left: 8%; }
.scene-count .d2 { right: 8%; bottom: 18%; animation-delay: -1.5s; }
.scene-animal .d1 { top: 135px; left: 7%; }
.scene-animal .d2 { right: 6%; bottom: 18%; animation-delay: -2.5s; }
.scene-color .d1 { top: 125px; left: 5%; }
.scene-color .d2 { right: 7%; bottom: 16%; animation-delay: -1.2s; }
.scene-letter .d1 { top: 135px; left: 6%; }
.scene-letter .d2 { right: 6%; bottom: 18%; animation-delay: -2.2s; }
.scene-number .d1 { top: 130px; left: 7%; }
.scene-number .d2 { right: 8%; bottom: 22%; animation-delay: -3s; }
.scene-pattern .d1 { top: 145px; left: 5%; }
.scene-pattern .d2 { right: 7%; bottom: 16%; animation-delay: -1.8s; }
.scene-shadow .d1 { top: 135px; left: 8%; }
.scene-shadow .d2 { right: 6%; bottom: 16%; animation-delay: -2.4s; }
.scene-balloon .d1 { top: 150px; left: 7%; }
.scene-balloon .d2 { right: 8%; bottom: 19%; animation-delay: -1.4s; }
.scene-fruit .d1 { top: 135px; left: 5%; }
.scene-fruit .d2 { right: 6%; bottom: 18%; animation-delay: -2.6s; }
.scene .prompt, .scene .board { background: #fffdf4dd; border-color: #ffffffcc; }
.scene .choice { background: #fffdf9; }
.scene .prompt { backdrop-filter: blur(4px); }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .scene-decor span { animation: none; } }

/* Iter 3 — parent tips, a11y focus, pre-reader visuals */
.parent-tips {
  margin: 18px 0 6px;
  padding: 14px 16px;
  text-align: left;
  background: #fffdf8;
  border: 2px solid #fff;
  border-radius: 20px;
  box-shadow: 0 6px 16px #45358c12;
}
.parent-tips h2 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.parent-tips p { margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.4; }
.parent-tips p:last-child { margin-bottom: 0; }
.parent-tips .age-tip { color: var(--muted); }
.parent-tips a { color: var(--purple); font-weight: 900; text-decoration: none; }
.parent-tips a:hover { text-decoration: underline; }
.parent-tips ul { margin: 0; padding-left: 18px; }
.parent-tips li { margin: 4px 0; color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.35; }
.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.memory-card:focus-visible {
  outline: 4px solid #f2ae34;
  outline-offset: 3px;
}
.memory-card[aria-disabled="true"] { cursor: default; }
.memory-status { margin: 8px 0 0; color: var(--purple); font-size: 13px; font-weight: 900; min-height: 1.2em; }
.sky:focus-within { box-shadow: inset 0 0 0 3px #f2ae3488; }
.balloon:focus-visible {
  outline: 4px solid #f2ae34;
  outline-offset: 4px;
  animation-play-state: paused;
  z-index: 2;
}
.balloon.popped { pointer-events: none; opacity: 0; transform: scale(1.2); transition: opacity .15s, transform .15s; }
.count-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.count-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dfe3ef;
  border: 2px solid #c5cad8;
}
.count-dot.filled { background: var(--mint); border-color: var(--mint); }
.count-dot.target { background: #fff4c5; border-color: var(--yellow); }
.pattern-row { gap: 10px; min-height: 72px; }
.pattern-piece {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-width: 4px;
  border-radius: 14px;
}
.pattern-piece.dot { border-radius: 50%; }
.pattern-piece.missing {
  width: 52px;
  height: 52px;
  animation: missing-pulse 1.4s ease-in-out infinite;
}
.pattern-piece.missing::after { font-size: 28px; color: var(--purple); }
.pattern-piece .piece-glyph { line-height: 1; filter: drop-shadow(0 1px 0 #0002); }
.letter-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.letter-cue .cue-pic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 40px;
  background: #fff8e8;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 4px 10px #45358c18;
}
.letter-cue .cue-word {
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
}
.letter-target {
  width: 96px;
  height: 96px;
  flex-basis: 96px;
  font-size: 58px;
}
.choice .letter-target {
  width: 72px;
  height: 72px;
  font-size: 42px;
}
.hub-tips {
  margin: 0 auto 18px;
  max-width: 480px;
  padding: 12px 14px;
  text-align: left;
  background: #ffffffeb;
  border: 2px solid #fff;
  border-radius: 18px;
  box-shadow: 0 5px 14px #45358c12;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}
.hub-tips a { color: var(--purple); font-weight: 900; text-decoration: none; }
@keyframes missing-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #7257dc33; }
  50% { box-shadow: 0 0 0 8px #7257dc18; }
}
@media (prefers-reduced-motion: reduce) {
  .pattern-piece.missing { animation: none; }
  .balloon:focus-visible { animation: none; }
}

/* Iter 4 — gentle streaks + Sort Socks */
.streak-pill { color: var(--orange); border-color: #ffe0c8; background: #fff8f0; }
.streak-pill.streak-hot { color: #c24a12; border-color: #ffc083; background: #fff1df; animation: streak-glow 1.2s ease-in-out infinite; }
@keyframes streak-glow {
  0%, 100% { box-shadow: 0 4px 12px #ff965722; }
  50% { box-shadow: 0 4px 18px #ff965755; }
}
.scene-socks { background: linear-gradient(#dff4ff 0%, #fff0e4 55%, #d8f0c8 100%); }
.scene-socks .d1 { top: 150px; left: 6%; }
.scene-socks .d2 { top: 260px; right: 8%; animation-delay: -1.6s; }
.sock-visual {
  --sock-color: #4d83ff;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 88px;
  flex: 0 0 72px;
}
.sock-visual .sock-cuff {
  position: absolute;
  top: 6px;
  width: 42px;
  height: 16px;
  background: #ffffff;
  border: 3px solid #fff;
  border-radius: 10px 10px 4px 4px;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.5), 0 3px 8px #45358c22;
  outline: 2px solid var(--sock-color);
  outline-offset: -5px;
}
.sock-visual .sock-body {
  position: absolute;
  top: 18px;
  width: 38px;
  height: 48px;
  background: var(--sock-color);
  border: 3px solid #fff;
  border-radius: 12px 12px 18px 18px;
  box-shadow: 0 6px 12px #45358c22;
}
.sock-visual .sock-toe {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 34px;
  height: 26px;
  background: var(--sock-color);
  border: 3px solid #fff;
  border-radius: 0 18px 18px 14px;
  box-shadow: 0 4px 10px #45358c18;
}
.sock-visual.mirror .sock-toe { right: auto; left: 8px; border-radius: 18px 0 14px 18px; }
.sock-visual.dot .sock-body::after,
.sock-visual.dot .sock-toe::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff8 22%, transparent 24%);
  background-size: 12px 12px;
  background-position: 4px 4px;
  border-radius: inherit;
  pointer-events: none;
}
.sock-visual.stripe .sock-body::after {
  content: '';
  position: absolute;
  inset: 4px 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 7px,
    #ffffff55 7px 11px
  );
  border-radius: inherit;
  pointer-events: none;
}
.choice .sock-visual { width: 64px; height: 78px; }
@media (prefers-reduced-motion: reduce) {
  .streak-pill.streak-hot { animation: none; }
}

/* Iter 5 — particle / motion polish for low-end Android */
.particle { will-change: transform, opacity; contain: layout style; }
@media (prefers-reduced-motion: reduce) {
  .scene-decor span { animation: none !important; }
  /* Static balloons stay visible in the sky instead of rising off-screen. */
  .balloon {
    animation: none !important;
    bottom: auto !important;
    top: 18% !important;
    transform: none;
  }
}

.game-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.game-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; min-width: 64px; padding: 8px 14px; color: var(--purple); font-size: 14px; font-weight: 900; text-decoration: none; background: #fff; border-radius: 16px; box-shadow: 0 4px 12px #5f4fc314; }
.site-footer a { color: var(--purple); }
