:root { font-family: 'Avenir Next', Avenir, 'Trebuchet MS', sans-serif; color: #303050; background: #fbf7ee; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8471d4; outline-offset: 5px; }
[hidden] { display: none !important; }
#app { min-height: 100svh; display: flex; flex-direction: column; padding: 0 36px; }
.topbar { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 13px; letter-spacing: 1px; font-weight: 700; }
.brand b { display: block; font-size: 15px; letter-spacing: 1.8px; }
.brand-icon { color: #f17462; font-size: 50px; line-height: 1; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.local-badge { font-size: 11px; margin-right: 18px; color: #71716e; }
.local-badge i { display: inline-block; width: 6px; height: 6px; background: #7b9c77; border-radius: 50%; margin-right: 7px; }
.icon-button { border: 1px solid #dedbd2; background: transparent; color: #42425f; width: 39px; height: 39px; border-radius: 50%; font-size: 20px; display: inline-grid; place-items: center; }
.icon-button:hover { background: #eee7dc; }
.stage { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; height: calc(100svh - 194px); max-height: 1100px; border-radius: 24px; background: #efeee9; border: 1px solid #e6e2d7; }
.stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 73% 38%, #eadffc 0, transparent 48%), radial-gradient(ellipse at 12% 70%, #fff0df 0, transparent 65%), #f0f0e7; }
#camera { position: absolute; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; }
.camera-live #camera { opacity: 1; }
.camera-shade { display: none; position: absolute; inset: 0; background: linear-gradient(#17162f60, transparent 28%, transparent 75%, #17162f65); }
.camera-live .camera-shade { display: block; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.welcome { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1fr; padding: clamp(35px, 4.5vw, 80px) clamp(35px, 6vw, 100px); align-items: center; pointer-events: none; }
.welcome-copy { position: relative; z-index: 2; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.3px; }
.tiny-star { color: #ed8c59; font-size: 21px; vertical-align: middle; margin-right: 8px; }
h1 { font-size: clamp(70px, 7.6vw, 122px); line-height: .89; font-weight: 900; letter-spacing: -6px; margin: 23px 0; }
h1 > span { color: #f07366; }
h1 .bash { color: #8070b9; }
.title-star { color: #e4b549; font-size: .6em; display: inline-block; margin-left: 20px; vertical-align: 12%; transform: rotate(12deg); }
.intro { color: #72717b; font-size: 16px; line-height: 1.6; margin: 22px 0 26px; }
.primary { background: #ef7667; color: #fffaf4; border: none; border-radius: 13px; padding: 17px 24px; font-weight: 700; min-width: 230px; display: flex; align-items: center; justify-content: space-between; gap: 22px; box-shadow: 0 5px 0 #d96456; transition: transform .15s, box-shadow .15s; pointer-events: auto; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #d96456; }
.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #d96456; }
.primary > span:last-child { font-size: 21px; }
.text-button { pointer-events: auto; background: none; border: none; padding: 20px 0 0; color: #706880; font-size: 12px; font-weight: 600; }
.text-button span { margin-left: 15px; }
.permission-note { font-size: 10px; color: #94908e; margin: 21px 0 0; }
.welcome-art { position: relative; height: 100%; min-height: 450px; display: grid; place-items: center; }
.photo-bubble { width: min(30vw, 440px); aspect-ratio: 1; padding: 12px; border-radius: 50%; position: relative; transform: rotate(8deg); background: linear-gradient(135deg, #fffeffef, #b9cbea90, #e6affea0, #ffead4); box-shadow: inset 3px 6px 15px #fff, 0 20px 65px #8f78ba30; border: 1px solid #fff; }
.photo-bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bubble-glint { position: absolute; width: 38%; height: 11%; border-top: 6px solid #ffffffbd; border-radius: 50%; top: 7%; left: 11%; transform: rotate(-40deg); }
.orbit { position: absolute; width: 108%; aspect-ratio: 1; border: 1px dashed #b2a0c635; border-radius: 50%; }
.orbit-two { width: 82%; }
.art-star { position: absolute; }
.star-one { top: 4%; left: 23%; color: #afa0d7; font-size: 54px; }
.star-two { bottom: 12%; left: 0; color: #f1786a; font-size: 63px; transform: rotate(15deg); }
.star-three { right: -6%; top: 41%; color: #e4b34e; font-size: 55px; }
.little-bubble { position: absolute; border-radius: 50%; border: 1px solid #ffffffaa; box-shadow: inset 4px 7px 10px #ffffffab, 0 12px 30px #71649c12; }
.little-bubble::after { content: ''; position: absolute; left: 20%; top: 12%; width: 34%; height: 18%; border-radius: 50%; background: #ffffffb0; transform: rotate(-35deg); }
.bubble-pink { width: 91px; height: 91px; background: linear-gradient(150deg, #fbe5f1, #e3addf); top: 7%; right: 0; }
.bubble-blue { width: 60px; height: 60px; background: linear-gradient(150deg, #e9ffff, #97ccd5); bottom: 11%; right: 8%; }
.bubble-yellow { width: 45px; height: 45px; background: linear-gradient(150deg, #fff8db, #e6c574); top: 24%; left: -8%; }
.birthday-sticker { position: absolute; right: -2%; bottom: 19%; width: 139px; height: 139px; border-radius: 50%; background: #f7d978; transform: rotate(12deg); display: flex; justify-content: center; align-items: center; flex-direction: column; font-size: 9px; letter-spacing: 1.3px; box-shadow: 0 5px 0 #dcc067; border: 5px solid #f7d978; outline: 1px dashed #b1944d; outline-offset: -9px; }
.birthday-sticker strong { font-family: Georgia, serif; font-style: italic; font-size: 48px; letter-spacing: -3px; line-height: 1.2; }
.birthday-sticker span { font-size: 23px; }
.art-caption { position: absolute; bottom: 0; font-size: 8px; letter-spacing: 1.7px; color: #8e839b; text-align: center; }
.footer { display: flex; align-items: center; gap: 24px; min-height: 94px; font-size: 11px; color: #77727b; }
.footer > div { display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; border: 1px solid #dbd5ca; width: 24px; height: 24px; border-radius: 50%; font-size: 10px; }
.footer-spark { color: #b9a6c6; }
.footer-tag { margin-left: auto; font-size: 8px; letter-spacing: 1.6px; }
.hud { position: absolute; top: 26px; left: 30px; right: 30px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.stat { padding: 14px 25px; min-width: 135px; border-radius: 18px; background: #fff9efeb; box-shadow: 0 4px 24px #33304b0d; }
.stat span { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; display: block; }
.stat strong { display: block; font-size: 44px; letter-spacing: -2px; line-height: 1.15; }
.timer { text-align: right; }
.round-note { font-size: 10px; letter-spacing: 2px; font-weight: 700; padding: 13px 20px; background: #fff9efdb; border-radius: 99px; }
.play-bottom { position: absolute; bottom: 23px; left: 30px; right: 30px; display: flex; align-items: center; gap: 12px; color: #fff; text-shadow: 0 1px 8px #0007; }
#mode-label { font-size: 9px; letter-spacing: 1.7px; border-radius: 99px; background: #383147b3; padding: 12px 16px; text-shadow: none; }
#play-hint { font-size: 14px; margin-right: auto; background: #383147b3; padding: 9px 16px; border-radius: 99px; }
.pill-button { border-radius: 99px; border: 1px solid #fff7; background: #fffc; padding: 10px 18px; font-size: 12px; color: #39344c; }
.center-message, .pause-message { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #fff9edaa; backdrop-filter: blur(7px); text-align: center; padding: 30px; }
.center-message > span { font-size: 12px; letter-spacing: 3px; font-weight: 700; }
.center-message strong { font-size: 160px; font-weight: 900; color: #ed776b; line-height: 1.3; }
.center-message p { font-size: 16px; }
.pause-message { z-index: 5; }
.pause-message h2 { font-size: 55px; letter-spacing: -2px; }
.celebration { position: absolute; inset: 0; background: #f5efdfed; display: flex; align-items: center; justify-content: center; gap: 7vw; padding: 35px; }
.celebrating #game { z-index: 2; pointer-events: none; }
.celebrating .play-bottom { z-index: 3; }
.celebration h2 { font-size: clamp(40px, 5vw, 80px); letter-spacing: -3px; line-height: 1; margin: 25px 0; }
.celebration h2 em { color: #ee7767; font-family: Georgia, serif; font-size: 1.25em; }
.celebration p { color: #797080; }
.jumping-livi { max-height: 90%; width: 32%; object-fit: contain; transform: rotate(6deg); filter: drop-shadow(0 14px 0 #cbb8e88c); }
.final-score { display: flex; align-items: center; gap: 16px; margin: 16px 0 25px; }
.final-score strong { font-size: 55px; color: #8070b9; }
.final-score span { font-size: 10px; letter-spacing: 2px; }
#restart-note { font-size: 12px; }
.toast { position: absolute; z-index: 10; bottom: 84px; left: 50%; transform: translateX(-50%); padding: 14px 24px; border-radius: 14px; background: #363049f2; color: #fff; font-size: 14px; max-width: min(580px, 90%); width: max-content; text-align: center; box-shadow: 0 5px 20px #0002; }
dialog { border: 1px solid #e6dfd3; border-radius: 24px; padding: 30px; color: #363049; background: #fffaf1; width: min(460px, 92vw); max-height: 90svh; }
dialog::backdrop { background: #25203a70; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.dialog-heading h2 { margin: 0; font-size: 27px; letter-spacing: -1px; }
label { display: block; font-size: 13px; font-weight: 600; margin-top: 23px; }
select { width: 100%; border: 1px solid #dcd5ca; border-radius: 9px; padding: 12px; margin-top: 9px; background: #fff; color: #494154; }
input[type=range] { width: 100%; accent-color: #ef7667; margin: 15px 0 5px; }
output { float: right; color: #a084bd; }
.range-labels { display: flex; justify-content: space-between; font-size: 10px; color: #948898; }
.field-note { font-size: 10px; line-height: 1.5; color: #8c8190; margin: 8px 0; }
.check-label { display: flex; gap: 10px; align-items: center; font-weight: 500; }
input[type=checkbox] { accent-color: #ee7767; width: 17px; height: 17px; }
.setup-tip { padding: 15px; background: #eee8f3; border-radius: 12px; font-size: 12px; line-height: 1.65; margin: 25px 0; }
dialog .primary { width: 100%; margin-bottom: 6px; }
:fullscreen #app { padding: 0; }
:fullscreen .topbar, :fullscreen .footer { display: none; }
:fullscreen .stage { height: 100svh; max-height: none; border: 0; border-radius: 0; }
@media (min-height: 1000px) { .welcome { padding-top: 70px; padding-bottom: 70px; } }
@media (max-height: 850px) and (min-width: 601px) { .welcome { padding-top: 28px; padding-bottom: 28px; } h1 { font-size: min(7.6vw, 11vh); margin: 18px 0; } .intro { margin: 18px 0; } .permission-note { margin-top: 15px; } }
@media (max-width: 900px) { #app { padding: 0 18px; } .local-badge, .footer-tag { display: none; } .topbar { min-height: 80px; } .stage { height: calc(100svh - 155px); } .welcome { padding: 35px; } .welcome-art { min-height: 400px; } .birthday-sticker { width: 105px; height: 105px; font-size: 7px; right: -12%; } .birthday-sticker strong { font-size: 36px; } .art-caption { font-size: 7px; } .footer { min-height: 75px; gap: 15px; justify-content: center; } .footer-spark { display: none; } .round-note { display: none; } }
@media (max-width: 600px) { #app { padding: 0 10px; } .brand { font-size: 9px; gap: 7px; } .brand b { font-size: 10px; } .brand-icon { font-size: 36px; } .top-actions { gap: 5px; } .icon-button { width: 33px; height: 33px; } .stage { min-height: 640px; } .welcome { padding: 30px 26px; display: block; } h1 { font-size: 75px; letter-spacing: -4px; } .welcome-art { position: absolute; right: 30px; top: auto; bottom: 24px; width: 115px; height: 150px; min-height: 0; opacity: .9; } .photo-bubble { width: 100%; padding: 6px; } .birthday-sticker { bottom: 5%; width: 80px; height: 80px; font-size: 5px; } .birthday-sticker strong { font-size: 28px; } .birthday-sticker span { font-size: 15px; } .star-one, .star-three, .art-caption, .bubble-yellow, .bubble-blue, .orbit { display: none; } .bubble-pink { width: 35px; height: 35px; top: 5%; } .star-two { font-size: 35px; left: 10%; bottom: 0; } .intro { margin-top: 35px; } .eyebrow { font-size: 8px; } .footer { gap: 8px; padding: 15px 6px; font-size: 9px; align-items: flex-start; } .footer > div { gap: 5px; flex: 1; } .step { flex-shrink: 0; } .hud { left: 15px; right: 15px; top: 15px; } .stat { min-width: 100px; padding: 12px 18px; } .stat strong { font-size: 34px; } .stat span { font-size: 7px; } .play-bottom { left: 12px; right: 12px; gap: 7px; flex-wrap: wrap; bottom: 15px; } #play-hint { display: none; } #mode-label { margin-right: auto; font-size: 7px; } .pill-button { font-size: 10px; padding: 9px 12px; } .celebration { gap: 0; padding: 25px; } .celebration-copy { z-index: 1; } .jumping-livi { position: absolute; right: -35px; bottom: 50px; width: 45%; opacity: .55; } .celebration h2 { font-size: 48px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
