:root {
  color-scheme: light;
  --ink: #342448;
  --muted: #746681;
  --berry: #ef4d88;
  --grape: #7d55d9;
  --lemon: #f6c84f;
  --blueberry: #4c74d9;
  --mint: #70d7bc;
  --cream: #fff8ec;
  --panel: rgba(255, 255, 255, .84);
  --shadow: 0 20px 48px rgba(79, 49, 111, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; min-height: 100%; background: #f6eefe; }
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 211, 110, .58), transparent 24rem),
    radial-gradient(circle at 96% 3%, rgba(255, 122, 184, .35), transparent 27rem),
    linear-gradient(145deg, #fff8ee 0%, #f7eaff 47%, #e9f8ff 100%);
}
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible { outline: 4px solid #2e70cf; outline-offset: 3px; }

.game-shell { width: min(100%, 1080px); margin: 0 auto; padding: clamp(10px, 2.4vw, 24px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.brand { display: flex; align-items: center; min-width: 0; gap: 10px; }
.brand-jelly { position: relative; flex: 0 0 42px; width: 42px; height: 37px; border-radius: 50% 50% 33% 33%; background: linear-gradient(145deg, #ff7cab, #b848b8); box-shadow: inset 8px 7px 10px rgba(255,255,255,.5), 0 7px 13px rgba(147,48,126,.2); animation: logo-wobble 3.5s ease-in-out infinite; }
.brand-jelly::after { content: ""; position: absolute; width: 11px; height: 8px; left: 8px; top: 7px; border-radius: 50%; background: rgba(255,255,255,.75); transform: rotate(-25deg); }
.eyebrow, .step-label { margin: 0 0 3px; color: #8b5ca0; font-size: .68rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(1.38rem, 4.6vw, 2.3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 5vw, 2.35rem); letter-spacing: -.035em; }
.top-actions, .button-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.quiet-button, .icon-button, .primary-button, .taste-button {
  min-height: 46px;
  border: 1px solid rgba(83, 52, 109, .17);
  border-radius: 15px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255,255,255,.76);
  box-shadow: 0 7px 19px rgba(72, 45, 96, .1);
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.icon-button { width: 48px; padding: 8px; font-size: 1.2rem; }
.primary-button, .taste-button { border: 0; color: #2e1741; background: linear-gradient(135deg, #ffd662, #ff86b5 55%, #bd8cf3); box-shadow: 0 10px 25px rgba(170, 68, 155, .22); }
.primary-button:not(:disabled):hover, .taste-button:not(:disabled):hover, .quiet-button:hover, .icon-button:hover { transform: translateY(-2px); filter: brightness(1.035) saturate(1.08); }
button:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .52; }

.hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.hud div { min-width: 0; padding: 8px 6px; border: 1px solid rgba(112,77,139,.13); border-radius: 16px; text-align: center; background: rgba(255,255,255,.7); box-shadow: 0 8px 20px rgba(74,47,97,.07); }
.hud span { display: block; color: var(--muted); font-size: .65rem; font-weight: 800; }
.hud strong { display: block; overflow: hidden; font-size: clamp(.98rem, 3.3vw, 1.25rem); text-overflow: ellipsis; white-space: nowrap; }
.hud strong.pop { animation: stat-pop .35s ease-out; }
.game-status { min-height: 1.35em; margin: 0 0 8px; color: #735c81; font-size: .84rem; font-weight: 800; text-align: center; }
.game-status[data-tone="good"] { color: #237665; }
.game-status[data-tone="warn"] { color: #a64855; }

.game-stage { position: relative; min-height: min(620px, calc(100vh - 175px)); border: 1px solid rgba(109,74,140,.17); border-radius: 30px; overflow: hidden; isolation: isolate; background: rgba(255,255,255,.52); box-shadow: var(--shadow); }
.game-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 12% 12%, rgba(255,220,121,.22), transparent 35%), radial-gradient(circle at 90% 22%, rgba(239,77,136,.14), transparent 30%); pointer-events: none; }
.screen { width: 100%; min-height: min(620px, calc(100vh - 175px)); padding: clamp(17px, 4vw, 36px); animation: screen-in .38s ease both; }
.screen-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; margin-bottom: 20px; }
.level-pill, .viewer-badge { flex: 0 0 auto; border: 1px solid rgba(113, 73, 144, .14); border-radius: 999px; padding: 8px 12px; color: #6e557b; background: rgba(255,255,255,.78); font-size: .75rem; font-weight: 900; }

.start-screen { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(15px, 5vw, 56px); background: linear-gradient(140deg, rgba(255,255,255,.12), rgba(255,227,243,.5)); }
.start-copy { max-width: 430px; }
.start-copy h2 { font-size: clamp(2rem, 6vw, 3.8rem); }
.start-copy p:not(.eyebrow) { margin: 14px 0 22px; color: var(--muted); font-size: clamp(.95rem, 2vw, 1.15rem); line-height: 1.55; }
.start-copy .primary-button { min-width: 180px; font-size: 1.08rem; }
.start-art { position: relative; min-height: 390px; border-radius: 45% 55% 40% 60%; background: radial-gradient(circle at 55% 30%, #fff 0 8%, transparent 9%), linear-gradient(145deg, #ffd5e6, #d8c7ff 60%, #bdeeff); box-shadow: inset 0 0 55px rgba(255,255,255,.57), 0 25px 55px rgba(112,70,143,.18); }
.jelly-preview { position: absolute; z-index: 3; left: 9%; bottom: 17%; width: 58%; height: 37%; border-radius: 46% 46% 22% 22% / 60% 60% 30% 30%; background: linear-gradient(145deg, rgba(255,255,255,.74), transparent 23%), linear-gradient(to bottom, #ff77ae, #d54599 76%, #9e3d91); box-shadow: inset -14px -14px 25px rgba(91,28,100,.18), 0 18px 25px rgba(101,38,101,.2); animation: jelly-wobble 3.2s ease-in-out infinite; transform-origin: bottom center; }
.jelly-preview::before { content: ""; position: absolute; inset: -15px 7% auto; height: 30px; border-radius: 50%; background: #ff97bf; box-shadow: inset 0 9px rgba(255,255,255,.35); }
.jelly-preview::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -16px; height: 28px; border-radius: 50%; border: 5px solid rgba(255,255,255,.72); background: rgba(219,245,255,.45); box-shadow: 0 12px 18px rgba(70,60,130,.13); }
.jelly-preview span { position: absolute; width: 23%; height: 13%; left: 20%; top: 20%; border-radius: 50%; background: rgba(255,255,255,.6); transform: rotate(-24deg); }
.start-host { position: absolute; z-index: 2; right: 8%; top: 13%; width: 39%; height: 62%; }
.start-face { position: absolute; z-index: 2; top: 18%; left: 17%; display: grid; place-items: center; width: 68%; aspect-ratio: 1; border-radius: 48%; color: #7d3c58; background: #ffd9bd; font-size: 3rem; font-weight: 900; box-shadow: inset 9px 8px rgba(255,255,255,.24); }
.start-face::before { content: "•  •"; position: absolute; top: 28%; font-size: 1.3rem; letter-spacing: .42em; }
.start-hair { position: absolute; z-index: 1; left: 5%; top: 3%; width: 89%; aspect-ratio: 1; border-radius: 52% 48% 50% 50%; background: #553164; box-shadow: inset -13px -5px #3d294e; }
.start-body { position: absolute; z-index: 0; left: 5%; right: 3%; bottom: -5%; height: 46%; border-radius: 50% 50% 18% 18%; background: linear-gradient(145deg, #8f6adb, #6948b5); }
.mini-hearts { position: absolute; z-index: 5; left: 8%; top: 13%; color: #ed4c84; }
.mini-hearts i { position: absolute; font-style: normal; animation: heart-float 2.2s ease-in-out infinite; }
.mini-hearts i:nth-child(2) { left: 42px; top: 27px; color: #8a5eda; animation-delay: -.8s; }
.mini-hearts i:nth-child(3) { left: 72px; top: -7px; color: #f3af38; animation-delay: -1.5s; }

.prepare-layout, .decorate-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: clamp(18px, 4vw, 38px); align-items: stretch; }
.choice-panel, .recipe-preview { border: 1px solid rgba(112,76,138,.15); border-radius: 23px; padding: clamp(14px, 2.7vw, 23px); background: var(--panel); box-shadow: 0 13px 28px rgba(72,44,96,.08); }
fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
legend { margin-bottom: 10px; color: #624f6f; font-size: .82rem; font-weight: 950; }
.choice-grid { display: grid; gap: 9px; }
.choice-grid--flavors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--molds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card, .mold-button, .topping-button { min-width: 0; border: 2px solid transparent; border-radius: 16px; padding: 10px; color: var(--ink); background: #fff; box-shadow: 0 6px 15px rgba(71,45,91,.06); text-align: left; transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease; }
.choice-card { display: grid; grid-template-columns: 27px 1fr; align-items: center; column-gap: 8px; }
.choice-card .swatch { grid-row: span 2; font-size: 2rem; line-height: 1; text-shadow: inset 0 0 2px #fff; }
.choice-card small, .topping-button small { color: var(--muted); font-size: .68rem; }
.choice-card.berry .swatch { color: var(--berry); }
.choice-card.lemon .swatch { color: var(--lemon); }
.choice-card.grape .swatch { color: var(--grape); }
.choice-card.blueberry .swatch { color: var(--blueberry); }
.choice-card[aria-pressed="true"], .mold-button[aria-pressed="true"], .topping-button[aria-pressed="true"] { border-color: #8c5ed1; box-shadow: 0 7px 18px rgba(105,71,172,.17); transform: translateY(-2px); }
.mold-button { display: grid; min-height: 82px; place-items: center; gap: 4px; padding: 8px 5px; font-size: .76rem; font-weight: 900; text-align: center; }
.mold-icon { display: grid; width: 40px; height: 34px; place-items: center; color: #8f58bf; font-size: 2rem; }
.mold-dome { border-radius: 50% 50% 25% 25%; background: linear-gradient(145deg, #d6aff6, #8c5dd0); }
.choice-panel > .primary-button { width: 100%; }

.recipe-preview { display: flex; min-height: 340px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.recipe-preview > p { margin: 0 0 7px; color: var(--muted); font-size: .78rem; }
.recipe-preview > strong { margin-top: 10px; font-size: 1.03rem; }
.plate-scene { position: relative; width: min(100%, 310px); height: 225px; }
.plate-scene--large { margin: 4px auto; }
.plate-shadow { position: absolute; left: 12%; right: 12%; bottom: 15px; height: 28px; border-radius: 50%; background: rgba(61,40,78,.18); filter: blur(8px); }
.glass-plate { position: absolute; z-index: 1; left: 5%; right: 5%; bottom: 16px; height: 38px; border: 5px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(203,238,255,.38); box-shadow: inset 0 -8px 13px rgba(74,131,180,.13), 0 8px 14px rgba(80,57,104,.1); }
.jelly-shape { --jelly-main: #ef4d88; --jelly-dark: #b72f6a; position: absolute; z-index: 2; left: 22%; right: 22%; bottom: 37px; height: 132px; border-radius: 48% 48% 24% 24% / 57% 57% 31% 31%; background: linear-gradient(145deg, rgba(255,255,255,.68), transparent 25%), repeating-linear-gradient(90deg, transparent 0 17%, rgba(255,255,255,.12) 18% 21%, transparent 22% 34%), linear-gradient(to bottom, var(--jelly-main), var(--jelly-dark)); box-shadow: inset -13px -15px 23px rgba(76,24,87,.19), 0 13px 20px rgba(89,35,91,.2); transform-origin: bottom center; transition: opacity .3s ease, transform .3s ease, border-radius .25s ease; animation: jelly-idle 3s ease-in-out infinite; }
.jelly-shape.is-empty { --jelly-main: #dcd3e2; --jelly-dark: #aaa0b5; opacity: .48; filter: grayscale(1); }
.jelly-shape.mold-flower { border-radius: 45% 55% 42% 58% / 60% 52% 48% 40%; clip-path: polygon(50% 0, 67% 9%, 84% 8%, 93% 26%, 100% 43%, 91% 59%, 89% 79%, 68% 84%, 50% 100%, 32% 84%, 11% 79%, 9% 59%, 0 43%, 7% 26%, 16% 8%, 33% 9%); }
.jelly-shape.mold-star { border-radius: 36%; clip-path: polygon(50% 0, 62% 28%, 94% 25%, 70% 48%, 82% 82%, 50% 65%, 18% 82%, 30% 48%, 6% 25%, 38% 28%); }
.jelly-shine { position: absolute; z-index: 4; width: 25%; height: 13%; left: 19%; top: 17%; border-radius: 50%; background: rgba(255,255,255,.62); transform: rotate(-22deg); }
.topping-layer { position: absolute; z-index: 5; inset: -13px -10px auto; height: 58%; pointer-events: none; }
.topping-piece { position: absolute; display: grid; place-items: center; filter: drop-shadow(0 3px 2px rgba(50,30,60,.18)); animation: topping-drop .38s cubic-bezier(.2,.9,.3,1.4) both; }
.topping-piece:nth-child(2n) { animation-delay: .06s; }
.topping-piece:nth-child(3n) { animation-delay: .12s; }

.decorate-preview > p { max-width: 290px; line-height: 1.4; }
.topping-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.topping-button { position: relative; display: grid; min-height: 78px; grid-template-columns: 42px 1fr; align-items: center; column-gap: 8px; }
.topping-button .topping-icon { grid-row: span 2; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #f7edff; font-size: 1.3rem; }
.topping-button.is-locked::after { content: "🔒"; position: absolute; right: 7px; top: 7px; font-size: .75rem; }
.topping-button.is-locked { background: #f2eef4; }
.button-row .primary-button { flex: 1; }

.live-screen { background: linear-gradient(145deg, rgba(255,245,251,.68), rgba(239,240,255,.72)); }
.live-heading { margin-bottom: 11px; }
.live-dot { color: #c9285d; }
.live-dot::before { content: "●"; margin-right: 5px; animation: live-pulse 1.3s ease-in-out infinite; }
.viewer-badge span { color: #e42b65; }
.live-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .65fr); gap: 12px; }
.studio-scene { position: relative; min-height: 350px; overflow: hidden; border-radius: 23px; background: radial-gradient(circle at 76% 14%, rgba(255,255,255,.85) 0 6%, transparent 7%), linear-gradient(155deg, #fbcce0 0%, #d7c9fa 53%, #b9e5ef 100%); box-shadow: inset 0 0 45px rgba(255,255,255,.5); }
.studio-scene::before { content: ""; position: absolute; right: 7%; top: 6%; width: 74px; height: 74px; border: 9px solid rgba(255,255,255,.62); border-radius: 50%; box-shadow: 0 4px 18px rgba(87,48,108,.12); }
.studio-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: linear-gradient(to bottom, #d998b9, #a96d95); clip-path: polygon(0 32%, 100% 0, 100% 100%, 0 100%); }
.host { position: absolute; z-index: 2; right: 5%; bottom: 18%; width: 42%; height: 72%; }
.host-head { position: absolute; z-index: 3; left: 19%; top: 9%; width: 62%; aspect-ratio: .94; border-radius: 48% 48% 44% 44%; background: #ffd6b8; box-shadow: inset 10px 8px rgba(255,255,255,.2), inset -6px -7px rgba(191,102,90,.07); }
.host-hair-back { position: absolute; z-index: 1; left: 8%; top: 0; width: 84%; height: 61%; border-radius: 48% 52% 45% 50%; background: #56365f; box-shadow: inset -14px -8px #402b50; }
.host-hair-front { position: absolute; z-index: 5; left: -4%; right: 1%; top: -4%; height: 38%; border-radius: 60% 55% 35% 50%; background: #64406c; clip-path: polygon(0 0, 100% 0, 100% 62%, 79% 45%, 69% 87%, 51% 43%, 32% 81%, 22% 39%, 0 66%); }
.host-eye { position: absolute; z-index: 6; top: 49%; width: 10%; height: 8%; border-radius: 50%; background: #51304d; transition: all .2s ease; }
.eye-left { left: 25%; }
.eye-right { right: 25%; }
.host-eye::after { content: ""; position: absolute; width: 30%; aspect-ratio: 1; left: 20%; top: 9%; border-radius: 50%; background: #fff; }
.host-cheek { position: absolute; z-index: 5; top: 62%; width: 15%; height: 8%; border-radius: 50%; background: rgba(239,103,133,.24); }
.cheek-left { left: 12%; } .cheek-right { right: 12%; }
.host-mouth { position: absolute; z-index: 6; left: 42%; top: 66%; width: 16%; height: 8%; border-bottom: 3px solid #a7475b; border-radius: 50%; transition: all .2s ease; }
.host-body { position: absolute; z-index: 1; left: 9%; right: 9%; bottom: 0; height: 48%; border-radius: 48% 48% 13% 13%; background: linear-gradient(145deg, #8d68d6, #6648ae); box-shadow: inset 12px 8px rgba(255,255,255,.13); }
.host-apron { position: absolute; left: 24%; right: 24%; bottom: 0; height: 76%; border-radius: 45% 45% 8% 8%; display: grid; place-items: center; color: #9e6594; background: #fff0f5; font-size: 1.8rem; font-weight: 950; }
.host-arm { position: absolute; z-index: 5; left: 2%; bottom: 16%; width: 42%; height: 14%; border-radius: 999px; background: #ffd6b8; transform: rotate(14deg); transform-origin: right center; transition: transform .32s ease; }
.spoon { position: absolute; left: -24px; top: -5px; width: 32px; height: 15px; border-radius: 50%; color: #bb568c; background: #d8e4eb; box-shadow: 25px 5px 0 -5px #d8e4eb; font-size: .7rem; text-align: center; }
.host.state-taste .host-arm { transform: translate(35px, -57px) rotate(-34deg); }
.host.state-taste .host-mouth { height: 15%; border: 0; border-radius: 50%; background: #a7475b; }
.host.state-like .host-eye, .host.state-excellent .host-eye { height: 5%; border-radius: 0 0 50% 50%; background: transparent; border-bottom: 3px solid #51304d; }
.host.state-like .host-mouth { height: 12%; border: 0; border-bottom: 4px solid #a7475b; }
.host.state-surprise .host-eye { width: 12%; height: 12%; }
.host.state-surprise .host-mouth { height: 14%; border: 0; border-radius: 50%; background: #a7475b; }
.host.state-excellent { animation: host-celebrate .5s ease-in-out 2; }
.host.state-excellent .host-mouth { height: 17%; border: 0; border-radius: 10% 10% 50% 50%; background: #a7475b; }
.live-dish { position: absolute; z-index: 5; left: 4%; bottom: 11%; width: 49%; height: 54%; }
.live-dish .jelly-shape { left: 22%; right: 22%; bottom: 40px; height: 56%; }
.live-dish .glass-plate { bottom: 18px; }
.live-dish .jelly-shape.is-eating { transform: scaleY(var(--remaining, 1)); opacity: .94; }
.floating-reactions { position: absolute; z-index: 8; inset: 0; pointer-events: none; }
.float-reaction { position: absolute; bottom: 12%; font-size: 1.3rem; animation: reaction-float 1.6s ease-out forwards; }

.stream-panel { display: flex; min-height: 350px; flex-direction: column; gap: 10px; }
.popularity, .chat-list { border: 1px solid rgba(105,72,131,.14); border-radius: 19px; padding: 12px; background: rgba(255,255,255,.76); }
.popularity > div:first-child { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .7rem; }
.popularity-track { height: 11px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #eadfee; }
.popularity-track span { display: block; width: 12%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a5fdb, #f14e8b, #ffc74f); transition: width .4s ease; }
.chat-list { flex: 1; min-height: 235px; overflow: hidden; }
.chat-message { margin: 0 0 7px; padding: 8px 9px; border-radius: 12px 12px 12px 3px; color: #604f6c; background: #fff; font-size: .72rem; line-height: 1.35; animation: chat-in .3s ease both; }
.chat-message b { color: #8a52b5; }
.timing-card { display: grid; grid-template-columns: minmax(125px, .55fr) minmax(200px, 1.4fr) minmax(140px, .55fr); align-items: center; gap: 14px; margin-top: 12px; padding: 12px; border: 1px solid rgba(105,72,131,.14); border-radius: 19px; background: rgba(255,255,255,.82); }
.timing-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: .67rem; }
.timing-track { position: relative; height: 24px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, #d9c8ea, #f8c6dc 32%, #ffe8a1 46% 54%, #f8c6dc 68%, #d9c8ea); box-shadow: inset 0 2px 6px rgba(62,38,82,.14); }
.timing-zone { position: absolute; left: 43%; width: 14%; inset-block: 0; border-inline: 2px solid rgba(255,255,255,.9); background: rgba(255,214,78,.34); }
.timing-marker { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; background: #7247b6; box-shadow: 0 2px 8px rgba(62,38,82,.35); transform: translateX(-50%); }
.taste-button { min-width: 0; }

.result-screen, .victory-screen { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; background: radial-gradient(circle at 50% 26%, rgba(255,236,151,.45), transparent 32%), linear-gradient(145deg, rgba(255,255,255,.4), rgba(245,221,255,.54)); }
.result-burst, .victory-jelly { display: grid; width: 86px; height: 76px; place-items: center; margin-bottom: 12px; border-radius: 50% 50% 27% 27%; color: #fff1a4; background: linear-gradient(145deg, #ff6ba0, #8a58d4); box-shadow: inset 13px 9px rgba(255,255,255,.25), 0 18px 30px rgba(102,52,137,.2); font-size: 2.2rem; animation: result-wobble 1.5s ease-in-out infinite; }
.result-screen > p:not(.step-label), .victory-screen > p:not(.step-label) { max-width: 560px; margin: 10px auto 18px; color: var(--muted); line-height: 1.5; }
.result-grid { display: grid; width: min(100%, 620px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 15px; }
.result-grid div, .victory-stats { padding: 13px 8px; border: 1px solid rgba(105,72,131,.14); border-radius: 17px; background: rgba(255,255,255,.8); }
.result-grid span, .victory-stats span { display: block; color: var(--muted); font-size: .68rem; }
.result-grid strong, .victory-stats strong { display: block; font-size: 1.35rem; }
.unlock-notice { max-width: 530px; margin: 0 0 15px; border-radius: 13px; padding: 10px 13px; color: #5b4365; background: #fff2c4; font-size: .8rem; font-weight: 850; }
.result-button { min-width: 210px; }
.victory-jelly { width: 116px; height: 101px; font-size: 3rem; }
.victory-stats { min-width: 220px; margin-bottom: 17px; }
.game-footer { padding: 11px 5px 2px; color: #8a7c91; font-size: .67rem; text-align: center; }

@keyframes logo-wobble { 0%,100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.04,.96); } }
@keyframes screen-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jelly-wobble { 0%,100% { transform: skewX(-1deg) scale(1); } 35% { transform: skewX(2.5deg) scale(1.02,.97); } 70% { transform: skewX(-2deg) scale(.985,1.015); } }
@keyframes jelly-idle { 0%,100% { scale: 1; rotate: 0deg; } 45% { scale: 1.018 .985; rotate: .5deg; } 70% { scale: .99 1.01; rotate: -.4deg; } }
@keyframes topping-drop { from { opacity: 0; transform: translateY(-30px) rotate(-25deg) scale(.45); } to { opacity: 1; transform: translateY(0) rotate(var(--rotate, 0deg)) scale(1); } }
@keyframes live-pulse { 50% { opacity: .35; } }
@keyframes stat-pop { 45% { color: #df3e7d; transform: scale(1.18); } }
@keyframes heart-float { 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes host-celebrate { 50% { transform: translateY(-7px) rotate(-2deg); } }
@keyframes reaction-float { 0% { opacity: 0; transform: translateY(0) scale(.5); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift), -220px) rotate(var(--spin)) scale(1.18); } }
@keyframes chat-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes result-wobble { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.06,.95); } }

@media (max-width: 760px) {
  .game-shell { padding: 8px; }
  .topbar { align-items: flex-start; }
  .brand-jelly { flex-basis: 34px; width: 34px; height: 31px; }
  .eyebrow { font-size: .56rem; }
  .quiet-button, .icon-button { min-height: 42px; padding: 7px 10px; font-size: .72rem; }
  .icon-button { width: 42px; font-size: 1rem; }
  .hud { gap: 4px; }
  .hud div { padding: 6px 2px; border-radius: 11px; }
  .hud span { font-size: .55rem; }
  .game-status { font-size: .72rem; }
  .game-stage, .screen { min-height: calc(100vh - 154px); border-radius: 22px; }
  .screen { padding: 14px 11px; }
  .start-screen { grid-template-columns: 1fr; align-content: center; text-align: center; }
  .start-art { min-height: 235px; order: -1; }
  .start-copy { margin: 0 auto; }
  .start-copy h2 { font-size: clamp(1.8rem, 10vw, 2.7rem); }
  .start-copy p:not(.eyebrow) { margin: 9px 0 14px; font-size: .86rem; }
  .start-face { font-size: 2.1rem; }
  .screen-heading { margin-bottom: 12px; }
  .level-pill, .viewer-badge { padding: 6px 8px; font-size: .62rem; }
  .prepare-layout, .decorate-layout { grid-template-columns: 1fr; gap: 10px; }
  .recipe-preview { min-height: 240px; order: -1; padding: 10px; }
  .prepare-layout .recipe-preview { min-height: 215px; }
  .plate-scene { height: 170px; max-width: 255px; }
  .jelly-shape { height: 98px; }
  .choice-panel { padding: 12px; }
  fieldset { margin-bottom: 12px; }
  .choice-card { padding: 7px; }
  .choice-card small { display: none; }
  .mold-button { min-height: 65px; }
  .mold-icon { width: 34px; height: 27px; font-size: 1.55rem; }
  .topping-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .topping-button { min-height: 63px; padding: 6px; grid-template-columns: 34px 1fr; }
  .topping-button .topping-icon { width: 34px; height: 34px; font-size: 1rem; }
  .topping-button strong { font-size: .74rem; }
  .live-layout { grid-template-columns: 1fr; }
  .studio-scene { min-height: 310px; }
  .stream-panel { min-height: 0; }
  .popularity { padding: 8px; }
  .chat-list { display: flex; min-height: 58px; gap: 5px; padding: 7px; overflow: hidden; }
  .chat-message { min-width: 46%; margin: 0; font-size: .62rem; }
  .timing-card { position: sticky; bottom: 4px; z-index: 20; grid-template-columns: 1fr; gap: 7px; margin-top: 8px; padding: 9px; }
  .timing-copy { display: flex; justify-content: space-between; gap: 5px; }
  .timing-copy span { text-align: right; }
  .taste-button { width: 100%; min-height: 50px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 390px) {
  h1 { font-size: 1.25rem; }
  .start-art { min-height: 205px; }
  .start-screen { gap: 9px; }
  .choice-grid--flavors { gap: 5px; }
  .choice-card strong { font-size: .74rem; }
  .screen-heading h2 { font-size: 1.4rem; }
  .level-pill { max-width: 112px; text-align: center; }
  .recipe-preview { min-height: 214px; }
  .decorate-preview > p { display: none; }
  .studio-scene { min-height: 275px; }
  .live-dish { width: 52%; }
  .host { width: 45%; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .game-shell { padding-top: 10px; padding-bottom: 10px; }
  .game-stage, .screen { min-height: 550px; }
  .screen { padding-top: 22px; padding-bottom: 22px; }
  .start-art { min-height: 350px; }
  .studio-scene, .stream-panel { min-height: 315px; }
}

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