/* ===== Kunterbunt-Praxis ===== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #5fc4d4; }
html, body { width: 100%; min-height: 100dvh; overscroll-behavior: none; touch-action: manipulation; }
body {
  font-family: "Segoe UI Rounded", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  -webkit-user-select: none; user-select: none;
}
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 720px; overflow: hidden;
  border-radius: 24px; background: #dff6f8;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  transform: translate(-50%, -50%); transform-origin: center center;
  touch-action: none;
}
.screen { position: absolute; inset: 0; display: none; }
.screen.active { display: block; }
button { font-family: inherit; cursor: pointer; border: none; padding: 0; }
button, .door, .seat-patient, .card, .opt, .tab, .deco { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.big-round {
  position: absolute; width: 130px; height: 130px; border-radius: 50%;
  font-size: 70px; line-height: 1; background: #fff; color: #2aa5b5;
  box-shadow: 0 8px 0 #2aa5b5, 0 12px 20px rgba(0,0,0,.2);
  transition: transform .12s;
}
.big-round:hover { transform: scale(1.07); }
.big-round:active { transform: translateY(6px); box-shadow: 0 2px 0 #2aa5b5; }
.big-round.ok { background: #e9ffe3; box-shadow: 0 8px 0 #3aa63a, 0 12px 20px rgba(0,0,0,.2); }
.small-round {
  position: absolute; width: 64px; height: 64px; border-radius: 50%; font-size: 34px;
  background: #fff; box-shadow: 0 5px 0 #2aa5b5;
}
.small-round:hover { transform: scale(1.1); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
@keyframes wiggle { 0%,100% { transform: translate(-50%,-50%) rotate(0); } 25% { transform: translate(-50%,-50%) rotate(-12deg); } 75% { transform: translate(-50%,-50%) rotate(12deg); } }
.nope { animation: shake .5s; }

.stars-box {
  position: absolute; top: 16px; right: 20px; z-index: 5;
  background: #fff; border-radius: 40px; padding: 4px 24px;
  font-size: 44px; font-weight: 800; color: #f2a900;
  box-shadow: 0 5px 0 #f2c94c; display: flex; gap: 10px; align-items: center;
}
.stars-box.bump { animation: pulse .5s 3; }

/* ===== Start ===== */
#s-start { background: radial-gradient(circle at 50% 40%, #e9fbfd, #8fdde6 70%, #5fc4d4); }
.logo {
  position: absolute; top: 150px; left: 0; right: 0; margin: 0; text-align: center;
  font-size: 110px; font-weight: 900; letter-spacing: 2px;
  text-shadow: 0 6px 0 #fff, 0 10px 20px rgba(0,0,0,.15);
}
#btn-play { left: 565px; top: 380px; width: 150px; height: 150px; font-size: 80px; padding-left: 12px; }
#btn-fullscreen { position: absolute; z-index: 10; top: 18px; right: 18px; padding: 14px 20px; min-height: 54px; border-radius: 18px; background: #fff; color: #176b76; font: 700 22px/1 "Segoe UI", sans-serif; box-shadow: 0 5px 0 #2aa5b5; }
.float { position: absolute; font-size: 70px; animation: bob 3s ease-in-out infinite; }
.f1 { left: 90px; top: 60px; } .f2 { left: 1080px; top: 70px; animation-delay: .5s; }
.f3 { left: 200px; top: 520px; animation-delay: 1s; } .f4 { left: 1000px; top: 540px; animation-delay: 1.5s; }
.f5 { left: 560px; top: 40px; animation-delay: .8s; } .f6 { left: 60px; top: 330px; animation-delay: 2s; }
.f7 { left: 1150px; top: 330px; animation-delay: 1.2s; } .f8 { left: 820px; top: 600px; animation-delay: .3s; }

