@font-face{font-family:Manrope;src:url('./manrope.ttf?v=691edfc3ea76203f') format('truetype');font-display:swap}:root{font-family:Manrope,Arial,sans-serif;color:#344756;font-synthesis:none;--ease:cubic-bezier(.23,1,.32,1);--coral:#f88481;--green:#79b68a}*{box-sizing:border-box}body{margin:0;background:#dff3fb}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;transition:transform 140ms var(--ease),background-color 140ms ease,box-shadow 140ms ease}button:active{transform:translateY(3px) scale(.98)}button:disabled{opacity:.55;cursor:default}button:disabled:active{transform:none}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #477cc5;outline-offset:4px}button,a,input,select{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.game-shell{height:100svh;min-height:600px;position:relative;overflow:hidden;isolation:isolate;max-width:1800px;margin:auto;background:linear-gradient(#cceaf8 0%,#e9f6f2 62%,#dfecc9 100%)}/* The illustrated world sits behind the interactive 3D arena. */
.sky{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none;user-select:none}
.world-backdrop{position:absolute;inset:0;display:block}
.world-backdrop img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 58%;pointer-events:none}
/* A soft wash keeps the instructions and HUD readable over the blue sky. */
.sky:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#f0fbff42 0%,#f0fbff20 23%,transparent 40%)}
.hud{position:absolute;left:28px;right:28px;top:max(20px,env(safe-area-inset-top));height:62px;display:flex;align-items:center;gap:14px;z-index:6}.profile-chip{display:flex;align-items:center;background:#fffffff0;box-shadow:0 4px 0 #aac9c351;border:2px solid white;border-radius:22px;min-height:62px;padding:5px 18px 5px 4px;text-align:left;color:#405866;gap:5px}.profile-chip img{width:65px;height:50px;object-fit:contain}.profile-chip strong{display:block;font-size:17px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-chip small{display:block;font-size:11px;margin-top:2px;color:#718994}.sound-button{position:relative;width:55px;height:55px;border:2px solid white;border-radius:18px;background:#ffffffdb;color:#628b9c;box-shadow:0 4px 0 #a5c6d351;display:grid;place-items:center;padding-bottom:7px}.sound-button svg{width:24px}.sound-button span{position:absolute;bottom:3px;left:0;right:0;font-size:8px;font-weight:800;letter-spacing:1px}.sound-button[aria-pressed=false]{color:#859ba7}.game-world{position:absolute;inset:0}.quest{position:absolute;top:103px;left:50%;transform:translateX(-50%);width:min(90%,560px);text-align:center;z-index:4;pointer-events:none}.quest-tag{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#5c96a0}.quest h1{font-size:28px;letter-spacing:-.8px;margin:7px 0 3px;line-height:1.2;font-weight:800;color:#3b5964;text-shadow:0 2px #ffffffb3}.quest p{font-size:14px;color:#62818c;margin:5px 0 0;line-height:1.4}.daily-hearts{display:flex;justify-content:center;gap:8px;margin-top:12px}.daily-hearts svg{width:28px;height:28px;stroke:#d7a4a3;fill:#fffbf8;stroke-width:1.5}.daily-hearts svg.done{fill:#f48b8f;stroke:#e07783;filter:drop-shadow(0 2px 0 #d76e7244)}.stage{position:absolute;inset:180px 0 164px;z-index:1}.stage canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.stage canvas.grabbing{cursor:grabbing}#loading{position:absolute;inset:40% 0 auto;text-align:center;color:#70958b;font-size:15px;pointer-events:none}#scene-fallback{position:absolute;inset:5% 0 0;text-align:center;pointer-events:none}#scene-fallback img{height:85%;max-width:90%;object-fit:contain}#scene-fallback p{font-size:13px}.nameplate{position:absolute;bottom:233px;left:50%;transform:translateX(-50%);z-index:3;text-align:center;pointer-events:none}.nameplate>span:first-child{font-size:18px;font-weight:800;display:block;color:#506b58;text-shadow:0 1px white}.nameplate>span:last-child{font-size:11px;display:block;color:#68895b;margin-top:4px}.action-dock{position:absolute;bottom:101px;left:50%;transform:translateX(-50%);z-index:5;text-align:center;width:min(95%,580px)}.big-button{height:59px;min-width:180px;border:2px solid #ffffffad;border-radius:20px;padding:0 26px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:19px;font-weight:800;color:white;line-height:1;white-space:nowrap;position:relative}.big-button svg{width:23px;height:23px}.big-button.coral{background:#ec8588;box-shadow:0 5px 0 #be666e,0 9px 18px #9b607420;text-shadow:0 1px #b5666c}.big-button.coral svg{fill:#ffb3b0;stroke:#fff}.big-button.green{background:#76ae87;box-shadow:0 5px 0 #508360,0 9px 18px #477b5f20;text-shadow:0 1px #508360}.big-button small{font-size:11px;background:#ffffff30;border-radius:10px;padding:5px;font-weight:700}.big-button+.big-button{margin-left:12px}.big-button:active{box-shadow:0 2px 0 #587b5f}.gesture-tip{font-size:12px;color:#587c5a;font-weight:650;margin:15px 0 0}.back-pill{background:#ffffffe6;border:0;border-radius:20px;padding:10px 15px;margin-left:10px;font-size:13px;color:#557560}.game-nav{position:absolute;bottom:max(17px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:7px;z-index:8;background:#ffffffd9;padding:6px;border:2px solid white;border-radius:27px;box-shadow:0 5px 0 #8eb09344,0 6px 20px #63877312;backdrop-filter:blur(12px)}.game-nav button{position:relative;background:none;border:0;border-radius:20px;padding:6px 20px;min-width:95px;color:#728977;display:flex;align-items:center;gap:7px;justify-content:center;height:45px;font-size:14px;font-weight:750}.game-nav button svg{width:22px;height:22px}.game-nav button.active{background:#e5f0dc;color:#4e7954}.game-nav button b{display:grid;place-items:center;position:absolute;top:1px;right:8px;background:#e28d91;color:white;border:2px solid white;min-width:19px;height:19px;border-radius:50%;font-size:10px}.world-sign{position:absolute;bottom:25px;left:30px;font-size:14px;font-weight:800;color:#70936e;transform:rotate(-3deg);pointer-events:none}.world-sign small{display:block;font-size:9px;font-weight:600;letter-spacing:1px;margin-top:2px}.fighters{position:absolute;top:195px;left:50%;transform:translateX(-50%);width:min(75%,600px);display:flex;justify-content:space-between;z-index:5;pointer-events:none}.fighter{width:38%;text-align:left;display:grid;gap:5px}.fighter.enemy{text-align:right}.fighter strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#486779}.fighter>span{font-size:12px;font-weight:750;color:#548971}.fighter.enemy>span{color:#b26e82}.hp-track{height:13px;background:#ffffffbf;border:3px solid white;border-radius:15px;box-shadow:0 2px 0 #86aaa244;overflow:hidden}.hp-track i{display:block;width:100%;height:100%;background:#83bd91;transform-origin:left;transition:transform 200ms var(--ease)}.enemy .hp-track i{background:#eea0ae}.battle-mode .stage{top:210px;bottom:190px}.battle-mode .quest p{display:inline-block;background:#ffffffce;border:2px solid white;border-radius:13px;padding:7px 14px;color:#5e6e78;font-weight:650}.battle-mode .quest h1{font-size:23px}.battle-mode .action-dock{bottom:102px}.opponent-label{display:inline;margin-right:7px;font-size:13px;font-weight:700;color:#527352}select{padding:9px 25px 9px 12px;border:2px solid white;border-radius:13px;background:#f8fbef;color:#527352;font-size:13px;max-width:230px;height:41px}.moves{display:flex;justify-content:center;gap:15px}.move{position:relative;display:grid;justify-items:center;min-width:128px;flex:0 1 150px;height:111px;border:3px solid #ffffffc9;border-radius:23px;padding:10px 10px 8px;color:#4f6679;box-shadow:0 5px 0 #98b5b1;font-weight:800}.move svg{width:43px;height:43px;stroke-width:2.5}.move>span{font-size:18px;margin-top:2px}.move>small{font-size:10px;margin-top:2px;font-weight:650}.move.slam{background:#fbd2bd;box-shadow:0 5px 0 #d5a898;color:#996b57}.move.bounce{background:#c6e8fa;box-shadow:0 5px 0 #8fb9cf;color:#50809b}.move.guard{background:#dccff5;box-shadow:0 5px 0 #b2a1ce;color:#7d649f}.move.hinted{border-color:#fff6ab;outline:3px solid #e7c86b;outline-offset:3px}.move.hinted:before{content:'TRY ME!';position:absolute;top:-16px;left:50%;transform:translateX(-50%);background:#fff3b8;border:2px solid white;color:#947739;border-radius:12px;padding:4px 9px;font-size:9px;white-space:nowrap}.move-help{font-size:12px;color:#567a5f;margin:13px 0 0;font-weight:700}.floating-reward{position:absolute;left:50%;top:20%;color:#a77938;font-size:28px;font-weight:900;pointer-events:none;text-shadow:0 2px white;transform:translateX(-50%);opacity:0;z-index:6}.floating-reward.show{opacity:1;transform:translate(-50%,-30px);transition:transform 550ms var(--ease),opacity 180ms ease}.impact{position:absolute;top:38%;font-size:22px;font-weight:900;opacity:0;text-shadow:0 2px white;pointer-events:none;transition:opacity 160ms ease,transform 250ms var(--ease)}.impact.show{opacity:1;transform:translateY(-20px)}.impact-you{left:28%;color:#b56e83}.impact-enemy{right:25%;color:#a27635}.friends-mode .stage{opacity:.13;pointer-events:none}.friends-mode .quest,.friends-mode .nameplate{display:none}.friends-panel{position:absolute;top:107px;bottom:99px;left:50%;transform:translateX(-50%);width:min(90%,700px);z-index:5;background:#fffdf3ef;border:3px solid white;border-radius:28px;padding:24px;overflow:auto;box-shadow:0 6px 0 #9bbca84d;overscroll-behavior:contain}.friends-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.friends-heading h2{font-size:22px;margin:0;letter-spacing:-.5px}.friends-heading p{font-size:12px;color:#799083;margin:6px 0 0}.small-button{border:2px solid white;border-radius:13px;min-height:44px;padding:9px 15px;background:#92bd9a;color:white;font-weight:800;box-shadow:0 3px 0 #699477}.friend-empty{text-align:center;padding:10px 0 20px}.friend-empty img{width:125px;height:100px;object-fit:contain}.friend-empty h3{font-size:18px;margin:0}.friend-empty p{font-size:13px;line-height:1.5;margin:7px 0 17px;color:#748771}.friend-empty .big-button{font-size:15px;height:47px}.friend-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:17px 0}.friend-card{border:2px solid #e4eddd;background:#f6f9ef;border-radius:20px;padding:15px;overflow:hidden}.friend-card img{float:left;width:74px;height:63px;object-fit:contain;margin:-4px 9px 8px -9px}.friend-card h3{font-size:17px;margin:0;overflow-wrap:anywhere}.friend-card p{font-size:12px;line-height:1.4;color:#72876c;margin:5px 0}.friend-card .actions{display:flex;gap:7px;clear:both;padding-top:8px}.friend-card button{font-size:12px;flex:1;padding:8px}.friend-mode-note{font-size:12px;line-height:1.5;color:#738875;text-align:center;margin:17px 0 0}label,legend{display:block;font-size:13px;font-weight:700;color:#627c78}input{display:block;width:100%;border:2px solid #d9e6dc;border-radius:12px;background:#fff;color:#405b61;padding:12px;font-size:16px;margin:7px 0 15px;min-height:45px}.join-row{display:flex;gap:8px;margin-top:7px}.join-row input{margin:0;min-width:0}.join-row button{box-shadow:none}.full{width:100%;margin-top:14px}.text-button{display:block;margin:20px auto 0;background:none;border:0;min-height:40px;padding:8px 12px;text-decoration:underline;text-underline-offset:4px;font-size:13px;color:#738671}dialog{position:fixed;border:3px solid white;border-radius:30px;background:#fffcf1;box-shadow:0 12px 0 #6d978a33,0 25px 100px #22483444;color:#46606a;padding:26px;width:min(440px,calc(100% - 28px));max-height:90svh;overflow:auto;text-align:center}dialog::backdrop{background:#304b6159;backdrop-filter:blur(7px)}dialog h2{font-size:27px;letter-spacing:-.8px;font-weight:800;margin:7px 0 15px;line-height:1.15}dialog p{font-size:14px;line-height:1.5;color:#728378}dialog label,dialog legend{text-align:left}.close{position:absolute;right:12px;top:12px;width:40px;height:40px;background:#edf1e7;border:0;border-radius:50%;color:#839681;font-size:24px}.dialog-bun{width:110px;height:82px;object-fit:contain;display:block;margin:-10px auto 0}fieldset{border:0;padding:0;margin:17px 0}.flavor-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:9px}.flavor-grid label{position:relative;cursor:pointer}.flavor-grid input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.flavor-grid img{width:100%;display:block;border:2px solid #e8eddf;border-radius:13px;background:#f1f4e9}.flavor-grid input:checked+img{border-color:#eb9a96;background:#ffebdf;box-shadow:0 2px 0 #dda597}.flavor-grid input:focus-visible+img{outline:3px solid #7da6c9;outline-offset:2px}.check-label{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;margin-top:3px}.check-label input{width:18px;height:18px;min-height:0;margin:0;accent-color:#7aaf86}.result-bun{display:block;width:150px;height:125px;object-fit:contain;margin:0 auto}.result-sparkles{color:#e7bc55;font-size:36px;font-weight:800}.result-reward{display:inline-block;background:#fff0ba;color:#a57c2e;border:2px solid #ffe39a;border-radius:16px;padding:11px 22px;font-size:22px;font-weight:800}#final-move{font-size:12px;line-height:1.5}#result-dialog h2{font-size:31px;margin-bottom:5px}.evolution-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:25px}.evolution-cards article{position:relative;background:#edf3e5;border:2px solid #e3e9da;border-radius:16px;padding:10px 4px}.evolution-cards article.current{border-color:#92b77d;background:#e1f0d6}.evolution-cards img{width:100%;height:83px;object-fit:contain}.evolution-cards strong{font-size:11px;display:block}.evolution-cards span{font-size:11px;display:block;color:#7a8c6c;margin:7px 0}.sprout{position:absolute;top:0;left:calc(50% - 9px);color:#76a059;font-size:22px}.halo{position:absolute;top:0;left:calc(50% - 9px);color:#cba958;font-size:19px;transform:scaleY(.4)}.invite-steps{text-align:left;font-size:15px;line-height:1.6;padding-left:25px;margin:22px 0}.invite-steps li{padding:6px 0}#invite-link{font-size:12px}.error{color:#b65e67!important}#toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#4d7560;color:#fff;z-index:30;padding:12px 20px;border:2px solid white;border-radius:18px;max-width:min(90%,500px);font-size:14px;text-align:center;box-shadow:0 3px 0 #46655433}.battle-mode #toast{bottom:235px}@media(hover:hover)and(pointer:fine){.big-button:hover{filter:brightness(1.04);transform:translateY(-2px)}.move:hover{transform:translateY(-3px)}.game-nav button:hover{background:#eff4e7}.profile-chip:hover,.growth-chip:hover{transform:translateY(-1px)}}@media(min-width:1000px)and(min-height:800px){.stage{inset:175px 0 180px}.nameplate{bottom:235px}.battle-mode .stage{top:210px;bottom:215px}}@media(max-width:700px){.hud{left:14px;right:14px;top:max(14px,env(safe-area-inset-top));gap:8px;height:57px}.profile-chip{padding:4px 11px 4px 0;gap:0;min-height:55px;border-radius:18px}.profile-chip img{width:52px;height:43px}.profile-chip strong{font-size:14px;max-width:105px}.profile-chip small{font-size:9px}.sound-button{width:46px;height:48px;flex-shrink:0;border-radius:16px}.sound-button svg{width:21px}.quest{top:91px;width:94%}.quest h1{font-size:23px;letter-spacing:-.7px}.quest p{font-size:12px;padding:0 17px}.quest-tag{font-size:8px;letter-spacing:1.5px}.daily-hearts{gap:7px;margin-top:10px}.daily-hearts svg{width:25px;height:25px}.stage{inset:178px -30px 168px}.nameplate{bottom:233px}.nameplate>span:first-child{font-size:17px}.nameplate>span:last-child{font-size:10px}.action-dock{bottom:100px;width:94%}.big-button{font-size:17px;min-width:165px;height:57px;padding:0 18px;border-radius:19px}.big-button+.big-button{margin-left:7px}.big-button small{font-size:10px}.big-button svg{width:21px}.gesture-tip{font-size:10px;margin-top:12px}.game-nav{bottom:max(17px,env(safe-area-inset-bottom));border-radius:23px;padding:5px;gap:3px}.game-nav button{height:43px;min-width:90px;padding:6px 11px;font-size:13px}.game-nav button svg{width:21px}.world-sign{display:none}.fighters{top:184px;width:80%}.fighter{width:39%;gap:4px}.fighter strong{font-size:14px}.fighter>span{font-size:11px}.hp-track{height:12px}.battle-mode .stage{top:216px;bottom:217px}.battle-mode .quest h1{font-size:21px}.battle-mode .quest p{font-size:12px;padding:7px 10px;margin-top:5px}.battle-mode .action-dock{bottom:100px}.moves{gap:9px}.move{min-width:0;flex:1;height:100px;padding:8px 5px;border-radius:20px}.move svg{height:38px;width:38px}.move>span{font-size:17px}.move>small{font-size:9px}.move-help{font-size:10px;margin-top:12px}.move.hinted{outline-width:2px;outline-offset:2px}.move.hinted:before{font-size:8px;padding:3px 7px;top:-14px}.opponent-label{font-size:12px}select{font-size:12px;height:37px;max-width:195px}.battle-mode .nameplate{display:none}.friends-panel{top:86px;bottom:94px;width:93%;padding:18px;border-radius:23px}.friends-heading h2{font-size:19px}.friends-heading p{font-size:11px}.small-button{padding:8px 11px;font-size:12px}.friend-list{grid-template-columns:1fr}.friend-empty img{width:105px;height:83px}.friend-empty h3{font-size:16px}.friend-empty p{font-size:12px}.friend-mode-note{font-size:11px}.friends-panel .big-button{font-size:14px;min-width:150px}.friends-panel input{font-size:13px}.impact{font-size:19px}.impact-you{left:23%}.impact-enemy{right:22%}dialog{padding:23px 21px;max-height:92svh}dialog h2{font-size:25px}.dialog-bun{width:95px;height:70px}.flavor-grid{gap:5px}.evolution-cards{gap:5px}.evolution-cards strong{font-size:10px}.evolution-cards span{font-size:10px}#care-dock.has-battle .big-button{min-width:0;padding:0 13px;font-size:14px;height:54px;gap:7px}#care-dock.has-battle .big-button small{display:none}#care-dock.has-battle .big-button svg{width:18px}.back-pill{margin-left:0;margin-top:12px;font-size:11px;padding:7px 12px}}@media(max-height:700px){.game-shell{min-height:570px}.quest{top:83px}.quest h1{font-size:21px;margin-top:5px}.quest p{font-size:12px;margin-top:3px}.daily-hearts{margin-top:7px}.daily-hearts svg{width:22px;height:22px}.stage{top:148px;bottom:163px}.nameplate{bottom:220px}.fighters{top:167px}.battle-mode .stage{top:183px;bottom:205px}.battle-mode .quest{top:79px}.battle-mode .quest h1{font-size:20px}.battle-mode .quest p{padding:5px 10px}.move{height:92px;padding-top:6px}.move svg{height:32px;width:32px}.move>span{font-size:16px}.hud{top:10px}.friend-empty img{height:65px}.friend-empty{padding:4px 0 12px}.friends-heading p{display:none}}@media(max-width:360px){.hud{gap:6px;left:10px;right:10px}.profile-chip strong{max-width:85px;font-size:12px}.profile-chip small{font-size:8px}.profile-chip img{width:45px}.sound-button{width:42px}.quest h1{font-size:21px}.game-nav button{min-width:81px;padding:5px 8px}.moves{gap:7px}.move>small{font-size:8px}.quest p{font-size:11px}.opponent-label{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}button:active,.big-button:hover,.move:hover{transform:none!important}.floating-reward.show{transform:translateX(-50%)}.impact.show{transform:none}}

.nameplate{bottom:194px;background:#f7f7dfc9;border:2px solid #ffffffb3;border-radius:15px;padding:5px 18px}.nameplate>span:last-child{margin-top:2px}.friend-card button{margin:7px 6px 0 0}.floating-reward{transition:opacity 180ms ease}.impact.show{transition:opacity 160ms ease,transform 250ms var(--ease)}@media(max-height:700px){.nameplate{bottom:185px}}

.battle-help{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:12px}.battle-help .move-help{margin:0}.hint-toggle{border:1px solid #fff;border-radius:12px;background:#fff9;color:#526f58;padding:5px 10px;min-height:32px;font-size:11px;font-weight:750}.moves.no-hints .move small{visibility:hidden}.evolved-portrait{position:relative;width:150px;margin:auto}#evolved-decoration{position:absolute;top:4px;left:calc(50% - 15px);font-size:34px;color:#72a351;font-weight:900;z-index:1;line-height:1;transform:rotate(-20deg)}#evolved-decoration.is-halo{color:#d8b348;transform:scaleY(.4);top:-4px}@media(max-width:700px){.battle-help{gap:7px;margin-top:9px}.hint-toggle{font-size:10px;padding:4px 8px;min-height:30px}.battle-help .move-help{font-size:9px}}

/* Direct-play arena: one gesture surface, one visible charge. */
#touch-controls{width:min(440px,100%);margin:auto}.charge-track{position:relative;height:27px;border:2px solid #fff;border-radius:18px;overflow:hidden;background:#eff9f1;margin:0 12px 10px;box-shadow:0 2px 0 #86ab9166}.charge-track i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#a7dbe0,#badccd,#f7d98a);transform:scaleX(0);transform-origin:left}.charge-track span{position:absolute;inset:0;display:grid;place-items:center;font-size:11px;color:#507b78;font-weight:800}.battle-touch{width:100%;height:79px;position:relative;background:#8bccc8;border:3px solid #fafff9;border-radius:28px;color:#365f67;box-shadow:0 6px 0 #63a4a8,0 8px 24px #619c9a22;display:grid;align-content:center;justify-content:center;grid-template-columns:40px auto;column-gap:12px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.battle-touch>svg{grid-row:1/3;align-self:center;width:37px;height:37px;fill:#c8eeea;stroke:#558f96}.battle-touch strong{font-size:25px;text-align:left;line-height:1.2}.battle-touch span{font-size:12px;margin-top:3px;text-align:left}.battle-touch.charging{background:#f7dc98;box-shadow:0 3px 0 #c1a76d;transform:translateY(3px) scale(.98)}.touch-footer{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px;min-height:28px;color:#648573;font-size:11px}.touch-footer button{border:1px solid white;border-radius:14px;background:#fffc;padding:5px 10px;color:#648573;font-size:10px}.combo-callout{position:absolute;inset:10% 0 auto;text-align:center;pointer-events:none;font-size:23px;font-weight:900;color:#cd8c67;text-shadow:0 2px white;opacity:0;transform:translateY(8px);transition:opacity 150ms ease,transform 180ms var(--ease)}.combo-callout.show{opacity:1;transform:translateY(0)}#enemy-cue{font-size:10px;color:#a77987;min-height:13px}.battle-mode .stage{bottom:219px}.battle-mode .action-dock{bottom:99px}.battle-mode #scene{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.battle-mode .quest p{font-weight:750}.battle-mode .quest h1{font-size:25px}.battle-mode .fighter{gap:4px}.battle-mode .quest{pointer-events:none}.battle-touch:focus-visible{outline:4px solid #507a99;outline-offset:5px}@media(max-width:700px){.battle-mode .stage{top:230px;bottom:233px}.battle-touch{height:72px;border-radius:24px}.battle-touch strong{font-size:23px}.battle-touch span{font-size:11px}.touch-footer{font-size:10px;margin-top:10px;gap:9px}.charge-track{height:25px;margin:0 10px 9px}.charge-track span{font-size:10px}.battle-mode .quest h1{font-size:22px}.combo-callout{font-size:20px;top:6%}.battle-mode .action-dock{bottom:96px}}@media(max-height:700px){.battle-mode .stage{top:208px;bottom:223px}.battle-touch{height:65px}.battle-touch strong{font-size:21px}.charge-track{height:23px;margin-bottom:8px}.touch-footer{margin-top:8px}.battle-mode .quest h1{font-size:20px}.combo-callout{top:4%}}

/* Rounded scenery: preserve the open center at phone and desktop proportions. */
.quest-tag{color:#397780}
.quest p{color:#406771}
.gesture-tip,.touch-footer{color:#355f43;text-shadow:0 1px 2px #f8ffddb3}
.world-sign{color:#335c3b;text-shadow:0 1px 2px #f8ffddcc}
@media(max-width:700px){.world-backdrop img{object-position:center 65%}}

/* The HUD only shows the star balance. Growth detail lives in its own dialog. */
.growth-chip{display:flex;flex:none;align-items:center;justify-content:center;gap:9px;margin-left:auto;min-width:90px;min-height:52px;padding:11px 15px;border:2px solid white;border-radius:19px;background:#fff8de;color:#8f713a;box-shadow:0 4px 0 #dbc88955}
.growth-chip>svg{width:25px;height:25px;flex:none;color:#efbe52;fill:#f8ce65;stroke:#d8a943;stroke-width:1.5}
.growth-chip strong{font-size:22px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.growth-detail{margin:20px auto 0;max-width:250px;color:#8f713a;font-size:14px;font-weight:750}
.growth-progress{display:block;margin-top:10px;height:9px;border-radius:9px;background:#eedeb0;overflow:hidden}
.growth-progress i{display:block;height:100%;background:#d8b254;transform-origin:left;transform:scaleX(0)}
.close{width:44px;height:44px;min-width:44px;min-height:44px;color:#536e61;z-index:2}
.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-1px;z-index:2;background:#fffcf1;padding:0 0 10px;text-align:left}
.dialog-header h2{margin:0;font-size:25px;line-height:1.2}
.dialog-header .close,.panel-close{position:static;flex:none}
#invite-dialog{padding-top:16px}
#invite-dialog .invite-steps{margin:6px 0 18px;font-size:14px}
.invite-copy{width:100%;background:#e5efdf;color:#466f55;box-shadow:none;border-color:#ccdfc9}
#invite-dialog .big-button{margin-top:5px}
.friends-heading-actions{display:flex;gap:9px;align-items:center;flex:none}
.friends-panel .text-button{margin-top:8px;font-weight:750}
@media(max-width:700px){.growth-chip{min-width:76px;min-height:48px;padding:9px 12px;gap:7px;border-radius:17px}.growth-chip>svg{width:22px;height:22px}.growth-chip strong{font-size:21px}.profile-chip{min-width:0}.profile-chip>span{min-width:0}.profile-chip strong{max-width:105px}.friends-heading{align-items:flex-start}.friends-heading h2{max-width:160px}.friends-heading-actions{gap:5px}.dialog-header h2{font-size:23px}}
@media(max-width:360px){.growth-chip{min-width:68px;padding:9px;gap:5px}.growth-chip strong{font-size:19px}.growth-chip>svg{width:20px;height:20px}.profile-chip strong{max-width:82px}.friends-heading h2{font-size:17px}}

/* Shake is optional; every player can meet the same buddies with one tap. */
.match-actions{display:flex;justify-content:center;gap:10px;margin-top:10px}
.match-actions .big-button{min-width:0;margin:0;flex:1;max-width:205px;padding:0 17px;font-size:17px;gap:8px}
.shake-row{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px auto 0;font-size:11px;color:#355f43}
.shake-row button{min-height:44px;padding:9px 13px;border:2px solid #fff;border-radius:16px;background:#fffdf0;color:#466d54;font-size:12px;font-weight:800;flex:none}
.shake-row button[aria-pressed=true]{background:#dcefcf;border-color:#82b08b}
.shake-row span{max-width:165px;text-align:left;line-height:1.4;text-shadow:0 1px 2px #f8ffddb3}
.result-new-buddy{display:block;width:100%;margin-top:14px;background:#e5efdf;color:#466f55;box-shadow:none}
@media(max-width:700px){.match-actions{gap:8px;margin-top:9px}.match-actions .big-button{height:52px;font-size:15px;padding:0 13px}.match-actions .big-button svg{width:20px;height:20px}.shake-row{margin-top:9px;gap:9px}.shake-row span{font-size:10px;max-width:140px}}
