/* Local illustrated boards, stable touch controls and visible stage rewards. */
.festival-menu-card .game-art{height:auto;aspect-ratio:400/210;overflow:hidden}.festival-menu-card .game-art svg{width:100%;height:100%}.festival-menu-card .game-card-copy>b{font-size:17px}.festival-menu-card .game-card-copy small{line-height:1.8}.festival-stage-summary{display:flex;gap:6px;font-size:10px;color:#9aa58c;margin:10px 0}.festival-stage-summary i{font-style:normal;flex:1;padding:5px 3px;text-align:center;background:#f2f4eb;border-radius:7px}.festival-stage-summary i.earned{background:#fff0ba;color:#9b793b}.festival-brief .brief-art{width:320px;height:auto;max-width:100%;overflow:hidden;border-radius:22px}.festival-brief .brief-art svg{width:100%;height:auto}.festival-stage-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:580px;margin:18px auto}.festival-stage-picker button{border:2px solid #dbe2d1;background:#f8f8ee;padding:13px 8px;border-radius:14px;color:#5c755f;min-height:84px;cursor:pointer}.festival-stage-picker button.selected{background:#fff0c4;border-color:#d8b76e;box-shadow:0 3px 0 #d7c38d}.festival-stage-picker b,.festival-stage-picker small{display:block;font-size:13px;line-height:1.6}.festival-stage-picker small{font-size:10px;font-weight:500;color:#879079}.festival-stage-picker button:disabled{opacity:.45;cursor:default}.festival-brief .mini-note{max-width:570px;margin:12px auto}
.kid-stage:has(.festival-active){padding:18px;background:#f6f8f1;border-color:#d7e2d5}.kid-stage:has(.festival-active) .kid-msg:empty{display:none}.kid-stage:has(.festival-active) .kid-mission-hud{margin:8px 0}.festival-game{max-width:590px;margin:auto;color:#365549;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.festival-game button{font:inherit;cursor:pointer;touch-action:manipulation;min-height:44px}.festival-game button:disabled{opacity:.4;cursor:default}.festival-game button:focus-visible{outline:3px solid #d9ab4d;outline-offset:3px;z-index:5}.festival-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 11px}.festival-toolbar>div:last-child{display:flex;gap:8px}.festival-toolbar button{border:1px solid #d5dfd1;border-radius:12px;background:#fffbed;color:#607465;font-size:11px;padding:9px 11px;box-shadow:0 3px 0 #dce3d1}.festival-stage-route{display:flex;align-items:center}.festival-stage-route span{width:27px;height:27px;display:grid;place-items:center;background:#eef1e4;border:2px solid #d6dfce;color:#8d9a84;border-radius:50%;font-weight:800;font-size:11px}.festival-stage-route span.active{background:#ffdda0;color:#86623a;border-color:#dfbc7a;box-shadow:0 0 0 4px #f8dfae40}.festival-stage-route span.done{background:#398670;color:#fff4d6;border-color:#398670}.festival-stage-route i{height:3px;width:18px;background:#d6dfce}.festival-objective{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:76px;padding:13px 17px;border:2px solid #e3dcc3;border-radius:16px 16px 0 0;background:#fffbed;box-sizing:border-box}.festival-objective small{display:block;font-size:10px;color:#898973;margin-bottom:5px}.festival-objective b{font-size:22px;line-height:1.4;letter-spacing:-.03em;color:#456453}.festival-objective>span{font-size:12px;font-weight:800;white-space:nowrap;padding:7px 9px;border-radius:10px;background:#f2e4b9;color:#8e7444}.festival-objective p{font-size:12px;line-height:1.7;color:#71816a;margin:3px 0 0}.festival-field{position:relative;background:#5b8070;border:6px solid #5b8070;border-radius:0 0 19px 19px;box-shadow:0 6px 0 #416558,0 10px 16px #274a3520;isolation:isolate}.festival-board{position:relative;aspect-ratio:1;overflow:hidden;border-radius:9px;background:#d1dfb3;min-height:240px;outline-offset:4px}.festival-notice{font-size:12px;line-height:1.7;min-height:22px;margin:15px 0 9px;border:1px solid #dce3d0;background:#edf3df;color:#60764f;border-radius:12px;padding:10px 13px;box-sizing:border-box;animation:festival-notice .2s ease-out}.festival-notice.oops{background:#fff0e1;border-color:#e4c5a6;color:#9b7759}.festival-notice.soft{background:#f7f5e7;border-color:#e2dfca;color:#82856c}.festival-controls{margin:13px 0 17px}.festival-tools{display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap}.festival-tools button,.bow-controls button{background:#fff9e6;border:2px solid #dedac0;border-radius:11px;color:#5c765d;padding:10px 12px;min-height:45px;font-size:12px;box-shadow:0 4px 0 #cbd1b9}.festival-tools button:active,.bow-controls button:active{translate:0 3px;box-shadow:0 1px 0 #cbd1b9}.festival-tools>span{font-size:12px;color:#85907c}.festival-tools .selected{background:#d9eacc;border-color:#9db68c}.festival-game .festival-action{background:#3e816c;color:#fff9df;border-color:#3e816c;box-shadow:0 4px 0 #2a5e4c;font-weight:800}.festival-help{font-size:11px;color:#82907b;line-height:1.9;border-top:1px dashed #d9e0ce;padding-top:13px}.festival-help summary{cursor:pointer;color:#59735f}.festival-help p{user-select:text}.festival-overlay{position:absolute;inset:0;background:#1e4248a8;backdrop-filter:blur(5px);z-index:15;display:flex;align-items:center;justify-content:center;border-radius:8px;padding:12px;box-sizing:border-box}.festival-overlay[hidden]{display:none}.festival-overlay-card{width:100%;max-width:340px;max-height:100%;overflow:auto;box-sizing:border-box;text-align:center;padding:23px 21px;background:#fff8e7;border:3px solid #fffdf4;border-radius:23px;color:#56715e;box-shadow:0 7px 0 #173f4540;animation:festival-notice .25s ease-out}.festival-overlay-card>small{font-size:10px;letter-spacing:.14em;color:#a08d60}.festival-award-icon{display:grid;place-items:center;width:66px;height:66px;margin:12px auto;background:radial-gradient(circle at 35% 25%,#fff2be,#edc774);border:4px solid #fff6d8;box-shadow:0 4px 0 #c5a25e,0 0 25px #ffe39566;color:#ab7d3e;border-radius:50%;font-size:37px}.festival-overlay-card h3{font-size:22px;letter-spacing:-.04em;line-height:1.45;margin:15px 0 8px}.festival-overlay-card p{font-size:12px;line-height:1.8;color:#8a8a71;margin:8px 0}.festival-medal{font-size:31px;letter-spacing:5px;color:#d9a34e;text-shadow:0 2px 0 #ffe3a2}.festival-overlay-card .btn{width:100%;min-height:48px;border:0;border-radius:12px;background:#3c806a;color:#fff8dd;font-size:14px;font-weight:800;box-shadow:0 4px 0 #2b5d4b;margin-top:12px}
/* Planting and watering are separate actions. */
.festival-lesson .festival-board{background:linear-gradient(#d1e6d2 0 27%,#a7c78e 27% 100%);aspect-ratio:auto;min-height:325px;padding-bottom:15px}.garden-sky{height:82px;position:relative}.garden-sky>span{position:absolute;right:10%;top:13px;font-size:35px;color:#eac474;text-shadow:0 2px 0 #fff6d6}.garden-sky>i{position:absolute;top:26px;left:12%;width:84px;height:16px;background:#f2f8e8;border-radius:30px;box-shadow:21px -11px 0 1px #f2f8e8}.garden-lumi{position:absolute;left:45%;top:14px;width:55px;height:70px}.garden-lumi svg{width:100%;height:100%}.garden-beds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px;padding:14px 20px 2px;align-items:end}.garden-pot{border:0;background:none;display:grid;justify-items:center;position:relative;padding:23px 3px 0;color:#42634a}.garden-flower{position:absolute;font-size:48px;top:-4px;line-height:1;color:#f7d782;text-shadow:0 2px 0 #ba965d;animation:garden-sway 3s ease-in-out infinite}.garden-pot-body{display:grid;place-items:center;width:70px;height:47px;clip-path:polygon(0 0,100% 0,85% 100%,15% 100%);background:linear-gradient(#c58f65,#b98058);font:29px Batang,serif;color:#fff0c7;box-shadow:inset 0 5px 0 #d5ac7b}.garden-pot>b{font-size:12px;margin-top:7px;color:#395d49;line-height:1.5}.garden-pot>small{font-size:9px;color:#577354;margin-top:3px}.garden-pot.bloomed{filter:drop-shadow(0 0 8px #f4e29a77)}.garden-pot.planted:not(.bloomed) .garden-flower{font-size:33px;top:3px;text-shadow:none}.garden-seeds{display:flex;justify-content:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}.seed-packet{width:64px;min-height:80px;border:2px solid #c9d9b8;background:linear-gradient(#f5efd1,#f9f6e7);border-radius:12px;padding:9px 4px;color:#48664c;box-shadow:0 4px 0 #c7ceb1}.seed-packet>b{font:31px Batang,serif;display:block}.seed-packet small{font-size:9px;display:block;color:#8f977c;margin-top:4px}.seed-packet.selected{border-color:#d5ae5e;background:#ffecad;transform:translateY(-4px)}
/* A real memory board with a finite lantern power. */
.festival-memory .festival-field{background:#7d799b;border-color:#7d799b;box-shadow:0 6px 0 #65617f}.festival-memory .festival-board{aspect-ratio:auto;min-height:280px;background:radial-gradient(circle at 80% 10%,#e9e0ef,#d2cfdf);padding:16px;box-sizing:border-box}.festival-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.festival-card-grid.pairs-4,.festival-card-grid.pairs-6{grid-template-columns:repeat(4,minmax(0,1fr))}.festival-card{border:0;background:transparent;padding:0;min-height:93px;perspective:600px;position:relative;border-radius:12px}.festival-card-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .32s}.festival-card.face-up .festival-card-inner{transform:rotateY(180deg)}.festival-card-back,.festival-card-front{position:absolute;inset:0;backface-visibility:hidden;display:flex;justify-content:center;align-items:center;border-radius:12px;padding:5px;box-sizing:border-box}.festival-card-back{background:linear-gradient(145deg,#9994bd,#7d78a1);color:#f9df9a;font-size:31px;box-shadow:inset 0 0 0 3px #b9b3d4,0 4px 0 #706b91;flex-direction:column}.festival-card-back small{font-size:8px;margin-top:5px;color:#e4ddeb}.festival-card-front{background:#fff8df;border:2px solid #fdfbef;box-shadow:0 4px 0 #b5ab8b;transform:rotateY(180deg);font:38px Batang,serif;color:#67627e}.festival-card-front.meaning{font:17px sans-serif;flex-direction:column;gap:6px}.festival-card-front.meaning small{font-size:10px;line-height:1.4}.festival-card.matched .festival-card-front{background:#dce9cc;border-color:#f4f9e4;color:#57735b}.festival-card.matched{opacity:1!important}
/* Excavation: covered cells contain no hidden Hanzi in the DOM. */
.festival-treasure .festival-field{background:#ad8b62;border-color:#ad8b62;box-shadow:0 6px 0 #806b50}.festival-treasure .festival-board{background:#d9b989;min-height:0}.dig-grid{height:100%;display:grid;grid-template-columns:repeat(var(--size),minmax(0,1fr));grid-template-rows:repeat(var(--size),minmax(0,1fr));gap:5px;padding:10px;box-sizing:border-box}.dig-cell{position:relative;border:2px solid #f0d7a6;border-radius:12px;background:linear-gradient(145deg,#e9cc96,#cda46e);box-shadow:0 4px 0 #b48d5c;min-width:0;min-height:0!important;padding:0;color:#7e7259}.dig-cell i{position:absolute;left:27%;right:27%;top:33%;height:8%;border-radius:50%;background:#b58e5c55;box-shadow:5px 9px 0 #f1dfb355}.dig-cell.dug{background:#c8b083;box-shadow:inset 0 3px 0 #aa916c;border-color:#d5bd8b}.dig-cell.dug small{font-size:16px;color:#897953}.dig-cell.relic{background:linear-gradient(#a9d9c5,#7fb5a6);border-color:#d2edd5;box-shadow:0 4px 0 #5e9386}.dig-cell.relic>span{font:33px Batang,serif;color:#32695f;text-shadow:0 1px 0 #d8f0d7}.dig-cell.sonar{outline:3px solid #fff0a6;outline-offset:-6px;animation:sonar-pulse 1s infinite}
/* Ballistic bow, moving targets and visible trajectory. */
.festival-balloon .festival-field{border-color:#749aa7;background:#749aa7;box-shadow:0 6px 0 #547787}.festival-balloon .festival-board{background:linear-gradient(#a1cbd6,#d9ead2);min-height:0;aspect-ratio:1.05;touch-action:none}.bow-cloud{position:absolute;width:30%;height:7%;left:-8%;top:35%;background:#f3f7e3bb;border-radius:50px;box-shadow:20px -13px 0 #f3f7e3bb;pointer-events:none;animation:bow-clouds 10s infinite alternate ease-in-out}.bow-cloud.cloud-two{left:78%;top:49%;opacity:.8;animation-delay:-6s}.bow-balloon{position:absolute;width:16%;height:22%;transform:translate(-50%,-50%);border:2px solid #fff4da;border-radius:50% 50% 44% 44%;background:#dd92a0;box-shadow:inset -6px -4px 0 #00000008,0 3px 0 #5a92a51a;color:#fff9e7;font:clamp(25px,4vw,37px) Batang,serif!important;padding:0;min-height:0!important;transition:opacity .2s,scale .2s}.bow-balloon:before{content:'';position:absolute;width:12%;height:24%;background:#fff6;left:17%;top:16%;border-radius:50%;rotate:25deg}.bow-balloon>i{position:absolute;top:100%;left:50%;height:30%;width:9px;border-left:1px solid #678e9b;border-radius:50%;pointer-events:none}.balloon-color-1{background:#8bbbae}.balloon-color-2{background:#d6b575}.balloon-color-3{background:#a0a9ce}.bow-balloon.popped{opacity:0!important;scale:1.35;pointer-events:none}.bow-guide{position:absolute;inset:0;pointer-events:none}.bow-guide i{position:absolute;width:5px;height:5px;background:#fff8d8;border-radius:50%;box-shadow:0 0 4px #a9b597;opacity:.8}.bow-launcher{position:absolute;left:50%;top:90%;width:72px;height:50px;translate:-50% -50%;transform-origin:center;cursor:grab;color:#795c43;z-index:3}.bow-launcher>span{display:block;font-size:75px;line-height:.6;transform:rotate(180deg);text-shadow:0 3px 0 #e4cc90}.bow-launcher:after{content:'';position:absolute;left:12%;right:12%;top:58%;height:1px;background:#fff1ce}.bow-arrow{position:absolute;translate:-50% -50%;font-size:35px;color:#835b3c;line-height:1;text-shadow:0 1px 0 #fff3cb;pointer-events:none}.bow-arrow[hidden]{display:none}.bow-controls{display:flex;gap:10px;align-items:center;justify-content:center}.bow-controls>span{font-size:11px;color:#7c8c75;min-width:68px;text-align:center}.bow-controls button{font-size:18px;min-width:46px}.bow-controls .festival-action{font-size:13px;min-width:86px}.bow-counter{font-size:10px;display:block;text-align:center;color:#8e9880;margin-top:13px}
/* A path drawing puzzle with spatial constraints. */
.festival-bingo .festival-field{background:#5d668b;border-color:#5d668b;box-shadow:0 6px 0 #434a6d}.festival-bingo .festival-board{background:radial-gradient(circle at 75% 13%,#7682a8,#3e4b78);min-height:0;touch-action:none}.constellation-grid{display:grid;position:absolute;inset:0;grid-template-columns:repeat(var(--size),minmax(0,1fr));grid-template-rows:repeat(var(--size),minmax(0,1fr));padding:0;gap:0}.constellation-node{position:relative;padding:10%;border:0;background:none;display:grid;place-items:center;color:#f9f0d4;min-height:0!important}.constellation-node>span{width:85%;aspect-ratio:1;border-radius:50%;border:1px solid #ccd9ed66;background:#8792b740;display:grid;place-items:center;font:clamp(25px,4vw,37px) Batang,serif;box-shadow:0 3px 0 #26375922}.constellation-node.linked>span{background:#d9be7b;border:2px solid #ffedb8;color:#5e6175;box-shadow:0 0 16px #ffe69a55}.constellation-node small{position:absolute;top:6%;right:7%;border-radius:50%;background:#fff0b7;color:#6e6e66;font-size:10px;width:20px;height:20px;display:grid;place-items:center}.constellation-node.hinted>span{outline:3px solid #fff0b8;outline-offset:3px;animation:sonar-pulse 1s infinite}.constellation-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.constellation-lines polyline{fill:none;stroke:#ffebac;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px #ffeab299)}.constellation-orders{display:flex;gap:5px;flex-wrap:wrap;line-height:1.6}.constellation-orders>span{display:flex;gap:3px;align-items:center;font-size:11px;background:#efeddf;padding:4px 6px;border-radius:7px;color:#87907d}.constellation-orders b{font-size:13px}.constellation-orders i{font-style:normal;font-size:9px}.constellation-orders .current{background:#ffe3a4;color:#7f6f48;outline:1px solid #d2b470}.constellation-orders .done{background:#dce9cb;color:#628565}
/* Load cargo, rotate rails, then simulate the train. */
.festival-word .festival-field{background:#8d9b7b;border-color:#8d9b7b;box-shadow:0 6px 0 #69785b}.festival-word .festival-board{background:#c4d2ac;min-height:0}.rail-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr))}.rail-cell{position:relative;background:#c4d2ac;border:1px solid #b1c397;border-radius:0;min-height:0!important;padding:0;min-width:0}.rail-cell:nth-child(2n){background:#c9d5b5}.rail-cell svg{width:100%;height:100%;display:block;pointer-events:none}.rail-cell svg path{stroke:#947a55;stroke-width:17;stroke-linecap:square;fill:none}.rail-cell svg path:nth-child(2){stroke:#947a55}.rail-cell:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 14%,#c1b08430 15% 18%,transparent 19% 34%);pointer-events:none}.rail-cell.guided{background:#f5e3a5}.rail-tip{position:absolute;bottom:2px;left:50%;translate:-50% 0;background:#fff2c5e0;color:#a4814c;padding:1px 3px;font:10px sans-serif;z-index:2;border-radius:3px;white-space:nowrap}.rail-station{position:absolute;top:3px;left:4px;background:#ffdf89;color:#9d763b;border:2px solid #fff0b9;font-size:11px;border-radius:50%;width:21px;height:21px;display:grid;place-items:center;z-index:2}.rail-start,.rail-exit{position:absolute;font-style:normal;font-size:13px;left:2px;top:36%;color:#3c7759;background:#eff3ddbb;padding:2px}.rail-exit{left:auto;right:2px;color:#9f7751}.delivery-train{position:absolute;left:calc((var(--x) + .5)*20%);top:calc((var(--y) + .5)*20%);translate:-50% -50%;font-size:38px;filter:drop-shadow(0 3px 0 #405d4420);pointer-events:none;z-index:4;transition:left .2s linear,top .2s linear}.train-cargo{display:flex;justify-content:center;align-items:center;gap:12px;margin:8px 0 14px}.cargo-slot{width:65px;height:65px;border:2px solid #ba996c;border-radius:10px;background:#e8c693;color:#705d45;font:34px Batang,serif!important;box-shadow:0 4px 0 #b49670}.cargo-slot small{font:11px sans-serif;color:#9e8562}.train-cargo>span{font-size:14px;font-weight:700;color:#7e8f70}.train-pieces{display:flex;gap:11px;justify-content:center;margin:12px 0 17px}.train-pieces button{width:56px;height:58px;border:2px solid #d9dfc3;border-radius:10px;background:#fff9df;color:#5c7757;font:31px Batang,serif;box-shadow:0 4px 0 #c4cfb2}.train-pieces button:disabled{opacity:.23}
/* Permanent medals use the existing account-backed best-score map. */
.festival-collection{margin-top:15px;padding:16px;background:#f0f3e7;border:1px solid #dde5d2;border-radius:16px;color:#6f8267}.collection-heading{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#577451}.collection-heading>span{font-size:11px;background:#e0e9d0;border-radius:15px;padding:4px 9px}.festival-collection p{font-size:11px;line-height:1.8;color:#899780}.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:14px 0}.collection-family{background:#fffdf0;border-radius:12px;padding:12px;border:1px solid #e4e8d5}.collection-family>b{font-size:12px;color:#667b5f;display:block;margin-bottom:12px}.collection-family>div{display:flex;justify-content:space-between;gap:8px}.collection-stamp{display:flex;flex:1;min-width:0;align-items:center;flex-direction:column;gap:7px;color:#a7ad9b}.collection-stamp>i{font-style:normal;width:38px;height:38px;background:#e7ebdc;border:2px dashed #cdd5bc;border-radius:50%;display:grid;place-items:center;font-size:21px}.collection-stamp small{font-size:8px;line-height:1.6;text-align:center;word-break:keep-all}.collection-stamp em{font-size:9px;font-style:normal}.collection-stamp.earned{color:#aa8a4b}.collection-stamp.earned>i{background:#f5df9d;border:2px solid #e4c37c;color:#ae8241;box-shadow:0 3px 0 #d4bb7f}.festival-collection>small{font-size:10px;line-height:1.8;color:#939e86}.festival-stage-rewards{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:16px 0}.festival-stage-rewards>span{border:1px solid #e0d6b3;border-radius:13px;background:#fff7da;padding:10px;font-size:11px;color:#9b814c}.festival-stage-rewards b{display:block;margin-bottom:6px}.mini-paused .festival-game *{animation-play-state:paused!important}
.reward-drawing{width:86px;height:86px;background:#fff1c9;border:3px solid #f9e7b6;padding:0;overflow:hidden}.reward-drawing svg{width:100%;height:100%}.collection-stamp>i svg{width:100%;height:100%;border-radius:50%}.festival-stage-rewards>span>svg{width:58px;height:58px;display:block;margin:0 auto 8px}.collection-heading{cursor:pointer;list-style:none}.collection-heading:after{content:'＋';color:#96a184;font-size:15px}.festival-collection details[open]>.collection-heading:after{content:'−'}.festival-collection details>small{display:block;font-size:10px;line-height:1.8;color:#939e86}.delivery-train{transform:scaleX(-1)}
.festival-lesson .festival-board:after{content:'';position:absolute;left:8%;right:8%;bottom:9px;height:19px;border-top:3px solid #e9e3ba;border-bottom:3px solid #e9e3ba;background:repeating-linear-gradient(90deg,transparent 0 15px,#f0e9c1 15px 21px,transparent 21px 36px);border-radius:4px;opacity:.75;pointer-events:none}.garden-beds{padding-bottom:25px}
@keyframes garden-sway{0%,100%{rotate:-4deg}50%{rotate:4deg}}@keyframes sonar-pulse{50%{filter:brightness(1.16)}}@keyframes bow-clouds{to{translate:27px 0}}@keyframes festival-notice{from{opacity:.6;translate:0 7px}to{opacity:1;translate:0 0}}
@media(max-width:760px){.festival-stage-picker{gap:8px}.festival-stage-picker button{padding:10px 5px}.festival-stage-picker b{font-size:11px}.collection-grid{grid-template-columns:1fr}.festival-menu-card .game-card-copy>b{font-size:14px}.festival-card-grid{gap:10px}.festival-card-front{font-size:35px}}
@media(max-width:430px){.kid-stage:has(.festival-active){padding:10px}.kid-stage:has(.festival-active) .kid-stage-head{display:flex;gap:5px}.kid-stage:has(.festival-active) .kid-stage-title{font-size:18px}.kid-stage:has(.festival-active) .kid-scoreboard{width:auto;margin-left:auto}.kid-stage:has(.festival-active) .kid-score-pill.top{display:none}.festival-toolbar button{padding:8px 9px;font-size:10px}.festival-stage-route span{width:23px;height:23px;font-size:10px}.festival-stage-route i{width:12px}.festival-objective{padding:10px 11px;min-height:69px;gap:7px}.festival-objective small{font-size:9px}.festival-objective b{font-size:20px}.festival-objective>span{font-size:10px;padding:7px}.festival-objective p{font-size:10px}.festival-field{border-width:5px}.festival-notice{font-size:10px;margin-top:13px;padding:8px 10px}.festival-tools{gap:7px}.festival-tools button{font-size:10px;padding:9px 10px}.festival-tools>span{font-size:10px}.festival-overlay-card{padding:14px 12px;border-radius:19px}.festival-award-icon{width:43px;height:43px;font-size:28px;margin:8px auto}.festival-overlay-card h3{font-size:19px;margin:8px 0}.festival-overlay-card p{font-size:10px}.festival-medal{font-size:25px}.festival-overlay-card .btn{font-size:12px;margin-top:8px;min-height:44px}.festival-lesson .festival-board{min-height:310px}.garden-beds{padding:7px 12px 0;gap:17px 7px}.garden-pot>b{font-size:11px}.garden-pot>small{font-size:8px}.garden-pot-body{width:60px;height:43px;font-size:27px}.garden-flower{font-size:43px}.garden-sky{height:73px}.garden-lumi{width:49px;height:62px;top:8px}.garden-seeds{gap:8px}.seed-packet{width:53px;min-height:70px;padding:8px 3px}.seed-packet>b{font-size:28px}.festival-memory .festival-board{padding:11px;min-height:250px}.festival-card-grid{gap:9px}.festival-card-grid.pairs-6{grid-template-columns:repeat(3,minmax(0,1fr))}.festival-card{min-height:76px}.festival-card-grid.pairs-4 .festival-card{min-height:90px}.festival-card-front{font-size:31px}.festival-card-back{font-size:26px}.festival-card-back small{font-size:7px}.festival-card-front.meaning small{font-size:8px}.festival-card-front.meaning b{font-size:15px}.dig-grid{padding:7px;gap:4px}.dig-cell{border-width:1px;border-radius:9px;box-shadow:0 3px 0 #b48d5c}.dig-cell.relic>span{font-size:27px}.dig-cell.dug small{font-size:12px}.bow-balloon{font-size:29px!important;border-width:1px}.bow-controls{gap:7px}.bow-controls button{padding:8px;font-size:17px;min-width:44px}.bow-controls>span{font-size:10px;min-width:54px}.bow-controls .festival-action{font-size:12px;min-width:76px}.bow-launcher{width:59px;height:43px}.bow-launcher>span{font-size:62px}.bow-arrow{font-size:28px}.constellation-orders{gap:4px}.constellation-orders>span{font-size:9px;padding:3px 5px;gap:3px}.constellation-orders b{font-size:11px}.constellation-node>span{font-size:28px;width:85%}.constellation-node small{font-size:8px;width:16px;height:16px;top:2px;right:3px}.delivery-train{font-size:30px}.rail-station{width:16px;height:16px;font-size:8px;border-width:1px}.rail-tip{font-size:8px;bottom:1px}.rail-start,.rail-exit{font-size:10px;top:32%}.train-cargo{gap:9px}.cargo-slot{width:55px;height:55px;font-size:30px!important}.train-cargo>span{font-size:12px}.train-pieces{gap:9px}.train-pieces button{width:47px;height:51px;font-size:29px}.festival-menu-card .game-art svg{width:100%;height:100%}.festival-stage-summary{gap:3px;font-size:8px}.festival-stage-summary i{padding:4px 2px}.festival-stage-picker{gap:6px}.festival-stage-picker small{font-size:8px}.festival-stage-picker b{font-size:10px}.festival-stage-picker button{min-height:75px}.festival-collection{padding:12px}.collection-heading{font-size:12px}.collection-family{padding:10px}.collection-family>b{font-size:11px}.collection-stamp small{font-size:9px}.collection-stamp>i{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.festival-game *,.festival-game *:before,.festival-game *:after{animation:none!important;transition:none!important}}

/* Small phones keep full-size dig targets and the complete reward action in view. */
@media(max-width:430px){.festival-field:has(.festival-overlay:not([hidden])){min-height:350px}.festival-overlay-card{display:flex;flex-direction:column;gap:6px;max-height:none;padding:12px}.festival-overlay-card>*{margin:0 auto!important}.festival-overlay-card h3{line-height:1.35;word-break:keep-all}.festival-overlay-card p{line-height:1.5}.festival-overlay-card .festival-medal{line-height:1.15}.festival-overlay-card .btn{box-sizing:border-box;min-height:44px;flex-shrink:0}.festival-overlay-card .reward-drawing{width:48px;height:48px;flex-shrink:0}.festival-overlay-card>small{line-height:1.4}}
@media(max-width:430px){.bow-balloon{width:20%}}
@media(max-width:360px){.dig-grid{padding:0;gap:1px}.dig-cell{border-radius:7px}.festival-card-grid{gap:8px}}