/* ===== Ärztin gestalten ===== */
#s-creator { background: linear-gradient(#e6f8fb, #bdeef3); }
#creator-preview {
  position: absolute; left: 60px; top: 70px; width: 340px; height: 600px;
  background: rgba(255,255,255,.7); border-radius: 40px; padding: 10px 20px;
}
#creator-preview svg { width: 100%; height: 100%; }
#creator-options { position: absolute; left: 450px; top: 40px; right: 30px; }
.crow { display: flex; align-items: center; gap: 12px; height: 125px; }
.crow-icon { font-size: 60px; width: 90px; text-align: center; }
.opt {
  width: 86px; height: 86px; border-radius: 50%; border: 6px solid #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.15); transition: transform .12s; overflow: hidden;
}
.opt:hover { transform: scale(1.08); }
.opt.sel { box-shadow: 0 0 0 6px #ffb800; transform: scale(1.1); }
.opt svg { width: 100%; height: 100%; }
.opt.style-opt { background: #eef9fb; }
#btn-creator-done { left: 1110px; top: 560px; }

/* ===== Wartezimmer ===== */
.wall {
  position: absolute; left: 0; right: 0; top: 0; height: 470px;
  background-color: #bfe9f2;
  background-image: radial-gradient(rgba(255,255,255,.55) 3px, transparent 4px);
  background-size: 44px 44px;
}
.floor {
  position: absolute; left: 0; right: 0; top: 470px; bottom: 0;
  background: repeating-conic-gradient(#8fdcd2 0 25%, #a9e7df 0 50%) 0 0 / 80px 80px;
  border-top: 10px solid #2aa5b5;
}
.window {
  position: absolute; left: 300px; top: 50px; width: 470px; height: 240px;
  border: 12px solid #fff; border-radius: 22px; overflow: hidden;
  background: linear-gradient(#8fd8ff, #dff5ff); box-shadow: 0 6px 0 rgba(0,0,0,.08);
}
.window .sun { position: absolute; right: 24px; top: 10px; font-size: 60px; }
.window .cloud { position: absolute; font-size: 56px; animation: drift 30s linear infinite; }
.window .c1 { top: 10px; left: -80px; }
.window .c2 { top: 60px; left: -80px; animation-delay: -15s; font-size: 40px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(600px); } }
.window .grass { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: #8ed46b; }
.window .tree { position: absolute; bottom: 20px; font-size: 80px; }
.window .t1 { left: 20px; } .window .t2 { left: 340px; font-size: 64px; } .window .t3 { left: 120px; font-size: 34px; bottom: 6px; }
.window .amb { position: absolute; bottom: 10px; left: 0; font-size: 70px; animation: drive 3.4s linear forwards; }
@keyframes drive { from { transform: translateX(480px); } to { transform: translateX(-130px); } }

.sign {
  position: absolute; left: 810px; top: 110px; width: 450px; height: 92px;
  background: #fff; border-radius: 26px; border: 6px solid #ff8fb1;
  font-size: 44px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.door {
  position: absolute; top: 258px; width: 100px; height: 212px;
  border-radius: 50px 50px 6px 6px; background: #fff; border: 6px solid #2aa5b5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; transition: transform .12s;
}
.door:hover { transform: scale(1.05); }
.door .plate { font-size: 54px; }
.door::after { content: ""; position: absolute; right: 12px; top: 120px; width: 14px; height: 14px; border-radius: 50%; background: #ffc93c; }
.door.locked { background: #d5dde0; border-color: #9aa5ab; }
.door.locked .plate { filter: grayscale(1); opacity: .45; }
.door .lock { font-size: 34px; }

.bench {
  position: absolute; left: 280px; top: 560px; width: 520px; height: 46px;
  background: #ff9cbc; border-radius: 20px; box-shadow: 0 30px 0 -10px #e57399;
}
#deco-layer { position: absolute; inset: 0; pointer-events: none; }
.deco {
  position: absolute; transform: translate(-50%, -50%); line-height: 1;
  cursor: grab; pointer-events: auto; touch-action: none;
}
.deco.wiggle { animation: wiggle .5s; }
#room-doctor { position: absolute; left: 30px; top: 320px; width: 210px; height: 378px; }
#room-doctor svg { width: 100%; height: 100%; }
#btn-edit-doctor { left: 200px; top: 320px; }

#seats { position: absolute; inset: 0; pointer-events: none; }
.seat-patient {
  position: absolute; top: 356px; width: 130px; cursor: pointer; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center;
}
.seat-patient.arrive { animation: arrive 1.3s ease-out; }
@keyframes arrive { from { transform: translateX(800px); } to { transform: translateX(0); } }
.seat-patient:hover .thought { transform: scale(1.15); }
.thought {
  position: relative; width: 86px; height: 86px; border-radius: 50%; background: #fff;
  font-size: 50px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.15); margin-bottom: 4px; transition: transform .15s;
  animation: bob 2.4s ease-in-out infinite;
}
.thought::after { content: ""; position: absolute; bottom: -12px; left: 54px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.thought .siren { position: absolute; top: -18px; right: -18px; font-size: 36px; animation: pulse .6s infinite; }
.mini { position: relative; width: 130px; height: 234px; }
.mini .pfig { position: absolute; left: 0; top: 0; transform: scale(.5); transform-origin: 0 0; }

#btn-shop { left: 1100px; top: 530px; width: 140px; height: 140px; font-size: 76px; }
.parent-btn {
  position: absolute; left: 6px; bottom: 6px; width: 44px; height: 44px;
  font-size: 24px; background: transparent; opacity: .3;
}
#place-layer {
  position: absolute; inset: 0; z-index: 60; display: none; cursor: crosshair;
  background: rgba(255,255,255,.15); border: 8px dashed rgba(255,184,0,.8); border-radius: 24px;
}
#place-layer.on { display: block; }

/* ===== Patient ===== */
.pfig { position: relative; width: 260px; height: 468px; }
.pfig svg { position: absolute; left: 0; top: 0; }
.phead {
  position: absolute; left: 130px; top: 72px; transform: translate(-50%, -50%);
  font-size: 150px; line-height: 1;
}
.pfig.happy { animation: jump .55s ease-in-out infinite alternate; }
@keyframes jump { from { transform: translateY(0); } to { transform: translateY(-24px); } }

/* ===== Behandlung ===== */
#s-treat { background: linear-gradient(#e6f8fb, #c6eef3); }
.treat-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: #a9e7df; border-top: 8px solid #2aa5b5; }
#treat-room-icon { position: absolute; right: 40px; top: 360px; font-size: 220px; opacity: .15; }
#s-treat .btn-home, #s-shop .btn-home { left: 18px; top: 18px; width: 100px; height: 100px; font-size: 54px; }
#btn-repeat { right: 20px; top: 18px; width: 100px; height: 100px; font-size: 54px; }
#step-dots { position: absolute; top: 34px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; pointer-events: none; }
.dot { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 5px solid #2aa5b5; }
.dot.done { background: #5cd65c; border-color: #3aa63a; }
.dot.now { background: #ffd84d; border-color: #f2a900; animation: pulse 1s infinite; }
#treat-doctor { position: absolute; left: 70px; top: 130px; width: 250px; height: 450px; }
#treat-doctor svg { width: 100%; height: 100%; }
#treat-rug { position: absolute; left: 480px; top: 530px; width: 320px; height: 60px; border-radius: 50%; background: radial-gradient(#ffd6e7, #ff9cbc); }
#treat-patient { position: absolute; left: 510px; top: 100px; width: 260px; height: 468px; }
#treat-patient .pfig { cursor: pointer; }
.bubble {
  position: absolute; left: 880px; top: 120px; width: 280px; height: 230px; border-radius: 50%;
  background: #fff; font-size: 140px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.bubble::before, .bubble::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.bubble::before { width: 44px; height: 44px; left: -20px; bottom: 10px; }
.bubble::after { width: 24px; height: 24px; left: -56px; bottom: -14px; }
.bubble .siren { position: absolute; top: -10px; right: 0; font-size: 60px; animation: pulse .6s infinite; }

.mark { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.mark.emoji { font-size: 54px; animation: bob 1.2s ease-in-out infinite; }
.mark.wound { width: 60px; height: 44px; border-radius: 50%; background: radial-gradient(#ff6b6b, #ff9a9a 55%, rgba(255,154,154,0) 72%); }
.mark.wound.clean { background: radial-gradient(#ffb3b3, #ffd0d0 55%, rgba(255,208,208,0) 72%); }
.mark.splinter { width: 9px; height: 38px; border-radius: 5px; background: #8b5a2b; transform: translate(-50%, -50%) rotate(35deg); box-shadow: 0 0 0 8px rgba(255,120,120,.35); }
.mark.bump { width: 56px; height: 40px; border-radius: 50%; background: radial-gradient(#ff8a8a, #ffb0b0 60%, rgba(255,176,176,0) 75%); }
.mark.bump.clean { width: 36px; height: 26px; }
.spot {
  position: absolute; width: 120px; height: 120px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 7px dashed #fff; background: rgba(255,240,120,.35);
  pointer-events: none; animation: spotPulse 1.2s ease-in-out infinite;
}
.spot.hidden { display: none; }
@keyframes spotPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.15); } }
.put { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.put.emoji { font-size: 60px; }
.put.cast {
  width: 50px; height: 120px; border-radius: 22px; background: #fff;
  border: 3px solid #e3e3e3; background-image: repeating-linear-gradient(160deg, #fff 0 10px, #f1f1f1 10px 14px);
}
.use { position: absolute; font-size: 90px; transform: translate(-50%, -50%); pointer-events: none; animation: wiggle .3s 3; z-index: 3; }
.fx { position: absolute; font-size: 70px; transform: translate(-50%, -50%); pointer-events: none; animation: floatUp 1.4s ease-out forwards; z-index: 4; }
@keyframes floatUp { from { opacity: 1; transform: translate(-50%, -50%) scale(.6); } to { opacity: 0; transform: translate(-50%, -170%) scale(1.4); } }

#toolbar {
  position: absolute; left: 20px; right: 20px; bottom: 14px; height: 112px;
  background: rgba(255,255,255,.75); border-radius: 30px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.tool {
  width: 84px; height: 84px; border-radius: 22px; font-size: 52px; line-height: 1;
  background: #fff; box-shadow: 0 5px 0 #9fd9e0; transition: transform .12s;
}
.tool:hover { transform: translateY(-6px); }
.tool.selected { background: #ffe97a; transform: translateY(-12px) scale(1.12); box-shadow: 0 0 0 6px #ffb800; }
.tool.hint { animation: hintBounce .8s ease-in-out infinite; box-shadow: 0 0 0 6px #5cd65c, 0 0 30px #5cd65c; }
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ===== Bau-Menü ===== */
#s-shop { background: linear-gradient(#e6f8fb, #b8ecf2); }
#shop-tabs { position: absolute; top: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 30px; pointer-events: none; }
#shop-tabs .tab { pointer-events: auto; }
.tab {
  position: relative; width: 110px; height: 110px; border-radius: 50%; font-size: 60px;
  background: #fff; box-shadow: 0 6px 0 #2aa5b5; transition: transform .12s;
}
.tab:hover { transform: scale(1.07); }
.tab.active { background: #ffe97a; transform: scale(1.12); box-shadow: 0 0 0 6px #ffb800; }
.tab.has-new::after { content: "⭐"; position: absolute; top: -10px; right: -10px; font-size: 34px; animation: pulse 1s infinite; }
#shop-grid {
  position: absolute; top: 175px; left: 30px; right: 30px; bottom: 10px;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start;
  gap: 40px 18px; overflow-y: auto; padding: 10px 0 40px;
}
.card {
  position: relative; width: 150px; height: 185px; background: #fff; border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 0 #9fd9e0; transition: transform .12s;
}
.card:hover { transform: scale(1.05); }
.card-e { font-size: 84px; line-height: 1.1; }
.price { display: flex; flex-wrap: wrap; justify-content: center; max-width: 130px; font-size: 21px; margin-top: 6px; }
.card.afford { box-shadow: 0 0 0 5px #5cd65c, 0 6px 0 #3aa63a; animation: bob 2s ease-in-out infinite; }
.card.expensive { opacity: .75; }
.card.locked { filter: grayscale(1); opacity: .55; }
.card .lock { position: absolute; top: 6px; right: 8px; font-size: 34px; }
.card.owned { box-shadow: 0 0 0 5px #ffc93c, 0 6px 0 #e0a800; }
.card.current { box-shadow: 0 0 0 7px #ff8fb1, 0 6px 0 #e57399; }
.badge { margin-top: 8px; width: 46px; height: 46px; border-radius: 50%; background: #5cd65c; color: #fff; font-size: 30px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.card .buy {
  display: none; position: absolute; bottom: -30px; left: calc(50% - 38px);
  width: 76px; height: 76px; border-radius: 50%; font-size: 44px; background: #5cd65c;
  box-shadow: 0 5px 0 #3aa63a; animation: pulse 1s infinite;
}
.card.selected { transform: scale(1.06); }
.card.selected .buy { display: block; }
.swatch { width: 90px; height: 90px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 3px #bbb; display: flex; align-items: center; justify-content: center; font-size: 40px; }

/* ===== Overlays ===== */
.overlay { position: absolute; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,.55); backdrop-filter: blur(3px); }
.overlay.on { display: flex; }
.cure-box { position: relative; background: #fff; border-radius: 40px; padding: 20px 70px 90px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.cure-hearts { font-size: 54px; animation: bob 1s ease-in-out infinite; }
.cure-head { font-size: 200px; line-height: 1.1; display: inline-block; animation: jump .5s ease-in-out infinite alternate; }
.cure-stars { font-size: 72px; min-height: 90px; }
.cure-stars span { display: inline-block; opacity: 0; animation: popIn .5s forwards; }
@keyframes popIn { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 70% { opacity: 1; transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }
.cure-box .big-round { left: calc(50% - 60px); bottom: -50px; width: 120px; height: 120px; font-size: 64px; }

.parent-box { background: #fff; border-radius: 24px; padding: 24px 40px; display: flex; flex-direction: column; gap: 12px; min-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,.2); font-family: "Segoe UI", sans-serif; }
.parent-box h2 { margin: 0 0 8px; color: #2aa5b5; }
.parent-box button { font-size: 22px; padding: 12px 18px; border-radius: 14px; background: #e6f8fb; text-align: left; }
.parent-box button:hover { background: #c6eef3; }
.profile-box { width: min(90vw, 560px); max-height: 85dvh; overflow-y: auto; background: #fff; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.22); font-family: "Segoe UI", sans-serif; }
.profile-box h2 { margin: 0 0 8px; color: #2aa5b5; text-align: center; font-size: 30px; }
#profile-list { display: flex; flex-direction: column; gap: 10px; }
.profile-box button { min-height: 56px; border-radius: 16px; padding: 12px 18px; background: #e6f8fb; color: #176b76; font: 700 21px/1.2 "Segoe UI", sans-serif; text-align: left; }
.profile-box button:hover { background: #c6eef3; }
#profile-new { background: #e9ffe3; }

#cursor-tool { position: absolute; z-index: 100; pointer-events: none; display: none; font-size: 80px; line-height: 1; transform: translate(14px, 22px); filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
#confetti { position: absolute; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.cf { position: absolute; top: -30px; width: 13px; height: 20px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(800px) rotate(760deg); } }

/* ===== Großer, gut sichtbarer Mauszeiger für Kinder =====
   Normal: pinker Pfeil. Über Klickbarem: gelber Pfeil mit Stern.
   (64x64 px, Spitze oben links bei 6/4) */
html, body, #stage, #stage * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M6 4 L6 50 L18 39 L27 58 L37 54 L28 35 L45 35 Z' fill='%23ff4f9a' stroke='%232d2d2d' stroke-width='8' stroke-linejoin='round'/%3E%3Cpath d='M6 4 L6 50 L18 39 L27 58 L37 54 L28 35 L45 35 Z' fill='%23ff4f9a' stroke='%23ffffff' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}
#stage button, #stage .card, #stage .door, #stage .seat-patient, #stage .seat-patient *,
#stage .deco, #stage .opt, #stage .opt *, #stage .tab, #stage #treat-patient .pfig, #stage #treat-patient .pfig *,
#stage #place-layer {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M6 4 L6 50 L18 39 L27 58 L37 54 L28 35 L45 35 Z' fill='%23ffd23f' stroke='%232d2d2d' stroke-width='8' stroke-linejoin='round'/%3E%3Cpath d='M6 4 L6 50 L18 39 L27 58 L37 54 L28 35 L45 35 Z' fill='%23ffd23f' stroke='%23ffffff' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M50 6 L53 14 L61 15 L55 20 L57 28 L50 24 L43 28 L45 20 L39 15 L47 14 Z' fill='%23ff4f9a' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, pointer !important;
}

/* Leuchtender Kreis, der dem Zeiger folgt (hilft beim Wiederfinden) */
#cursor-halo {
  position: absolute; z-index: 99; pointer-events: none; display: none;
  width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%;
  background: radial-gradient(rgba(255,230,90,.55), rgba(255,230,90,.25) 55%, rgba(255,230,90,0) 70%);
  animation: haloPulse 1.6s ease-in-out infinite;
}
@keyframes haloPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* Small touch screens: use the full viewport and keep the fixed game canvas legible. */
@media (max-width: 700px), (max-height: 500px) {
  html, body { background: #dff6f8; }
  #stage { border-radius: 0; box-shadow: none; }
  .parent-box { min-width: 0; width: min(92vw, 420px); max-height: 90dvh; overflow-y: auto; padding: 18px; }
  .parent-box button { font-size: 18px; min-height: 48px; }
}
