:root{font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:#293d20;background:#124e40;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:280px;background:radial-gradient(ellipse at top,#75b99e,#163f39);min-height:100svh}button{font:inherit;font-weight:900;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible{outline:4px solid #257eff;outline-offset:3px}[hidden]{display:none!important}.pond-shell{position:relative;max-width:500px;min-height:100svh;margin:auto;background:#4ec3a9 url('assets/pond-boxing-v4.png') center top/100% auto no-repeat;box-shadow:0 0 70px #001b2466;padding:12px 18px 100px;isolation:isolate}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;z-index:2}.avatar,.gear{width:46px;height:46px;display:grid;place-items:center;border:3px solid #f5ffe1;background:linear-gradient(#39749a,#204663);color:#fff;border-radius:15px;box-shadow:0 4px 0 #174161;font-size:26px}.avatar{border-radius:50%;font-size:29px}.wallet{margin-left:auto;background:linear-gradient(#335c77,#18364d);color:white;border:2px solid #96d9cf;border-radius:24px;padding:8px 14px;font-size:20px;box-shadow:0 4px 0 #164251}.screen{position:relative}.game-logo{font-family:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",sans-serif;text-align:center;margin:20px 0 0;line-height:.9;font-size:clamp(38px,11vw,57px);font-weight:1000;letter-spacing:-2px;transform:rotate(-3deg);filter:drop-shadow(0 5px 0 #123d23)}.game-logo span,.game-logo strong{display:block;-webkit-text-stroke:2px #143e23;paint-order:stroke fill;text-shadow:0 2px 0 #185420}.game-logo span{color:#a9f64a}.game-logo strong{color:#ffcf46;font-size:.92em;margin-top:5px}.hero-space{height:clamp(165px,48vw,236px)}.home-actions{display:grid;gap:10px}.cream{border:2px solid #fff6ce;border-radius:22px;background:linear-gradient(#fff6de,#f5d9a9);color:#56321c;box-shadow:0 5px 0 #b58144,0 9px 18px #254c2933}.selector{width:100%;min-height:64px;padding:9px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:21px;text-align:left}.selector>span:nth-child(2){flex:1}.selected-avatar{font-size:35px}.selector small{display:block;font-size:13px;color:#745331;margin-top:2px}.selector>span:last-child{font-size:32px}.powers-selector{padding:10px 14px;font-size:18px;display:grid;gap:8px}.power-icons{display:flex;justify-content:center;gap:22px}.power-icons>span{display:grid;place-items:center;width:48px;height:44px;border:2px solid #ffe6b9;background:linear-gradient(#ffdba1,#f4ba6f);border-radius:14px;font-size:31px;box-shadow:0 2px 0 #c9914e}.play-button{width:100%;min-height:80px;font-size:41px;letter-spacing:1px;border:3px solid #e6ff96;border-radius:25px;color:white;-webkit-text-stroke:1.5px #19430c;paint-order:stroke fill;background:linear-gradient(#b6ff3f 0%,#64df02 43%,#33ad00 100%);box-shadow:inset 0 5px 7px #e4ff9e,0 6px 0 #176c0e,0 9px 16px #13492566;text-shadow:0 3px 0 #1d610a}.play-button span{font-size:31px;color:#237611;-webkit-text-stroke:0;text-shadow:none;margin-left:15px}.practice-button{justify-self:center;padding:8px 36px;min-height:42px;background:linear-gradient(#7fdbff,#258acb);border:2px solid #c6f4ff;border-radius:16px;color:#fff;font-size:18px;box-shadow:0 4px 0 #176591;text-shadow:0 2px #216da0}.league-preview{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 16px;font-size:16px;margin-top:3px}.league-preview>span{font-size:28px}.league-preview>div{flex:1}.league-preview small{display:block;font-size:13px;margin:3px 0 6px}.meter{display:block;background:#dac397;border-radius:12px;height:10px;overflow:hidden;border:1px solid #c5a271}.meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#57a837,#b5ea40);border-radius:12px;transition:width .3s}.bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(500px,100%);padding:8px 10px max(8px,env(safe-area-inset-bottom));gap:3px;background:linear-gradient(#fff7dd,#f3d19a);border:2px solid #fff0c4;border-radius:24px 24px 0 0;box-shadow:0 -3px 15px #174c4333}.bottom-nav button{border:0;background:transparent;color:#674624;font-size:14px;padding:4px;min-height:65px;border-radius:15px;display:grid;place-items:center;gap:2px}.bottom-nav button span{font-size:27px}.bottom-nav button.active{background:linear-gradient(#ffe377,#ffc442);box-shadow:inset 0 0 0 2px #fff3b0;color:#254c1f}.hub-screen{padding-top:14px}.page-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.page-heading h2{margin:0;font-size:27px;color:#fff;text-shadow:0 2px 3px #143d25}.back{background:#fff4d9;border:2px solid #eac989;border-radius:13px;padding:7px 13px;min-height:44px;font-size:20px;color:#624429}.panel{background:#fff8e9f5;border:2px solid #ffedbd;border-radius:22px;padding:18px;margin-bottom:14px;box-shadow:0 5px 0 #99724655;color:#3f4227}.panel h3{margin:0 0 10px;font-size:21px}.panel p{line-height:1.5;margin:8px 0;font-size:15px}.muted{color:#6b6b51;font-size:14px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fighter-card{border:2px solid #edd19b;background:#fff9ed;border-radius:17px;padding:12px;display:grid;gap:6px;justify-items:center;min-height:136px}.fighter-card.selected{border:3px solid #47a843;background:#e7f8d7}.fighter-card .frog-portrait{font-size:50px;line-height:1.1}.frog-portrait.blue{filter:hue-rotate(130deg)}.frog-portrait.purple{filter:hue-rotate(210deg)}.frog-portrait.pink{filter:hue-rotate(260deg)}.frog-portrait.gold{filter:sepia(1) saturate(4)}.frog-portrait.red{filter:hue-rotate(290deg)}.frog-portrait.rainbow{filter:hue-rotate(100deg) saturate(3)}.fighter-card small{font-size:12px;text-align:center}.button{background:linear-gradient(#70c84d,#3e9c2d);border:2px solid #b8e889;border-radius:13px;box-shadow:0 3px 0 #246724;color:#fff;padding:10px 15px;min-height:44px;font-size:16px}.button.secondary{background:linear-gradient(#fff7e7,#ecd3ab);color:#614728;border-color:#ebce96;box-shadow:0 3px 0 #ab864e}.button.blue{background:linear-gradient(#65c6ed,#277fbf);border-color:#addfff;box-shadow:0 3px 0 #1c568d}.button.wide{width:100%;margin-top:8px}.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.tabs .button{flex:1;font-size:14px}.league-row,.trail-row,.power-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e6dabc}.league-row:last-child,.trail-row:last-child,.power-row:last-child{border-bottom:0}.league-row .badge,.trail-row .badge,.power-row .badge{font-size:32px}.league-row>div,.trail-row>div,.power-row>div{flex:1}.league-row b,.trail-row b,.power-row b{display:block;font-size:16px}.league-row small,.trail-row small,.power-row small{display:block;margin-top:4px;font-size:13px;line-height:1.4}.tag-pill{border-radius:20px;padding:5px 10px;font-size:12px;background:#e1efcb;color:#46652b;font-weight:900}.records{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.record{padding:16px 8px;border:1px solid #e4d4b0;border-radius:15px;text-align:center;background:#fffdf7}.record strong{display:block;font-size:27px;color:#418531}.record span{display:block;font-size:13px;margin-top:5px}.game-screen{padding-top:15px}.game-header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#fff;font-weight:900;font-size:13px;text-shadow:0 2px 2px #1f5438}.game-header .back{font-size:14px;padding:7px 10px}.game-header .gear{width:40px;height:40px;font-size:20px}.scoreboard{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:12px;border-radius:22px;border:2px solid #b6d293;background:#153d37e8;color:#fff}.scoreboard>div{text-align:center;flex:1}.scoreboard strong{font-size:32px;display:block;color:#d8ff8c}.scoreboard span{font-size:13px}.clock b{font-size:26px;display:block}.clock small{display:block;font-size:11px;margin-top:3px}.clock.hot b{color:#ffcf77}.turn-message{background:#fff6d9ed;text-align:center;padding:10px;border-radius:14px;font-weight:800;font-size:15px;min-height:42px}.board{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:8px;background:#196e628c;border:2px solid #b5ddad;padding:10px;border-radius:21px}.card{aspect-ratio:3/4;min-width:0;border:2px solid #ebfcb4;border-radius:13px;background:linear-gradient(135deg,#60a54e,#236241);box-shadow:0 4px 0 #1a4c31;color:#e0fc9c;font-size:29px;display:grid;place-items:center;position:relative;transition:transform .15s}.card:active{transform:scale(.94)}.card.face{background:linear-gradient(#fffce7,#e5f4d0);border-color:#fff;box-shadow:0 3px 0 #a2b27d;color:#17482b}.card.matched{background:linear-gradient(#d6f1a8,#a9d989);border-color:#e4ffa7;box-shadow:0 3px 0 #709960;opacity:.65}.card.hop:after{content:'🐸';position:absolute;top:-10px;right:-6px;font-size:22px;animation:hop .7s ease-out both;pointer-events:none}.game-powers{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.game-powers .button{flex:1;font-size:13px;padding:8px}.game-powers small{display:block;font-size:11px}body.playing .bottom-nav{display:none}body.playing .pond-shell{padding-bottom:25px}body.playing .topbar{display:none}dialog{border:3px solid #ffe6a6;border-radius:25px;background:#fff7e4;color:#3e4326;width:min(440px,calc(100% - 30px));max-height:90svh;overflow:auto;padding:24px;text-align:center;box-shadow:0 20px 80px #071d2255}dialog::backdrop{background:#072f36b8;backdrop-filter:blur(5px)}dialog h2{font-size:27px;margin:7px 0 10px}dialog p{line-height:1.5}dialog .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}dialog .actions button{flex:1}dialog .reward-list{background:#eee5cc;border-radius:15px;padding:12px;text-align:left;font-size:14px;line-height:1.8}dialog .dance{font-size:72px;display:inline-block;animation:dance .7s ease-in-out 7}dialog .count{font-size:80px;color:#529b24;font-weight:1000}#toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:#153d36;color:#fff;border:2px solid #d3e9a1;border-radius:16px;padding:13px 18px;z-index:100;max-width:90vw;text-align:center;box-shadow:0 7px 18px #062e3866}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:15px}.switch-row input{width:23px;height:23px}.championship{border-top:5px solid #e78e32}.championship.winter{border-color:#55aacc}.trail-row.earned .badge{filter:none}.trail-row:not(.earned) .badge{filter:grayscale(1);opacity:.5}.theme-halloween .pond-shell{background-color:#725595}.theme-halloween .game-logo strong{color:#ff9f30}.theme-winter .pond-shell{background-color:#65b9d0}.theme-halloween .pond-shell:before,.theme-winter .pond-shell:before{content:'🎃  🍂';position:absolute;left:15px;right:15px;top:245px;text-align:center;font-size:36px;pointer-events:none}.theme-winter .pond-shell:before{content:'❄️  ⛄  ❄️'}.home-screen .hero-space{pointer-events:none}@keyframes dance{0%,100%{transform:rotate(-10deg) translateY(0)}50%{transform:rotate(12deg) translateY(-16px)}}@keyframes hop{0%{transform:translateY(10px);opacity:0}25%{opacity:1}100%{transform:translateY(-35px);opacity:0}}
@media(min-width:700px){.pond-shell{margin:20px auto;min-height:920px;border:4px solid #b4dcb2;border-radius:34px;padding-bottom:95px;overflow:hidden}.bottom-nav{position:absolute;bottom:0;width:100%}.home-screen .hero-space{height:220px}body.playing .pond-shell{min-height:850px;max-width:720px;background-size:cover}.game-screen{padding-top:0}.board{gap:10px}.card{font-size:34px}.game-logo{font-size:57px}}
@media(max-width:360px){.pond-shell{padding-left:12px;padding-right:12px}.hero-space{height:155px}.game-logo{font-size:39px}.selector{font-size:18px}.powers-selector{font-size:16px}.card{border-radius:9px;font-size:24px}.board{gap:5px;padding:7px}.bottom-nav button{font-size:12px}}
@media(max-height:600px) and (orientation:landscape){.pond-shell{max-width:700px;min-height:100svh;background-size:cover}.hero-space{height:120px}.home-actions{max-width:430px;margin:auto}.game-logo{font-size:40px}.board{gap:6px;max-width:660px;margin:auto}.card{aspect-ratio:1.3;max-height:85px}.scoreboard{padding:5px}.turn-message{margin:7px 0}.game-header{padding:0}.game-powers{margin-top:8px}.bottom-nav{position:absolute}body.playing .pond-shell{padding:8px 15px}.game-screen{padding:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.stage-select{display:block;width:100%;margin:12px 0;border:2px solid #d2ba86;border-radius:12px;padding:12px;background:#fffdf4;color:#3e4326;font:inherit;font-size:16px}.reduce-motion *, .reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important}.still{animation:none!important}

/* Cards stay crisp during turn locks and after matching. */
.card:disabled,.card.matched{opacity:1;filter:none}.card.matched{border-color:#f5dc68;box-shadow:0 3px 0 #709960,inset 0 0 0 2px #e4ffa7}.card-word{display:grid;place-items:center;gap:3px;font-size:12px;line-height:1.1;text-align:center}.card-word span{font-size:25px}.learning-check .question{font-weight:900;font-size:18px}.learning-check .button{display:block;width:100%;margin:10px 0}.learning-feedback{min-height:24px;color:#735427}.source-link{font-size:13px;color:#236742}.chapter-button{border:0;background:transparent;text-align:left;width:100%;padding:0;color:inherit}.chapter-button:disabled{opacity:.7}.chapter-row{position:relative}.learning-header{display:block;padding:12px 0}.learning-header b{display:block;margin:4px 0}.journey-notice{font-size:13px;color:#4b692d}.journey-play{margin-bottom:10px}

.original-showdown{display:flex;align-items:center;justify-content:center;padding:12px 0}.original-showdown img{display:block;width:100%;height:100%;object-fit:contain;border-radius:18px;filter:drop-shadow(0 5px 8px #153c2a88)}.extra-modes{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.extra-modes .practice-button{padding:8px 20px;font-size:15px}.crossword-button{background:linear-gradient(#bbd86b,#718e31);border-color:#e1efb4;box-shadow:0 4px 0 #44612b}.cross-scroll{overflow:auto;padding:4px 1px 10px}.cross-grid{display:grid;grid-template-columns:repeat(var(--cross-cols),minmax(0,1fr));gap:2px;background:#244b35;border:3px solid #244b35}.cross-cell{position:relative;background:#fffdf3;aspect-ratio:1;min-width:28px}.cross-cell small{position:absolute;top:1px;left:2px;font-size:9px;pointer-events:none;z-index:1}.cross-cell input{width:100%;height:100%;border:0;background:transparent;text-align:center;text-transform:uppercase;font:900 16px system-ui;padding:8px 0 0;color:#173f2c;border-radius:0;box-shadow:none}.cross-cell.active{background:#e5f4bb}.cross-cell input:focus{outline:2px solid #2677d8;outline-offset:-2px;background:#fff2ae}.cross-block{background:#244b35;aspect-ratio:1}.cross-clues{display:grid;gap:6px;margin-bottom:18px}.cross-clues button{border:1px solid #d4c499;background:#fffaf0;color:#465033;border-radius:10px;text-align:left;padding:10px;font-size:14px;min-height:44px;font-weight:700}.cross-clues button.solved{background:#e1f2c4;border-color:#88b56b}.current-clue{min-height:45px;font-weight:900;font-size:15px;background:#e7edcf;padding:9px;border-radius:12px}

.frog-portrait{position:relative}.frog-emblem{font-size:22px!important;display:block;line-height:1.3;filter:none}.bank-search{width:100%;font:inherit;font-size:16px;margin:12px 0;padding:12px;border:2px solid #ceb680;border-radius:12px;background:#fffdf3;color:#2c4226}.bank-fact{border-top:1px solid #ddcc9f;padding:16px 0}.bank-fact h3{font-size:18px}.bank-button{background:linear-gradient(#e9c25b,#a87720);box-shadow:0 4px 0 #76521b;border-color:#ffe7a1}.extra-modes .practice-button{padding:8px 12px;font-size:14px}

.avatar .frog-emblem{display:none}.selected-avatar .frog-emblem{font-size:14px!important}.dance .frog-portrait{display:inline-block;font-size:inherit;line-height:1.1}

.wordsearch-button{background:linear-gradient(#b6de79,#639d39);box-shadow:0 4px 0 #396529;border-color:#e2f3b5}.search-scroll{overflow:auto;padding:6px 0 12px}.search-grid{display:grid;grid-template-columns:repeat(var(--search-size),minmax(0,1fr));gap:2px;background:#c5dab1;padding:4px;border-radius:12px;user-select:none}.search-cell{aspect-ratio:1;background:#fffdf3;border:1px solid #e5e6c9;border-radius:5px;color:#244f32;font-size:16px;padding:0;min-width:24px;min-height:24px;touch-action:manipulation}.search-cell.found{background:#bde19a;border-color:#81aa5b}.search-cell.selecting{background:#ffe594;border-color:#c89c39}.search-cell:focus-visible{outline:3px solid #2677ce;outline-offset:-2px}.search-words{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.search-words span{padding:6px 10px;border-radius:12px;border:1px solid #d9c89d;background:#fff9ec;font-size:14px;font-weight:900}.search-words span.found{color:#35752b;background:#e4f2cb;text-decoration:line-through}#wordsearch-feedback{min-height:42px;background:#edf4d7;padding:10px;border-radius:12px;font-size:14px}

.pond-showdown{position:relative;display:flex;justify-content:center;align-items:flex-start}.pond-showdown h2{margin:12px 0 0;color:#ffe45d;font-size:clamp(22px,7vw,34px);font-weight:1000;-webkit-text-stroke:1px #174326;paint-order:stroke fill;text-shadow:0 3px 0 #174326;transform:rotate(-2deg)}.play-button{font-size:32px}.extra-modes [data-action="practice"]{width:100%;min-height:58px;font-size:23px}

.pond-showdown{height:clamp(230px,65vw,325px)}.illustrated-frog{display:inline-block;position:relative;width:76px;height:86px;vertical-align:middle}.frog-art{display:block;width:100%;height:100%;border-radius:18px;background:url('assets/pond-boxing-v4.png') 18% 34% / 240% 320% no-repeat}.frog-art.purple-art{background-position:90% 38%}.illustrated-frog.purple{filter:none}.avatar .illustrated-frog{width:35px;height:35px}.selected-avatar .illustrated-frog{width:50px;height:55px}.dance .illustrated-frog{width:125px;height:140px}.frog-emblem{position:absolute;bottom:0;right:-4px;font-size:22px;background:#fff5cf;border-radius:10px;padding:2px}.fighter-card .illustrated-frog{font-size:initial}

.frog-art{background-image:url("assets/pond-boxing-v4.png");background-size:240% auto}.pond-shell{background-image:url("assets/pond-boxing-v4.png")}

.home-actions{gap:14px}.home-picks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-picks .selector{padding:9px;min-height:62px;font-size:15px;border-radius:17px;gap:7px}.home-picks .selector>span:last-child{font-size:15px}.home-picks .selector small{font-size:12px}.home-picks .selected-avatar .illustrated-frog{width:35px;height:42px}.compact-powers>span:first-child{font-size:27px}.solo-main,.explore-main{width:100%;min-height:64px;padding:12px 16px;border-radius:19px;font-size:24px;color:white;border:2px solid #c6f4ff;background:linear-gradient(#60bde7,#277fae);box-shadow:0 4px 0 #195376}.solo-main small,.explore-main small{display:block;font-size:13px;font-weight:600;margin-top:3px}.explore-main{font-size:20px;color:#315829;border-color:#e0eec5;background:#f4f8e8;box-shadow:0 3px 0 #88a371}.league-preview{font-size:14px;padding:10px 14px;min-height:60px}.league-preview .meter{height:6px}.play-button{min-height:68px;font-size:30px}.pond-showdown{height:clamp(210px,61vw,305px)}

.puzzle-discovery{background:#edf4d9;border:1px solid #b8cc97;border-radius:16px;padding:14px;margin:14px 0}.puzzle-discovery h3{font-size:18px}.puzzle-discovery details,.puzzle-recall{margin-top:12px;text-align:left}.puzzle-discovery summary,.puzzle-recall summary{cursor:pointer;font-weight:800;padding:6px 0;min-height:36px}.puzzle-discovery details p{font-size:14px}.puzzle-answers{display:grid;gap:6px}#puzzle-learning-feedback{font-size:16px}

.pond-shell{background-position:center 70px;background-color:#9ee1ee;padding-top:max(12px,env(safe-area-inset-top))}.pond-showdown{height:clamp(235px,66vw,330px)}.game-logo{font-size:clamp(34px,10.5vw,54px)}#account-dialog label{display:block;text-align:left;margin:12px 0;font-weight:800}#account-dialog input{display:block;width:100%;padding:12px;margin-top:6px;font:inherit;font-size:16px;border:2px solid #9cb780;border-radius:12px}.account-loading-message{display:none}.account-loading .account-loading-message{display:grid;place-items:center;position:fixed;inset:0;z-index:500;background:#153d37f5;color:white;font-weight:800;padding:24px;text-align:center}.card{touch-action:manipulation}@media(orientation:landscape) and (max-height:500px){body.playing .board{gap:5px;padding:7px}body.playing .card{aspect-ratio:1.5}body.playing .scoreboard{padding:6px;margin-top:6px}body.playing .turn-message{margin:6px 0;padding:6px;min-height:30px}body.playing .pond-shell{max-width:760px}.game-powers{margin-top:8px}}

/* Keep sky behind the toolbar and reserve the full fighters area on every screen. */
.pond-shell{background-image:url('assets/pond-boxing-v4.png'),url('assets/pond-boxing-v4.png');background-position:center 70px,center top;background-size:100% auto,100% auto;background-repeat:no-repeat,no-repeat}
.home-screen .hero-space.pond-showdown{height:auto;min-height:0;aspect-ratio:1.35;width:100%}

/* Home uses the visible viewport; other screens retain their normal document flow. */
body.home-fit .pond-shell{height:100svh;min-height:0;margin:0 auto;padding:8px 12px max(6px,env(safe-area-inset-bottom));padding-top:max(8px,env(safe-area-inset-top));display:grid;grid-template-rows:36px minmax(0,1fr) 54px;gap:6px;overflow:hidden;background-image:url('assets/pond-boxing-v4.png'),linear-gradient(#9bdfef,#57c1b4);background-position:center top,center top;background-size:min(100%,calc((100svh - 280px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*1.2)) auto,100% 100%;background-repeat:no-repeat;border-radius:0;border:0}
body.home-fit .topbar .avatar,body.home-fit .topbar .gear{width:36px;height:36px;font-size:22px;border-width:2px}
body.home-fit .wallet{font-size:16px;padding:5px 12px}
body.home-fit .home-screen{display:flex;flex-direction:column;min-height:0}
body.home-fit .game-logo{flex:none;margin:6px 0 0;font-size:clamp(26px,8vw,40px);line-height:.9}
body.home-fit .home-screen .hero-space.pond-showdown{flex:1;min-height:0;height:auto;aspect-ratio:auto}
.fit-frog-art{display:none}
body.home-fit .home-actions{flex:none;gap:6px}
body.home-fit .home-picks .selector{min-height:40px;padding:5px 7px;border-radius:12px;font-size:13px;gap:5px}
body.home-fit .home-picks .selector>span:last-child{font-size:13px}
body.home-fit .home-picks .selector small{font-size:10px}
body.home-fit .home-picks .selected-avatar .illustrated-frog{width:25px;height:29px}
body.home-fit .compact-powers>span:first-child{font-size:23px}
body.home-fit .play-button{min-height:44px;font-size:24px;border-radius:15px}
body.home-fit .play-button span{font-size:22px}
body.home-fit .solo-main,body.home-fit .explore-main{min-height:38px;padding:4px 8px;font-size:18px;border-radius:13px}
body.home-fit .solo-main small,body.home-fit .explore-main small{font-size:10px;margin-top:1px}
body.home-fit .league-preview{min-height:36px;padding:4px 10px;margin:0;font-size:12px;border-radius:12px}
body.home-fit .league-preview small{font-size:10px;margin:1px 0 3px}
body.home-fit .league-preview>span{font-size:22px}
body.home-fit .league-preview .meter{height:4px}
body.home-fit .bottom-nav{position:static;transform:none;width:100%;padding:3px 4px;gap:3px;border-radius:14px;min-height:0}
body.home-fit .bottom-nav button{min-height:44px;font-size:11px;padding:2px;gap:0}
body.home-fit .bottom-nav button span{font-size:21px}
@media(orientation:landscape) and (max-height:600px){
 body.home-fit .pond-shell{max-width:900px;grid-template-rows:34px minmax(0,1fr) 44px;gap:4px;background:linear-gradient(#9bdfef,#57c1b4)}
 body.home-fit .home-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,1fr);grid-template-rows:52px minmax(0,1fr);gap:4px 16px}
 body.home-fit .game-logo{grid-column:1;grid-row:1;font-size:26px;margin:0}
 body.home-fit .home-screen .hero-space.pond-showdown{grid-column:1;grid-row:2;container-type:size;overflow:hidden}
 body.home-fit .fit-frog-art{display:block;position:absolute;height:min(307cqh,150cqw);width:auto;max-width:none;top:50%;left:50%;transform:translate(-50%,-39%)}
 body.home-fit .home-actions{grid-column:2;grid-row:1 / 3;align-self:center;gap:4px}
 body.home-fit .home-picks .selector{min-height:36px}
 body.home-fit .play-button{min-height:38px;font-size:21px}
 body.home-fit .solo-main,body.home-fit .explore-main{min-height:34px;font-size:16px}
 body.home-fit .league-preview{min-height:32px}
 body.home-fit .bottom-nav button{min-height:36px;display:flex;justify-content:center;gap:8px}
}
/* Four pond buttons leave the full fighters clear in the center. */
body.home-fit .pond-shell{background:linear-gradient(#9bdfef,#6fcbbd 60%,#3b9b84);grid-template-rows:36px minmax(0,1fr) 54px}
body.home-fit .home-screen{display:flex;flex-direction:column;gap:8px;min-height:0}
body.home-fit .game-logo{margin:4px 0;font-size:clamp(30px,9vw,46px)}
.corner-pond{position:relative;flex:1;min-height:0;border-radius:22px;background:#72c9c0;overflow:hidden;isolation:isolate}
.pond-fighters{position:absolute;inset:76px 0 78px;container-type:size;overflow:hidden;background:#9bdfef}
.pond-fighters img{position:absolute;height:min(307cqh,150cqw);width:auto;max-width:none;left:50%;top:50%;transform:translate(-50%,-39%)}
.corner-pond:before,.corner-pond:after{content:'';position:absolute;left:0;right:0;height:80px;z-index:-1;background:url('assets/pond-boxing-v4.png') center top/100% auto no-repeat}
.corner-pond:before{top:0}.corner-pond:after{bottom:0;background-position:center bottom}
.pond-choice{position:absolute;width:calc(50% - 16px);max-width:190px;min-height:58px;padding:6px 8px;display:grid;place-items:center;gap:2px;border:2px solid #fff0ae;border-radius:18px;background:linear-gradient(#fff6dc,#efca88);color:#315a28;font-size:clamp(13px,3.7vw,17px);box-shadow:0 4px 0 #927047}
.pond-choice span{font-size:21px}.rival-choice{left:8px;top:8px;background:linear-gradient(#aaff54,#56c433);border-color:#e9ffb0}.solo-choice{right:8px;top:8px;background:linear-gradient(#a2eaff,#57b7dd);border-color:#d8faff}.explore-choice{left:8px;bottom:8px}.journey-choice{right:8px;bottom:8px}
@media(orientation:landscape) and (max-height:600px){body.home-fit .home-screen{display:flex;gap:4px}body.home-fit .game-logo{font-size:26px;line-height:.85;margin:0}.pond-fighters{inset:0 130px}.pond-choice{width:118px;min-height:54px;font-size:13px}.corner-pond:before,.corner-pond:after{height:100%;width:130px;background-size:auto 100%}.corner-pond:after{left:auto;right:0}}
/* Fixed app frame, with content pages and navigation inside it. */
body.hub-fit .pond-shell,body.playing .pond-shell{height:var(--visible-height,100svh);min-height:0;max-width:720px;margin:0 auto;border:0;border-radius:0;padding:max(8px,env(safe-area-inset-top)) 12px max(6px,env(safe-area-inset-bottom));overflow:hidden;display:grid;gap:6px;background-position:center top}
body.hub-fit .pond-shell{grid-template-rows:36px minmax(0,1fr) 54px;max-width:500px}
body.hub-fit .topbar .avatar,body.hub-fit .topbar .gear{height:36px;width:36px;font-size:22px;border-width:2px}
body.hub-fit .wallet{font-size:16px;padding:5px 12px}
body.hub-fit .bottom-nav{position:static;transform:none;width:100%;padding:3px 4px;border-radius:14px}
body.hub-fit .bottom-nav button{min-height:44px;font-size:11px;padding:2px;gap:0}
body.hub-fit .bottom-nav button span{font-size:21px}
body.hub-fit .hub-screen{min-height:0;padding:0;display:grid;grid-template-rows:42px minmax(0,1fr);gap:4px}
body.hub-fit .page-heading{margin:0;gap:10px}
body.hub-fit .page-heading h2{font-size:22px}
body.hub-fit .page-heading .back{min-height:36px;padding:4px 12px}
#hub-content{min-height:0}
.paged-content{position:relative;height:100%;min-height:0;overflow:hidden}
.screen-page{margin:0;width:100%;max-height:var(--page-space);padding:10px 12px;border-radius:16px;box-shadow:none}
.screen-page h3{font-size:18px;margin:4px 0 7px}.screen-page p{font-size:14px;line-height:1.4;margin:7px 0}
.screen-page .grid{gap:8px;margin:8px 0}.screen-page .fighter-card{min-height:104px;padding:7px;gap:3px;font-size:13px}.screen-page .fighter-card .illustrated-frog{width:56px;height:63px}
.screen-page .button{min-height:38px;padding:7px 10px;font-size:14px}.screen-page .tabs{gap:6px;margin:7px 0}.screen-page .power-row,.screen-page .trail-row,.screen-page .league-row{padding:10px 0}.screen-page .bank-fact{padding:8px 0}
.screen-pager{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;height:44px;background:#fff8e9;border:2px solid #ffe8b3;border-radius:13px;padding:3px 6px}
.screen-pager .button{font-size:13px;padding:5px 9px;min-height:34px}.screen-pager span{font-weight:800;font-size:13px}
/* Puzzle grids fit both dimensions, with clue lists on their own pages. */
.puzzle-stage{height:100%;min-height:0;margin:0;padding:10px;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.puzzle-stage h3{margin:0;font-size:17px}.puzzle-stage .tabs{margin:0;gap:5px;flex:none}.puzzle-stage .tabs .button{font-size:12px;padding:5px 6px;min-height:36px}
.puzzle-stage .current-clue,.puzzle-stage #wordsearch-feedback,.puzzle-stage #crossword-feedback{flex:none;min-height:0;margin:0;padding:6px;font-size:13px;line-height:1.3}
.puzzle-stage #crossword-feedback:empty{display:none}
.puzzle-board-space{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:2px;overflow:hidden}
.cross-grid{grid-template-columns:repeat(var(--cross-cols),var(--puzzle-cell,20px));grid-template-rows:repeat(var(--cross-rows),var(--puzzle-cell,20px));gap:0;min-width:0!important;border-width:2px;flex:none}
.cross-cell,.cross-block{min-width:0;aspect-ratio:auto}.cross-cell{border:1px solid #ddd}.cross-cell input{font-size:clamp(10px,calc(var(--puzzle-cell,20px)*.6),20px);padding:5px 0 0}.cross-cell small{font-size:clamp(6px,calc(var(--puzzle-cell,20px)*.3),10px)}
.search-grid{grid-template-columns:repeat(var(--search-size),var(--puzzle-cell,22px));grid-template-rows:repeat(var(--search-size),var(--puzzle-cell,22px));gap:0;padding:2px;min-width:0!important;flex:none}
.search-cell{min-width:0;min-height:0;aspect-ratio:auto;font-size:clamp(10px,calc(var(--puzzle-cell,22px)*.6),22px);border-radius:3px}
/* The matching board uses the remaining screen height rather than fixed card proportions. */
body.playing .pond-shell{grid-template-rows:minmax(0,1fr)}
body.playing .game-screen{height:100%;min-height:0;padding:0;display:grid;grid-template-rows:36px 58px auto minmax(0,1fr) 40px;gap:6px}
body.playing .game-header{padding:0}.game-header .back{min-height:34px}.game-header .gear{width:34px;height:34px}
body.playing .scoreboard{margin:0;padding:5px;border-radius:15px}.scoreboard strong{font-size:25px}.clock b{font-size:23px}
body.playing .turn-message{margin:0;min-height:30px;padding:6px;font-size:13px}
body.playing .board{height:100%;min-height:0;max-height:none;margin:0;padding:6px;gap:5px;grid-template-rows:repeat(var(--rows,3),minmax(0,1fr));width:100%}
body.playing .card{aspect-ratio:auto;max-height:none;height:100%;min-height:0;font-size:clamp(16px,4vw,30px);border-radius:8px}
body.playing .card-word{font-size:10px}.card-word span{font-size:19px}
body.playing .game-powers{margin:0}.game-powers .button{min-height:36px}
dialog[open]{max-height:calc(var(--visible-height,100svh) - 20px);padding:12px;overflow:hidden}
#modal-content.paged-content{height:calc(var(--page-space) + 46px);text-align:center}
#modal-content .screen-page{border:0;background:transparent;padding:0;box-shadow:none;text-align:center}
#modal-content .screen-page .actions{margin-top:10px}
#modal-content .screen-page .dance .illustrated-frog{width:70px;height:78px}
#account-dialog{font-size:14px}#account-dialog h2{font-size:23px}#account-dialog label{margin:7px 0}#account-dialog input{padding:8px}#account-dialog .actions{margin-top:10px;gap:6px}#account-dialog .button{min-height:36px;font-size:13px;padding:6px 10px}
@media(orientation:landscape) and (max-height:600px){body.hub-fit .pond-shell{max-width:900px;grid-template-rows:34px minmax(0,1fr) 44px}body.hub-fit .bottom-nav button{min-height:36px;display:flex;justify-content:center;gap:8px}body.hub-fit .hub-screen{grid-template-rows:34px minmax(0,1fr)}body.hub-fit .page-heading h2{font-size:20px}body.playing .game-screen{grid-template-rows:32px 46px auto minmax(0,1fr) 36px;gap:4px}.puzzle-stage{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:24px auto minmax(0,1fr) auto}.puzzle-stage .puzzle-board-space{grid-column:2;grid-row:1 / 5}.puzzle-stage .tabs{display:flex;flex-wrap:wrap}.screen-page p{margin:5px 0}}

/* Three recognizable games, with nature adventures above the fighters. */
body.home-fit .home-screen{gap:6px}
.pond-adventures{display:flex;gap:8px;flex:none;justify-content:center}.pond-adventures .button{flex:1;min-height:38px;padding:5px 7px;font-size:12px;border-radius:17px;max-width:220px}
body.home-fit .corner-pond{background:transparent;border-radius:18px}
body.home-fit .pond-fighters{inset:0;background:#9bdfef;border-radius:18px}
.corner-pond:before,.corner-pond:after{display:none}
.game-bubbles{display:flex;justify-content:space-evenly;gap:8px;flex:none;padding:4px 0}
.game-bubbles button{border:0;background:transparent;display:grid;gap:4px;justify-items:center;font-size:12px;color:#173e2a;min-width:75px;padding:0}
.game-bubbles button>span{width:58px;height:58px;border:3px solid #fff4b8;border-radius:50%;display:grid;place-items:center;background:linear-gradient(#e9f7a2,#84cb45);font-size:28px;box-shadow:0 4px 0 #4b8235}
.game-bubbles button:nth-child(2)>span{background:linear-gradient(#fff2ad,#eec058)}.game-bubbles button:nth-child(3)>span{background:linear-gradient(#b4efff,#54b7d8)}
body.hub-fit,body.playing{height:var(--visible-height,100svh);min-height:0;overflow:hidden}
@media(orientation:landscape) and (max-height:600px){body.home-fit .home-screen{display:grid;grid-template-columns:minmax(0,1fr) 240px;grid-template-rows:48px minmax(0,1fr);gap:4px 12px}body.home-fit .game-logo{grid-column:1;grid-row:1}.pond-adventures{grid-column:2;grid-row:1;align-items:center}.pond-adventures .button{min-height:38px;font-size:11px}.corner-pond{grid-column:1;grid-row:2}.game-bubbles{grid-column:2;grid-row:2;flex-wrap:wrap;align-self:center;gap:14px 8px}.game-bubbles button>span{height:50px;width:50px;font-size:25px}}

/* Rival and Solo remain bars; the four other adventures use circular buttons. */
.play-bars{display:grid;gap:6px;flex:none}.game-bubbles button{min-width:0;flex:1;font-size:10px}.game-bubbles button>span{width:42px;height:42px;font-size:23px}.game-bubbles{gap:4px;padding:3px 0}
body.home-fit .play-bars .solo-main{min-height:40px;font-size:19px}
@media(orientation:landscape) and (max-height:600px){body.home-fit .home-screen{display:grid;grid-template-columns:minmax(0,1fr) 270px;grid-template-rows:48px minmax(0,1fr) auto;gap:4px 12px}.corner-pond{grid-column:1;grid-row:2 / 4}.play-bars{grid-column:2;grid-row:2;align-self:end}.game-bubbles{grid-column:2;grid-row:3;flex-wrap:nowrap;align-self:start;gap:4px}.game-bubbles button>span{height:38px;width:38px;font-size:22px}.game-bubbles button{font-size:10px}.play-bars .play-button{font-size:21px;min-height:38px}.play-bars .solo-main{min-height:36px!important;font-size:17px!important}}

#account-content.paged-content{height:calc(var(--page-space) + 46px)}#account-content .screen-page{border:0;background:transparent;padding:0;text-align:left}#account-content .screen-pager{text-align:center}

/* Familiar playing-card proportions, centered without stretching. */
body.playing .board{grid-template-columns:repeat(var(--cols,4),var(--card-width,50px));grid-template-rows:repeat(var(--rows,3),var(--card-height,70px));place-content:center}
body.playing .card{width:var(--card-width,50px);height:var(--card-height,70px);aspect-ratio:5/7;padding:2px;font-size:var(--card-icon,28px)}
body.playing .card-word{font-size:var(--card-wordText,10px);gap:3px}
body.playing .card-word span{font-size:var(--card-wordIcon,24px)}


/* A continuous scenery-only backdrop; original fighters retain their source pixels. */
body.home-fit .pond-shell{height:var(--visible-height,100svh);background:url('assets/pond-scenery-v1.png') center center/cover no-repeat}
body.home-fit .pond-shell::before,body.home-fit .pond-shell::after{content:none}
body.home-fit .corner-pond,body.home-fit .pond-fighters{background:transparent;border-radius:0}
body.home-fit .pond-fighters{mask-image:linear-gradient(transparent,black 6%,black 94%,transparent),linear-gradient(90deg,transparent,black 4%,black 96%,transparent);mask-composite:intersect}
body.home-fit .pond-fighters img{height:min(270cqh,150cqw);width:auto;transform:translate(-50%,-39%);mask-image:none}
body.home-fit .game-bubbles button{color:#133b25;text-shadow:0 1px 2px #fff,0 0 5px #fff}
button:active{filter:brightness(1.08)}

/* Crisp, opaque controls keep every destination legible against pond scenery. */
body.home-fit .play-button{background:#6dd925;color:#153d19;-webkit-text-stroke:0;text-shadow:none;border:3px solid #fff5ad;box-shadow:0 3px 0 #174721}
body.home-fit .solo-main{background:#1977aa;color:#fff;text-shadow:none;border:3px solid #e2f7ff;box-shadow:0 3px 0 #123e58}
body.home-fit .solo-main small{color:#fff}
body.home-fit .game-bubbles button{color:#143d26;text-shadow:none}
body.home-fit .game-bubbles button>span{background:#c6ec79;border:3px solid #fff7bf;box-shadow:0 0 0 2px #17482b,0 4px 0 #17482b}
body.home-fit .game-bubbles button:nth-child(2)>span{background:#ffda70}
body.home-fit .game-bubbles button:nth-child(3)>span{background:#91dafa}
body.home-fit .game-bubbles button:nth-child(4)>span{background:#c6a7ee}
body.home-fit .game-bubbles button>b{background:#fff6d4;border-radius:5px;padding:0 3px;box-shadow:0 1px 0 #305037;font-weight:900}
body.home-fit .bottom-nav{background:#fff1cb;border:2px solid #fff8e4;box-shadow:0 0 0 1px #305037}

/* Original Faceoff wordmark stays above the pond fighters. */
body.home-fit .game-logo.faceoff-logo{height:clamp(64px,18vw,84px);margin:4px 0;transform:none;filter:none;line-height:1}
.faceoff-logo img{display:block;width:100%;height:100%;object-fit:contain}
@media(orientation:landscape) and (max-height:600px){body.home-fit .game-logo.faceoff-logo{height:44px;margin:0}}

/* Slightly wider logo within the existing title space. */
.faceoff-logo img{transform:scaleX(1.12);transform-origin:center}

/* Colorful pond adventures with strong, readable lettering. */
.pond-adventure-menu{background:#fffdf3!important;color:#233d31}
.pond-adventure-menu .muted{color:#405449}
.pond-adventure-menu .button{color:#18392d!important;text-shadow:none!important;border:2px solid #315d48!important;box-shadow:0 3px 0 #315d48!important;background:#b9ec83!important;font-weight:900}
.pond-adventure-menu [data-action="healthy-pond"]{background:#91e0d3!important}
.pond-adventure-menu [data-action="crossword"]{background:#d7c2fa!important}
.pond-adventure-menu [data-action="wordsearch"]{background:#ffe28a!important}
.pond-adventure-menu [data-action="bank"]{background:#ffc1b2!important}
.pond-adventure-menu [data-action="journey"]{background:#b5dcff!important}
.pond-adventure-menu .learning-pace summary{background:#e4f0d1;color:#244532;border:2px solid #628255;box-shadow:0 2px 0 #628255}

.pond-adventure-menu .screen-page{background:#fffdf3!important}.adventure-choice{margin:8px 0}.adventure-choice p{margin:5px 0 0;font-size:13px;line-height:1.3}

.topbar .avatar{padding:0;overflow:hidden;flex-shrink:0;line-height:1}.topbar .avatar .illustrated-frog{width:100%;height:100%;display:block;margin:0;min-width:0;min-height:0}

/* Portrait crop includes both eyes and the whole face, without stretching. */
.topbar .avatar .frog-art{border-radius:50%;background-size:300% 450%;background-position:28.5% 24.5%}.topbar .avatar .frog-art.purple-art{background-position:72.5% 27.5%}

/* Saved October 8 design: warm wooden square overlays on existing home buttons. */
body.home-fit .game-bubbles button{border:3px solid #eecb8c!important;border-radius:13px!important;background:linear-gradient(145deg,#bb884c,#77502b)!important;box-shadow:inset 0 2px 0 #e8bf7c,0 4px 0 #47301b!important;color:#fff4d8!important;text-shadow:0 2px 2px #362413!important;padding:5px 3px!important;min-width:0!important;}
body.home-fit .game-bubbles button>span{background:#dfb579!important;border:2px solid #f7dca1!important;box-shadow:inset 0 1px 2px #9a6a36!important;border-radius:8px!important;}
body.home-fit .game-bubbles button>b{background:transparent!important;color:#fff5dc!important;box-shadow:none!important;font-weight:900!important;}
body.home-fit .play-bars .play-button,body.home-fit .play-bars .solo-main{border:3px solid #eecb8c!important;border-radius:13px!important;background:linear-gradient(145deg,#c09156,#76502d)!important;box-shadow:inset 0 2px 0 #e6bd7b,0 4px 0 #47301b!important;color:#fff4d8!important;text-shadow:0 2px 2px #362413!important;-webkit-text-stroke:0!important;}
body.home-fit .play-bars .solo-main small{color:#ffebc5!important;}

/* Brain Boost stays within Explore Pond; never adds home-screen buttons. */
.brain-suite{padding:12px!important;text-align:center}.brain-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.brain-menu-grid .button{min-height:54px;padding:8px 5px;font-size:14px;white-space:normal}.brain-levels{display:flex;gap:5px;justify-content:center;margin:4px 0 12px}.brain-levels .button{font-size:12px;min-height:42px;padding:6px;flex:1}.brain-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px auto}.brain-card{aspect-ratio:3/4;min-width:0;border:3px solid #e8c88d;border-radius:12px;background:linear-gradient(#80c8b7,#337d86);font-size:clamp(22px,7vw,34px);color:#fff}.brain-numbers{font-size:clamp(17px,5vw,25px);font-weight:900;background:#fff2ca;border-radius:12px;padding:16px 3px;color:#26462f}.brain-scene{height:190px;border:4px solid #dfc184;border-radius:18px;background:linear-gradient(#a3dcf2 0 40%,#7dc482 41% 64%,#3b9fa6 65%);position:relative;overflow:hidden;margin:12px 0}.brain-scene span{position:absolute;font-size:37px}.brain-pads{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.brain-pad{min-height:72px;background:#64a65d;border:3px solid #e0d996;border-radius:50%;font-size:35px}.brain-pad.lit{background:#ffdb65}

/* Carved woodland logs — textured bark, natural edges and wood grain, not flat bars. */
body.home-fit .play-bars .play-button,body.home-fit .play-bars .solo-main,
body.home-fit .game-bubbles button{
position:relative!important;
border:4px ridge #b17a3e!important;
border-radius:34px 25px 31px 24px / 19px 25px 20px 25px!important;
background:
repeating-linear-gradient(174deg,transparent 0 8px,#5a341f2a 9px 10px,transparent 12px 21px),
repeating-linear-gradient(94deg,transparent 0 23px,#e6b97826 25px 27px,transparent 29px 48px),
linear-gradient(180deg,#e3b778 0%,#b47c43 16%,#945e30 36%,#a56d38 56%,#7a4726 82%,#56341f 100%)!important;
box-shadow:inset 0 3px 1px #f3d79a99,inset 0 -5px 0 #43271499,0 5px 0 #3c281c,0 8px 8px #16341b88!important;
color:#fff7dc!important;
text-shadow:0 2px 2px #3d2414,0 0 5px #40230e!important;
-webkit-text-stroke:0!important;
}
body.home-fit .play-bars .play-button:before,body.home-fit .play-bars .solo-main:before,
body.home-fit .game-bubbles button:before{
content:"";position:absolute;inset:3px;pointer-events:none;
border:1px solid #f2ce9366;border-radius:inherit;
}
body.home-fit .game-bubbles button{border-radius:23px 17px 21px 15px / 18px 22px 15px 21px!important;padding:4px 3px!important;}
body.home-fit .game-bubbles button>span{
border:2px solid #e5b878!important;border-radius:12px 9px 13px 10px!important;
background:radial-gradient(ellipse at 30% 24%,#f5d8a1,#be8a50 62%,#86532c)!important;
box-shadow:inset 0 1px 4px #66401e,0 2px 0 #4a2b1c!important;
}
body.home-fit .game-bubbles button>b{background:transparent!important;color:#fff7df!important;box-shadow:none!important;}
body.home-fit .play-bars .solo-main small{color:#ffefd2!important;}

/* Four actual playable brain games on the home screen: compact carved-log buttons. */
.home-screen .brain-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:9px auto 12px;width:min(94%,440px);position:relative;z-index:3}
.home-screen .brain-home-grid button{min-width:0;min-height:58px;padding:5px 3px;display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;border:3px ridge #a16c38;border-radius:26px 19px 25px 18px / 16px 22px 17px 22px;background:repeating-linear-gradient(174deg,transparent 0 8px,#5a341f30 9px 10px,transparent 12px 21px),repeating-linear-gradient(95deg,transparent 0 23px,#e6b97826 25px 27px,transparent 29px 48px),linear-gradient(180deg,#dfb274,#a06c39 36%,#86522e 72%,#56341f);box-shadow:inset 0 2px 1px #f3d79a99,inset 0 -4px 0 #43271499,0 3px 0 #3c281c,0 5px 7px #16341b88;color:#fff7dc;text-shadow:0 2px 2px #3d2414;font:900 clamp(10px,2.7vw,14px)/1.1 system-ui,sans-serif;cursor:pointer}
.home-screen .brain-home-grid button span{font-size:19px;line-height:1}
.home-screen .brain-home-grid button b{font-weight:900}
@media(max-height:700px){.home-screen .brain-home-grid{gap:4px;margin:5px auto}.home-screen .brain-home-grid button{min-height:45px;padding:2px}.home-screen .brain-home-grid button span{font-size:15px}}

/* Compact storybook log plaques: brighter lettering and smaller footprints. */
body.home-fit .play-bars{gap:6px!important}
body.home-fit .play-bars .play-button,body.home-fit .play-bars .solo-main{width:86%!important;max-width:560px!important;margin-left:auto!important;margin-right:auto!important;min-height:50px!important;padding:5px 10px!important;border-radius:24px 18px 24px 18px / 18px 23px 17px 22px!important;font-size:clamp(18px,4.7vw,25px)!important;color:#fffbe7!important;text-shadow:0 2px 2px #241405,0 0 8px #f9d688!important}
body.home-fit .play-bars .solo-main small{font-size:11px!important;color:#fff9e5!important}
body.home-fit .game-bubbles{gap:5px!important;padding-left:4%!important;padding-right:4%!important}
body.home-fit .game-bubbles button{min-height:80px!important;padding:3px 2px!important;border-radius:20px 14px 19px 15px / 15px 20px 14px 20px!important}
body.home-fit .game-bubbles button>b{color:#fffde9!important;text-shadow:0 2px 2px #261307,0 0 6px #ffe6a8!important;font-size:clamp(10px,2.65vw,13px)!important}
body.home-fit .game-bubbles button>span{width:44px!important;height:42px!important;font-size:25px!important}
.home-screen .brain-home-grid{width:86%!important;gap:6px!important;margin:6px auto 9px!important}
.home-screen .brain-home-grid button{min-height:54px!important;padding:3px 4px!important;border-radius:22px 16px 23px 15px / 16px 22px 16px 20px!important;color:#fffde9!important;text-shadow:0 2px 2px #261307,0 0 7px #ffe6a8!important;font-size:clamp(11px,2.8vw,14px)!important}
.home-screen .brain-home-grid button span{font-size:17px!important}
@media(max-width:390px){body.home-fit .game-bubbles button{min-height:72px!important}body.home-fit .game-bubbles button>span{width:36px!important;height:35px!important;font-size:21px!important}.home-screen .brain-home-grid button{min-height:47px!important}}


/* Unified woodland design system: every interactive button across game, hub, shop,
   collection, powers, rewards, settings and dialogs. Keep home layouts unchanged. */
:root{--frog-log-grain:repeating-linear-gradient(174deg,transparent 0 8px,#5a341f2a 9px 10px,transparent 12px 21px),repeating-linear-gradient(94deg,transparent 0 23px,#e6b97826 25px 27px,transparent 29px 48px),linear-gradient(180deg,#e3b778 0%,#b47c43 16%,#945e30 36%,#a56d38 56%,#7a4726 82%,#56341f 100%);--frog-log-border:#d9a767;--frog-log-text:#fff9e8}
.pond-shell button:not(.brain-card):not(.brain-pad):not(.search-cell):not(.crossword-cell):not(.memory-card):not(.card):not(.match-card):not(.flip-card):not(.play-button):not(.solo-main):not(.game-bubbles button):not(.brain-home-grid button):not(.bottom-nav button):not(.avatar):not(.wallet):not(.gear):not(#hub-content:has(.boutique-stage) button):not(#hub-content:has(.boutique-gold-house) button),
.pond-shell .bottom-nav button,.pond-shell .gear,.pond-shell .wallet{
background:var(--frog-log-grain)!important;color:var(--frog-log-text)!important;
border:2px solid var(--frog-log-border)!important;border-radius:15px!important;
box-shadow:inset 0 2px 0 #f0c98c88,inset 0 -3px 0 #4b2a1c99,0 3px 0 #40291c!important;
text-shadow:0 1px 3px #351e10!important;
}
.pond-shell button:not(:disabled):active{filter:brightness(1.13)}
.pond-shell button:focus-visible{outline:3px solid #ffeb86!important;outline-offset:3px}
.pond-shell .bottom-nav button.active{outline:2px solid #ffe58a!important;outline-offset:-4px;background:linear-gradient(180deg,#e5b96d,#b9823c 48%,#82512a)!important;color:#fff!important}
.pond-shell .bottom-nav button{font-size:inherit!important}
.pond-shell .gear{border-radius:16px!important}
.pond-shell .wallet{border-radius:24px!important}
.pond-shell button:disabled{opacity:.48!important}

/* Fighter collection: carved wood portrait frames, bright labels, clear selection. */
body.hub-fit .fighter-card{
background:var(--frog-log-grain)!important;
border:3px solid #d7a76a!important;
border-radius:20px 16px 21px 17px!important;
box-shadow:inset 0 2px 0 #f4d396,inset 0 -5px 0 #49291c,0 4px 0 #4b2c1a!important;
color:#fff9e6!important;text-shadow:0 2px 3px #2c180c!important;
padding:10px 5px!important;gap:5px!important;
}
body.hub-fit .fighter-card b,body.hub-fit .fighter-card small{color:#fff9e6!important;text-shadow:0 2px 3px #2c180c,0 0 5px #37200c!important;overflow-wrap:anywhere}
body.hub-fit .fighter-card.selected{
border:4px solid #ffe277!important;
background:repeating-linear-gradient(174deg,transparent 0 8px,#5a341f25 9px 10px,transparent 12px 21px),linear-gradient(180deg,#e2bf6c,#98703c 55%,#68411e)!important;
box-shadow:0 0 0 3px #4b9f43,inset 0 2px 0 #fff1b0,0 4px 0 #4b2c1a!important;
}
body.hub-fit .fighter-card.selected:after{content:"✓ Selected";display:block;color:#fffbd4;font-size:12px;font-weight:900;text-shadow:0 2px 3px #37200c}

body.hub-fit .panel .tabs .button,body.hub-fit .page-heading .back,body.hub-fit .panel .actions .button{
background:var(--frog-log-grain)!important;color:#fff9e8!important;border:2px solid #d7a76a!important;border-radius:17px!important;
box-shadow:inset 0 2px 0 #f0c98c88,inset 0 -3px 0 #4b2a1c99,0 3px 0 #40291c!important;text-shadow:0 2px 3px #351e10!important
}
body.hub-fit .panel .tabs .button:disabled{opacity:.43!important}

/* One consistent four-column, two-row home game grid. */
body.home-fit .home-screen .game-bubbles{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px 5px!important;width:96%!important;margin:6px auto 9px!important;padding:0!important;align-items:stretch!important}
body.home-fit .home-screen .game-bubbles button{width:100%!important;min-width:0!important;min-height:79px!important;max-width:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:6px 2px!important;border:3px solid #dca869!important;border-radius:19px 16px 19px 15px!important;background:var(--frog-log-grain)!important;box-shadow:inset 0 2px 0 #f2d09b,inset 0 -4px 0 #48281a,0 3px 0 #43291a!important;color:#fff9e9!important}
body.home-fit .home-screen .game-bubbles button>span{width:37px!important;height:35px!important;flex-shrink:0!important;font-size:21px!important;line-height:1!important;display:grid!important;place-items:center!important;border:2px solid #e5bc82!important;border-radius:10px!important;background:linear-gradient(#e6c48f,#a36a3a)!important;box-shadow:inset 0 1px 2px #6a4122!important}
body.home-fit .home-screen .game-bubbles button>b{font-size:clamp(9px,2.3vw,12px)!important;line-height:1.12!important;text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;color:#fffbea!important;text-shadow:0 2px 3px #2c180b!important}
@media(max-width:360px){body.home-fit .home-screen .game-bubbles{gap:4px!important}body.home-fit .home-screen .game-bubbles button{min-height:75px!important}body.home-fit .home-screen .game-bubbles button>b{font-size:9px!important}}
/* Navigation: keep labels inside their own boxes, not below the dock. */
.pond-shell .bottom-nav{align-items:stretch!important;gap:5px!important;padding:6px 7px max(9px,env(safe-area-inset-bottom))!important;box-sizing:border-box!important}
.pond-shell .bottom-nav button{min-width:0!important;min-height:67px!important;height:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;padding:5px 2px 7px!important;line-height:1.08!important;font-size:clamp(10px,2.8vw,13px)!important;overflow:hidden!important;white-space:normal!important}
.pond-shell .bottom-nav button span{font-size:clamp(20px,5vw,25px)!important;line-height:1.15!important;flex-shrink:0!important}
/* Fighter collection: color fills each complete wooden portrait frame. */
body.hub-fit .fighter-card{--fighter-tint:#629a4c;background:repeating-linear-gradient(174deg,transparent 0 8px,#4e301b27 9px 10px,transparent 12px 21px),linear-gradient(160deg,color-mix(in srgb,var(--fighter-tint),white 37%),var(--fighter-tint) 58%,color-mix(in srgb,var(--fighter-tint),#37221b 48%))!important}
body.hub-fit .fighter-card:nth-child(9n + 1){--fighter-tint:#439d48}
body.hub-fit .fighter-card:nth-child(9n + 2){--fighter-tint:#388cd5}
body.hub-fit .fighter-card:nth-child(9n + 3){--fighter-tint:#9561cf}
body.hub-fit .fighter-card:nth-child(9n + 4){--fighter-tint:#df75a7}
body.hub-fit .fighter-card:nth-child(9n + 5){--fighter-tint:#d5a72d}
body.hub-fit .fighter-card:nth-child(9n + 6){--fighter-tint:#c85047}
body.hub-fit .fighter-card:nth-child(9n + 7){--fighter-tint:#4eaaa1}
body.hub-fit .fighter-card:nth-child(9n + 8){--fighter-tint:#7c8dd0}
body.hub-fit .fighter-card:nth-child(9n){--fighter-tint:#b77c4c}
body.hub-fit .fighter-card.selected{border:4px solid #ffe277!important;background:repeating-linear-gradient(174deg,transparent 0 8px,#4e301b27 9px 10px,transparent 12px 21px),linear-gradient(160deg,color-mix(in srgb,var(--fighter-tint),white 37%),var(--fighter-tint) 58%,color-mix(in srgb,var(--fighter-tint),#37221b 48%))!important}

/* Restore colored frog art; preserve inline hue-rotation on fighter portraits. */
body .pond-shell .bottom-nav{bottom:max(22px,env(safe-area-inset-bottom))!important;padding:5px 7px 7px!important}
body .pond-shell .bottom-nav button{min-height:62px!important;max-height:70px!important;padding:4px 2px 5px!important;overflow:visible!important;font-size:clamp(10px,2.6vw,13px)!important}
body .pond-shell .bottom-nav button span{font-size:22px!important}
body.hub-fit .fighter-card[data-id="green"]{--fighter-tint:#399d4c}
body.hub-fit .fighter-card[data-id="blue"]{--fighter-tint:#388ed8}
body.hub-fit .fighter-card[data-id="purple"]{--fighter-tint:#9160d1}
body.hub-fit .fighter-card[data-id="pink"]{--fighter-tint:#df6ca6}
body.hub-fit .fighter-card[data-id="gold"],body.hub-fit .fighter-card[data-id="trail-gold"]{--fighter-tint:#e0b638}
body.hub-fit .fighter-card[data-id="red"]{--fighter-tint:#cb4e48}
body.hub-fit .fighter-card[data-id="rainbow"]{--fighter-tint:#a36bd6}
body.hub-fit .fighter-card[data-id="crystal"]{--fighter-tint:#53b9c8}
body.hub-fit .fighter-card[data-id]{background:repeating-linear-gradient(174deg,transparent 0 8px,#3e261c20 9px 10px,transparent 12px 21px),linear-gradient(160deg,color-mix(in srgb,var(--fighter-tint),white 30%),var(--fighter-tint) 58%,color-mix(in srgb,var(--fighter-tint),#29211d 36%))!important}
body.hub-fit .fighter-card.selected{outline:3px solid #ffe57b!important;outline-offset:-6px!important}
body.hub-fit .fighter-card.selected:after{content:none!important}

/* Correct the fixed-height grid regression: dock occupies its own row. */
body.home-fit .pond-shell,body.hub-fit .pond-shell{grid-template-rows:36px minmax(0,1fr) 72px!important;padding-bottom:8px!important}
body.home-fit .bottom-nav,body.hub-fit .bottom-nav{position:static!important;transform:none!important;bottom:auto!important;align-self:stretch!important;height:68px!important;min-height:0!important;width:100%!important;margin:0!important;padding:4px!important;overflow:hidden!important}
body.home-fit .bottom-nav button,body.hub-fit .bottom-nav button{height:58px!important;min-height:0!important;max-height:58px!important;padding:3px 2px!important;overflow:hidden!important;font-size:11px!important}
body.home-fit .bottom-nav button span,body.hub-fit .bottom-nav button span{font-size:21px!important}
body.home-fit .pond-shell{background-color:#3c9c83!important;background-size:cover!important}
body.home-fit .home-screen{min-height:0!important;overflow:auto!important;scrollbar-width:none}
body.home-fit .home-screen::-webkit-scrollbar{display:none}
/* Portraits must inherit the correct color transformation, including CSS overrides. */
body.hub-fit .fighter-card[data-id="blue"] .frog-portrait{filter:hue-rotate(130deg) saturate(1.25)!important}
body.hub-fit .fighter-card[data-id="pink"] .frog-portrait{filter:hue-rotate(260deg) saturate(1.25)!important}
body.hub-fit .fighter-card[data-id="red"] .frog-portrait{filter:hue-rotate(290deg) saturate(1.25)!important}
body.hub-fit .fighter-card[data-id="gold"] .frog-portrait{filter:sepia(1) saturate(4)!important}
body.hub-fit .fighter-card[data-id="purple"] .frog-portrait{filter:none!important}
body.hub-fit .fighter-card[data-id="green"] .frog-portrait{filter:none!important}

/* Mobile browser safe area: never clip the navigation row at viewport bottom. */
body.home-fit .pond-shell,body.hub-fit .pond-shell{
height:var(--visible-height,100dvh)!important;
max-height:var(--visible-height,100dvh)!important;
box-sizing:border-box!important;
grid-template-rows:36px minmax(0,1fr) 78px!important;
padding-bottom:max(14px,env(safe-area-inset-bottom))!important;
row-gap:5px!important;
}
body.home-fit .bottom-nav,body.hub-fit .bottom-nav{
height:64px!important;min-height:64px!important;
align-self:start!important;overflow:visible!important;
box-sizing:border-box!important;
}
body.home-fit .bottom-nav button,body.hub-fit .bottom-nav button{
height:52px!important;min-height:52px!important;max-height:52px!important;
padding:2px 2px 4px!important;overflow:hidden!important;
}
body.home-fit .bottom-nav button span,body.hub-fit .bottom-nav button span{font-size:19px!important}

/* Pond Memory only: bigger revealed symbols and truly empty matched positions. */
.brain-card-grid .brain-card.brain-revealed{font-size:clamp(42px,11vw,76px)!important;background:#fff9e8!important;opacity:1!important}
.brain-card-grid .brain-card.brain-matched{visibility:hidden!important;pointer-events:none!important}

/* Shared mobile box-layout safety: avoid clipped dialogs, actions and panels. */
@media(max-width:699px){
  dialog[open]{box-sizing:border-box!important;width:min(440px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;max-height:calc(100dvh - 28px)!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;padding:clamp(12px,3vw,20px)!important}
  dialog[open] #modal-content,dialog[open] #modal-content.paged-content{height:auto!important;min-height:0!important;max-width:100%!important;overflow:visible!important}
  dialog[open] .reward-list{max-height:min(35dvh,270px)!important;overflow-y:auto!important;overflow-x:hidden!important;text-align:left!important;line-height:1.4!important;overflow-wrap:anywhere!important;padding:10px 12px!important}
  dialog[open] .reward-list>div{margin:3px 0!important}
  dialog[open] .actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:12px 0 0!important}
  dialog[open] .actions button{width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;min-height:46px!important;padding:7px 5px!important;font-size:clamp(12px,3.2vw,16px)!important}
  dialog[open] .dance{margin:4px auto!important}
  dialog[open] h2{margin:8px 0!important}
  dialog[open] p{margin:8px 0!important}
  .screen,.screen-page,.panel,.brain-suite{min-width:0;max-width:100%;box-sizing:border-box}
  .screen button,.screen-page button,.panel button{max-width:100%;overflow-wrap:anywhere}
  .hub-grid,.fighter-grid,.brain-card-grid,.brain-menu-grid{min-width:0;max-width:100%}
  .hub-grid>*,.fighter-grid>*,.brain-card-grid>*,.brain-menu-grid>*{min-width:0}
}

/* Restore fully opaque cards in the original progressive matching game.
   This changes appearance only; keep scoring, stages, and matched-card behavior. */
body.playing #board .card:not(.face):not(.matched){
  background:#24674c!important;
  background-image:linear-gradient(145deg,#398c69 0%,#236d53 54%,#174f40 100%)!important;
  border-color:#c6e9a6!important;
  opacity:1!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.playing #board .card.face:not(.matched){
  background:#fff7dd!important;
  background-image:linear-gradient(165deg,#fffdf0,#f3ebd2)!important;
  opacity:1!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.playing #board .card.matched{
  background:#c6e7a3!important;
  background-image:linear-gradient(145deg,#e4f6c1,#a5d48c)!important;
  opacity:1!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

/* All match-card states, including disabled rival-turn cards: never translucent. */
body.playing #board button.card,
body.playing #board button.card:disabled,
body.playing #board button.card.face,
body.playing #board button.card.matched{
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.playing #board button.card:not(.face):not(.matched),
body.playing #board button.card:not(.face):not(.matched):disabled{
  background-color:#226b52!important;
  background-image:linear-gradient(155deg,#3e9775,#1b5949)!important;
}
body.playing #board button.card.face,
body.playing #board button.card.face:disabled{
  background-color:#fff7dd!important;
  background-image:linear-gradient(165deg,#fffef4,#f0e8cf)!important;
}
body.playing #board button.card.matched,
body.playing #board button.card.matched:disabled{
  background-color:#c4e6a2!important;
  background-image:linear-gradient(145deg,#e0f5be,#a1d188)!important;
}

/* Victory celebration: bring back the original pair of boxing frogs. */
#modal .dance:has(.victory-fighters){display:flex!important;flex-direction:column!important;align-items:center!important;gap:5px!important;width:100%!important;max-width:100%!important}
#modal .dance .victory-fighters{display:block;width:min(100%,310px);height:125px;flex:none;background:url('assets/pond-boxing-v4.png') center 47%/100% auto no-repeat;border-radius:16px}
@media(max-width:390px){#modal .dance .victory-fighters{height:108px}}

/* Home layout: Rival/Solo as matching wood tiles, Journey as full-width bar. */
body.home-fit .home-screen .play-bars,
.home-screen .play-bars{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:96%!important;margin:3px auto!important}
body.home-fit .home-screen .play-bars>button,
.home-screen .play-bars>button{width:100%!important;max-width:none!important;margin:0!important;min-width:0!important;min-height:76px!important;height:auto!important;padding:8px 5px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;border-radius:19px!important;font-size:clamp(13px,3.5vw,19px)!important;line-height:1.1!important}
.home-screen .play-bars>button>span{font-size:clamp(22px,6vw,32px)!important;line-height:1!important}
.home-screen .play-bars>button>b{font-size:inherit!important;color:#fff7dd!important;text-shadow:0 2px 2px #39200c!important}
.home-screen .journey-bar{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:96%!important;min-height:46px!important;margin:3px auto!important;padding:6px 12px!important;border:3px solid #edcc8c!important;border-radius:18px!important;background:linear-gradient(#c99553,#86502c 75%,#613819)!important;box-shadow:inset 0 2px 3px #ffe0a3,0 4px 0 #472915!important;color:#fff9e7!important;font-weight:900!important;font-size:clamp(16px,4vw,21px)!important;text-shadow:0 2px 2px #432408!important}
.home-screen .journey-bar span{font-size:23px!important}
.home-screen .game-bubbles{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:96%!important;margin:4px auto!important;gap:6px!important}
body.home-fit .home-screen .game-bubbles button{min-height:67px!important}
@media(max-height:720px){body.home-fit .home-screen .play-bars>button{min-height:62px!important}.home-screen .journey-bar{min-height:40px!important}.home-screen .game-bubbles button{min-height:60px!important}}

/* Ordered home menu: eight matching wood tiles, three across, then Frog Journey bar. */
.home-screen .game-bubbles{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;width:96%!important;margin:7px auto!important;align-items:stretch!important}
.home-screen .game-bubbles button{width:100%!important;min-width:0!important;min-height:79px!important;opacity:1!important}
.home-screen .game-bubbles button:disabled{cursor:default!important;filter:saturate(.7)!important;opacity:1!important}
.home-screen .game-bubbles button b small{display:block!important;font-size:9px!important;line-height:1.2!important;color:#fff4c8!important}
.home-screen .journey-bar{width:96%!important;margin:4px auto 9px!important;flex:none!important}
@media(max-width:360px){.home-screen .game-bubbles{gap:4px!important}.home-screen .game-bubbles button>b{font-size:10px!important}}

/* Victory: original illustrated fighter portraits, never cropped background artwork. */
#modal .dance:has(.victory-fighters)>.frog-portrait{display:none!important}
#modal .dance .victory-fighters{display:flex!important;flex-direction:row!important;align-items:flex-end!important;justify-content:center!important;gap:20px!important;width:100%!important;height:160px!important;background:none!important;overflow:visible!important;border-radius:0!important}
#modal .dance .victory-fighters>.frog-portrait{display:block!important;position:relative!important;flex:0 0 125px!important;width:125px!important;height:150px!important;max-width:43%!important;transform:none!important;clip-path:none!important;border-radius:0!important;overflow:visible!important}
#modal .dance .victory-fighters>.frog-portrait:first-child{transform:rotate(-7deg)}
#modal .dance .victory-fighters>.frog-portrait:last-child{transform:rotate(7deg)}
@media(max-width:390px){#modal .dance .victory-fighters{height:140px!important;gap:12px!important}#modal .dance .victory-fighters>.frog-portrait{height:135px!important}}

/* Victory cartoon fight: lunge, punch, counter-kick, knockdown, recover. */
#modal .dance .victory-fighters{position:relative!important;overflow:visible!important;isolation:isolate!important;height:170px!important;gap:3px!important;align-items:flex-end!important}
#modal .dance .victory-fighters>.frog-portrait{transform-origin:50% 88%!important;will-change:transform!important;animation-duration:5.8s!important;animation-timing-function:ease-in-out!important;animation-iteration-count:infinite!important}
#modal .dance:not(.still) .victory-fighters>.frog-portrait:first-child{animation-name:frog-battle-left!important}
#modal .dance:not(.still) .victory-fighters>.frog-portrait:last-child{animation-name:frog-battle-right!important}
#modal .dance .victory-fighters:after{content:"💥";position:absolute;left:50%;top:27%;font-size:45px;z-index:4;pointer-events:none;opacity:0;transform:translate(-50%,-50%) scale(.3);animation:frog-battle-impact 5.8s ease-in-out infinite}
@keyframes frog-battle-left{
0%,7%{transform:translateX(-32px) rotate(-8deg) scale(1)}
16%{transform:translateX(7px) rotate(5deg) scale(1.08)}
23%{transform:translateX(38px) rotate(20deg) scale(1.1)}
28%{transform:translateX(12px) rotate(-14deg)}
38%{transform:translateX(4px) rotate(-5deg)}
46%{transform:translateX(12px) rotate(13deg)}
53%{transform:translateX(-18px) rotate(-30deg)}
60%{transform:translateX(-24px) translateY(25px) rotate(-72deg)}
68%{transform:translateX(-25px) translateY(28px) rotate(-80deg)}
79%{transform:translateX(-24px) translateY(3px) rotate(-15deg)}
90%,100%{transform:translateX(-32px) rotate(-8deg)}
}
@keyframes frog-battle-right{
0%,7%{transform:translateX(32px) rotate(8deg)}
16%{transform:translateX(13px) rotate(-6deg)}
23%{transform:translateX(6px) rotate(-18deg)}
28%{transform:translateX(30px) rotate(18deg)}
38%{transform:translateX(23px) rotate(8deg)}
46%{transform:translateX(-15px) rotate(-23deg) scale(1.09)}
53%{transform:translateX(-31px) rotate(-25deg) scale(1.08)}
60%{transform:translateX(6px) rotate(14deg)}
68%{transform:translateX(16px) rotate(8deg)}
79%{transform:translateX(24px) rotate(8deg)}
90%,100%{transform:translateX(32px) rotate(8deg)}
}
@keyframes frog-battle-impact{
0%,17%,25%,43%,49%,100%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(-20deg)}
20%,46%{opacity:1;transform:translate(-50%,-50%) scale(1.15) rotate(10deg)}
23%,48%{opacity:.65;transform:translate(-50%,-50%) scale(.85) rotate(-10deg)}
}
@media(prefers-reduced-motion:reduce){#modal .dance .victory-fighters>.frog-portrait,#modal .dance .victory-fighters:after{animation:none!important}#modal .dance .victory-fighters:after{display:none!important}}
@media(max-width:390px){#modal .dance .victory-fighters{height:145px!important}#modal .dance .victory-fighters>.frog-portrait{flex-basis:115px!important;width:115px!important;height:133px!important}}

/* Actual articulated frog victory cartoon — no photo tiles. */
#modal .dance:has(.frog-fight-stage){display:block!important;width:100%!important;max-width:100%!important;height:220px!important;overflow:hidden!important}
#modal .frog-fight-stage{height:215px;width:min(100%,350px);position:relative;margin:0 auto;overflow:hidden;border-radius:20px;background:radial-gradient(ellipse at 50% 95%,#b5eb9b 0%,#5abeb4 39%,#b9e7f6 75%,#e6faff 100%);border:2px solid #b8dc9c}
#modal .frog-fight-stage:before{content:"";position:absolute;left:6%;right:6%;bottom:8px;height:28px;border-radius:50%;background:#409c63;box-shadow:0 5px 0 #27765b}
#modal .fight-character{position:absolute;bottom:15px;width:46%;height:183px;transform-origin:50% 90%;will-change:transform}
#modal .fight-character svg{width:100%;height:100%;overflow:visible}
#modal .fight-green{left:0;animation:fight-green-move 5.6s ease-in-out infinite}
#modal .fight-purple{right:0;animation:fight-purple-move 5.6s ease-in-out infinite}
#modal .fight-purple .frog-rig{transform:scaleX(-1);transform-origin:50% 50%}
#modal .frog-arm,#modal .frog-leg{transform-box:fill-box;transform-origin:50% 12%}
#modal .fight-green .front-arm{animation:fight-punch 5.6s ease-in-out infinite}
#modal .fight-green .front-leg{animation:fight-kick 5.6s ease-in-out infinite}
#modal .fight-purple .front-arm{animation:fight-counter 5.6s ease-in-out infinite}
#modal .fight-purple .front-leg{animation:fight-purple-kick 5.6s ease-in-out infinite}
#modal .fight-splash{position:absolute;top:35%;left:45%;font-size:42px;z-index:5;opacity:0;animation:fight-splash 5.6s ease-in-out infinite}
#modal .fight-stars{position:absolute;right:9%;top:9%;font-size:20px;opacity:0;animation:fight-stars 5.6s ease-in-out infinite}
@keyframes fight-green-move{0%,8%{transform:translateX(-17px)}19%{transform:translateX(19px) rotate(-6deg)}31%{transform:translateX(27px) rotate(4deg)}42%{transform:translateX(15px)}52%{transform:translateX(33px) translateY(-12px) rotate(-12deg)}64%{transform:translateX(14px)}75%{transform:translateY(-16px)}81%{transform:translateY(0)}88%{transform:translateY(-13px)}100%{transform:translateX(-17px)}}
@keyframes fight-purple-move{0%,8%{transform:translateX(17px)}19%{transform:translateX(-15px)}30%{transform:translateX(-19px) rotate(12deg)}40%{transform:translateX(6px)}52%{transform:translateX(-16px) rotate(22deg)}63%{transform:translateX(19px) translateY(28px) rotate(78deg)}76%{transform:translateX(19px) translateY(28px) rotate(78deg)}88%{transform:translateX(10px) rotate(20deg)}100%{transform:translateX(17px)}}
@keyframes fight-punch{0%,12%,31%,100%{transform:rotate(0)}19%{transform:rotate(-88deg) translateY(-13px)}25%{transform:rotate(-20deg)}40%{transform:rotate(-78deg)}46%{transform:rotate(0)}}
@keyframes fight-kick{0%,43%,66%,100%{transform:rotate(0)}51%{transform:rotate(-80deg) translateY(-13px)}59%{transform:rotate(-25deg)}}
@keyframes fight-counter{0%,25%,48%,100%{transform:rotate(0)}32%{transform:rotate(82deg) translateY(-10px)}39%{transform:rotate(20deg)}}
@keyframes fight-purple-kick{0%,25%,45%,100%{transform:rotate(0)}33%{transform:rotate(40deg)}}
@keyframes fight-splash{0%,15%,23%,36%,47%,100%{opacity:0;transform:scale(.3)}18%,41%,53%{opacity:1;transform:scale(1.2)}20%,44%,57%{opacity:0;transform:scale(1.5)}}
@keyframes fight-stars{0%,51%,100%{opacity:0}60%,76%{opacity:1;transform:rotate(14deg)}}
#modal .dance.still .frog-fight-stage *,body.reduce-motion #modal .frog-fight-stage *{animation:none!important}
@media(prefers-reduced-motion:reduce){#modal .frog-fight-stage *{animation:none!important}}

/* Refined fight choreography: staggered face/body hits, recoil and a decisive kick.
   Keep the frogs separated between strikes rather than colliding gloves. */
#modal .fight-green{left:-2%!important;animation:frog-green-choreography 6.2s cubic-bezier(.4,0,.2,1) infinite!important}
#modal .fight-purple{right:-2%!important;animation:frog-purple-choreography 6.2s cubic-bezier(.4,0,.2,1) infinite!important}
#modal .fight-green .front-arm{animation:frog-green-jab 6.2s ease-in-out infinite!important}
#modal .fight-purple .front-arm{animation:frog-purple-jab 6.2s ease-in-out infinite!important}
#modal .fight-green .front-leg{animation:frog-green-roundhouse 6.2s ease-in-out infinite!important}
#modal .fight-purple .front-leg{animation:none!important}
#modal .fight-splash{left:52%!important;top:34%!important;animation:frog-impact-timing 6.2s ease-out infinite!important}
#modal .fight-stars{animation:frog-stagger-stars 6.2s ease-in-out infinite!important}
@keyframes frog-green-choreography{
0%,9%{transform:translateX(-18px) rotate(-4deg)}
17%{transform:translateX(22px) rotate(-9deg)}
22%{transform:translateX(32px) rotate(-8deg)}
29%{transform:translateX(0) rotate(-3deg)}
38%{transform:translateX(-6px) rotate(-15deg)}
47%{transform:translateX(9px) rotate(2deg)}
55%{transform:translateX(40px) translateY(-10px) rotate(-12deg)}
64%{transform:translateX(10px) rotate(0)}
75%{transform:translateY(-16px) rotate(-5deg)}
83%{transform:translateY(0) rotate(4deg)}
92%{transform:translateY(-12px)}
100%{transform:translateX(-18px) rotate(-4deg)}
}
@keyframes frog-purple-choreography{
0%,9%{transform:translateX(17px) rotate(5deg)}
17%{transform:translateX(5px) rotate(3deg)}
22%{transform:translateX(19px) rotate(20deg)}
29%{transform:translateX(20px) rotate(5deg)}
38%{transform:translateX(-16px) rotate(-9deg)}
47%{transform:translateX(8px) rotate(13deg)}
55%{transform:translateX(20px) rotate(26deg)}
64%{transform:translateX(30px) translateY(32px) rotate(82deg)}
78%{transform:translateX(30px) translateY(32px) rotate(82deg)}
89%{transform:translateX(18px) rotate(14deg)}
100%{transform:translateX(17px) rotate(5deg)}
}
@keyframes frog-green-jab{
0%,12%,27%,100%{transform:rotate(0) translate(0,0)}
17%,21%{transform:rotate(-40deg) translate(22px,-16px)}
24%{transform:rotate(-12deg)}
45%,51%{transform:rotate(-15deg)}
}
@keyframes frog-purple-jab{
0%,30%,45%,100%{transform:rotate(0) translate(0,0)}
36%,39%{transform:rotate(38deg) translate(-20px,-15px)}
42%{transform:rotate(10deg)}
}
@keyframes frog-green-roundhouse{
0%,47%,65%,100%{transform:rotate(0) translate(0,0)}
53%,57%{transform:rotate(-67deg) translate(20px,-12px)}
61%{transform:rotate(-22deg)}
}
@keyframes frog-impact-timing{
0%,16%,20%,35%,38%,52%,56%,100%{opacity:0;transform:scale(.25) rotate(-15deg)}
18%,37%,54%{opacity:1;transform:scale(1.1) rotate(12deg)}
19%,39%,58%{opacity:0;transform:scale(1.4)}
}
@keyframes frog-stagger-stars{0%,51%,100%{opacity:0}61%,76%{opacity:1;transform:rotate(20deg)}}
@media(prefers-reduced-motion:reduce){#modal .frog-fight-stage *{animation:none!important}}
#modal .dance.still .frog-fight-stage *,body.reduce-motion #modal .frog-fight-stage *{animation:none!important}

/* Combat spacing correction: bring fighters within actual glove-to-body range.
   Keep opponent facing left, and place hit bursts at the receiver's torso. */
#modal .fight-green{left:4%!important;animation:frog-green-close-fight 6.2s ease-in-out infinite!important}
#modal .fight-purple{right:4%!important;animation:frog-purple-close-fight 6.2s ease-in-out infinite!important}
#modal .fight-splash{left:57%!important;top:43%!important}
@keyframes frog-green-close-fight{
0%,9%{transform:translateX(0) rotate(-3deg)}
17%,22%{transform:translateX(45px) rotate(-7deg)}
29%{transform:translateX(17px) rotate(-3deg)}
38%{transform:translateX(12px) rotate(-14deg)}
47%{transform:translateX(24px) rotate(2deg)}
55%,59%{transform:translateX(53px) translateY(-7px) rotate(-11deg)}
65%{transform:translateX(25px)}
75%{transform:translateX(20px) translateY(-12px)}
84%{transform:translateX(20px)}
92%{transform:translateX(20px) translateY(-12px)}
100%{transform:translateX(0) rotate(-3deg)}
}
@keyframes frog-purple-close-fight{
0%,9%{transform:translateX(0) rotate(3deg)}
17%{transform:translateX(-18px) rotate(3deg)}
22%{transform:translateX(12px) rotate(20deg)}
29%{transform:translateX(-6px) rotate(5deg)}
38%{transform:translateX(-45px) rotate(-9deg)}
47%{transform:translateX(5px) rotate(13deg)}
55%{transform:translateX(-14px) rotate(26deg)}
64%,78%{transform:translateX(17px) translateY(30px) rotate(82deg)}
89%{transform:translateX(5px) rotate(14deg)}
100%{transform:translateX(0) rotate(3deg)}
}

/* Mobile word-search: let fingers trace letters instead of scrolling the page. */
#wordsearch-grid,.search-grid .search-cell{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
#wordsearch-grid .search-cell.selecting{background:#ffdd72!important;color:#3e2c10!important;box-shadow:inset 0 0 0 2px #d59b20!important}
#wordsearch-grid .search-cell.found{background:#9bdfa2!important;color:#164c24!important;box-shadow:inset 0 0 0 2px #469e56!important}

/* Word-search target list always visible beneath puzzle, even at 25 words. */
.wordsearch-list-heading{margin:14px 0 5px!important;font-size:18px!important;color:#245a36!important}
#wordsearch-words{display:flex!important;flex-wrap:wrap!important;gap:7px!important;justify-content:flex-start!important;margin:6px 0 16px!important}
#wordsearch-words span{font-size:13px!important;padding:6px 9px!important}
#wordsearch-words span.found{text-decoration:line-through!important;opacity:.7!important}
#wordsearch-grid .search-cell{min-width:0!important;min-height:0!important;font-size:clamp(9px,2.8vw,16px)!important}

/* Bubbly pond-water word search: soft continuous-feeling selection and tiny splash. */
#wordsearch-grid{position:relative!important;gap:1px!important;padding:5px!important;background:linear-gradient(145deg,#a6e8e7,#63b9d1 58%,#8eddd5)!important;border:2px solid #6dc9cf!important;border-radius:19px!important;box-shadow:inset 0 2px 9px #ffffff99,0 4px 12px #175b6a24!important}
#wordsearch-grid .search-cell{position:relative!important;z-index:1;border:1px solid #c2eaf0!important;border-radius:38%!important;background:radial-gradient(circle at 30% 19%,#ffffff 0%,#f5fffc 31%,#dcf5ee 70%,#bde7e3 100%)!important;color:#164b58!important;box-shadow:inset 0 2px 3px #ffffffaa,0 1px 2px #287b8730!important;transition:background .12s ease,box-shadow .12s ease,transform .12s ease!important}
#wordsearch-grid .search-cell.selecting{background:radial-gradient(circle at 25% 22%,#f8ffff,#9cecfb 42%,#3bb8e1 100%)!important;border-color:#1a9fce!important;border-radius:42%!important;color:#073f66!important;transform:scale(1.035)!important;box-shadow:inset 0 2px 5px #ffffffa8,0 0 0 1px #51d5ed,0 0 9px #36c8f8aa!important;z-index:2}
#wordsearch-grid .search-cell.found{background:radial-gradient(circle at 30% 20%,#f2fff7,#a2f1ca 46%,#48c6a4 100%)!important;border-color:#2ba989!important;border-radius:42%!important;color:#11513d!important;box-shadow:inset 0 2px 5px #ffffffbb,0 0 0 1px #7ddfbb!important}
#wordsearch-grid .search-cell.found.selecting{background:radial-gradient(circle at 30% 20%,#fff,#a2eaf9 50%,#4bc8e8)!important}
#wordsearch-grid .wordsearch-splash{position:absolute;z-index:7;pointer-events:none;width:0;height:0;overflow:visible}
#wordsearch-grid .wordsearch-splash:before{content:"";position:absolute;width:12px;height:12px;left:-6px;top:-6px;border:3px solid #4acde9;border-radius:50%;animation:pond-ripple .55s ease-out forwards}
#wordsearch-grid .wordsearch-splash i{position:absolute;width:5px;height:9px;border-radius:70% 70% 60% 60%;background:linear-gradient(#e9ffff,#27bfe4);left:-2px;top:-4px;transform-origin:50% 18px;animation:pond-droplet .6s ease-out forwards}
#wordsearch-grid .wordsearch-splash i:nth-child(1){--a:0deg}
#wordsearch-grid .wordsearch-splash i:nth-child(2){--a:60deg}
#wordsearch-grid .wordsearch-splash i:nth-child(3){--a:120deg}
#wordsearch-grid .wordsearch-splash i:nth-child(4){--a:180deg}
#wordsearch-grid .wordsearch-splash i:nth-child(5){--a:240deg}
#wordsearch-grid .wordsearch-splash i:nth-child(6){--a:300deg}
@keyframes pond-ripple{from{opacity:.9;transform:scale(.3)}to{opacity:0;transform:scale(3.4)}}
@keyframes pond-droplet{from{opacity:1;transform:rotate(var(--a)) translateY(0) scale(1)}to{opacity:0;transform:rotate(var(--a)) translateY(-23px) scale(.5)}}
@media(prefers-reduced-motion:reduce){#wordsearch-grid .search-cell{transition:none!important}#wordsearch-grid .wordsearch-splash{display:none!important}}

/* Clear, high-contrast bubble letters and readable target words on iPhone. */
#wordsearch-grid{width:100%!important;max-width:100%!important;gap:2px!important;padding:5px!important}
#wordsearch-grid .search-cell{font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif!important;font-size:clamp(14px,4.1vw,21px)!important;font-weight:1000!important;letter-spacing:0!important;line-height:1!important;color:#12333e!important;text-shadow:0 1px 0 #ffffff!important;background:radial-gradient(circle at 30% 18%,#ffffff 0%,#ffffff 30%,#d4f6f5 100%)!important;border:1.5px solid #70bfc7!important;border-radius:35%!important;box-shadow:inset 0 1px 2px #fff,0 1px 1px #236e7938!important}
#wordsearch-grid .search-cell.selecting{color:#082f55!important;background:radial-gradient(circle at 30% 18%,#ffffff,#8ae0fa 60%,#31b6df)!important}
#wordsearch-grid .search-cell.found{color:#123e32!important;background:radial-gradient(circle at 30% 18%,#ffffff,#8de7bb 65%,#39c89c)!important}
.wordsearch-list-heading{font-size:clamp(19px,5vw,24px)!important;font-weight:1000!important;color:#174d31!important;margin:16px 0 9px!important}
#wordsearch-words{gap:8px!important}
#wordsearch-words span{font-size:clamp(14px,3.8vw,18px)!important;font-weight:1000!important;letter-spacing:.015em!important;line-height:1.2!important;padding:9px 11px!important;color:#26391f!important;background:#fffefa!important;border:2px solid #c5aa6d!important;border-radius:15px!important;box-shadow:0 2px 0 #b89e6338!important}
#wordsearch-words span.found{color:#22583c!important;background:#d3f2d8!important;border-color:#69ae81!important;opacity:1!important;text-decoration:line-through!important;text-decoration-thickness:2px!important}
@media(max-width:370px){#wordsearch-grid .search-cell{font-size:clamp(12px,4vw,17px)!important}#wordsearch-words span{font-size:14px!important;padding:7px 8px!important}}

/* Large, easy-to-read word search letters on phone and desktop. */
#wordsearch-grid .search-cell{font-size:clamp(19px,5.5vw,28px)!important;font-weight:1000!important;color:#092f3c!important;text-shadow:none!important;line-height:1!important}
@media(max-width:370px){#wordsearch-grid .search-cell{font-size:clamp(17px,5.4vw,24px)!important}}

/* Repair oversized letters: keep every bubble in its own grid cell, including 25-word puzzles. */
.puzzle-board-space.search-scroll{display:block!important;overflow-x:auto!important;overflow-y:visible!important;max-width:100%!important;min-width:0!important;min-height:0!important;-webkit-overflow-scrolling:touch}
#wordsearch-grid{display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;grid-template-columns:repeat(var(--search-size),minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:2px!important;align-items:stretch!important;justify-items:stretch!important;overflow:visible!important}
#wordsearch-grid .search-cell{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;aspect-ratio:1/1!important;padding:0!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;font-size:clamp(10px,calc((100vw - 85px)/var(--search-size)*.69),22px)!important;line-height:1!important;letter-spacing:-.025em!important;flex-shrink:1!important}
@media(min-width:500px){#wordsearch-grid .search-cell{font-size:clamp(11px,calc(400px/var(--search-size)*.7),22px)!important}}

/* Hidden-object pond scene: visible objects are part of the picture, not answer tiles. */
.pond-find-scene{position:relative;width:100%;aspect-ratio:4/5;min-height:290px;max-height:540px;overflow:hidden;border:5px solid #9a7545;border-radius:23px;background:linear-gradient(#8cddff18,#16594b44),url('assets/pond-boxing-v4.png') center 43%/cover no-repeat,#6ab8a3;box-shadow:inset 0 0 24px #173f4270,0 5px 9px #183d3630}
.pond-hidden-object{position:absolute;display:flex;align-items:center;justify-content:center;width:clamp(42px,12%,60px);height:clamp(42px,12%,60px);transform:translate(-50%,-50%);padding:0;border:0;border-radius:50%;background:#ffffff14;font-size:clamp(28px,8vw,43px);line-height:1;text-shadow:0 2px 4px #123b3980;touch-action:manipulation;filter:drop-shadow(0 3px 3px #1846328c);transition:transform .15s ease,opacity .2s ease}
.pond-hidden-object:active{transform:translate(-50%,-50%) scale(1.17)}
.pond-hidden-object.located{opacity:.35;box-shadow:inset 0 0 0 3px #b9f8bf}
.pond-hidden-object:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.pond-hidden-object{transition:none}}

/* Word Search ONLY: give the actual letter puzzle full-size square cells. */
.panel.puzzle-stage:has(#wordsearch-grid){display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
.panel.puzzle-stage:has(#wordsearch-grid) .puzzle-board-space{display:block!important;flex:none!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important}
#wordsearch-grid{box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(var(--search-size),minmax(0,1fr))!important;grid-template-rows:repeat(var(--search-size),auto)!important;grid-auto-flow:row!important;align-content:start!important;justify-content:stretch!important;width:100%!important;height:auto!important;max-height:none!important;min-width:0!important;overflow:visible!important;gap:2px!important}
#wordsearch-grid > button.search-cell{box-sizing:border-box!important;position:relative!important;display:grid!important;place-items:center!important;float:none!important;grid-column:auto!important;grid-row:auto!important;min-width:0!important;min-height:0!important;width:100%!important;height:auto!important;aspect-ratio:1!important;line-height:1!important;padding:0!important;margin:0!important;font-size:clamp(13px,calc(70vw / var(--search-size)),24px)!important;font-weight:900!important;letter-spacing:0!important;text-align:center!important;overflow:hidden!important}
#wordsearch-words span{font-size:14px!important;padding:6px 9px!important;font-weight:850!important}
@media(min-width:500px){#wordsearch-grid > button.search-cell{font-size:clamp(13px,calc(370px / var(--search-size)),24px)!important}}

/* Definitive word-search layout: fixed equal-size columns AND rows. */
#hub:has(#wordsearch-grid){overflow-y:auto!important;min-height:0!important}
#hub-content:has(#wordsearch-grid){height:auto!important;max-height:none!important;overflow:visible!important}
#hub-content:has(#wordsearch-grid) .panel.puzzle-stage{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:10px!important}
#hub-content:has(#wordsearch-grid) .puzzle-board-space{display:block!important;flex:none!important;height:auto!important;max-height:none!important;overflow-x:auto!important;overflow-y:visible!important;width:100%!important;padding:0!important}
#wordsearch-grid{--ws-cell:calc((min(100vw, 500px) - 80px) / var(--search-size));display:grid!important;grid-template-columns:repeat(var(--search-size),var(--ws-cell))!important;grid-template-rows:repeat(var(--search-size),var(--ws-cell))!important;grid-auto-rows:var(--ws-cell)!important;gap:2px!important;width:max-content!important;max-width:100%!important;height:max-content!important;min-height:0!important;align-content:start!important;justify-content:start!important;overflow:visible!important}
#wordsearch-grid > button.search-cell{display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-width:0!important;min-height:0!important;width:var(--ws-cell)!important;height:var(--ws-cell)!important;aspect-ratio:auto!important;line-height:1!important;font-size:clamp(12px,calc(var(--ws-cell) * .66),23px)!important;font-weight:900!important;padding:0!important;margin:0!important;overflow:hidden!important;white-space:nowrap!important;border-radius:32%!important}
#wordsearch-words{gap:5px!important;margin:4px 0 10px!important}
#wordsearch-words span{font-size:12px!important;padding:5px 7px!important;font-weight:800!important;line-height:1.15!important;border-width:1px!important;border-radius:10px!important}
#hub-content:has(#wordsearch-grid) .wordsearch-list-heading{font-size:19px!important;margin:8px 0 2px!important}

/* Find It at the Pond: one intact, scrollable playable scene. */
#hub:has(.pond-find-scene){overflow-y:auto!important;min-height:0!important}
#hub-content:has(.pond-find-scene){height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;display:block!important}
#hub-content:has(.pond-find-scene) .brain-suite{height:auto!important;max-height:none!important;overflow:visible!important;padding:12px!important}
#hub-content:has(.pond-find-scene) .pond-find-scene{display:block!important;position:relative!important;box-sizing:border-box!important;width:100%!important;min-height:320px!important;max-height:none!important;aspect-ratio:4/5!important;margin:12px auto!important;overflow:hidden!important;background:linear-gradient(#b0f4fc22,#0b69743d),radial-gradient(ellipse at 50% 78%,#3bacc2 0 36%,#76c5a2 64%,#b4dd85 100%)!important}
#hub-content:has(.pond-find-scene) .pond-hidden-object{display:flex!important;visibility:visible!important;opacity:1!important;z-index:4!important;background:#ffffff38!important;border:1px solid #ffffffa8!important;box-shadow:0 2px 6px #0d545b66!important}
#hub-content:has(.pond-find-scene) .pond-hidden-object.located{opacity:.35!important}

/* Calmer word-search: gentle pond tiles, legible letters and space for the list. */
#hub:has(#wordsearch-grid){box-sizing:border-box!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-bottom:115px!important}
#hub-content:has(#wordsearch-grid){padding-bottom:32px!important}
#hub-content:has(#wordsearch-grid) .panel.puzzle-stage{padding:10px!important;gap:8px!important}
#wordsearch-grid{--ws-cell:clamp(19px,calc((min(100vw,500px) - 80px) / var(--search-size)),28px);gap:3px!important;padding:6px!important;border-radius:18px!important;background:linear-gradient(145deg,#b2e8e7,#7cc6cf)!important;border:2px solid #69bfc9!important;box-shadow:inset 0 2px 6px #ffffff8a!important}
#wordsearch-grid > button.search-cell{font-family:system-ui,-apple-system,sans-serif!important;font-size:clamp(12px,calc(var(--ws-cell) * .66),23px)!important;font-weight:700!important;letter-spacing:0!important;color:#164653!important;text-shadow:none!important;border-radius:35%!important;border:1px solid #9ed4d7!important;background:linear-gradient(145deg,#ffffff,#e2f6f4)!important;box-shadow:inset 0 1px 1px #fff!important;transform:none!important}
#wordsearch-grid > button.search-cell.selecting{background:linear-gradient(145deg,#e4fbff,#8edcf2)!important;box-shadow:0 0 0 1px #4abbd9!important}
#wordsearch-grid > button.search-cell.found{background:linear-gradient(145deg,#e3fff0,#a1e3c2)!important;box-shadow:inset 0 0 0 1px #64b891!important}
#hub-content:has(#wordsearch-grid) .wordsearch-list-heading{font-size:17px!important;margin:9px 0 2px!important}
#wordsearch-words{gap:5px!important;justify-content:flex-start!important}
#wordsearch-words span{font-size:11px!important;font-weight:700!important;letter-spacing:0!important;padding:5px 7px!important;border:1px solid #d2bb87!important;border-radius:9px!important;background:#fffdf7!important;box-shadow:none!important}

/* I-Spy pond illustration: objects are integrated into the scenery, not floating stickers. */
#hub-content:has(.pond-find-scene) .pond-find-scene{background:url('assets/hidden-pond-scene.svg') center center/cover no-repeat!important;border:4px solid #c79c5c!important;border-radius:22px!important;aspect-ratio:800/950!important;min-height:0!important;max-height:none!important;box-shadow:0 6px 16px #164f5b45!important}
#hub-content:has(.pond-find-scene) .pond-hidden-object{background:transparent!important;border:0!important;box-shadow:none!important;width:clamp(40px,12%,62px)!important;height:clamp(40px,12%,62px)!important;font-size:clamp(29px,8vw,43px)!important;text-shadow:0 2px 3px #133a3066!important;filter:drop-shadow(0 2px 2px #163c3566)!important}
#hub-content:has(.pond-find-scene) .pond-hidden-object.located{opacity:.32!important;filter:grayscale(.4)!important}
#hub-content:has(.pond-find-scene) .pond-hidden-object:focus-visible{outline:3px solid #fff!important;border-radius:50%!important}

/* Word Search phone layout: reserve screen space for BOTH grid and all target words. */
@media(max-width:600px){
 #hub:has(#wordsearch-grid){height:calc(var(--visible-height,100dvh) - 240px)!important;max-height:calc(var(--visible-height,100dvh) - 240px)!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 0 6px!important;scrollbar-width:thin}
 #hub-content:has(#wordsearch-grid){height:100%!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0 0 6px!important}
 #hub-content:has(#wordsearch-grid) .panel.puzzle-stage{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:4px!important;padding:7px 8px!important}
 #hub-content:has(#wordsearch-grid) .puzzle-stage > h3:first-child{font-size:15px!important;line-height:1.15!important;margin:0!important}
 #hub-content:has(#wordsearch-grid) .tabs{gap:4px!important;margin:0!important}
 #hub-content:has(#wordsearch-grid) .tabs .button{font-size:11px!important;min-height:28px!important;padding:3px 5px!important}
 #hub-content:has(#wordsearch-grid) #wordsearch-feedback{font-size:11px!important;line-height:1.2!important;min-height:0!important;margin:2px 0!important;padding:5px 7px!important}
 #hub-content:has(#wordsearch-grid) .puzzle-board-space{display:block!important;flex:none!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:0!important}
 #wordsearch-grid{--ws-cell:clamp(15px,calc((min(100vw,500px) - 92px) / var(--search-size)),33px)!important;grid-template-columns:repeat(var(--search-size),minmax(0,1fr))!important;grid-template-rows:repeat(var(--search-size),auto)!important;gap:2px!important;width:100%!important;max-width:100%!important;height:auto!important;padding:4px!important;box-sizing:border-box!important}
 #wordsearch-grid > button.search-cell{width:100%!important;height:auto!important;aspect-ratio:1!important;font-size:clamp(10px,calc(190px / var(--search-size)),17px)!important;font-weight:700!important}
 #hub-content:has(#wordsearch-grid) .wordsearch-list-heading{font-size:15px!important;line-height:1.1!important;margin:5px 0 1px!important}
 #wordsearch-words{display:flex!important;flex-wrap:wrap!important;gap:3px!important;margin:0!important;padding:0!important}
 #wordsearch-words span{font-size:10px!important;line-height:1.1!important;padding:3px 5px!important;border-radius:7px!important;letter-spacing:0!important}
}

/* Real Froggy Match Frenzy character portraits in Fighters */
.real-frog-pair{display:flex!important;align-items:flex-end;justify-content:center;gap:0;overflow:visible;background:transparent!important;border-radius:0!important;}
.real-frog-pair .fighter-boy,.real-frog-pair .fighter-girl{display:block;width:50%;height:100%;min-width:0;object-fit:contain;object-position:center bottom;}
.avatar .real-frog-pair{width:35px;height:35px;overflow:hidden;}
.selected-avatar .real-frog-pair{width:50px;height:55px;overflow:hidden;}
.fighter-card{min-height:250px!important;padding:10px 8px 12px!important;gap:7px!important;}
.fighter-card .real-frog-pair{width:100%;height:178px;min-height:178px;}
.fighter-card .real-frog-pair .fighter-boy,.fighter-card .real-frog-pair .fighter-girl{width:50%;height:100%;object-fit:contain;object-position:center bottom;}
.fighter-card b{font-size:16px;line-height:1.15;}
.fighter-card small{font-size:12px;line-height:1.2;}

/* Froggy Fashion Boutique — simple single-character preview layout */
.boutique-frog{display:flex!important;align-items:center;justify-content:center;width:100%;height:100%;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.boutique-frog img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center bottom}
.avatar .boutique-frog{width:42px;height:48px;overflow:hidden!important}
.selected-avatar .boutique-frog{width:56px;height:64px;overflow:hidden!important}
.boutique-panel{display:grid;gap:12px}
.boutique-genders,.boutique-departments{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.boutique-genders .button{min-width:112px}
.boutique-departments .button{min-width:calc(50% - 8px);flex:1 1 42%}
.boutique-hero{display:flex;align-items:center;justify-content:center;gap:14px;min-height:210px;padding:12px;border-radius:18px;background:linear-gradient(145deg,#fff5df,#f4d7a6);border:2px solid #d5ad69}
.boutique-hero .boutique-frog{width:145px;height:190px;flex:0 0 145px}
.boutique-hero>div{display:grid;gap:5px}
.boutique-hero b{font-size:19px;color:#684820}
.boutique-hero small{font-size:13px;color:#725b3b}
.boutique-coming{padding:16px;border:1px solid #dfc18e;border-radius:14px;background:#fffaf0;text-align:center;color:#624a2d}
.boutique-coming p{line-height:1.45}


/* Boutique showroom */
.boutique-panel{gap:15px}.boutique-topline{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#8a5b21;font-size:10px;letter-spacing:1.5px;font-weight:900}.boutique-topline b{font-size:12px;letter-spacing:0;background:#fff3d4;padding:8px 11px;border-radius:999px;color:#79501e}
.boutique-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(118px,42%);align-items:center;min-height:270px;overflow:hidden;border-radius:22px;padding:16px 10px 8px 18px;background:radial-gradient(ellipse at 72% 35%,#fff0c9 0,#f8dba4 38%,#8b4c38 100%);border:1px solid #d3a65e;box-shadow:inset 0 0 0 4px #ffffff35,0 12px 28px #44200e24}
.boutique-stage:before{content:"";position:absolute;inset:auto -20px -65px;height:125px;border-radius:50%;background:linear-gradient(90deg,#462d48,#7b3c5c,#3b2442);opacity:.8}.boutique-stage-copy{position:relative;z-index:2;align-self:start;padding-top:18px;color:#4a2b35}.boutique-kicker,.boutique-section-heading span{font-size:9px;font-weight:900;letter-spacing:1.5px;color:#a45a39}.boutique-stage-copy h3{font-size:21px;line-height:1.05;margin:8px 0;color:#4d2835}.boutique-stage-copy p{font-size:12px;line-height:1.35;max-width:175px;color:#65404a}.boutique-equipped{display:grid;gap:5px;margin-top:16px}.boutique-equipped span{font-size:10px;font-weight:800;color:#67424a}
.fashion-doll{position:relative;z-index:1;display:block;width:100%;height:260px;align-self:end}.fashion-doll img,.fashion-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}.fashion-overlay{pointer-events:none;overflow:visible}.fashion-doll.gold-preview img{filter:drop-shadow(0 8px 8px #3f1f1b45)}
.boutique-departments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.boutique-departments .button{min-width:0!important;flex:initial!important;padding:9px 5px;font-size:11px;white-space:normal}
.boutique-section-heading{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #ead8bd;padding-bottom:9px}.boutique-section-heading h3{margin:3px 0 0;font-size:21px;color:#50334a}.boutique-section-heading small{font-size:11px;color:#8a776b}
.fashion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fashion-item{display:grid;grid-template-columns:82px minmax(0,1fr);gap:9px;padding:9px;border-radius:15px;background:linear-gradient(145deg,#fffdf8,#f7ecdc);border:1px solid #e7d4b7;min-width:0}.fashion-item.is-equipped{border:2px solid #c69a48;box-shadow:0 0 0 2px #f7e8c7}
.fashion-swatch{position:relative;display:grid;place-items:center;min-height:106px;border-radius:11px;background:radial-gradient(circle at 50% 25%,#fff,#f0dfc9 75%);overflow:hidden}.swatch-garment{display:grid;place-items:center;width:58px;height:66px;color:var(--item-accent);font-size:22px;background:var(--item-tone);border:3px solid var(--item-accent);border-radius:17px 17px 9px 9px;box-shadow:0 5px 0 #00000014}.swatch-garment.bottom{height:48px;border-radius:5px 5px 12px 12px;clip-path:polygon(0 0,100% 0,94% 100%,55% 88%,48% 100%,5% 100%)}.swatch-garment.shoes{height:30px;border-radius:8px 16px 8px 8px}.swatch-garment.hair,.swatch-garment.accessory{height:48px;border-radius:50%}.fashion-swatch i{position:absolute;bottom:4px;right:5px;font-size:20px;font-style:normal}
.fashion-item-info{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.fashion-item-info b{font-size:12px;line-height:1.15;color:#493247}.fashion-item-info small{font-size:10px;line-height:1.25;color:#786b66}.fashion-item-info strong{font-size:11px;color:#8b5c21;margin-top:auto}.fashion-item-info .button{font-size:10px;padding:6px 9px;min-height:30px}.boutique-footnote{font-size:10px;line-height:1.4;color:#81736b;text-align:center}
@media(max-width:440px){.fashion-grid{grid-template-columns:1fr}.fashion-item{grid-template-columns:88px minmax(0,1fr)}.boutique-stage{grid-template-columns:minmax(0,1fr) 43%;min-height:250px}.fashion-doll{height:245px}.boutique-stage-copy h3{font-size:19px}}


/* Boutique preview correction: show the approved frog artwork cleanly; no misaligned costume overlay. */
.boutique-stage{grid-template-columns:minmax(0,44%) minmax(0,56%);min-height:340px;padding:14px 8px 0 18px;background:linear-gradient(145deg,#fffaf0 0%,#f5e4c5 58%,#ead1a5 100%);border:1px solid #d7b779;box-shadow:inset 0 0 0 3px #fff9ed,0 10px 26px #4c35191c}
.boutique-stage:before{height:34px;bottom:-12px;background:linear-gradient(90deg,#c5a16c,#e2c99f,#c5a16c);opacity:.38}
.boutique-stage-copy{padding-top:20px}
.fashion-doll{height:320px;min-width:0;display:flex;align-items:flex-end;justify-content:center}
.fashion-doll img{position:relative;inset:auto;display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 7px #49351d25)}
.fashion-overlay{display:none!important}
@media(max-width:440px){.boutique-stage{grid-template-columns:minmax(0,42%) minmax(0,58%);min-height:330px}.fashion-doll{height:310px}.boutique-stage-copy h3{font-size:19px}}


/* Premium Froggy Fashion Boutique: luminous showroom and clear try-on controls */
.boutique-panel{padding:13px;gap:12px;background:linear-gradient(155deg,#fff7ed 0%,#fff0d2 54%,#f8e0d5 100%);border:2px solid #ffe0a0;box-shadow:0 8px 28px #27103b40,inset 0 0 0 2px #fff9e8}
.boutique-brand{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:17px;background:linear-gradient(105deg,#662b83,#ae397e 52%,#6a3d91);border:2px solid #f5d17a;box-shadow:0 4px 0 #54235f;color:#fff7e4}
.boutique-brand>span{font-size:29px;color:#ffdf70;text-shadow:0 2px 4px #3a1249}
.boutique-brand>div{display:grid;min-width:0;gap:2px;flex:1}
.boutique-brand>div>b{font-family:Georgia,serif;font-size:clamp(17px,4.6vw,23px);line-height:1.05;color:#ffe08a;text-shadow:0 2px 2px #411a56}
.boutique-brand>div>small{font-size:9px;letter-spacing:.8px;color:#fff4e7}
.boutique-wallet{flex:0 0 auto;padding:7px 9px;border-radius:20px;background:linear-gradient(#fff0c6,#f4d083);color:#62401b;font-size:10px;white-space:nowrap;box-shadow:inset 0 1px #fff}
.boutique-genders{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.boutique-genders .button{min-width:0;border-radius:16px;font-size:13px;padding:9px 6px;background:linear-gradient(#ff82bc,#df328b);border:2px solid #ffcce3;box-shadow:0 3px 0 #8f245e;color:white;text-shadow:0 1px 2px #842455}
.boutique-genders .button.secondary{background:linear-gradient(#71caff,#277cc4);border-color:#b8e5ff;box-shadow:0 3px 0 #20598d;color:white}
.boutique-stage{grid-template-columns:minmax(0,42%) minmax(0,58%);min-height:335px;padding:12px 5px 0 14px;border:2px solid #eac36c;border-radius:21px;background:radial-gradient(ellipse at 68% 25%,#fff2f7 0%,#f7cbdc 34%,#8c4e94 70%,#49275f 100%);box-shadow:inset 0 0 0 3px #fff4d666,0 8px 20px #44214c33}
.boutique-stage:before{inset:auto -5% -11px;height:55px;border-radius:50%;background:linear-gradient(90deg,#8e51a6,#45255f 25%,#7e42a0 52%,#48245f 77%,#a35fb2);border:3px solid #f2cd70;box-shadow:0 -2px 14px #fff0c8aa,0 4px 0 #5c2f69;opacity:1}
.boutique-stage:after{content:"";position:absolute;inset:0 0 auto;height:100%;pointer-events:none;background:linear-gradient(90deg,#fff2 0 3%,transparent 3% 96%,#fff2 96%),radial-gradient(circle at 53% 18%,#fff9 0 2px,transparent 4px),radial-gradient(circle at 84% 32%,#fff7 0 2px,transparent 5px);opacity:.55}
.boutique-stage-copy{padding-top:17px;color:#572a64}
.boutique-kicker{color:#9c477c;font-size:8px;letter-spacing:1.1px}
.boutique-stage-copy h3{font-family:Georgia,serif;font-size:clamp(17px,4.5vw,22px);color:#63275f;line-height:1.02;text-shadow:0 1px #fff}
.boutique-stage-copy p{font-size:11px;line-height:1.3;color:#673c70}
.boutique-equipped{gap:5px;margin-top:11px}
.boutique-equipped span{font-size:9px;color:#5c3765}
.boutique-reset{margin-top:4px;min-height:30px;padding:4px 8px;font-size:9px;border-radius:10px}
.fashion-doll{height:320px;min-width:0;display:flex;align-items:flex-end;justify-content:center}
.fashion-doll img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 5px #2d123b55)}
.fashion-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;pointer-events:none;overflow:visible}
.boutique-departments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.boutique-departments .button{border-radius:14px;background:linear-gradient(#9c63c1,#62348d);border:2px solid #e8c2fa;box-shadow:0 3px 0 #43205e;color:#fff;font-size:11px;min-width:0!important;padding:9px 4px}
.boutique-departments .button.secondary{background:linear-gradient(#fff0fb,#f1d5ed);border-color:#e6bfe2;box-shadow:0 3px 0 #b07caa;color:#693d70}
.boutique-section-heading{border-color:#dcb5db}
.boutique-section-heading span{color:#a14d84}
.boutique-section-heading h3{color:#592b65}
.fashion-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.fashion-item{grid-template-columns:75px minmax(0,1fr);gap:8px;padding:8px;border-radius:15px;background:linear-gradient(145deg,#fff,#f7e8f4);border:1px solid #e7c5df}
.fashion-item.is-trying{border:2px solid #e23b9b;box-shadow:0 0 0 3px #ffc5e7,0 5px 14px #b62c7d25}
.fashion-item.is-equipped{border:2px solid #c49b43;box-shadow:0 0 0 2px #ffedb9}
.fashion-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;width:100%;margin-top:3px}
.fashion-actions .button{font-size:10px;line-height:1.1;padding:6px 4px;min-height:31px;border-radius:10px;white-space:normal}
.fashion-actions .button:first-child{background:linear-gradient(#f283bf,#cf3a8a);border-color:#ffc6e1;box-shadow:0 2px 0 #872252;color:#fff}
.fashion-actions .button:last-child{background:linear-gradient(#76c94d,#39972b);border-color:#bbe98b;box-shadow:0 2px 0 #246724;color:white}
.fashion-item-info b{font-size:11px;color:#4e285b}
.fashion-item-info small{font-size:9px;color:#795d7d}
.fashion-item-info strong{font-size:10px;color:#8b5c21}
.boutique-footnote{color:#765c7b;font-size:9px}
@media(max-width:440px){
 .boutique-panel{padding:10px;gap:10px}
 .boutique-brand>div>b{font-size:18px}
 .boutique-stage{grid-template-columns:minmax(0,40%) minmax(0,60%);min-height:320px}
 .fashion-doll{height:306px}
 .boutique-stage-copy h3{font-size:18px}
 .fashion-grid{grid-template-columns:1fr}
 .fashion-item{grid-template-columns:86px minmax(0,1fr)}
}


/* Keep the frog artwork unobstructed until fitted garment artwork is available. */
.fashion-overlay{display:none!important}
.fashion-doll img,.fashion-doll.gold-preview img{z-index:1;filter:none!important}
.fashion-swatch{display:flex;align-items:center;justify-content:center;min-height:98px;height:98px;padding:5px;border-radius:13px;background:radial-gradient(ellipse at 35% 18%,#fff 0%,#fff7e7 45%,#ead4e6 100%);border:1px solid #e5c6dc;overflow:hidden}
.fashion-product-art{display:block;width:100%;height:100%;max-width:100%;max-height:100%;filter:drop-shadow(0 5px 3px #4a2c4a28)}
.fashion-swatch .swatch-garment,.fashion-swatch>i{display:none!important}
.fashion-empty{grid-column:1/-1;margin:0;padding:22px 14px;text-align:center;border:1px dashed #c8a4c8;border-radius:14px;background:#fff8f4;color:#6c4b71;font-size:12px}
.boutique-stage.boy-stage{background:radial-gradient(ellipse at 70% 24%,#fff3c9 0%,#f4d98e 34%,#68417e 75%,#3e285b 100%)}
.boy-fashion-overlay{mix-blend-mode:normal}
@media(max-width:440px){.fashion-swatch{min-height:106px;height:106px}.fashion-product-art{max-width:100%;max-height:100%}}

/* Boutique wardrobe try-on: keep garment layers aligned to the original frog sprites. */
.boutique-panel{gap:10px;padding:10px}
#hub-content:has(.boutique-panel){overflow-y:auto;overscroll-behavior:contain}
.pond-shell{width:100%}
body.hub-fit .pond-shell{width:100%}
.hub-screen,#hub-content,.boutique-panel,.boutique-brand,.boutique-stage{min-width:0;max-width:100%}
.boutique-stage{min-height:330px}
.boutique-stage:before{bottom:-11px}
.fashion-doll{position:relative;isolation:isolate;overflow:visible}
.fashion-doll .fashion-base{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:none!important}
.fashion-overlay{display:block!important;position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:contain;object-position:center bottom;pointer-events:none;overflow:visible}
.boutique-outfits,.boutique-products{min-width:0}
.boutique-section-heading{margin:0 1px 5px}
.boutique-departments{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.boutique-departments .button{display:grid;place-items:center;align-content:center;gap:2px;min-height:50px;padding:5px 2px;font-size:9px;line-height:1.05}
.boutique-departments .button span:first-child{font-size:18px}
.fashion-grid{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:5px 3px 10px;scrollbar-width:thin}
.fashion-item{display:flex;flex:0 0 116px;flex-direction:column;align-items:stretch;gap:5px;min-width:0;min-height:154px;padding:7px;text-align:center;cursor:pointer;scroll-snap-align:start}
.fashion-item:focus-visible{outline:3px solid #257eff;outline-offset:2px}
.fashion-item.is-selected{border:2px solid #e23b9b;box-shadow:0 0 0 3px #ffc5e7,0 5px 14px #b62c7d25}
.fashion-item.is-equipped:not(.is-selected){border:2px solid #c49b43;box-shadow:0 0 0 2px #ffedb9}
.fashion-swatch{width:100%;min-height:75px;height:75px;padding:4px}
.fashion-product-art{filter:none}
.fashion-item-info{align-items:center;gap:3px}
.fashion-item-info b{font-size:10px;line-height:1.12}
.fashion-item-info small{font-size:8px;line-height:1.15}
.fashion-item-info strong{font-size:9px;margin-top:2px}
.fashion-selected-label{font-size:8px;font-weight:900;color:#c32881}
.boutique-actions{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:.75fr 1.15fr 1fr;gap:6px;padding:8px 0 3px;background:linear-gradient(180deg,#fff1d2e8,#fff1d2 30%)}
.boutique-actions .button{min-width:0;min-height:42px;padding:6px 4px;font-size:11px;line-height:1.1;white-space:normal}
.boutique-actions .boutique-try{background:linear-gradient(#ff79b6,#d82986);border-color:#ffd0e5;box-shadow:0 3px 0 #84224f}
.boutique-actions .boutique-purchase{background:linear-gradient(#71ce4c,#378e29);border-color:#c3e98d;box-shadow:0 3px 0 #246724}
.boutique-actions .button:disabled{opacity:.56}
.boutique-footnote{margin:0;font-size:9px;line-height:1.3}
@media(max-width:360px){
 .boutique-stage{grid-template-columns:minmax(0,40%) minmax(0,60%);min-height:300px;padding-left:9px}
 .fashion-doll{height:286px}
 .boutique-stage-copy h3{font-size:16px}
 .boutique-stage-copy p{font-size:10px}
 .fashion-item{flex-basis:108px}
 .boutique-departments .button{font-size:8px}
}

.boutique-restart{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:6px;width:100%;max-width:760px;height:calc(var(--page-space) - 26px);max-height:calc(var(--page-space) - 26px);min-height:0;margin:0 auto;padding:0;box-sizing:border-box}
.boutique-showcase{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);align-items:center;gap:12px;min-height:0;height:100%;padding:10px;border:2px solid #eac36c;border-radius:22px;background:linear-gradient(145deg,#fff7df,#f9dfdc 58%,#ead4f2);box-shadow:inset 0 0 0 3px #fff9}
.boutique-showcase-copy{min-width:0;align-self:start;padding:18px 4px;color:#542b62}
.boutique-showcase-copy .boutique-kicker{display:block}
.boutique-showcase-copy h3{margin:8px 0;font:700 clamp(19px,5vw,27px)/1.05 Georgia,serif;color:#682c70}
.boutique-showcase-copy p{font-size:12px;line-height:1.45;color:#654b68}
.boutique-feature-art{display:grid;place-items:center;min-width:0;min-height:0;height:100%;margin:0;overflow:hidden;border:2px solid #fff;border-radius:16px;background:#fff;box-shadow:0 6px 20px #3d254426}
.boutique-feature-art img{display:block;width:auto;height:max(0px,min(34vh,calc(var(--page-space) - 190px)));max-width:100%;object-fit:contain;object-position:center}
@media(max-width:440px){
 .boutique-showcase{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:7px;padding:8px}
 .boutique-showcase-copy{padding:14px 2px}
 .boutique-showcase-copy h3{font-size:18px}
 .boutique-showcase-copy p{font-size:10px}
}

/* Premium gold showroom - website/PWA Boutique only */
.boutique-gold-house{width:100%;max-width:100%;padding:12px;background:linear-gradient(145deg,#fff9e9,#f5e4c2 48%,#fff9eb);border:2px solid #d1aa58;box-shadow:inset 0 0 0 3px #fffdf4,0 8px 24px #4d321d25;color:#4a351b}
.boutique-luxe-header{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 4px 13px;border-bottom:1px solid #d8bd82}
.boutique-crown{display:grid;place-items:center;width:40px;height:40px;border:1px solid #c49a43;border-radius:13px;background:linear-gradient(145deg,#fff2bd,#d6a943);color:#684716;font-size:26px;box-shadow:inset 0 0 0 2px #fff8dc}
.boutique-luxe-title{min-width:0}
.boutique-luxe-title>span,.boutique-selected-copy>span,.boutique-section-title>span{display:block;font-size:9px;letter-spacing:1.5px;font-weight:1000;color:#9b702b}
.boutique-luxe-title h3{margin:2px 0;font:700 clamp(19px,5vw,26px)/1.05 Georgia,serif;color:#68451b}
.boutique-luxe-title small{font-size:10px;color:#806b4d}
.boutique-luxe-wallet{display:grid;justify-items:end;gap:2px;padding:7px 9px;border:1px solid #c49a43;border-radius:12px;background:linear-gradient(145deg,#fff8dd,#f0d58e);white-space:nowrap}
.boutique-luxe-wallet small,.boutique-luxe-wallet span{font-size:8px;letter-spacing:.7px;color:#775523}
.boutique-luxe-wallet b{font-size:17px;color:#68451b}
.boutique-gold-house .boutique-genders{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.boutique-gold-house .boutique-genders .button{background:linear-gradient(#f8e7b3,#d3a94f);border-color:#fff0bd;box-shadow:0 3px 0 #98702e;color:#543a17}
.boutique-gold-house .boutique-genders .button.secondary{background:linear-gradient(#fffdf5,#eee2c8);border-color:#d6c39a;box-shadow:0 3px 0 #b6a078;color:#725a35}
.boutique-gold-house .boutique-showcase{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);min-height:230px;height:auto;padding:9px;border:2px solid #d4ae60;border-radius:17px;background:radial-gradient(ellipse at 80% 20%,#fff9df,#f0d9a4 55%,#b78b46);box-shadow:inset 0 0 0 2px #fff8df}
.boutique-gold-house .boutique-showcase-copy{align-self:center;padding:8px 5px;color:#523819}
.boutique-gold-house .boutique-showcase-copy .boutique-kicker{font-size:8px;letter-spacing:1.1px;color:#815b24;font-weight:1000}
.boutique-gold-house .boutique-showcase-copy h3{font:700 clamp(18px,5vw,25px)/1.06 Georgia,serif;color:#533716}
.boutique-gold-house .boutique-showcase-copy p{font-size:11px;color:#5c482c}
.boutique-showcase-note{margin-top:12px;padding-top:8px;border-top:1px solid #b38b4e;font-size:9px;line-height:1.35;color:#735629}
.boutique-gold-house .boutique-feature-art{min-height:210px;border:1px solid #fff7d9;background:radial-gradient(ellipse,#fffdf6,#f5e6c5);box-shadow:0 5px 16px #50391930}
.boutique-gold-house .boutique-feature-art img{height:clamp(190px,34vh,330px);max-height:100%;max-width:100%}
.boutique-department-area,.boutique-products-area{margin-top:14px}
.boutique-section-title{display:flex;justify-content:space-between;align-items:end;gap:8px;margin:0 2px 8px;padding-bottom:6px;border-bottom:1px solid #d9c18f}
.boutique-section-title b{font:700 16px Georgia,serif;color:#67461f}
.boutique-departments{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.boutique-gold-house .boutique-departments .button{display:grid;align-content:center;justify-items:center;gap:5px;min-width:0;min-height:58px;padding:6px 2px;border:1px solid #c49a43;border-radius:11px;background:linear-gradient(#f8e5ae,#d9b65e);box-shadow:0 3px 0 #9c762f;color:#583c19;font-size:9px;line-height:1.05}
.boutique-gold-house .boutique-departments .button span:first-child{font-size:17px;color:#80571e}
.boutique-gold-house .boutique-departments .button.secondary{background:linear-gradient(#fffdf5,#eee3ca);border-color:#d7c49c;box-shadow:0 3px 0 #b5a27a;color:#725b37}
.boutique-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.boutique-product{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;padding:8px;border:1px solid #d8c394;border-radius:13px;background:linear-gradient(150deg,#fffef8,#f2e6cc);color:#4d391d;text-align:left;box-shadow:0 3px 8px #65471c12}
.boutique-product.selected{border:2px solid #bd8b2d;padding:7px;box-shadow:0 0 0 2px #f4dfaa,0 4px 12px #80602b24}
.boutique-product.wearing{background:linear-gradient(150deg,#fff9df,#e9d49c)}
.boutique-product-swatch{position:relative;display:grid;place-items:center;min-height:76px;overflow:hidden;border-radius:9px;background:radial-gradient(ellipse at 35% 25%,#fff,#f6ecd5 58%,#e6d2a8);border:1px solid #e4d1a6}
.boutique-product-swatch i{display:block;width:43px;height:43px;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff9,var(--swatch-accent) 20%,var(--swatch) 68%,#32261d 130%);border:2px solid var(--swatch-accent);box-shadow:0 4px 10px #3e2d1d38,inset 0 0 0 3px #ffffff40}
.boutique-product-swatch small{position:absolute;bottom:5px;left:5px;right:5px;text-align:center;font-size:7px;letter-spacing:1px;font-weight:1000;color:#7a5c2d}
.boutique-product-name{font:700 14px Georgia,serif;line-height:1.15;color:#553a1b}
.boutique-product-detail{min-height:29px;font-size:10px;line-height:1.35;color:#786344}
.boutique-product-price{font-size:10px;color:#90651f}
.boutique-product-select{align-self:flex-start;padding:4px 8px;border-radius:20px;background:#f0dfb8;color:#6d4d1e;font-size:9px;font-weight:1000}
.boutique-product.selected .boutique-product-select{background:#d6b35f;color:#432c12}
.boutique-empty{grid-column:1/-1;padding:16px;border:1px dashed #c9ad71;border-radius:12px;text-align:center;font-size:12px}
.boutique-selected-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:14px;padding:11px;border:1px solid #c9a352;border-radius:13px;background:linear-gradient(145deg,#fff8df,#efdbad)}
.boutique-selected-copy{display:grid;gap:3px;min-width:0}
.boutique-selected-copy b{font:700 15px Georgia,serif;color:#563b1b}
.boutique-selected-copy small{font-size:9px;color:#745c37;line-height:1.3}
.boutique-selected-copy strong{font-size:10px;color:#91651e}
.boutique-selected-actions{display:grid;gap:6px;min-width:105px}
.boutique-selected-actions .button{min-height:36px;padding:6px 8px;font-size:10px;white-space:normal}
.boutique-gold-house .boutique-purchase{background:linear-gradient(#e7c35f,#ad7924);border-color:#fff0b2;box-shadow:0 3px 0 #76501b;color:#fff}
.boutique-clear{grid-column:1/-1;min-height:30px;padding:4px 8px;font-size:9px}
.boutique-gold-house .boutique-footnote{margin:9px 2px 2px;color:#786344;font-size:9px;line-height:1.4}
@media(max-width:370px){
 .boutique-luxe-header{grid-template-columns:34px minmax(0,1fr) auto;gap:5px}
 .boutique-crown{width:33px;height:34px;font-size:21px}
 .boutique-luxe-wallet{padding:6px}
 .boutique-luxe-wallet b{font-size:14px}
 .boutique-gold-house .boutique-departments{gap:3px}
 .boutique-gold-house .boutique-departments .button{font-size:8px}
 .boutique-selected-panel{grid-template-columns:minmax(0,1fr) 100px}
}
/* Boutique live try-on positioning */
.boutique-feature-art {
    position: relative;
    isolation: isolate;
}
.boutique-feature-art > img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
.boutique-feature-art > .fashion-overlay {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
    overflow: visible;
}

/* Boutique full-look picker: complete artwork swaps, no drawn garment layers or color swatches. */
#hub-content:has(.boutique-gold-house){height:100%;min-height:0;overflow:hidden!important}
body.hub-fit .hub-screen:has(.boutique-gold-house){height:100%;min-height:0;grid-template-rows:42px minmax(0,1fr)}
body.hub-fit #hub-content:has(.boutique-gold-house){height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr)}
.boutique-gold-house{height:100%;max-height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);grid-template-rows:32px minmax(0,1fr) auto;gap:6px;padding:6px;overflow:hidden}
.boutique-gold-house .boutique-luxe-header,.boutique-gold-house .boutique-department-area,.boutique-gold-house .boutique-footnote{display:none!important}
.boutique-gold-house .boutique-genders{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0;min-height:0}
.boutique-gold-house .boutique-genders .button{min-height:30px;padding:3px 5px;font-size:10px;border-radius:10px}
.boutique-look-layout{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:7px;min-width:0;min-height:0}
.boutique-gold-house .boutique-showcase{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:4px;min-width:0;min-height:0;height:100%;padding:6px;border-radius:13px;background:radial-gradient(ellipse at 70% 25%,#fff9e5,#f0d9a4 58%,#c49a5e);box-shadow:inset 0 0 0 2px #fff6dc}
.boutique-gold-house .boutique-showcase-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 4px;align-content:start;align-self:auto;min-width:0;padding:0;color:#523819}
.boutique-gold-house .boutique-showcase-copy .boutique-kicker{grid-column:1/-1;font-size:7px;letter-spacing:.7px;color:#815b24}
.boutique-gold-house .boutique-showcase-copy h3{grid-column:1/-1;margin:0;font:700 14px/1.05 Georgia,serif;color:#533716}
.boutique-gold-house .boutique-showcase-copy p{grid-column:1/-1;margin:0;font-size:8px;line-height:1.1;color:#715b39}
.boutique-gold-house .boutique-showcase-copy .boutique-clear{grid-column:1/-1;min-height:22px;margin:2px 0 0;padding:2px 4px;font-size:8px}
.boutique-gold-house .boutique-feature-art{grid-row:2;min-height:0;height:100%;border:1px solid #fff7d9;border-radius:10px;background:radial-gradient(ellipse,#fffdf6,#f5e6c5);box-shadow:0 3px 9px #50391920}
.boutique-gold-house .boutique-feature-art img{width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center bottom;filter:none}
.boutique-gold-house .boutique-products-area{grid-column:2;grid-row:1;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:5px;margin:0;min-width:0;min-height:0}
.boutique-gold-house .boutique-section-title{display:grid;gap:2px;margin:0;padding:0 2px 4px;border-color:#d9c18f}
.boutique-gold-house .boutique-section-title span{font-size:7px;letter-spacing:.8px}
.boutique-gold-house .boutique-section-title b{font:700 13px/1.05 Georgia,serif;color:#67461f}
.boutique-gold-house .boutique-product-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:6px;min-height:0}
.boutique-gold-house .boutique-product-grid:has(.boutique-product:nth-child(2)){grid-template-rows:repeat(2,minmax(0,1fr))}
.boutique-gold-house .boutique-product{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;column-gap:6px;row-gap:2px;align-items:center;min-width:0;min-height:0;padding:5px;border:1px solid #d8c394;border-radius:11px;background:linear-gradient(150deg,#fffef8,#f2e6cc);color:#4d391d;text-align:left;box-shadow:0 2px 6px #65471c12}
.boutique-gold-house .boutique-product.selected{border:2px solid #bd8b2d;padding:4px;box-shadow:0 0 0 2px #f4dfaa,0 3px 8px #80602b20}
.boutique-gold-house .boutique-product.wearing{background:linear-gradient(150deg,#fff9df,#e9d49c)}
.boutique-gold-house .boutique-product-swatch{grid-column:1;grid-row:1/5;display:block;width:100%;height:100%;min-height:0;padding:0;overflow:hidden;border:0;border-radius:8px;background:linear-gradient(145deg,#fff9e7,#e8d9bc)}
.boutique-gold-house .boutique-look-thumb img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}
.boutique-gold-house .boutique-product-name{grid-column:2;grid-row:1;font:700 10px/1.08 Georgia,serif;color:#553a1b}
.boutique-gold-house .boutique-product-detail{grid-column:2;grid-row:2;min-height:0;font-size:8px;line-height:1.18;color:#786344}
.boutique-gold-house .boutique-product-price{grid-column:2;grid-row:3;font-size:8px;color:#90651f}
.boutique-gold-house .boutique-product-select{grid-column:2;grid-row:4;justify-self:start;padding:2px 5px;border-radius:10px;background:#f0dfb8;color:#6d4d1e;font-size:7px;font-weight:900}
.boutique-gold-house .boutique-selected-panel{grid-column:1/-1;grid-row:3;grid-template-columns:minmax(0,1fr) 112px;gap:4px;margin:0;padding:5px;border-radius:10px}
.boutique-gold-house .boutique-selected-copy{gap:2px}
.boutique-gold-house .boutique-selected-copy>span{font-size:7px;letter-spacing:.7px}
.boutique-gold-house .boutique-selected-copy b{font-size:10px;line-height:1.1}
.boutique-gold-house .boutique-selected-copy small{font-size:7px;line-height:1.1}
.boutique-gold-house .boutique-selected-copy strong{font-size:8px}
.boutique-gold-house .boutique-selected-actions{display:grid;gap:3px;min-width:0}
.boutique-gold-house .boutique-selected-actions [data-action="preview-boutique-piece"]{display:none}
.boutique-gold-house .boutique-selected-actions .button{min-width:0;min-height:28px;padding:3px 4px;font-size:8px;line-height:1.05;white-space:normal}
.boutique-gold-house .boutique-selected-panel .boutique-clear{grid-column:1/-1;min-height:22px;padding:2px 4px;font-size:8px}
@media(max-width:390px){
 .boutique-gold-house{grid-template-rows:30px minmax(0,1fr) auto;padding:5px;gap:5px}
 .boutique-look-layout{grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:5px}
 .boutique-gold-house .boutique-product{grid-template-columns:40px minmax(0,1fr);column-gap:4px;padding:4px}
 .boutique-gold-house .boutique-product-name{font-size:9px}
 .boutique-gold-house .boutique-product-detail{font-size:7px}
 .boutique-gold-house .boutique-selected-panel{grid-template-columns:minmax(0,1fr) 98px}
}

/* Boutique occupies the available screen area; screen-fit otherwise paginates its single showroom card. */
#hub-content:has(.boutique-gold-house){height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}
#hub-content:has(.boutique-gold-house)>.screen-page:has(.boutique-gold-house){height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important}
#hub-content:has(.boutique-gold-house)>.screen-pager{display:none!important}
.boutique-gold-house .boutique-look-layout{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:7px;min-width:0;min-height:0;height:100%}
.boutique-gold-house .boutique-feature-art>.fashion-overlay{display:none!important}

/* Match Frenzy full-body characters across the Boutique and website games. */
.match-frenzy-portrait{display:inline-flex!important;align-items:center;justify-content:center;position:relative;overflow:hidden;border-radius:10px;background:#10253d;vertical-align:middle}
.match-frenzy-portrait>img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;animation:match-frenzy-idle 2.2s ease-in-out infinite}
.avatar .match-frenzy-portrait{width:100%;height:100%;margin:0}
.avatar .match-frenzy-portrait>img{animation-duration:2.8s}
.selected-avatar .match-frenzy-portrait{width:40px;height:48px}
.dance .match-frenzy-portrait{width:120px;height:142px;overflow:visible;background:transparent}
.dance .match-frenzy-portrait>img{border-radius:9px;animation-duration:1.25s}
.page-heading:has(#hub-player-look){display:flex;align-items:center;gap:6px}
#hub-title{min-width:0;flex:1}
.hub-player-look{flex:none;width:38px;height:42px;margin:0;overflow:hidden;border-radius:8px;background:#10253d;box-shadow:0 2px 5px #153c2a55}
.hub-player-look[hidden]{display:none!important}
.hub-player-look img{display:block;width:100%;height:100%;object-fit:contain;animation:match-frenzy-idle 2.1s ease-in-out infinite}
body.playing .game-screen{grid-template-rows:32px 46px 78px auto minmax(0,1fr) 36px!important}
.game-character-row{display:flex;align-items:center;justify-content:center;gap:clamp(42px,18vw,105px);min-width:0;min-height:0;padding:2px 12px;border:1px solid #d4e7bd;border-radius:14px;background:linear-gradient(110deg,#164c43dd,#246b58e8,#164c43dd);overflow:hidden}
.game-character-row.solo{gap:0}
.game-avatar{display:flex;flex:0 1 92px;flex-direction:column;align-items:center;justify-content:flex-end;gap:1px;width:92px;height:74px;min-width:0;margin:0;animation:match-frenzy-idle 2.1s ease-in-out infinite}
.game-avatar.rival{animation-delay:-1s}
.game-avatar img{display:block;max-width:100%;width:auto;height:57px;object-fit:contain;border-radius:5px;box-shadow:0 2px 6px #061b24aa}
.game-avatar figcaption{font-size:7px;line-height:1;font-weight:900;letter-spacing:.7px;color:#fff6d7;text-shadow:0 1px 2px #10251b}
.game-character-row.solo .game-avatar{flex-basis:104px;width:104px}
@keyframes match-frenzy-idle{0%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-3px) rotate(-1deg)}65%{transform:translateY(0) rotate(1deg)}}
body.reduce-motion .match-frenzy-portrait>img,body.reduce-motion .hub-player-look img,body.reduce-motion .game-avatar{animation:none!important}
@media(prefers-reduced-motion:reduce){.match-frenzy-portrait>img,.hub-player-look img,.game-avatar{animation:none!important}}
@media(max-width:390px){body.playing .game-screen{grid-template-rows:30px 42px 70px auto minmax(0,1fr) 34px!important}.game-character-row{gap:40px}.game-avatar{height:66px}.game-avatar img{height:50px}}

/* Keep every current Match Frenzy outfit visible on one Boutique screen. */
.boutique-gold-house .boutique-product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:4px!important;min-height:0!important}
.boutique-gold-house .boutique-product{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto auto auto auto!important;column-gap:0!important;row-gap:1px!important;align-items:center!important;padding:3px!important;text-align:center!important}
.boutique-gold-house .boutique-product-swatch{grid-column:1!important;grid-row:1!important;width:100%!important;height:100%!important;max-height:51px!important;min-height:0!important;padding:0!important}
.boutique-gold-house .boutique-look-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.boutique-gold-house .boutique-product-name{grid-column:1!important;grid-row:2!important;justify-self:center!important;font-size:9px!important;line-height:1.05!important;text-align:center!important}
.boutique-gold-house .boutique-product-detail{grid-column:1!important;grid-row:3!important;min-height:0!important;font-size:7px!important;line-height:1.05!important;text-align:center!important}
.boutique-gold-house .boutique-product-price{grid-column:1!important;grid-row:4!important;justify-self:center!important;font-size:7px!important;line-height:1!important}
.boutique-gold-house .boutique-product-select{grid-column:1!important;grid-row:5!important;justify-self:center!important;padding:1px 4px!important;font-size:7px!important;line-height:1!important}
@media(max-height:700px){.boutique-gold-house .boutique-product-swatch{max-height:45px!important}.boutique-gold-house .boutique-product{row-gap:0!important;padding:2px!important}.boutique-gold-house .boutique-product-detail{font-size:6px!important}}
/* Fit the complete Match Frenzy figure in the Boutique showcase. */
.boutique-gold-house .boutique-feature-art{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.boutique-gold-house .boutique-feature-art>img{position:relative!important;inset:auto!important;display:block!important;width:auto!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.boutique-gold-house .boutique-product-swatch{max-height:58px!important}
.boutique-gold-house .boutique-product-detail{display:none!important}
@media(max-height:700px){.boutique-gold-house .boutique-product-swatch{max-height:54px!important}}

/* Hair color uses full character previews so each choice stays recognizable. */
.boutique-view-switch{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0 0 4px}
.boutique-view-switch .button{min-width:0!important;min-height:25px!important;padding:3px 5px!important;border-radius:8px!important;font-size:9px!important;line-height:1!important}
.boutique-product-grid.hair-color-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:4px!important}
.hair-color-option{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:2px;min-width:0;min-height:0;padding:3px;border:1px solid #c6a15d;border-radius:10px;background:linear-gradient(#fff9e8,#ead5aa);box-shadow:0 2px 0 #a98342;color:#563b1e;overflow:hidden}
.hair-color-option.selected{border:2px solid #f0be3e;background:linear-gradient(#fff3c5,#e6bf65);box-shadow:0 2px 0 #9c7227,0 0 0 1px #fff8d9}
.hair-color-preview{display:block;width:100%;height:100%;min-height:0;overflow:hidden;border-radius:7px;background:#10253d}
.hair-color-preview img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;animation:none!important}
.hair-color-name{display:block;font-size:8px;line-height:1.05;font-weight:900;text-align:center;white-space:nowrap}

/* Mobile game character setup: three ordered steps using complete avatar art. */
body.hub-fit .hub-screen:has(.game-avatar-setup){height:100%;min-height:0;grid-template-rows:42px minmax(0,1fr);overflow:hidden}
#hub-content:has(.game-avatar-setup){height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr);overflow:hidden}
.game-avatar-setup{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:6px;padding:7px;overflow:hidden;border-radius:16px;background:linear-gradient(145deg,#fff7e5,#f0dbb0);color:#45363c}
.game-avatar-setup-heading{display:grid;gap:2px;text-align:center}
.game-avatar-setup-heading>span{font-size:9px;font-weight:1000;letter-spacing:1.4px;color:#ad6937}
.game-avatar-setup-heading h3{margin:0;font:700 18px/1.05 Georgia,serif;color:#513448}
.game-avatar-setup-heading p{margin:0;font-size:10px;line-height:1.2;color:#765d5b}
.game-avatar-current{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:8px;min-height:68px;padding:5px 8px;border:1px solid #d5b875;border-radius:12px;background:linear-gradient(110deg,#fffdf4,#f6e7c4)}
.game-avatar-current figure{height:58px;margin:0;overflow:hidden;border-radius:8px;background:#10253d}
.game-avatar-current img{display:block;width:100%;height:100%;object-fit:contain;animation:match-frenzy-idle 2.2s ease-in-out infinite}
.game-avatar-current div{display:grid;gap:2px;min-width:0}
.game-avatar-current small{font-size:7px;font-weight:900;letter-spacing:1px;color:#a16b38}
.game-avatar-current b{font:700 12px/1.1 Georgia,serif;color:#50364b}
.game-avatar-current span{font-size:9px;color:#785e5a}
.game-avatar-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px;min-width:0;min-height:0;overflow:hidden}
.game-avatar-choice-grid.hair-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
.game-avatar-choice-grid.body-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:4px}
.game-avatar-choice{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:2px;min-width:0;min-height:0;padding:3px;border:1px solid #c9ad78;border-radius:10px;background:linear-gradient(#fffdf7,#f2e4c7);color:#523a48;overflow:hidden;box-shadow:0 2px 0 #b79a68}
.game-avatar-choice.selected{border:2px solid #e3b340;background:linear-gradient(#fff4c5,#e8ca79);box-shadow:0 2px 0 #aa7d27,0 0 0 1px #fff8d9}
.game-avatar-choice-art{display:block;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;border-radius:7px;background:#10253d}
.game-avatar-choice-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;animation:none!important}
.game-avatar-choice b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:9px;line-height:1.05;font-weight:900}
.body-choice-grid .game-avatar-choice b{padding-right:9px;font-size:7px}
.body-choice-grid .game-avatar-choice-art{border-radius:6px}
.game-body-swatch{position:absolute;right:4px;bottom:4px;width:8px;height:8px;border:1px solid #fff;border-radius:50%;background:var(--body-swatch);box-shadow:0 0 0 1px #614a45}
.game-avatar-setup-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:34px}
.game-avatar-setup-actions>div{display:flex;justify-content:flex-end;gap:5px;min-width:0}
.game-avatar-setup-actions .button{min-width:84px;min-height:32px;padding:4px 8px;border-radius:10px;font-size:10px;line-height:1.05;white-space:normal}
.game-start-avatar{width:72px;height:86px;margin:0 auto 6px;overflow:hidden;border-radius:12px;background:#10253d;box-shadow:0 3px 12px #07293255}
.game-start-avatar img{display:block;width:100%;height:100%;object-fit:contain;animation:match-frenzy-idle 1.5s ease-in-out infinite}
.avatar-victory-stage{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:10px;width:min(290px,82vw);height:154px;margin:0 auto 7px;overflow:hidden;border-radius:16px;background:radial-gradient(ellipse at 50% 100%,#f4d89e,#d6eec4 72%,#e3f7df)}
.avatar-victory-character{position:relative;z-index:1;display:flex;flex:0 1 82px;flex-direction:column;align-items:center;justify-content:flex-end;width:82px;height:140px;margin:0;overflow:hidden;border-radius:10px;background:#10253d;box-shadow:0 3px 10px #18334155}
.avatar-victory-character img{display:block;width:100%;height:calc(100% - 16px);object-fit:contain}
.avatar-victory-character figcaption{width:100%;padding:3px 2px;text-align:center;background:#15344b;color:#fff2c6;font-size:7px;line-height:1;font-weight:1000;letter-spacing:1px}
.avatar-victory-player{animation:avatar-victory-hop .72s ease-in-out infinite}
.avatar-victory-rival{animation:avatar-victory-hop .9s ease-in-out -0.34s infinite}
.avatar-victory-spark,.avatar-victory-stars{position:absolute;z-index:2;text-shadow:0 2px 4px #563c2c55}
.avatar-victory-spark{top:8px;left:calc(50% - 12px);font-size:21px;animation:avatar-victory-spark 1s ease-in-out infinite}
.avatar-victory-stars{right:8px;bottom:22px;font-size:13px;animation:avatar-victory-spark 1.1s ease-in-out -0.3s infinite}
@keyframes avatar-victory-hop{0%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-10px) rotate(-2deg)}70%{transform:translateY(0) rotate(1deg)}}
@keyframes avatar-victory-spark{0%,100%{transform:scale(.85);opacity:.72}50%{transform:scale(1.18);opacity:1}}
body.reduce-motion .game-avatar-current img,body.reduce-motion .game-start-avatar img,body.reduce-motion .avatar-victory-character,body.reduce-motion .avatar-victory-spark,body.reduce-motion .avatar-victory-stars{animation:none!important}
@media(max-height:700px){.game-avatar-setup{gap:4px;padding:5px}.game-avatar-current{min-height:60px}.game-avatar-current figure{height:50px}.game-avatar-choice{padding:2px}.game-avatar-choice b{font-size:8px}.game-avatar-setup-actions .button{min-height:29px}.avatar-victory-stage{height:138px}.avatar-victory-character{height:126px}}
@media(prefers-reduced-motion:reduce){.game-avatar-current img,.game-start-avatar img,.avatar-victory-character,.avatar-victory-spark,.avatar-victory-stars{animation:none!important}}

/* Complete Match Frenzy outfit gallery in the Boutique. */
.boutique-avatar-store{height:100%!important;min-height:0!important;max-height:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:24px 28px minmax(0,1fr) auto!important;gap:5px!important;padding:6px!important;overflow:hidden!important}
.boutique-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;padding:0 3px;color:#503746}
.boutique-gallery-header>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:1000;letter-spacing:1px}
.boutique-gallery-header>b{flex:none;font-size:9px;white-space:nowrap}
.boutique-avatar-store .boutique-view-switch{grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:0!important}
.boutique-avatar-store .boutique-avatar-grid{grid-column:1;grid-row:3;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:5px!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
.boutique-avatar-card{display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;align-content:stretch;gap:2px;min-width:0;min-height:0;padding:4px;border:1px solid #c6a45c;border-radius:10px;background:linear-gradient(155deg,#173653,#0b2238);box-shadow:0 2px 0 #775c36;color:#fff3cf;overflow:hidden;text-align:center}
.boutique-avatar-card.selected{border:2px solid #f0c044;background:linear-gradient(155deg,#244a68,#102840);box-shadow:0 2px 0 #a17b28,0 0 0 1px #fff4cc}
.boutique-avatar-card.wearing{border-color:#76bd79}
.boutique-avatar-card-art{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;border-radius:6px;background:#10253d}
.boutique-avatar-card-art img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;animation:none!important}
.boutique-avatar-card>b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(8px,2.1vw,10px);line-height:1.05;font-weight:1000}
.boutique-avatar-card>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d6d5cf;font-size:7px;line-height:1}
.boutique-avatar-card>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5cb54;font-size:7px;line-height:1;font-weight:1000}
.boutique-avatar-store .boutique-selected-panel{grid-column:1;grid-row:4;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center;gap:5px!important;min-height:0!important;margin:0!important;padding:5px!important;border-radius:10px!important}
.boutique-avatar-store .boutique-selected-copy{gap:2px!important;min-width:0}
.boutique-avatar-store .boutique-selected-copy>span{font-size:7px!important}
.boutique-avatar-store .boutique-selected-copy>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px!important;line-height:1.05}
.boutique-avatar-store .boutique-selected-copy>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px!important}
.boutique-avatar-store .boutique-selected-copy>strong{font-size:8px!important;line-height:1}
.boutique-avatar-store .boutique-selected-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:3px!important;min-width:90px}
.boutique-avatar-store .boutique-selected-actions [data-action="preview-boutique-piece"]{display:none!important}
.boutique-avatar-store .boutique-selected-actions .button{min-width:0!important;min-height:30px!important;padding:3px 6px!important;font-size:8px!important;line-height:1.05!important;white-space:normal}
.boutique-avatar-store .boutique-clear{min-width:52px!important;min-height:28px!important;padding:3px 5px!important;font-size:7px!important;line-height:1.05}
.boutique-avatar-store .hair-color-option{min-height:0}
@media(max-width:390px){.boutique-avatar-store{gap:4px!important;padding:5px!important}.boutique-avatar-store .boutique-avatar-grid{gap:4px!important}.boutique-avatar-card{padding:3px;gap:1px}.boutique-avatar-card>small{display:none}.boutique-avatar-store .boutique-selected-actions{min-width:82px}}
@media(max-height:700px){.boutique-avatar-store{grid-template-rows:22px 26px minmax(0,1fr) auto!important;gap:4px!important;padding:5px!important}.boutique-avatar-card{padding:3px}.boutique-avatar-store .boutique-selected-panel{padding:4px!important}.boutique-avatar-store .boutique-avatar-grid.hair-color-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}/* Keep one shared player wardrobe across the mobile-sized game screens. */
.boutique-avatar-store .boutique-view-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.boutique-avatar-store .boutique-avatar-grid.frog-color-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important}
.frog-color-option{min-height:0!important}
.frog-color-preview{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;overflow:hidden;border-radius:7px;background:#10253d}
.frog-color-preview>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;animation:none!important}
.frog-color-preview .game-body-swatch{width:9px;height:9px;right:3px;bottom:3px}
.boutique-avatar-card.playing{border-color:#ffdc66;box-shadow:0 0 0 1px #fff6cd,0 2px 0 #a17b28}
.boutique-avatar-store .boutique-selected-panel{grid-template-columns:44px minmax(0,1fr) auto!important;gap:5px!important;min-height:58px!important}
.boutique-live-avatar{display:grid;grid-template-rows:minmax(0,1fr) auto;width:44px;height:54px;margin:0;overflow:hidden;border-radius:7px;background:#10253d}
.boutique-live-avatar img{display:block;width:100%;height:100%;object-fit:contain;animation:match-frenzy-idle 2.1s ease-in-out infinite}
.boutique-live-avatar figcaption{padding:2px 1px;text-align:center;background:#15344b;color:#fff2c6;font-size:5px;line-height:1;font-weight:1000;letter-spacing:.3px}
.boutique-avatar-store .boutique-apply{min-width:84px!important;max-width:116px;min-height:29px!important;padding:3px 5px!important;font-size:8px!important;line-height:1.05!important;white-space:normal}
.boutique-avatar-store .boutique-selected-copy>strong{font-size:7px!important;line-height:1.05}
@media(max-width:390px){.boutique-avatar-store .boutique-view-switch .button{font-size:8px!important;padding:2px!important}.boutique-avatar-store .boutique-avatar-grid.frog-color-grid{gap:3px!important}.frog-color-option{padding:2px!important}.boutique-avatar-store .boutique-apply{min-width:74px!important;font-size:7px!important}.boutique-live-avatar{width:40px;height:50px}}
@media(prefers-reduced-motion:reduce){.boutique-live-avatar img{animation:none!important}}
.boutique-outfit-heading{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:0 5px;color:#503746}
.boutique-outfit-heading>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:1000}
.boutique-outfit-heading>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px;font-weight:800}
.boutique-avatar-store .boutique-player-status{display:flex;align-items:center;justify-content:center;min-width:0!important;max-width:108px;min-height:29px!important;padding:3px 5px!important;background:#173e56!important;color:#fff2c6!important;font-size:7px!important;font-weight:1000!important;line-height:1.05!important;white-space:normal;text-align:center}

/* Wardrobe categories; transparent art windows keep the frog art unboxed. */
.boutique-avatar-store .boutique-view-switch{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.boutique-avatar-store .boutique-view-switch .button{font-size:7px!important;padding:2px 3px!important}
.boutique-avatar-card-art{background:transparent!important}
.boutique-avatar-card-art>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%}
.boutique-live-avatar{background:transparent!important}
@media(max-width:390px){.boutique-avatar-store .boutique-view-switch .button{font-size:6.5px!important;padding:2px 1px!important}}

/* Show shoes and accessories on the frog in the Boutique and in matches. */
.fashion-avatar-art{position:relative;display:inline-block;min-width:0;min-height:0;line-height:0;overflow:visible}
.boutique-avatar-card-art>.fashion-avatar-art,.boutique-live-avatar>.fashion-avatar-art{display:block;width:100%;height:100%}
.fashion-avatar-art>.mobile-avatar-art{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;box-shadow:none!important}
.fashion-avatar-art>.fashion-overlay{display:block!important;position:absolute!important;inset:0!important;z-index:2;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center bottom!important;pointer-events:none!important;overflow:visible!important}
.game-avatar .fashion-avatar-art{height:57px;max-width:100%;flex:0 1 auto}
.game-avatar .fashion-avatar-art>.mobile-avatar-art{width:auto;height:100%;max-width:100%}
@media(max-width:390px){.game-avatar .fashion-avatar-art{height:50px}}

/* A rewarded extra-play button shares the frog wallet's dark blue pill style. */
.topbar-wallet-group{display:flex;align-items:center;gap:6px;margin-left:auto;min-width:0}
.topbar-wallet-group .wallet{margin-left:0}
.topbar-wallet-group .extra-plays{display:flex;align-items:center;justify-content:center;gap:5px;min-height:46px;padding:7px 9px;font-size:10px;line-height:1;white-space:nowrap}
.extra-plays-video{width:14px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.extra-plays-video .play-triangle{fill:currentColor;stroke:none}
.extra-plays #reward-plays-count{font-size:12px;min-width:10px}
body.hub-fit .topbar-wallet-group .extra-plays{min-height:36px;padding:5px 7px;font-size:9px}
@media(max-width:370px){.topbar .avatar,.topbar .gear{width:36px;height:36px;font-size:22px}.topbar-wallet-group{gap:4px}.topbar-wallet-group .extra-plays{gap:3px;padding:5px;font-size:8px}.topbar-wallet-group .wallet:not(.extra-plays){padding:6px 8px;font-size:14px}}

/* Nature Word Search uses the Froggy Faceoff green title treatment. */
.page-heading h2.wordsearch-title{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:0;padding:6px 9px;border:2px solid #dcff9a;border-radius:15px;background:linear-gradient(180deg,#a7ef43 0%,#61cf28 52%,#299d28 100%);box-shadow:inset 0 3px 5px #e8ffad,0 4px 0 #176a24;color:#fff7c5;font-size:clamp(15px,4.5vw,23px);font-weight:1000;line-height:1.15;letter-spacing:-.025em;text-align:center;text-shadow:0 2px 0 #1b641d,0 0 4px #19461d;white-space:nowrap}
.page-heading h2.wordsearch-title .frog-letter{position:relative;display:inline-grid;place-items:center;flex:none;width:.95em;height:.95em;margin:0 .015em;border:1px solid #e5ff9e;border-radius:47% 47% 43% 43%;background:linear-gradient(150deg,#e2ff6d,#73d83d 58%,#31a744);box-shadow:inset 0 2px 2px #ffffffbb,0 1px 1px #155d2b;color:#fffbe0;font-size:.82em;line-height:1;text-shadow:0 1px 2px #17652a}
.page-heading h2.wordsearch-title .frog-letter:before,.page-heading h2.wordsearch-title .frog-letter:after{content:"";position:absolute;top:-.14em;width:.26em;height:.26em;border:1px solid #d5f68e;border-radius:50%;background:radial-gradient(circle at 50% 45%,#183d2b 0 18%,#fffbdc 22% 70%,#9ad74d 74%);box-shadow:0 1px 1px #1c6b2f}
.page-heading h2.wordsearch-title .frog-letter:before{left:.05em}.page-heading h2.wordsearch-title .frog-letter:after{right:.05em}
/* Match the actual Froggy Faceoff logo: two dimensional embossed title lettering and the same logo frogs. */
.page-heading h2.wordsearch-title{position:relative;flex:1;min-width:0;height:52px;margin:0;padding:4px 0 0;display:grid;grid-template-rows:1fr 1fr;align-content:center;justify-items:center;border:0;border-radius:0;background:transparent;box-shadow:none;font-family:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;font-size:clamp(15px,4.7vw,25px);font-weight:1000;line-height:.82;letter-spacing:-.045em;text-align:center;white-space:nowrap}
.page-heading h2.wordsearch-title .wordsearch-logo-green,.page-heading h2.wordsearch-title .wordsearch-logo-gold{position:relative;z-index:1;display:block;-webkit-text-stroke:1.5px #103e1a;paint-order:stroke fill;filter:drop-shadow(0 2px 0 #123b1b) drop-shadow(0 3px 1px #123b1b99)}
.page-heading h2.wordsearch-title .wordsearch-logo-green{background:linear-gradient(180deg,#efff9c 0%,#b6ff21 28%,#4fc900 72%,#299523 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 -1px 0 #f0ff9a}
.page-heading h2.wordsearch-title .wordsearch-logo-gold{background:linear-gradient(180deg,#fff6a0 0%,#ffda37 32%,#ff9b08 76%,#e76a00 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 -1px 0 #fff1a0}
.page-heading h2.wordsearch-title .wordsearch-logo-frog{position:absolute;z-index:2;top:-5px;width:38px;height:29px;object-fit:contain;filter:drop-shadow(0 2px 1px #173e20aa);pointer-events:none}
.page-heading h2.wordsearch-title .wordsearch-logo-frog-green{left:26%}.page-heading h2.wordsearch-title .wordsearch-logo-frog-purple{right:26%}
/* Word Search: size the app frame to iOS Safari's visible viewport in browser and standalone modes. */
@media(max-width:679px){
  body.wordsearch-screen.hub-fit .pond-shell{
    height:100vh!important;
    height:100svh!important;
    height:var(--visible-height,100dvh)!important;
    max-height:var(--visible-height,100dvh)!important;
    min-height:0!important;
    box-sizing:border-box!important;
  }
}
/* Froggy Boutique preview: clean static figurines */
.boutique-avatar-store .boutique-avatar-card-art {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.boutique-avatar-store .boutique-avatar-card-art img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    object-fit: contain !important;
}

.boutique-avatar-store .boutique-avatar-card {
    transition: none !important;
    animation: none !important;
}


/* Collectible frog Boutique preview */
.boutique-avatar-store .boutique-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: minmax(225px, auto) !important;
    overflow-y: auto !important;
    align-content: start !important;
    gap: 10px !important;
}

.boutique-avatar-store .boutique-avatar-card {
    min-height: 225px !important;
    grid-template-rows: minmax(145px, 1fr) auto auto auto !important;
    padding: 8px !important;
    border-radius: 14px !important;
}

.boutique-avatar-store .boutique-avatar-card-art {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.boutique-avatar-store .boutique-avatar-card-art img {
    object-fit: contain !important;
    animation: none !important;
    transition: none !important;
}

.boutique-avatar-store .boutique-avatar-card > b {
    font-size: 13px !important;
    white-space: normal !important;
}

.boutique-avatar-store .boutique-avatar-card > strong {
    color: #ffd45e !important;
    font-size: 14px !important;
    font-weight: 1000 !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    text-shadow: 1px 2px 0 #694619;
}


/* Mobile collectible gallery - compact, no scrolling */
@media (max-width: 679px) {

  .boutique-avatar-store .boutique-avatar-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    gap: 5px !important;
    overflow: hidden !important;
    min-height: 0 !important;
    align-content: stretch !important;
  }

  .boutique-avatar-store .boutique-avatar-card {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto auto auto !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 4px !important;
    gap: 2px !important;
    border-radius: 10px !important;
  }

  .boutique-avatar-store .boutique-avatar-card[hidden] {
    display: none !important;
  }

  .boutique-avatar-store .boutique-avatar-card-art {
    min-height: 0 !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .boutique-avatar-store .boutique-avatar-card-art img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .boutique-avatar-store .boutique-avatar-card > b {
    font-size: 10px !important;
    line-height: 1.05 !important;
  }

  .boutique-avatar-store .boutique-avatar-card > small {
    font-size: 7px !important;
    line-height: 1 !important;
  }

  .boutique-avatar-store .boutique-avatar-card > strong {
    font-size: 11px !important;
    line-height: 1.1 !important;
    color: #ffd45e !important;
    font-weight: 1000 !important;
    text-shadow: 1px 1px 0 #694619 !important;
  }
}


/* Boutique: independent figurine cards */
.boutique-avatar-store.boutique-gold-house {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

.boutique-avatar-store .boutique-avatar-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.boutique-avatar-store .boutique-avatar-card > strong {
    order: -1 !important;
    color: #ffdc61 !important;
    font-weight: 1000 !important;
    font-size: 12px !important;
    text-align: center !important;
    padding: 3px 0 !important;
}

.boutique-avatar-store .boutique-avatar-card-art {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

