:root {
  --ink: #4a3557; --cream: #fff8ef; --pink: #ff7aa8; --mint: #5fd3a6; --sky: #6cc4ff; --sun: #ffcf4a; --grape: #b38cff;
  --btn-edge: #e5d6f2; --shadow: 0 10px 22px rgba(74, 53, 87, 0.22);
  --top: max(10px, env(safe-area-inset-top)); --bottom: max(12px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #ffd3b0; font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', 'Varela Round', 'Segoe UI Rounded', 'Segoe UI', system-ui, sans-serif; font-weight: 800; color: var(--ink); }
#app { position: fixed; inset: 0; display: flex; justify-content: center; }
button { font: inherit; border: 0; background: none; color: inherit; padding: 0; touch-action: manipulation; cursor: pointer; }
.hidden { display: none !important; }
.pixel, .pix { image-rendering: pixelated; image-rendering: crisp-edges; }
img.pix { display: block; pointer-events: none; }
.pet-canvas { display: block; touch-action: none; image-rendering: pixelated; }
.grow { flex: 1; }
.btn-space { width: 64px; flex: none; }

.screen {
  position: relative; width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; align-items: center; overflow: hidden; touch-action: none;
  background: #fde9d6 center bottom / cover no-repeat; image-rendering: pixelated; animation: screen-in 0.32s ease-out;
}
@keyframes screen-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: grid; place-items: center; flex: none;
  background: linear-gradient(#fff 55%, #f7f0ff); border-radius: 24px;
  box-shadow: 0 6px 0 var(--btn-edge), 0 10px 18px rgba(74, 53, 87, 0.2);
  transition: transform 0.08s;
}
.btn img { width: 72%; height: auto; }
.btn.round { width: 64px; height: 64px; border-radius: 50%; }
.btn.round.big { width: 92px; height: 92px; }
.btn.down, .btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--btn-edge), 0 4px 10px rgba(74, 53, 87, 0.2); }
.pressed { animation: squish 0.26s ease-out; }
@keyframes squish { 0% { transform: scale(1); } 35% { transform: scale(0.86, 0.8); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }

.bar { position: relative; z-index: 10; width: 100%; display: flex; align-items: center; gap: 7px; padding: var(--top) 10px 6px; }
.bar .btn.round { width: clamp(44px, 13.6vw, 56px); height: clamp(44px, 13.6vw, 56px); }
.bar .btn-space { width: clamp(44px, 13.6vw, 56px); }
.bar .pill { min-width: 0; }
.pill {
  display: flex; align-items: center; gap: 4px; height: 50px; padding: 0 16px 0 6px; border-radius: 26px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 0 var(--btn-edge), 0 8px 16px rgba(74, 53, 87, 0.18); font-size: 26px; flex: none;
}
.pill img { width: 40px; height: 40px; }
.pill.big { height: 78px; font-size: 44px; padding: 0 28px 0 12px; border-radius: 40px; }
.pill.big img { width: 60px; height: 60px; }

/* ---------- splash ---------- */
.splash { background: radial-gradient(circle at 50% 40%, #ffe7f1, #ffd3b0 70%); justify-content: center; gap: 30px; }
.splash-logo { display: flex; gap: 10px; align-items: flex-end; }
.splash-logo .paw { width: 64px; height: 64px; animation: hop 0.9s ease-in-out infinite; }
.splash-logo .b { width: 84px; height: 84px; animation-delay: 0.15s; }
.splash-logo .c { animation-delay: 0.3s; }
.loader { width: 120px; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.6); overflow: hidden; position: relative; }
.loader::after { content: ''; position: absolute; inset: 0; width: 40%; border-radius: 7px; background: var(--pink); animation: load 1.1s ease-in-out infinite; }
@keyframes load { 0% { left: -40%; } 100% { left: 100%; } }

/* ---------- who is playing ---------- */
.pick-col { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: calc(var(--top) + 12px) 22px calc(var(--bottom) + 24px); }
.pick-card {
  position: relative; flex: 1; max-height: 340px; border-radius: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.3); border: 5px solid rgba(255, 255, 255, 0.85); box-shadow: 0 8px 0 rgba(74, 53, 87, 0.12), var(--shadow);
  animation: card-in 0.5s cubic-bezier(.3, 1.6, .5, 1) both;
}
.pick-dragon { background: radial-gradient(ellipse 70% 60% at 50% 62%, rgba(255, 255, 255, 0.8), rgba(206, 245, 214, 0.55) 55%, rgba(150, 220, 170, 0.35)); }
.pick-kitten { background: radial-gradient(ellipse 70% 60% at 50% 62%, rgba(255, 255, 255, 0.8), rgba(255, 228, 214, 0.55) 55%, rgba(255, 186, 160, 0.35)); animation-delay: 0.1s; }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(0.9); } }
.pick-inner::before { content: ''; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 65%); }
.pick-inner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.pick-egg { animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 90%; margin-bottom: 6px; position: relative; z-index: 1; }
.new-badge { position: absolute; right: -16px; top: -6px; width: 48px; height: 48px; animation: twinkle 1.6s ease-in-out infinite; }
.name-tag { position: absolute; bottom: -22px; padding: 6px 26px; border-radius: 22px; background: #fff; font-size: 26px; box-shadow: 0 4px 0 var(--btn-edge); max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pet-holder { position: relative; display: flex; flex-direction: column; align-items: center; }
.shadow { position: absolute; bottom: 3%; left: 50%; width: 56%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(60, 30, 50, 0.32), rgba(60, 30, 50, 0) 70%); }
.pick-inner > .shadow { bottom: 0; width: 70%; height: 22px; }

