@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, p { margin: 0; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button, input { font: inherit; }
  button { cursor: pointer; }
  button:disabled { cursor: default; }
  svg, img { display: block; max-width: 100%; }
}

@layer base {
  :root { --paper: #fffcf4; --accent: #7051d9; --ink: #302746; --muted: #787184; --pink: #f38ca9; --line: #e9e3e9; }
  html { min-width: 320px; background: var(--paper); }
  body { color: var(--ink); font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; min-height: 100svh; display: flex; flex-direction: column; background-image: radial-gradient(#d8cde333 .8px, transparent .8px); background-size: 12px 12px; }
  button, a { touch-action: manipulation; }
  button { color: inherit; }
  a { color: inherit; }
  button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
  h1:focus { outline: none; }
  h1 { font-size: clamp(38px, 4.5vw, 65px); font-weight: 900; line-height: 1.12; letter-spacing: -2.6px; text-wrap: balance; overflow-wrap: anywhere; }
  h2 { font-size: 25px; letter-spacing: -.7px; }
  #app { width: min(1160px, calc(100% - 80px)); margin: auto; flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .screen { animation: arrive .45s both; }
  .eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
  .screen-hint { font-size: 17px; color: var(--muted); line-height: 1.7; margin-top: 19px; }
  .purple { color: var(--accent); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}

@layer components {
  .site-header { width: min(1280px, calc(100% - 80px)); margin: 0 auto; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; letter-spacing: -.3px; }
  .brand strong { font-weight: 800; }
  .mini-ball { display: inline-block; flex: 0 0 auto; height: 29px; width: 29px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(#f48f9e 0 44%, var(--ink) 44% 54%, #fffef8 54%); position: relative; transform: rotate(-23deg); }
  .mini-ball::after { content: ''; position: absolute; inset: 8px; border: 2px solid var(--ink); border-radius: 50%; background: white; }
  .sound-button { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; background: #ffffffa3; border: 1px solid var(--line); border-radius: 30px; padding: 12px 16px; min-height: 44px; }
  .sound-button svg { width: 18px; height: 18px; }
  .site-footer { width: min(1280px, calc(100% - 80px)); margin: 30px auto 0; padding: 24px 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; }
  .heart { color: #d77b9a; }
  .primary { padding: 19px 25px; min-height: 60px; background: var(--accent); color: white; border: 0; border-radius: 18px; font-size: 17px; font-weight: 800; box-shadow: 0 5px 0 #49398b, 0 12px 24px #7051d91c; display: inline-flex; align-items: center; justify-content: center; gap: 24px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
  .primary:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #49398b, 0 15px 26px #7051d927; }
  .primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #49398b; }
  .primary:disabled { opacity: .65; transform: none; }
  .primary > span { font-size: 24px; line-height: 1; font-weight: 400; }
  .secondary { padding: 15px 10px; min-height: 48px; background: none; border: 0; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: #cbbceb; text-underline-offset: 5px; }
  .page-sparkles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
  .page-sparkles span { position: absolute; color: #a78ae7; opacity: .5; font-size: 24px; }
  .page-sparkles span:nth-child(1) { left: 3%; top: 32%; }
  .page-sparkles span:nth-child(2) { left: 21%; top: 90%; }
  .page-sparkles span:nth-child(3) { right: 17%; top: 12%; color: #f491aa; }
  .welcome { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0 26px; align-items: center; padding-top: 32px; }
  .welcome-copy { position: relative; z-index: 2; padding: 28px 0 50px; }
  .birthday-label { display: flex; gap: 9px; align-items: center; margin-bottom: 26px; letter-spacing: 1.1px; }
  .birthday-label span { font-size: 25px; color: #d7aa34; }
  .welcome h1 { font-size: clamp(48px, 5.6vw, 76px); letter-spacing: -3.6px; }
  .age-marker { color: var(--accent); position: relative; display: inline-block; white-space: nowrap; }
  .age-marker svg { position: absolute; bottom: -13px; width: 100%; height: 20px; color: #d9c7ee; }
  .intro { color: var(--muted); font-size: 18px; line-height: 1.8; margin: 35px 0 27px; max-width: 370px; }
  .little-promise { display: flex; gap: 7px; font-size: 11px; color: var(--muted); margin-top: 22px; align-items: center; }
  .little-promise span { color: #d6ac3d; font-size: 18px; }
  .welcome-art { position: relative; isolation: isolate; height: 510px; display: flex; align-items: center; justify-content: center; }
  .welcome-art::before { content: ''; position: absolute; width: 88%; aspect-ratio: 1; background: #efe5fc; border-radius: 48% 52% 58% 42% / 43% 38% 62% 57%; transform: rotate(-13deg); z-index: -2; }
  .orbit { width: 83%; aspect-ratio: 1; position: absolute; border-radius: 50%; border: 1px dashed #c4b0de; transform: rotate(-24deg) scaleX(1.15); z-index: -1; }
  .orbit-two { transform: rotate(40deg) scaleX(1.2) scaleY(.8); }
  .hero-pokemon { width: 91%; transform: rotate(-6deg); filter: drop-shadow(0 18px 10px #86704f15); }
  .art-star { position: absolute; }
  .star-one { left: 5%; top: 24%; color: #b59bd9; font-size: 43px; transform: rotate(15deg); }
  .star-three { right: 19%; top: 3%; color: #be9fd8; font-size: 38px; }
  .birthday-sticker { position: absolute; right: 0; top: 20px; width: 102px; height: 102px; border-radius: 50%; background: #ffe693; transform: rotate(13deg); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px #efcf78; z-index: 2; }
  .birthday-sticker span { font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
  .birthday-sticker strong { font-size: 48px; line-height: 1.1; font-weight: 900; }
  .floating-label { position: absolute; z-index: 3; background: #fffdf8; border: 1px solid #e7dfed; box-shadow: 0 6px 14px #4c30500b; padding: 12px 16px; font-size: 12px; font-weight: 800; border-radius: 12px; }
  .label-magic { top: 90px; left: 0; transform: rotate(-9deg); }
  .label-football { right: -6px; bottom: 99px; transform: rotate(7deg); }
  .mystery-ticket { position: absolute; bottom: 14px; left: 14%; display: flex; align-items: center; gap: 14px; padding: 14px 22px; background: #fff; border: 1px solid #ede6e9; border-radius: 15px; transform: rotate(-7deg); font-size: 12px; color: var(--muted); line-height: 1.5; box-shadow: 0 6px 0 #e7ddee80; }
  .mystery-ticket strong { color: var(--ink); font-size: 16px; }
  .mystery-ticket > span:last-child { font-size: 32px; color: #c0a9df; }
  .adventure-strip { grid-column: 1 / -1; border: 1px solid #e9e0ee; background: #fffefb; border-radius: 18px; padding: 23px 29px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; }
  .strip-title { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
  .adventure-strip > span:not(.strip-title) { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; }
  .adventure-strip b { font-size: 11px; border-radius: 50%; background: #f0eafa; color: var(--accent); width: 29px; height: 29px; display: grid; place-items: center; }
  .journey { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 24px auto 35px; }
  .journey-step { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #a49da9; }
  .journey-step b { display: grid; place-items: center; width: 26px; height: 26px; background: #f0ebee; border-radius: 50%; font-size: 11px; }
  .journey-step.active { color: var(--accent); font-weight: 800; }
  .journey-step.active b { background: var(--accent); color: #fff; }
  .journey-step.complete b { background: #e5f1e6; color: #618b6b; }
  .journey i { width: 39px; height: 1px; background: #e0d8e6; }
  .question-screen { padding: 15px 0 34px; text-align: center; }
  .question-meta { display: flex; align-items: center; justify-content: space-between; max-width: 870px; margin: 0 auto 35px; font-size: 12px; color: var(--muted); }
  .back-button { background: none; border: 0; font-size: 13px; color: var(--muted); padding: 12px 0; min-width: 65px; text-align: left; }
  .progress-dots { display: flex; gap: 5px; width: 65px; justify-content: flex-end; }
  .progress-dots i { width: 7px; height: 7px; background: #e5ddea; border-radius: 50%; }
  .progress-dots .filled { background: var(--accent); }
  .question-screen h1 { font-size: clamp(35px, 4vw, 51px); margin: 16px auto 0; }
  .choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 920px; margin: 37px auto 0; text-align: left; }
  .choice { border: 2px solid #e8e0ed; border-radius: 24px; padding: 20px 19px 25px; position: relative; background: #fffdfb; display: flex; flex-direction: column; align-items: center; box-shadow: 0 6px 0 #eee7ed; transition: transform .2s, border-color .2s, background .2s; }
  .choice:hover:not(:disabled) { border-color: #b9a1e4; box-shadow: 0 6px 0 #e2d4ef, 0 10px 20px #7051d90c; }
  .choice:active:not(:disabled) { background: #f4edff; }
  .choice.selected { border-color: var(--accent); background: #f4edff; transform: translateY(-5px); }
  .choice:disabled:not(.selected) { opacity: .5; }
  .choice-art { display: grid; place-items: center; width: 156px; height: 156px; background: #f1e9fc; border-radius: 50%; position: relative; margin: 10px 0 25px; }
  .choice-art > span { font-size: 79px; filter: drop-shadow(0 7px 0 #30274609); transition: transform .2s; }
  .choice:hover .choice-art > span { transform: rotate(-8deg) scale(1.07); }
  .choice-art i { position: absolute; right: 1px; top: 12px; color: #a288c4; font-size: 25px; font-style: normal; }
  .choice-art i:last-child { left: 5px; right: auto; top: auto; bottom: 10px; font-size: 20px; }
  .choice-electric .choice-art, .choice-striker .choice-art, .choice-cool .choice-art { background: #fff1bb; }
  .choice-fire .choice-art, .choice-keeper .choice-art, .choice-cute .choice-art { background: #ffe4df; }
  .choice-water .choice-art, .choice-runner .choice-art { background: #dff1f4; }
  .choice-title { font-size: 18px; font-weight: 800; }
  .choice-subtitle { margin-top: 9px; font-size: 12px; color: var(--muted); }
  .choice-check { display: grid; place-items: center; height: 28px; width: 28px; border-radius: 50%; background: #f3edf7; color: var(--accent); margin-top: 22px; font-size: 17px; }
  .selected .choice-check { background: var(--accent); color: white; }
  .choice-note { margin-top: 35px; color: var(--muted); font-size: 12px; }
  .choice-note span { color: #c18fba; font-size: 19px; vertical-align: middle; margin-right: 5px; }
  .ball-screen { text-align: center; padding: 20px 0 25px; }
  .ball-screen h1 { font-size: clamp(35px, 4vw, 51px); margin-top: 18px; }
  .ball-stage { position: relative; width: 390px; height: 350px; margin: 17px auto 2px; display: grid; place-items: center; }
  .ball-aura { position: absolute; width: 310px; height: 310px; border-radius: 50%; background: radial-gradient(circle, #e4d5fd 5%, #f4ecff99 55%, #fff0 72%); transition: transform .5s, background .5s; }
  .ball-star { position: absolute; color: #b899e0; font-size: 28px; animation: twinkle 2s ease-in-out infinite alternate; }
  .bs-one { top: 56px; left: 42px; }
  .bs-two { top: 95px; right: 36px; font-size: 45px; animation-delay: .6s; }
  .bs-three { bottom: 78px; left: 60px; font-size: 20px; animation-delay: 1s; }
  .pokeball { position: relative; border: 0; background: transparent; width: 220px; height: 220px; border-radius: 50%; padding: 0; z-index: 2; }
  .ball-shell { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; transform: rotate(-14deg); animation: ball-idle 3s ease-in-out infinite; filter: drop-shadow(2px 9px 0 #43344810); }
  .ball-top, .ball-bottom { position: absolute; left: 0; right: 0; height: 50%; border: 7px solid #392e4c; overflow: hidden; }
  .ball-top { top: 0; border-radius: 140px 140px 0 0; background: radial-gradient(ellipse at 30% 20%, #ffa4b1, #ec6f87 62%, #cd526e); border-bottom: 0; }
  .ball-top::before { content: ''; position: absolute; width: 56px; height: 22px; background: #ffffff70; border-radius: 50%; transform: rotate(-30deg); left: 30px; top: 22px; }
  .ball-bottom { bottom: 0; border-radius: 0 0 140px 140px; border-top: 0; background: radial-gradient(ellipse at 30% 20%, white, #fffdf7 55%, #ddd4e5); }
  .ball-belt { position: absolute; top: calc(50% - 5px); left: 4px; right: 4px; height: 10px; background: #392e4c; }
  .ball-center { position: absolute; left: calc(50% - 32px); top: calc(50% - 32px); width: 64px; height: 64px; border-radius: 50%; border: 8px solid #392e4c; background: #fff; box-shadow: inset 0 0 0 5px #e7dfe9; }
  .ball-cracks { position: absolute; inset: 0; opacity: 0; filter: drop-shadow(0 0 6px #fff2aa); transition: opacity .3s; }
  .ball-shadow { position: absolute; bottom: 23px; left: 98px; width: 194px; height: 20px; border-radius: 50%; background: #dcd0e5; opacity: .5; filter: blur(5px); }
  [data-charge="1"] .ball-aura { transform: scale(1.12); background: radial-gradient(circle, #f6e4a7, #ede1fc88 60%, #fff0 72%); }
  [data-charge="2"] .ball-aura, [data-charge="3"] .ball-aura { transform: scale(1.35); background: radial-gradient(circle, #ffe69d, #eee0faaa 60%, #fff0 72%); }
  [data-charge="1"] .ball-cracks { opacity: .3; }
  [data-charge="2"] .ball-cracks, [data-charge="3"] .ball-cracks { opacity: 1; }
  [data-charge="1"] { --shake: 8deg; }
  [data-charge="2"] { --shake: 17deg; }
  [data-charge="3"] { --shake: 26deg; }
  .pokeball.shake .ball-shell { animation: shake .4s ease-in-out; }
  .opening .ball-top { animation: open-top .8s .2s forwards; }
  .opening .ball-bottom { animation: open-bottom .8s .2s forwards; }
  .opening .ball-center, .opening .ball-belt, .opening .ball-cracks { transition: opacity .2s .2s; opacity: 0; }
  .opening .ball-aura { animation: glow-open 1s forwards; }
  .tap-instruction { font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 9px; }
  .tap-hand { font-size: 27px; color: var(--accent); }
  .tap-progress { display: flex; justify-content: center; gap: 13px; margin: 20px 0 28px; }
  .tap-progress span { width: 34px; height: 34px; border: 1px solid #d9cce8; border-radius: 50%; display: grid; place-items: center; color: #ac96c7; font-size: 12px; transition: background .2s; }
  .tap-progress .done { background: var(--accent); color: white; border-color: var(--accent); }
  .chosen-powers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .chosen-powers span { background: #f3ecf7; padding: 9px 13px; border-radius: 20px; font-size: 11px; color: #77638b; }
  .result-screen { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; width: min(970px, 100%); margin: 0 auto 22px; }
  .result-copy { padding: 20px 0; }
  .result-copy h1 { font-size: clamp(35px, 3.7vw, 51px); margin-top: 19px; }
  .result-copy .screen-hint { font-size: 15px; }
  .result-character { width: 230px; height: 210px; margin: 0 auto 10px; }
  .result-character svg { width: 100%; height: 100%; }
  .result-actions { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
  .save-status { font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 8px; text-align: center; min-height: 36px; }
  .card-area { position: relative; padding: 47px 15px 20px; }
  .collectible-card { transform: rotate(3deg); border-radius: 24px; box-shadow: 0 17px 35px #4b335b25; animation: card-enter .7s ease-out both; }
  .collectible-card > svg { width: 100%; height: auto; border-radius: 24px; }
  .card-caption { position: absolute; left: 28px; top: 0; font-size: 14px; font-style: italic; color: var(--accent); transform: rotate(-6deg); z-index: 1; }
  .card-caption span { display: inline-block; font-size: 28px; margin-left: 13px; transform: rotate(10deg); }
  .card-caption-bottom { text-align: center; font-size: 11px; color: #9a819d; padding-top: 23px; }
  .card-caption-bottom span { margin: 0 7px; color: #d6b650; }
  .effects { position: fixed; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
  .confetti { position: absolute; top: -30px; left: var(--x); width: 9px; height: 16px; background: var(--color); border-radius: 2px; animation: confetti-fall var(--duration) var(--delay) both ease-in; }
  .confetti:nth-child(3n+1) { background: none; color: var(--color); font-size: 22px; width: auto; height: auto; }
  .pokemon-motion { transform-box: fill-box; transform-origin: center; }
  .motion-cute { animation: float 3s ease-in-out infinite; }
  .motion-cool { animation: cool-bob 3.5s ease-in-out infinite; }
  .motion-funny { animation: dance 1.3s ease-in-out infinite; }
  dialog { width: min(450px, calc(100% - 30px)); padding: 28px; border: 1px solid var(--line); border-radius: 23px; background: var(--paper); color: var(--ink); max-height: 90svh; overflow: auto; text-align: center; }
  dialog::backdrop { background: #302746a6; backdrop-filter: blur(5px); }
  dialog p { margin: 12px 0 20px; font-size: 13px; line-height: 1.6; color: var(--muted); }
  dialog img { width: min(100%, 260px); margin: 0 auto 20px; }
  dialog .primary { width: 100%; font-size: 14px; min-height: 48px; padding: 13px; }
  .dialog-close { position: absolute; top: 6px; right: 6px; border: 0; background: none; width: 44px; height: 44px; font-size: 17px; }
  .noscript { text-align: center; padding: 40px; }
}

@layer responsive {
  @media (min-width: 1450px) { .welcome { padding-top: 60px; padding-bottom: 30px; } }
  @media (max-width: 1000px) {
    #app, .site-header, .site-footer { width: calc(100% - 48px); }
    .welcome { gap: 0 10px; }
    .welcome h1 { font-size: 58px; }
    .welcome-art { height: 440px; }
    .birthday-sticker { width: 84px; height: 84px; }
    .birthday-sticker strong { font-size: 37px; }
    .floating-label { font-size: 10px; padding: 11px; }
    .label-magic { top: 65px; left: -10px; }
    .label-football { right: -5px; bottom: 86px; }
    .mystery-ticket { bottom: 10px; }
    .adventure-strip { padding: 20px; gap: 14px; }
    .strip-title { display: none; }
    .choice-title { font-size: 15px; }
    .result-screen { gap: 28px; }
  }
  @media (max-width: 700px) {
    #app, .site-header, .site-footer { width: calc(100% - 36px); }
    .site-header { min-height: 78px; }
    .brand { font-size: 11px; gap: 8px; }
    .brand > span:last-child { max-width: 150px; }
    .sound-button { padding: 11px; }
    .sound-button span { display: none; }
    .site-footer { margin-top: 23px; padding: 19px 0 24px; font-size: 10px; justify-content: center; text-align: center; }
    .site-footer > span:last-child { display: none; }
    .welcome { display: flex; flex-direction: column; gap: 0; padding: 18px 0 0; }
    .welcome-copy { text-align: center; padding: 0; width: 100%; }
    .birthday-label { justify-content: center; font-size: 9px; letter-spacing: .9px; margin-bottom: 16px; }
    .birthday-label span { font-size: 20px; }
    .welcome h1 { font-size: clamp(42px, 11.8vw, 65px); letter-spacing: -2.5px; }
    .intro { font-size: 14px; line-height: 1.7; margin: 25px auto 22px; max-width: 285px; }
    .welcome .primary { width: min(100%, 330px); min-height: 57px; padding: 16px 20px; font-size: 15px; }
    .little-promise { justify-content: center; font-size: 9px; margin-top: 14px; gap: 5px; }
    .welcome-art { width: min(100%, 390px); height: 336px; margin-top: 14px; }
    .welcome-art::before { width: 82%; }
    .welcome-art .orbit { width: 75%; }
    .hero-pokemon { width: 82%; }
    .birthday-sticker { width: 66px; height: 66px; right: 10px; top: 16px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px #efcf78; }
    .birthday-sticker span { font-size: 7px; }
    .birthday-sticker strong { font-size: 30px; }
    .floating-label { font-size: 9px; border-radius: 9px; padding: 9px 11px; }
    .label-magic { left: 1px; top: 64px; }
    .label-football { right: 0; bottom: 67px; }
    .mystery-ticket { left: 14%; bottom: 4px; padding: 10px 14px; font-size: 9px; gap: 10px; }
    .mystery-ticket strong { font-size: 12px; }
    .mystery-ticket .mini-ball { width: 25px; height: 25px; }
    .mystery-ticket .mini-ball::after { inset: 7px; }
    .star-one { font-size: 30px; }
    .adventure-strip { margin-top: 27px; padding: 17px 8px; width: 100%; gap: 6px; border-radius: 14px; }
    .adventure-strip > span:not(.strip-title) { flex-direction: column; gap: 8px; text-align: center; font-size: 9px; flex: 1; max-width: 110px; line-height: 1.5; }
    .adventure-strip b { width: 25px; height: 25px; font-size: 10px; }
    .journey { margin: 16px auto 23px; gap: 9px; width: 100%; }
    .journey-step { font-size: 9px; gap: 5px; }
    .journey-step:not(.active) > span { display: none; }
    .journey i { width: 25px; }
    .journey-step b { width: 25px; height: 25px; }
    .question-screen { padding: 0 0 10px; }
    .question-meta { margin-bottom: 24px; }
    .question-screen .eyebrow, .ball-screen .eyebrow, .result-copy .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
    .question-screen h1 { font-size: 34px; letter-spacing: -1.4px; max-width: 340px; margin-top: 14px; }
    .screen-hint { font-size: 13px; margin-top: 13px; }
    .choices { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
    .choice { display: grid; grid-template-columns: 70px 1fr 28px; grid-template-rows: 1fr 1fr; gap: 3px 15px; border-radius: 18px; padding: 14px 17px 14px 12px; text-align: left; min-height: 108px; box-shadow: 0 4px 0 #eee7ed; }
    .choice-art { grid-column: 1; grid-row: 1 / 3; width: 70px; height: 70px; margin: 0; }
    .choice-art > span { font-size: 39px; }
    .choice-art i { font-size: 14px; top: 1px; right: -3px; }
    .choice-art i:last-child { font-size: 12px; bottom: -2px; left: 2px; }
    .choice-title { grid-column: 2; grid-row: 1; align-self: end; font-size: 15px; }
    .choice-subtitle { grid-column: 2; grid-row: 2; align-self: start; margin-top: 3px; font-size: 10px; }
    .choice-check { grid-column: 3; grid-row: 1 / 3; margin-top: 0; }
    .choice-note { font-size: 10px; margin-top: 24px; }
    .ball-screen { padding: 12px 0 10px; }
    .ball-screen h1 { font-size: 35px; letter-spacing: -1.5px; }
    .ball-stage { width: 300px; height: 315px; margin-top: 4px; }
    .ball-aura { width: 270px; height: 270px; }
    .pokeball { width: 190px; height: 190px; }
    .ball-shadow { left: 63px; width: 174px; bottom: 25px; }
    .bs-one { left: 10px; top: 43px; }
    .bs-two { right: 0; }
    .bs-three { left: 15px; }
    .tap-instruction { font-size: 13px; gap: 5px; }
    .tap-progress { margin-top: 18px; }
    .chosen-powers { gap: 5px; }
    .chosen-powers span { font-size: 9px; padding: 9px 10px; }
    .result-screen { display: flex; flex-direction: column; gap: 0; margin-bottom: 0; }
    .result-copy { display: contents; text-align: center; }
    .result-copy .eyebrow { order: 0; margin-top: 12px; }
    .result-copy h1 { order: 1; font-size: 36px; letter-spacing: -1.5px; margin-top: 14px; }
    .result-copy .screen-hint { order: 2; font-size: 13px; margin-top: 14px; }
    .result-character { order: 3; width: 170px; height: 145px; margin: 2px auto 8px; }
    .card-area { order: 4; width: min(100% - 20px, 345px); padding: 43px 0 15px; margin: 6px auto 0; }
    .collectible-card { border-radius: 18px; transform: rotate(2deg); }
    .collectible-card > svg { border-radius: 18px; }
    .card-caption { top: 0; font-size: 12px; }
    .card-caption-bottom { padding-top: 19px; font-size: 10px; }
    .result-actions { order: 5; width: min(100%, 345px); margin-top: 8px; }
    .result-actions .primary { font-size: 15px; padding: 16px; min-height: 56px; gap: 14px; }
    .save-status { order: 6; font-size: 10px; }
  }
  @media (max-width: 360px) {
    .choice { gap: 3px 10px; grid-template-columns: 61px 1fr 24px; padding-right: 11px; }
    .choice-art { width: 61px; height: 61px; }
    .choice-title { font-size: 13px; }
    .choice-subtitle { font-size: 9px; }
    .ball-stage { width: 280px; }
    .ball-screen h1 { font-size: 31px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
}

@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes cool-bob { 0%, 100% { transform: rotate(4deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes dance { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-12px); } }
@keyframes ball-idle { 0%, 100% { transform: translateY(-3px) rotate(-14deg); } 50% { transform: translateY(-13px) rotate(-9deg); } }
@keyframes twinkle { from { opacity: .4; transform: scale(.8); } to { opacity: 1; transform: scale(1.1); } }
@keyframes shake { 0%, 100% { transform: rotate(-14deg); } 25%, 75% { transform: rotate(calc(-14deg - var(--shake))); } 50% { transform: rotate(calc(-14deg + var(--shake))); } }
@keyframes open-top { to { transform: translateY(-90px) rotate(-22deg); opacity: 0; } }
@keyframes open-bottom { to { transform: translateY(60px) rotate(18deg); opacity: 0; } }
@keyframes glow-open { 60% { transform: scale(1.8); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes card-enter { from { opacity: 0; transform: rotate(-5deg) translateY(25px) scale(.85); } to { opacity: 1; transform: rotate(3deg) translateY(0) scale(1); } }
@keyframes confetti-fall { to { transform: translate(var(--drift), 110vh) rotate(var(--spin)); opacity: .2; } }
