*{box-sizing:border-box}body{margin:0;color:#503c56;background:radial-gradient(ellipse at 30% 0,#f8e7e0,transparent 70%),#d7c9d8;font-family:system-ui,'Microsoft YaHei',sans-serif}main{max-width:1140px;margin:24px auto;padding:0 18px}header{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;gap:14px}header span{font-size:11px;letter-spacing:2px}header b{font-size:22px;font-weight:500}header small{color:#7e6585}.world{display:grid;grid-template-columns:3fr 19fr;border:7px solid #fff0db;border-radius:12px;overflow:hidden;box-shadow:0 14px 60px #69507a44;position:relative;background:#fff0db}aside{background:linear-gradient(#f7d9bd,#ecbfd0);padding:12px 10px;text-align:center;min-width:0;position:relative}aside label{display:block;font-size:10px;color:#846377;margin-top:7px}aside strong,aside span{display:block;font-size:12px;overflow-wrap:anywhere}aside p{font-size:11px;line-height:1.5}aside small{font-size:9px}.stars{font-size:12px;letter-spacing:2px;margin-bottom:10px}.portrait{width:100%;aspect-ratio:1;object-fit:contain;border:3px solid #fff3dd;box-shadow:3px 3px #ba879858}.divider{font-size:10px;border-top:1px dashed #b08097;margin:14px 0 5px;padding-top:10px}.counter{font-size:21px;margin-top:12px;letter-spacing:2px}.stickers{font-size:23px!important}.map{position:relative;min-width:0}canvas{width:100%;display:block;image-rendering:pixelated;outline:none}.caption{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff7e8e8;padding:7px 14px;border-radius:20px;font-size:12px;pointer-events:none}footer{font-size:12px;padding:16px 0;color:#755d7e}footer>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}button,select{font:inherit;color:#644665;background:#fff3e8;border:1px solid #c5a3b8;border-radius:6px;padding:8px 12px;cursor:pointer}button:hover{background:#f5d9e7}dialog{width:min(470px,90vw);border:5px solid #eed7e5;border-radius:16px;padding:25px;background:#fff6ef;color:#644665;box-shadow:0 15px 100px #34254588}dialog::backdrop{background:#302b4c88;backdrop-filter:blur(3px)}.screen{background:linear-gradient(145deg,#303756,#665578);color:#eee1ef;text-align:center;padding:30px 12px;border:7px solid #d9c9df;border-radius:14px}.screen span{font-size:30px}.screen small{font-size:10px}.pad button{touch-action:none;min-width:42px}body[data-season=Summer]{background:#222840;color:#e0d6ee}body[data-season=Summer] aside{background:linear-gradient(#747699,#514e79);color:#fff0dc}body[data-season=Summer] aside label{color:#dfd1e5}body[data-season=Spring] aside{background:linear-gradient(#ffe2ec,#edbfdc)}body[data-season=Winter] aside{background:linear-gradient(#e5f2ff,#c1d6ef)}@media(max-width:700px){main{padding:4px;margin:8px auto}header span{display:none}header b{font-size:17px}aside{padding:5px 3px}aside label{font-size:7px;margin-top:3px}aside strong,aside span{font-size:8px}aside p{font-size:7px}aside .divider{margin:5px 0;font-size:7px}aside .stars{font-size:8px}aside .counter{font-size:12px}.stickers{display:none}.caption{font-size:8px;padding:3px 7px}.world{border-width:3px}}
/* Muted violet values on pale cards remain legible in all four seasons. */
aside section{background:rgba(255,248,255,.88);border-radius:7px;padding:5px 4px;margin-top:8px}
aside section label,body[data-season=Summer] aside section label{color:#17131b;font-weight:500}
aside section strong,aside section span,aside section p,body[data-season=Summer] aside section strong,body[data-season=Summer] aside section span{color:#77558e}

#weather{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;image-rendering:auto}

.memory-building{height:135px;margin:8px 0 14px;display:flex;align-items:center;justify-content:flex-start}.memory-building img{width:180px;height:135px;object-fit:contain;object-position:left center;image-rendering:auto}#modalText{font-size:18px;line-height:1.5;color:#77558e;margin:18px 0;font-weight:600}dialog{max-height:90vh;overflow-y:auto}

.memory-building{height:145px;justify-content:space-between;gap:16px}.memory-building #modalBuilding{width:58%;height:140px;object-fit:contain;object-position:left center}.memory-building #modalCharacter{width:35%;height:140px;object-fit:contain;object-position:center;image-rendering:pixelated}

footer>.caption{position:static;transform:none;width:fit-content;max-width:100%;white-space:normal;display:block;margin:0 0 12px;color:#503c56;background:#fff7e8e8}

.stage-screen{padding:0;overflow:hidden}.stage-screen video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#171421}.stage-screen [hidden]{display:none}#stagePlaceholder{padding:30px 12px}#videoStatus{font-size:11px;color:#77558e;min-height:1.5em}

footer{display:flex;flex-direction:column;align-items:flex-start;gap:12px}footer>.caption{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:0}footer>div{margin:0}

#birthday{width:min(600px,92vw);padding:20px;text-align:center;background:radial-gradient(ellipse at center,#ffe7cb,#ffeaf1 65%,#ece0f5);border-color:#efbad2}
.birthday-animation{width:100%;aspect-ratio:1;background-image:url('assets/birthday-strip.png');background-size:300% 100%;background-repeat:no-repeat;animation:birthday-frames .9s step-end infinite}
@keyframes birthday-frames{0%{background-position:0% 0}33.333%{background-position:50% 0}66.667%{background-position:100% 0}100%{background-position:0% 0}}
#birthday:not([open]) .birthday-animation{animation-play-state:paused}

#birthday{width:min(600px,92vw,calc(90dvh - 80px));max-height:96dvh;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#birthday::backdrop{background:transparent;backdrop-filter:none}
#birthdayClose{margin-top:8px}

.sticker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px auto 0;align-items:center;width:100%}
.sticker-grid img{display:block;width:100%;height:48px;object-fit:contain;min-width:0}.football-sticker{display:flex;align-items:center;justify-content:center;font-size:32px;height:48px}.sticker-grid img:last-child{grid-column:1 / -1;height:40px}
@media(max-width:700px){.sticker-grid{gap:3px;margin-top:5px}.sticker-grid img,.football-sticker{height:28px}.football-sticker{font-size:23px}.sticker-grid img:last-child{height:26px}}

/* The map defines the world height; sidebar content cannot add a bottom band. */
.world>aside{contain:size;min-height:0;overflow-y:auto;scrollbar-width:thin;padding:8px 8px}
aside section{margin-top:5px;padding:3px}aside label{margin-top:5px}aside .divider{margin-top:9px;padding-top:6px}aside .counter{margin-top:7px}
.sticker-grid{gap:4px;margin-top:6px}.sticker-grid img{height:32px;max-width:38px;justify-self:center}.football-sticker{height:32px;font-size:25px}.sticker-grid img:last-child{height:30px}
@media(max-width:700px){.world>aside{padding:4px 3px}aside section{margin-top:3px;padding:2px}aside label{margin-top:3px}.sticker-grid img,.football-sticker{height:22px;max-width:28px}.football-sticker{font-size:20px}.sticker-grid img:last-child{height:22px}}

/* Scattered sticker composition; percentage slots preserve gaps on narrow screens. */
.sticker-grid{display:block;position:relative;width:100%;aspect-ratio:1 / 2.45;margin:12px auto 8px}
.sticker-grid>img,.sticker-grid>img:last-child,.sticker-grid>.football-sticker{position:absolute;width:40%;max-width:none;height:16%;object-fit:contain;margin:0;grid-column:auto}
.sticker-grid>.football-sticker{font-size:clamp(25px,3vw,40px);display:flex;align-items:center;justify-content:center}
.sticker-grid>:nth-child(1){left:2%;top:0%;transform:rotate(-9deg)}
.sticker-grid>:nth-child(2){left:57%;top:3%;transform:rotate(7deg)}
.sticker-grid>:nth-child(3){left:1%;top:21%;transform:rotate(-7deg)}
.sticker-grid>:nth-child(4){left:56%;top:24%;transform:rotate(8deg)}
.sticker-grid>:nth-child(5){left:3%;top:40%;transform:rotate(-13deg)}
.sticker-grid>:nth-child(6){left:57%;top:43%;transform:rotate(7deg)}
.sticker-grid>:nth-child(7){left:2%;top:61%;transform:rotate(-8deg)}
.sticker-grid>:nth-child(8){left:58%;top:63%;transform:rotate(12deg)}
.sticker-grid>:nth-child(9){left:2%;top:82%;transform:rotate(-7deg)}
.sticker-grid>:nth-child(10){left:57%;top:81%;transform:rotate(5deg)}

#surpriseDialog{text-align:center}#surpriseImage{width:140px;height:150px;object-fit:contain;image-rendering:pixelated}#surpriseText{font-family:HuiwenMincho,serif;font-size:21px;line-height:1.85;margin:18px 0 24px}