/* ---------- choose ---------- */
.choose-col { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; padding: 0 24px calc(var(--bottom) + 10px); }
.choose-card {
  position: relative; width: min(78vw, 300px); flex: 0 1 30%; border-radius: 40px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
  background: radial-gradient(circle at 50% 70%, #fff, var(--tint)); border: 5px solid #fff; box-shadow: 0 7px 0 rgba(74, 53, 87, 0.14), var(--shadow);
  animation: card-in 0.5s cubic-bezier(.3, 1.6, .5, 1) both; transition: opacity 0.3s, transform 0.3s;
}
.choose-card.fade { opacity: 0; transform: scale(0.8); }
.choose-base { position: absolute; bottom: 10px; width: 62%; }
.choose-egg { position: relative; z-index: 1; margin-bottom: 18px; animation: wobble 2.2s ease-in-out infinite; transform-origin: 50% 90%; }
.choose-kitten { position: relative; z-index: 1; margin-bottom: 7%; }

/* ---------- hatch and parties ---------- */
.hatch { justify-content: center; }
.hatch-nest { position: relative; width: min(80vw, 330px); height: min(90vw, 380px); display: flex; align-items: flex-end; justify-content: center; margin-top: 34vh; }
.hatch-egg { width: 52%; margin-bottom: 15%; position: relative; z-index: 3; transform-origin: 50% 90%; animation: wobble 2s ease-in-out infinite; }
.hatch-egg.shake { animation: shake 0.4s; }
.hatch-base { position: absolute; bottom: 0; width: 74%; z-index: 1; }
.hatch-nest .pet-canvas { position: relative; z-index: 3; margin-bottom: 8%; }
.hatch-nest > .shadow { bottom: 2%; width: 80%; height: 14%; }
.tap-ring { position: absolute; left: 50%; top: 35%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 6px solid rgba(255, 255, 255, 0.9); transform: translate(-50%, -50%); animation: ring 1.4s ease-out infinite; z-index: 0; }
@keyframes ring { from { transform: translate(-50%, -50%) scale(0.6); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.15); opacity: 0; } }
.flash { position: absolute; inset: 0; background: #fff; z-index: 50; pointer-events: none; animation: flash 0.7s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

.celebrate { justify-content: center; gap: 18px; }
/* a soft wash over the scene so the party in front stands out */
.celebrate::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(255, 251, 242, 0.6), rgba(255, 244, 228, 0.3) 70%); }
.rays {
  position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; pointer-events: none; z-index: 0;
  background: repeating-conic-gradient(rgba(255, 246, 200, 0.42) 0 10deg, rgba(255, 255, 255, 0) 10deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 15%, transparent 45%); mask: radial-gradient(circle, #000 0, #000 15%, transparent 45%);
  animation: spin 24s linear infinite;
}
.celebrate > *:not(.rays):not(.confetti):not(.spark) { position: relative; z-index: 1; }
.gift-box { width: min(60vw, 240px); height: min(60vw, 240px); display: grid; place-items: center; animation: hop 1s ease-in-out infinite; }
.gift-box img { width: 100%; }
.gift-box.open { animation: shake 0.45s; }
.gift-box.reveal { animation: pop-in 0.5s cubic-bezier(.3, 1.8, .5, 1); }
.sticker-img { filter: drop-shadow(0 8px 10px rgba(74, 53, 87, 0.3)); }
.sticker-card { width: 150px; height: 150px; padding: 12px; border-radius: 30px; background: #fff; box-shadow: var(--shadow); transform: rotate(-6deg); }
.sticker-card img { width: 100%; }
.reward .pet-canvas { margin: -6px 0; }
.reward-row { display: flex; gap: 18px; margin-top: 12px; }
.pop-in { animation: pop-in 0.55s cubic-bezier(.3, 1.8, .5, 1) both; }
.grow-in { animation: grow-in 1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop-in { from { transform: scale(0.2); opacity: 0; } }
@keyframes grow-in { 0% { transform: scale(0.6); filter: brightness(3); } 60% { filter: brightness(1.6); } 100% { transform: scale(1); filter: none; } }

/* ---------- room ---------- */
.room { position: absolute; inset: 0; }
.decor { position: absolute; height: auto; z-index: 2; filter: drop-shadow(0 6px 4px rgba(60, 30, 50, 0.25)); transform-origin: 50% 100%; }
.decor img { width: 100%; }
.jiggle { animation: jiggle 0.5s; }
.fall { position: absolute; top: -40px; z-index: 1; pointer-events: none; opacity: 0.9; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(18px, 26vh) rotate(90deg); } 50% { transform: translate(-10px, 52vh) rotate(180deg); } 75% { transform: translate(16px, 78vh) rotate(270deg); } 100% { transform: translate(0, 106vh) rotate(360deg); } }
@keyframes jiggle { 0%, 100% { transform: none; } 25% { transform: scale(1.1, 0.88); } 50% { transform: scale(0.94, 1.1) translateY(-10px); } 75% { transform: scale(1.04, 0.96); } }
.home-pet { position: absolute; left: 50%; bottom: calc(var(--bottom) + 130px); transform: translateX(-50%); z-index: 3; }
.home-pet .shadow { bottom: 2%; }
.want {
  position: absolute; left: 64%; top: 4%; z-index: 4; width: 92px; height: 82px; display: grid; place-items: center;
  background: #fff; border-radius: 46px; box-shadow: var(--shadow); animation: float-y 1.6s ease-in-out infinite;
}
.want::before, .want::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.want::before { width: 22px; height: 22px; left: 6px; bottom: -12px; }
.want::after { width: 12px; height: 12px; left: -6px; bottom: -26px; }
.want img { width: 62px; }
.care {
  position: absolute; left: 10px; right: 10px; bottom: var(--bottom); z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px 10px 14px 10px;
  background: rgba(255, 255, 255, 0.55); border-radius: 34px; box-shadow: var(--shadow); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.care-btn { height: 98px; border-radius: 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.care-btn img { width: 62px; }
.care-btn.wants { animation: want-pulse 1.2s ease-in-out infinite; box-shadow: 0 6px 0 #ffb3cc, 0 0 0 5px #ff7aa8, 0 10px 18px rgba(255, 90, 140, 0.35); }
@keyframes want-pulse { 50% { transform: translateY(-5px) scale(1.04); } }
.meter { width: 70%; height: 10px; background: rgba(74, 53, 87, 0.12); border-radius: 5px; overflow: hidden; }
.fill { height: 100%; border-radius: 5px; transition: width 0.5s; }
.fill.ok { background: linear-gradient(#7fe2a6, #3fbf78); }
.fill.mid { background: linear-gradient(#ffe07a, #f5b82e); }
.fill.low { background: linear-gradient(#ff9fae, #f2607a); }
.hop-once { animation: hop-once 0.6s ease-out; }
@keyframes hop-once { 0%, 100% { transform: none; } 30% { transform: translateY(-22px) scale(0.96, 1.05); } 60% { transform: translateY(0) scale(1.06, 0.94); } }
.spin { animation: spin-jump 0.7s ease-out; }
@keyframes spin-jump { 0% { transform: none; } 40% { transform: translateY(-40px) rotate(180deg); } 100% { transform: rotate(360deg); } }

/* food sheet */
.sheet {
  position: absolute; left: 10px; right: 10px; bottom: var(--bottom); z-index: 20; padding: 22px 14px 16px; border-radius: 34px;
  background: #fffaf3; box-shadow: 0 -4px 30px rgba(74, 53, 87, 0.3); animation: sheet-up 0.3s cubic-bezier(.3, 1.4, .5, 1);
}
.sheet.closing { animation: sheet-down 0.2s ease-in forwards; }
@keyframes sheet-up { from { transform: translateY(110%); } }
@keyframes sheet-down { to { transform: translateY(120%); } }
.food-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.food-btn { width: calc((100% - 36px) / 4); aspect-ratio: 1; border-radius: 26px; background: linear-gradient(#fff, #fff2e2); box-shadow: 0 6px 0 #f1dcc4, 0 8px 14px rgba(74, 53, 87, 0.15); }
.food-btn img { width: 78%; }
.food-btn.treat { background: linear-gradient(#fff, #ffe6f0); box-shadow: 0 6px 0 #f6c6d8, 0 8px 14px rgba(74, 53, 87, 0.15); }
.sheet-close { position: absolute; right: 8px; top: -30px; width: 56px; height: 56px; }
.flyer { position: absolute; z-index: 30; pointer-events: none; }

/* parent gate */
.gear { position: absolute; left: 4px; top: 50%; z-index: 40; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; opacity: 0.35; touch-action: none; }
.gear img { width: 24px; height: 24px; }
.gear-ring { position: absolute; inset: 0; border-radius: 50%; }
.gear.holding { opacity: 1; }
.gear.holding .gear-ring { background: conic-gradient(var(--pink) var(--p, 0%), rgba(255, 255, 255, 0.8) 0); animation: gate 3s linear forwards; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes gate { to { --p: 100%; } }

/* ---------- bath ---------- */
.progress { flex: 1; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px 0 6px; border-radius: 26px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 0 var(--btn-edge), 0 8px 16px rgba(74, 53, 87, 0.18); }
.progress img { width: 42px; height: 42px; }
.track { flex: 1; height: 16px; border-radius: 8px; background: rgba(74, 53, 87, 0.12); overflow: hidden; }
.bar-fill { width: 0; height: 100%; border-radius: 8px; background: linear-gradient(#9fe3ff, #49b4f2); transition: width 0.25s; }
.night-prog .bar-fill { background: linear-gradient(#d4c2ff, #9a7ef2); transition: width 0.9s; }
.bath-area { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(var(--bottom) + 40px); touch-action: none; }
.tub-wrap { position: relative; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.tub-pet { position: relative; margin-bottom: -30%; z-index: 1; }
.tub { position: relative; width: 100%; z-index: 2; }
.suds { position: absolute; z-index: 5; height: auto; pointer-events: none; animation: suds 1.6s ease-out forwards; }
@keyframes suds { 0% { transform: scale(0.3); opacity: 0; } 15% { transform: scale(1); opacity: 1; } 100% { transform: translate(var(--dx), -120px) scale(1.15); opacity: 0; } }

/* ---------- nap ---------- */
.night { position: absolute; inset: 0; background: radial-gradient(circle at 50% 70%, rgba(20, 16, 60, 0.15), rgba(15, 10, 45, 0.55)); pointer-events: none; transition: background 1s, opacity 1s; }
.night.morning { opacity: 0; }
.twinkle { position: absolute; width: 22px; height: 22px; animation: twinkle 3s ease-in-out infinite; pointer-events: none; }
.bed-wrap { position: absolute; left: 50%; bottom: calc(var(--bottom) + 130px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.bed-wrap .bed { position: absolute; bottom: 0; width: 100%; }
.bed-pet { position: relative; margin-bottom: 14%; }
.bed-wrap.small { position: relative; left: 0; bottom: 0; transform: none; width: 46%; }
.zzz { position: absolute; width: 44px; height: 44px; z-index: 5; pointer-events: none; animation: zzz 2.6s ease-out forwards; }
@keyframes zzz { 0% { opacity: 0; transform: scale(0.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(40px, -110px) scale(1.3); } }
.sun-btn { position: absolute; bottom: calc(var(--bottom) + 20px); left: 50%; margin-left: -46px; z-index: 6; animation: float-y 2s ease-in-out infinite; }
.bedtime .date-row { margin-top: auto; margin-bottom: calc(var(--bottom) + 80px); }

/* ---------- games menu ---------- */
.game-grid { flex: 1; width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 16px; padding: 8px 18px calc(var(--bottom) + 16px); overflow-y: auto; touch-action: pan-y; align-content: stretch; }
.game-tile { width: 100%; min-height: 0; max-height: 200px; border-radius: 32px; background: radial-gradient(circle at 50% 40%, #fff 0, var(--tint) 80%); box-shadow: 0 7px 0 rgba(74, 53, 87, 0.18), var(--shadow); border: 4px solid #fff; animation: card-in 0.45s cubic-bezier(.3, 1.6, .5, 1) both; }
.game-tile img { width: auto; height: 74%; max-width: 74%; object-fit: contain; }

/* ---------- inside a game ---------- */
.game .stage { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.quit { position: absolute; left: 12px; top: var(--top); z-index: 40; }
.buddy { position: absolute; right: 6px; bottom: calc(var(--bottom) + 4px); pointer-events: none; z-index: 2; }
.score { position: absolute; top: var(--top); right: 12px; z-index: 25; }
.clock-wrap { position: absolute; top: calc(var(--top) + 6px); left: 88px; right: 140px; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, 0.7); overflow: hidden; z-index: 25; box-shadow: 0 3px 0 var(--btn-edge); }
.clock { height: 100%; background: linear-gradient(#ffd27a, #ff9a3c); transition: width 1s linear; border-radius: 9px; }

.bubble { position: absolute; bottom: -160px; border-radius: 50%; animation: float linear forwards; z-index: 3;
  background: radial-gradient(circle at 32% 28%, #fff 0 9%, rgba(255, 255, 255, 0.35) 10% 20%, transparent 21%), radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 50%, var(--c) 72%, rgba(255, 255, 255, 0.9) 76%, var(--c) 82%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6) inset; }
.balloon { border-radius: 50% 50% 48% 48%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0 8%, transparent 9%), radial-gradient(circle at 40% 35%, var(--c), color-mix(in srgb, var(--c), #000 22%)); box-shadow: none; }
.balloon::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 2px; height: 26px; background: rgba(74, 53, 87, 0.5); }
.balloon::before { content: ''; position: absolute; left: calc(50% - 6px); bottom: -6px; border: 6px solid transparent; border-bottom-color: color-mix(in srgb, var(--c), #000 22%); }
.bubble img { width: 90%; margin: 5%; }
.spark { position: absolute; pointer-events: none; z-index: 40; animation: spark 0.7s ease-out forwards; }
.piece { position: absolute; pointer-events: none; z-index: 20; }
.grid-center { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 10px; width: 100%; padding: 0 8px; margin: auto 0 calc(var(--bottom) + 36px); }
.hide-spot { position: relative; width: min(30vw, 140px); height: min(33vw, 155px); display: grid; place-items: end center; border-radius: 50%; }
.hide-spot::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 16%; border-radius: 50%; background: radial-gradient(rgba(40, 60, 20, 0.35), rgba(40, 60, 20, 0) 70%); }
.hide-spot .pet-canvas { position: relative; z-index: 1; width: 90% !important; height: auto !important; }
.cover { position: absolute; inset: 0; display: grid; place-items: end center; transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1); z-index: 2; }
.cover img { width: 100%; }
.cover.lifted { transform: translateY(-90px) scale(0.7) rotate(-12deg); opacity: 0.85; }
.peek-item { width: 84px; margin-bottom: 18px; animation: pop-in 0.4s both; }
.food-row { position: relative; z-index: 4; display: flex; justify-content: center; gap: 12px; padding: 10px; flex-wrap: wrap; width: 100%; }
.big-food { width: 88px; height: 88px; border-radius: 26px; background: linear-gradient(#fff, #fff2e2); box-shadow: 0 6px 0 #f1dcc4, 0 8px 14px rgba(74, 53, 87, 0.15); display: grid; place-items: center; }
.big-food img { width: 76%; }
.big-food:disabled { opacity: 0; }
.paint { position: absolute; left: 0; top: 0; touch-action: none; }
.paint-bar { position: absolute; left: 10px; right: 10px; bottom: var(--bottom); height: 96px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fffaf3; z-index: 5; padding: 0 10px; border-radius: 30px; box-shadow: var(--shadow); }
.swatch { flex: 1 1 0; min-width: 0; max-width: 62px; aspect-ratio: 1; border-radius: 50%; box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.15), inset 5px 5px 0 rgba(255, 255, 255, 0.45), 0 4px 0 rgba(74, 53, 87, 0.2); }
.swatch.on { outline: 5px solid #fff; box-shadow: 0 0 0 9px var(--ink); }
.pads { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: calc(var(--top) + 80px) 16px calc(var(--bottom) + 16px); }
.pad { border-radius: 32px; display: grid; place-items: center; border: 5px solid rgba(255, 255, 255, 0.85); box-shadow: inset -10px -12px 0 rgba(0, 0, 0, 0.12), inset 8px 8px 0 rgba(255, 255, 255, 0.35), 0 7px 0 rgba(74, 53, 87, 0.2); }
.pad img { width: 64%; max-width: 120px; }
.pads.four { flex: 1; height: auto; min-height: 0; padding: 8px 16px calc(var(--bottom) + 16px); }
.pads.four .pad { filter: saturate(0.5) brightness(0.88); transition: filter 0.15s, transform 0.1s; }
.pads.four.listening .pad { filter: none; }
.pads.four .pad.lit { filter: brightness(1.18); transform: scale(1.05); box-shadow: 0 0 0 8px #fff, 0 0 40px 10px rgba(255, 255, 255, 0.8); }
.says-top { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: calc(var(--top) + 54px); flex: none; }
.says-cue { display: flex; gap: 8px; padding: 12px 16px; min-height: 46px; border-radius: 24px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 4px 0 var(--btn-edge), var(--shadow); }
.says-cue i { width: 22px; height: 22px; border-radius: 50%; background: #eadff5; transition: background 0.2s, transform 0.2s; }
.says-cue i.on { background: var(--mint); transform: scale(1.15); }
.corner-done { position: absolute; right: 12px; top: var(--top); z-index: 30; }
.color-ask { width: 140px; height: 140px; border-radius: 50%; margin: 70px 0 16px; border: 8px solid #fff; flex: none; box-shadow: var(--shadow), inset -12px -12px 0 rgba(0, 0, 0, 0.15), inset 10px 10px 0 rgba(255, 255, 255, 0.4); }
.ball { width: 118px; height: 118px; border-radius: 50%; box-shadow: inset -12px -12px 0 rgba(0, 0, 0, 0.15), inset 10px 10px 0 rgba(255, 255, 255, 0.45), 0 6px 0 rgba(74, 53, 87, 0.2); }
.ring { position: absolute; border: 12px solid #ffc83d; border-radius: 50%; box-shadow: 0 0 0 4px #fff7c2 inset, 0 0 0 3px #d99a1f, 0 6px 12px rgba(0, 0, 0, 0.15); }
.ring-hit { border-color: #6fe08f; opacity: 0.5; }
.cards { display: grid; gap: 10px; justify-content: center; align-content: center; width: 100%; padding: calc(var(--top) + 70px) 12px calc(var(--bottom) + 12px); flex: 1; max-height: 100%; perspective: 800px; }
.card { position: relative; border-radius: 20px; min-height: 0; display: grid; place-items: center; border: 4px solid #fff; background: repeating-linear-gradient(45deg, #8f7be6 0 12px, #7d69d8 12px 24px); box-shadow: 0 5px 0 rgba(74, 53, 87, 0.25); transition: transform 0.25s; }
.card::after { content: ''; position: absolute; width: 36%; aspect-ratio: 1; background: url(../art/ui/icon/star.png) center / contain no-repeat; image-rendering: pixelated; opacity: 0.9; }
.card.up { background: #fff8e6; transform: rotateY(180deg) scaleX(-1); }
.card.peek { box-shadow: 0 0 0 4px #ffd86b, 0 5px 0 rgba(74, 53, 87, 0.25); }
.card.up::after, .card.matched::after { display: none; }
.card img { width: 70%; max-height: 80%; object-fit: contain; }
.card.matched { background: #d6f7dd; animation: pop 0.35s; }
.number-ask { display: flex; flex-direction: column; align-items: center; margin-top: calc(var(--top) + 66px); background: #fff; padding: 8px 30px 12px; border-radius: 28px; flex: none; z-index: 5; box-shadow: var(--shadow); }
.big-num { font-size: 64px; line-height: 1; color: var(--pink); }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 200px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--grape); }
.gem-area { flex: 1; width: 100%; padding: 12px 12px 190px; display: flex; align-items: center; justify-content: center; }
.gem-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(100%, 400px); }
.gem { width: 76px; height: 76px; border-radius: 22px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 5px 0 var(--btn-edge); display: grid; place-items: center; }
.gem img { width: 78%; }
.piles { display: flex; gap: 14px; width: 100%; padding: 10px 14px; }
.pile { flex: 1; min-height: 170px; border-radius: 28px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 6px 0 var(--btn-edge), var(--shadow); padding: 12px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px; }
.pile img { width: 38px; }
.pattern-board { margin-top: calc(var(--top) + 84px); width: calc(100% - 24px); max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 20px 10px 24px; }
.pattern { display: flex; justify-content: center; gap: 5px; width: 100%; }
.pattern .slot { width: min(56px, calc((100% - (var(--n, 5) - 1) * 5px) / var(--n, 5))); height: auto; aspect-ratio: 7 / 8; font-size: min(40px, 8vw); }
.pattern-choices { display: flex; justify-content: center; gap: 14px; }
.slot { width: 56px; height: 64px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); border-radius: 18px; box-shadow: 0 4px 0 var(--btn-edge); font-size: 40px; color: var(--pink); }
.slot img { width: 80%; }
.slot.ask { border: 4px dashed var(--pink); animation: float-y 1.2s ease-in-out infinite; }
.hunt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; padding: calc(var(--top) + 80px) 12px calc(var(--bottom) + 12px); flex: 1; }
.hunt-cell { position: relative; min-height: 0; display: grid; place-items: center; border-radius: 50%; }
.hunt-cell::before { content: ''; position: absolute; left: 14%; right: 14%; bottom: 6%; height: 14%; border-radius: 50%; background: radial-gradient(rgba(40, 60, 20, 0.35), rgba(40, 60, 20, 0) 70%); }
.hunt-cell img { width: 88%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(40, 60, 20, 0.3)); }
.hunt-cell img { position: relative; }
.hunt-cell.miss img { opacity: 0.45; filter: grayscale(0.5); }
.letter-word { display: flex; align-items: center; gap: 10px; font-size: 60px; margin-top: calc(var(--top) + 70px); background: #fff; padding: 10px 26px; border-radius: 28px; min-height: 100px; box-shadow: var(--shadow); }
.letter-word img { width: 80px; height: 80px; }
.letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 22px 10px; }
.letter { width: 104px; height: 118px; font-size: 76px; border-radius: 26px; background: linear-gradient(#fff, #fff1f6); box-shadow: 0 6px 0 #f3c6d6, var(--shadow); color: #e0457b; }
.letter:nth-child(3n+2) { color: #3f8fe0; box-shadow: 0 6px 0 #c3dcf5, var(--shadow); background: linear-gradient(#fff, #eef6ff); }
.letter:nth-child(3n) { color: #2fa86a; box-shadow: 0 6px 0 #c4ead2, var(--shadow); background: linear-gradient(#fff, #effbf3); }
.sky-stage { background: transparent; }
.yarn { position: absolute; width: 84px; z-index: 3; }
.swimmer { position: absolute; left: 0; z-index: 4; display: grid; place-items: center; }
.swimmer img { width: 100%; filter: drop-shadow(0 6px 6px rgba(0, 60, 90, 0.25)); }
.fish-flip { animation: fish-flip 0.7s ease-out; }
@keyframes fish-flip { 0% { transform: none; } 50% { transform: translateY(-30px) rotate(-200deg) scale(1.15); } 100% { transform: rotate(-360deg); } }
.rise { position: absolute; bottom: -40px; z-index: 2; pointer-events: none; opacity: 0.85; animation: rise linear forwards; }
@keyframes rise { to { transform: translateY(calc(-100vh - 60px)); } }

/* a soft cream tray that game pieces sit on, so they never float over a busy picture */
.board { position: relative; z-index: 4; border-radius: 32px; background: rgba(255, 250, 243, 0.93); border: 4px solid #fff; box-shadow: 0 6px 0 rgba(74, 53, 87, 0.12), var(--shadow); padding: 14px; }
.fish-plate, .ball-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(calc(100% - 24px), 440px); margin-bottom: 200px; }
.ball-row { margin-bottom: 170px; }
.glow { animation: glow 0.85s ease-in-out 3; z-index: 30; }
@keyframes glow { 50% { transform: scale(1.12); box-shadow: 0 0 0 7px #fff, 0 0 30px 14px rgba(255, 210, 80, 0.95); } }
.glow-img { animation: glow-img 0.85s ease-in-out 3; }
@keyframes glow-img { 50% { transform: scale(1.15); filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px rgba(255, 210, 80, 1)); } }
.flap-hint { left: 78px; width: 120px; z-index: 6; pointer-events: none; }

/* ---------- shop ---------- */
.shop-show { position: relative; width: 100%; display: flex; justify-content: center; align-items: flex-end; height: min(26vh, 220px); flex: none; }
.show-base { position: absolute; bottom: 4px; width: min(46vw, 200px); }
.shop-show .pet-canvas { position: relative; margin-bottom: min(9vw, 40px); }
.tabs { display: flex; gap: min(14px, 2.5vw); justify-content: center; padding: 14px 0 0; z-index: 2; }
.tab { width: min(92px, calc((100vw - 64px) / 4)); height: 74px; border-radius: 26px 26px 0 0; background: rgba(255, 255, 255, 0.7); box-shadow: none; }
.tab img { width: 56px; }
.tab.on { background: #fffaf3; transform: none; }
.tab:not(.on) img { opacity: 0.7; }
.panel { flex: 1; width: calc(100% - 20px); margin-bottom: var(--bottom); border-radius: 34px; background: #fffaf3; box-shadow: var(--shadow); overflow: hidden; display: flex; }
.shop-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: max-content; gap: 14px; padding: 16px; overflow-y: auto; touch-action: pan-y; }
.shop-item { position: relative; border-radius: 26px; background: #fff; padding: 10px 6px 34px; box-shadow: 0 5px 0 #efe2d2, 0 6px 12px rgba(74, 53, 87, 0.1); display: grid; place-items: center; }
.shop-icon { width: 80%; max-width: 86px; }
.shop-item.on { box-shadow: 0 0 0 5px var(--mint), 0 5px 0 5px #3fae82; }
.shop-item.poor .shop-icon { filter: grayscale(0.7) opacity(0.6); }
.tag { position: absolute; bottom: 6px; display: flex; align-items: center; gap: 2px; font-size: 20px; padding: 2px 10px 2px 4px; border-radius: 16px; background: #fff4cf; }
.tag img { width: 26px; height: 26px; }
.tag.got { background: transparent; padding: 0; }
.tag.got img { width: 32px; height: 32px; }
.tag.none { display: none; }

/* ---------- stickers ---------- */
.book {
  position: relative; flex: 1; min-height: 0; width: calc(100% - 28px); margin: 8px 0 12px; padding: 10px 10px 10px 26px; display: flex;
  border-radius: 22px 30px 30px 22px; background: linear-gradient(135deg, #ff9cbd, #f2709f); box-shadow: var(--shadow), inset 0 -6px 0 rgba(150, 40, 90, 0.25);
}
/* binder rings down the spine */
.book::before { content: ''; position: absolute; left: 7px; top: 8%; bottom: 8%; width: 14px; background: radial-gradient(circle, #fff6d8 0 4px, #c98f3a 5px 6px, transparent 7px) center top / 14px 16.5% repeat-y; }
.page {
  flex: 1; display: grid; place-items: center; border-radius: 14px; background: #fffaf0 center / 100% 100% no-repeat; image-rendering: pixelated;
  box-shadow: inset 0 0 0 3px rgba(120, 70, 40, 0.08), 0 3px 0 rgba(120, 40, 70, 0.25); transform-origin: 0 50%;
}
.page.turn-l { animation: turn-l 0.38s ease-out; }
.page.turn-r { animation: turn-r 0.38s ease-out; }
@keyframes turn-l { from { transform: perspective(900px) rotateY(-28deg) translateX(30px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes turn-r { from { transform: perspective(900px) rotateY(18deg) translateX(-24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; width: min(80%, 46vh); }
.slot-cell { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.slot-cell img { width: 100%; filter: drop-shadow(0 3px 2px rgba(74, 53, 87, 0.25)); }
.slot-cell.empty { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 2px 6px rgba(74, 53, 87, 0.12); }
.slot-cell img.ghost-sticker { width: 78%; filter: brightness(0) opacity(0.16); }
.book-tabs { display: flex; gap: min(12px, 2.4vw); justify-content: center; margin-bottom: var(--bottom); flex: none; }
.book-tab { width: min(68px, calc((100vw - 84px) / 5)); height: min(68px, calc((100vw - 84px) / 5)); }
.book-tab.on { box-shadow: 0 0 0 5px var(--mint), 0 6px 0 5px #3fae82; transform: translateY(-3px); }
.book-tab.ghost img:not(.tab-star) { filter: brightness(0) opacity(0.2); }
.btn img.tab-star { position: absolute; width: 30px; top: -10px; right: -10px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.zoom { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(43, 33, 64, 0.55); }
.zoom-img { width: min(70vw, 300px); position: relative; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.35)); }

/* ---------- play date ---------- */
.date-row { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin-top: auto; margin-bottom: calc(var(--bottom) + 60px); }
.big-heart { position: absolute; left: 50%; top: 40%; width: 180px; margin: -90px 0 0 -90px; z-index: 50; animation: big-heart 1.4s ease-out forwards; }
@keyframes big-heart { 0% { transform: scale(0); } 30% { transform: scale(1.2); } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3) translateY(-60px); opacity: 0; } }

/* ---------- grown ups ---------- */
.parents { overflow-y: auto; background: #f6f1fb; touch-action: pan-y; user-select: text; font-size: 16px; font-weight: 600; font-family: system-ui, sans-serif; display: block; }
.grown { max-width: 520px; margin: 0 auto; padding: calc(var(--top) + 8px) 16px calc(var(--bottom) + 30px); }
.grown h2 { font-size: 26px; margin: 8px 4px 14px; }
.grown h3 { font-size: 18px; margin: 0 0 10px; }
.grown .gcard { background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(74, 53, 87, 0.08); }
.grown .row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0e8f6; }
.grown .row:last-of-type { border-bottom: 0; }
.grown input[type=checkbox] { width: 26px; height: 26px; accent-color: var(--pink); }
.grown input:not([type=checkbox]), .grown textarea, .grown select { font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid #e6dcef; border-radius: 12px; background: #fff; user-select: text; -webkit-user-select: text; }
.grown textarea { width: 100%; margin-bottom: 6px; }
.pet-row { display: flex; align-items: center; gap: 12px; }
.pet-row input { flex: 1; min-width: 0; }
.muted { color: #8a7a99; margin: 10px 0; }
.need-row { display: flex; gap: 10px; margin-bottom: 10px; }
.mini { display: flex; align-items: center; gap: 4px; background: #f6f1fb; border-radius: 12px; padding: 4px 10px 4px 4px; }
.mini img { width: 28px; height: 28px; }
.label { font-size: 14px; color: #8a7a99; margin: 6px 0; }
.look-row { display: flex; gap: 12px; margin-bottom: 8px; }
.swatch-btn { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #e6dcef; }
.swatch-btn.on { box-shadow: 0 0 0 4px var(--pink); }
.btn-row { display: flex; gap: 10px; }
.btn-row .wide { flex: 1; }
.wide { display: block; width: 100%; padding: 14px; margin-top: 10px; background: #f1e9f8; border-radius: 14px; font-weight: 700; }
.wide:disabled { opacity: 0.4; }
.wide.primary { background: var(--pink); color: #fff; font-size: 18px; }
.wide.danger { background: #ffe5e5; color: #b02a2a; }

/* ---------- shared motion ---------- */
.wiggle { animation: wiggle 0.4s; }
.bounce { animation: pop 0.3s; }
.confetti { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; z-index: 45; pointer-events: none; animation: confetti linear forwards; }
@keyframes confetti { to { transform: translate(var(--drift), 110vh) rotate(var(--spin)); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg) scale(1.05); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg) scale(1.03); } 80% { transform: rotate(5deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-6deg); } 20% { transform: rotate(5deg); } 30% { transform: rotate(-3deg); } 40% { transform: rotate(0); } }
@keyframes pop { 50% { transform: scale(1.18); } }
@keyframes hop { 50% { transform: translateY(-12px); } }
@keyframes float-y { 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes float { to { bottom: 110%; } }
@keyframes spark { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rays { animation: none; } }

/* Keep picture controls large, and carry each scene out to the edges of wide displays. */
#app {
  background: linear-gradient(#482f4788, #482f4788), var(--scene-art, none) center / cover no-repeat, #ffd3b0;
}
.game-grid { grid-auto-rows: minmax(76px, 1fr); }
.shop-item, .slot-cell, .game-tile { touch-action: pan-y; }
.swimmer { top: calc(18% + 17% * var(--lane)); max-width: 25dvh; max-height: 25dvh; }

@media (orientation: landscape) {
  .screen { max-width: 740px; background-position: center 68%; }
  .screen.home { background-position: center bottom; }
  .pick-col, .choose-col { flex-direction: row; gap: 18px; padding: 14px 24px 24px; }
  .pick-card { height: 82%; }
  .choose-card { height: min(58dvh, 224px); }
  .choose-base { width: min(70%, 138px); }
  .hatch-nest { height: min(70dvh, 280px); width: min(80dvh, 330px); margin-top: 6dvh; }
  .hatch-nest .pet-canvas { max-width: 58dvh; max-height: 58dvh; }
  .care { max-width: 460px; margin-inline: auto; }
  .care-btn { height: 76px; }
  .care-btn img { width: 51px; }
  .home-pet { bottom: calc(var(--bottom) + 103px); }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (orientation: landscape) {
  .reward {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center; align-content: center; gap: 18px 8px; padding-inline: 28px;
  }
  .reward .pet-canvas, .reward .sticker-card { max-width: 38dvh; max-height: 38dvh; }
  .reward .reward-row { grid-column: 1 / -1; margin-top: 0; }
  .reward-row .btn.round.big { width: 70px; height: 70px; }
}

/* A familiar game picture and a replay arrow, separated from the care dock. */
.home .quick-play {
  position: absolute; z-index: 5; left: max(12px, env(safe-area-inset-left));
  bottom: calc(var(--bottom) + 132px); width: 60px; height: 60px;
  background: linear-gradient(#fff8df, #ffe5a6);
  --btn-edge: #e3b66d;
}
.quick-play img.quick-play-badge {
  position: absolute; right: -3px; bottom: -3px; width: 26px; height: 26px;
  padding: 3px; border-radius: 50%; background: #fff9ee;
}
@media (orientation: landscape) {
  .home .quick-play { bottom: calc(var(--bottom) + 104px); }
}

/* bath: rinse drops and the clean shine */
.drop { position: absolute; width: 18px; z-index: 6; pointer-events: none; opacity: 0; animation: drop-fall 0.9s ease-in forwards; }
@keyframes drop-fall { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(170px); } }
.shine-twinkle { position: absolute; width: 30px; z-index: 6; pointer-events: none; opacity: 0; animation: shine-twinkle 1.1s ease-in-out 2 both; }
@keyframes shine-twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
.shop-item.down, .slot-cell.down { transform: scale(0.94); transition: transform 0.06s; }
/* something new to look at: a twinkle on the button, and new stickers pop into the book */
.btn img.new-dot { position: absolute; width: 26px; top: -6px; right: -6px; animation: new-dot 1.4s ease-in-out infinite; }
@keyframes new-dot { 0%, 100% { transform: scale(0.8) rotate(0deg); } 50% { transform: scale(1.15) rotate(30deg); } }
.slot-cell.fresh { animation: fresh-in 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.slot-cell.fresh::after { content: ''; position: absolute; inset: -6%; border-radius: 50%; box-shadow: 0 0 0 4px #ffe066, 0 0 18px 6px rgba(255, 220, 80, 0.7); animation: fresh-glow 1.6s ease-out 0.4s 2 both; pointer-events: none; }
.slot-cell { position: relative; }
@keyframes fresh-in { from { transform: scale(0.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fresh-glow { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
