/* Original wooden garden theme. All scenery is locally bundled SVG. */
:root{--ink:#56321c;--muted:#886342;--cream:#fae6bc;--line:#d4b17b;--green:#418b30;--gold:#e5b05d;background:#2b1b13;color:var(--ink);font-family:Trebuchet MS,Segoe UI,sans-serif}
body{min-height:100dvh;background:#2b1b13}.header{position:absolute;z-index:5;top:0;left:0;width:100%;max-width:none;height:90px;padding:14px 24px;border:0;color:#ffe3a6;gap:14px}.brand{font-size:22px;color:#fff0bc;text-shadow:0 2px #4c2718}.brand-mark{background:linear-gradient(#bb792e,#753b19);border:2px solid #ca9548;box-shadow:0 3px #422114;color:#ffe1a0}.brand-sub{font-size:8px;letter-spacing:3px}.header nav{position:absolute;left:50%;transform:translateX(-50%);height:auto;gap:5px;padding:5px;border:1px solid #d99c3e44;border-radius:25px;background:#381d13bb;backdrop-filter:blur(8px)}.header .nav-link{height:auto;color:#e8c897;font-size:12px;padding:10px 15px;border-radius:20px}.header .nav-link.active{color:#fff1cb;background:#a3602e}.nav-link.active:after{display:none}.header-actions{gap:10px}.header-actions .icon-button,.wood-round,.stage-icon,.modal-close{border:2px solid #cb8a3e;background:linear-gradient(155deg,#bf7b32 3%,#9d5623 55%,#6c3317);color:#ffe1a1;box-shadow:0 4px 0 #4b2817,0 6px 12px #140e1466,inset 0 1px 0 #f8c77577;transition:filter .15s,transform .15s}.header-actions .icon-button{width:48px;height:48px}.header-actions .icon-button svg{width:23px;height:23px;stroke-width:2.1}.header-actions .icon-button:hover,.wood-round:hover,.stage-icon:hover{filter:brightness(1.17)}.header #profile-button{color:#ffe1a1}.header .sound-toggle,.header .effects-toggle,.mobile-help,.mobile-leagues,.mobile-home{display:none}.main{max-width:none;margin:0;padding:0}.main>footer{display:none}.home-view{position:relative;isolation:isolate;height:100dvh;min-height:760px;overflow:hidden;padding:0;background:#6d4527 url('./temple.svg') center/cover no-repeat;text-align:center;color:#ffe4ac}.home-view:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(#160d1333,transparent 35%,transparent 70%,#28181255);pointer-events:none}.home-logo{position:absolute;top:18%;left:50%;transform:translateX(-50%) rotate(-2deg);width:480px;text-align:center;filter:drop-shadow(0 6px 2px #3c1b16aa)}.home-logo>p{font-size:10px;font-weight:bold;letter-spacing:5px;color:#ffe7ad;margin-bottom:5px}.home-logo h1{margin:0;font-family:Georgia,serif;font-size:68px;font-weight:900;letter-spacing:1px;line-height:.95;color:#ffe9b9;text-shadow:0 3px #a35d2e,0 6px #733718,3px 6px #733718,-3px 5px #733718;-webkit-text-stroke:1px #85431f}.home-logo h1>span{display:block;font-size:50px;font-style:italic;letter-spacing:-2px;color:#fff3d1;margin-bottom:9px}.logo-leaf{position:absolute;left:67px;top:25px;font-size:55px;color:#83a347;text-shadow:1px 3px #224f25;transform:rotate(-15deg)}.logo-ribbon{display:inline-block;padding:8px 35px;font-weight:bold;letter-spacing:1px;font-size:12px;background:linear-gradient(#a9632c,#6b371d);border:1px solid #e5ad59;border-radius:3px 3px 30px 30px;color:#f8dbaa;margin-top:16px;box-shadow:0 3px #4f2516}.home-floating{position:absolute;top:47%;width:170px;transform:translateY(-12%);filter:drop-shadow(0 8px 8px #30160d66)}.home-guide{left:16%}.home-league-display{right:16%}.home-floating button{display:flex;flex-direction:column;align-items:center;width:100%;padding:0 0 14px;border-radius:85px 85px 16px 16px;border:3px solid #c17e3b;background:linear-gradient(90deg,#643319,#9d5926 45%,#733c1f);color:#ffdda0;box-shadow:inset 0 0 0 2px #e7aa5b55,0 6px #492515}.home-floating button:hover{filter:brightness(1.1)}.home-floating strong{display:block;font-size:18px;margin-top:9px;text-shadow:0 2px #522414}.home-floating span:not(.trophy-art):not(.scroll-art){font-size:10px;margin-top:7px;color:#edc98f}.home-floating small{font-size:10px;margin-top:9px;color:#ffe3a9}.scroll-art{display:grid;place-items:center;width:110px;height:130px;color:#53752d;font:80px Georgia,serif;background:linear-gradient(90deg,#dfc58c,#fff0c5 25%,#fae2a4 80%,#cca66d);border:4px solid #a46d30;border-radius:10px;transform:rotate(-7deg);margin-top:-20px;box-shadow:2px 6px #5a351c}.trophy-art{display:block;width:120px;height:142px;margin-top:-27px}.trophy-art svg{width:100%;height:100%;stroke:none;overflow:visible}.home-play-dock{position:absolute;bottom:7%;left:50%;transform:translateX(-50%);width:min(420px,80%);background:linear-gradient(#522b1999,#291c13cc);padding:15px 23px 13px;border:1px solid #db9d4a55;border-radius:22px;backdrop-filter:blur(4px);box-shadow:0 6px 20px #28180f44}.home-mode-label{font-size:9px;letter-spacing:2px;color:#f2ce8b;margin-bottom:9px}.home-menu{display:grid;grid-template-columns:1fr 1fr;gap:9px}.home-menu>button{display:flex;align-items:center;justify-content:center;min-height:41px;padding:9px 5px;border:1px solid #d9a55977;border-radius:9px;background:#c5853c22;color:#ffe1a3;text-align:center;gap:7px}.home-menu>button:hover{background:#c5853c66}.home-menu>button svg{width:20px;height:20px}.home-menu>button b{font:24px Georgia,serif;color:#ffe3a3}.home-menu>button>span{color:#ffe3a3!important;font-size:12px!important}.primary-button{background:linear-gradient(#72b846,#398d30 65%,#297727);box-shadow:0 5px #20511e,inset 0 2px 0 #c1e87899;border:2px solid #a1c867;color:#fff8cf;font-size:17px;font-weight:bold;text-shadow:0 2px #28551d;border-radius:30px;padding:14px 20px;transition:filter .15s}.primary-button:hover{background:linear-gradient(#83c455,#409d35 65%,#2d832c);filter:brightness(1.05)}.primary-button:active{transform:translateY(2px)}.primary-button svg{width:20px;height:20px;stroke-width:2}.home-play-dock .primary-button{width:100%;font-size:24px;justify-content:center;gap:15px;padding:14px 20px;margin-top:12px;background:linear-gradient(#f2b950,#d48924 48%,#ba641a);border:3px solid #f3ce79;box-shadow:0 5px #6e3719,inset 0 0 0 2px #fbdc8b66;text-shadow:0 2px #7e431c}.home-play-dock .primary-button:hover{filter:brightness(1.12)}.home-saved-note{font-size:10px;color:#e7cb9a;margin-top:12px;line-height:1.5}.home-bottom-note{position:absolute;bottom:16px;left:0;width:100%;font-size:10px;letter-spacing:1px;color:#e7c28a99}
/* The board occupies the screen. Secondary controls live in the menu. */
body.in-game{background:#173e50}body.in-game>.header{display:none}body.in-game .main{padding:0}.in-game .intro{display:none}.game-layout{display:block}.game-stage{border-radius:0;border:0;box-shadow:none;padding:0;height:100dvh;min-height:520px;display:flex;flex-direction:column;background:#173e50 url('./table.svg') center/cover no-repeat;color:#ffebba;overflow:hidden}.stage-scenery{display:none}.stage-top{position:relative;display:grid;grid-template-columns:64px 1fr auto 64px;align-items:center;gap:25px;padding:18px 25px;border:0;flex-shrink:0;min-height:96px;z-index:3}.wood-round{border-radius:50%;width:58px;height:58px;display:grid;place-items:center;flex-shrink:0;padding:0}.wood-round svg{width:30px;height:30px;stroke-width:2.8}.stage-top .level-title{text-align:left;margin-left:15px}.stage-eyebrow{font-size:10px;color:#9ebcca;letter-spacing:2px}.level-title h2{font-family:Georgia,serif;color:#f3e5c9;font-size:25px;text-shadow:0 2px #0b2734}.game-stats{gap:22px;align-items:center}.stat strong{font-weight:600;font-size:21px;color:#dfecdd}.stat span>small{font-size:9px;color:#9ab8c3}.stat strong small{font-size:12px;color:#a4c2c8}.stat>svg{color:#a4c2c8;width:20px;height:20px}.stage-icon{width:40px;height:40px}.board-area{flex:1;min-height:160px;width:calc(100% - 190px);max-width:1000px;margin:5px auto 0;align-items:center;justify-content:center}.board{filter:drop-shadow(0 13px 9px #041b2580);touch-action:manipulation}.tile{border:1px solid #cfaa76;border-radius:10px;background:linear-gradient(130deg,#fff1cd,#f0dcb5);box-shadow:2px 6px 0 #a06a3c,5px 9px 0 #5b341f,6px 11px 10px #031722aa,inset 1px 1px 0 #fff8e4;transition:filter .15s,box-shadow .15s,background .15s}.tile.blocked{filter:brightness(.8) saturate(.8);box-shadow:2px 6px 0 #825432,5px 9px 0 #4e2c1c,6px 11px 7px #031722bb,inset 1px 1px 0 #ffeac1}.tile:not(.blocked):hover{filter:brightness(1.08);box-shadow:2px 6px #a06a3c,5px 9px #5b341f,6px 12px 16px #031722aa,inset 0 0 0 2px #ffedb1}.tile.selected{background:linear-gradient(#fff7bd,#ffe39d);border-color:#fff0a4;box-shadow:2px 6px #a47638,5px 9px #6b481e,0 0 0 3px #ffe192,0 0 25px #ffd36377;filter:none}.tile.hinted{outline:3px solid #ffe19a;outline-offset:2px;box-shadow:2px 6px #a06a3c,5px 9px #5b341f,0 0 25px #ffdb7277}.tile svg{width:88%;height:87%}.tile .animal-tile-photo{width:calc(100% - 9px);height:calc(100% - 9px);border-radius:6px}.slot-tray{order:0;flex-shrink:0;position:relative;width:fit-content;max-width:80%;padding:10px 14px 12px;margin:0 auto 12px;background:linear-gradient(90deg,#522a18,#30190f 50%,#562a17);border:5px solid #af6c30;border-radius:14px;box-shadow:0 5px #613b1d,0 9px 14px #061f2b88,inset 0 2px 8px #130c0a88;z-index:2}.slot-heading{margin-bottom:7px;font-size:9px;color:#d2a971;letter-spacing:1px;gap:35px}.slot-heading>span{font-size:9px;color:#d2a971}.slot-cells{gap:8px}.slot-cell{width:54px;height:67px;border-radius:6px;border:1px solid #b27b3d44;background:#21110844;color:#a47a4999;font:24px Georgia,serif;box-shadow:inset 1px 1px 3px #160c09}.slot-cell:not(.empty){background:linear-gradient(#fff1ce,#ecd4a8);border:1px solid #d0a972;box-shadow:1px 3px #8b592e;color:#4a331f}.slot-cell .animal-tile-photo{border-radius:4px}.slot-tray>p{display:none}.board-message{flex-shrink:0;color:#adc6cc;min-height:27px;font-size:11px;margin:10px 85px 17px;padding:0;line-height:1.6}.message-dot{background:#ceae6c}.game-tools{position:absolute;right:23px;top:52%;transform:translateY(-30%);display:flex;flex-direction:column;gap:22px;border:0;padding:0;z-index:4}.tool-button{position:relative;width:65px;height:65px;border:3px solid #c98b43;border-radius:50%;color:#ffe0a1;background:linear-gradient(140deg,#82411e,#35190f);box-shadow:0 4px #4d2716,inset 0 0 0 3px #35170f,0 8px 14px #061b2b55;display:flex;flex-direction:column;justify-content:center;gap:0;padding:8px}.tool-button:hover{background:linear-gradient(140deg,#ad622b,#542710)}.tool-button .tool-icon svg{width:29px;height:29px;stroke-width:2.4}.tool-button>span:not(.tool-icon){font-size:8px;letter-spacing:.2px;margin-top:2px;color:#eac585}.tool-button kbd{display:none}.tool-button:disabled{opacity:.35}.game-tools #shuffle{order:-1}.combo-message{top:42%;font-family:Trebuchet MS,sans-serif;font-weight:bold;color:#fff2ac;font-size:42px;text-shadow:0 3px #9a5c29,0 0 25px #071f2f}.pause-screen{background:#133749ed;border:1px solid #dab06a55;backdrop-filter:blur(8px);color:#ffedc1}.pause-screen p{color:#b8ccd1}.pause-home{color:#ead2a6}.cream-button{color:#68411e;background:linear-gradient(#ffecc0,#deb272);border:2px solid #ffd591;border-radius:25px;font-weight:bold;box-shadow:0 4px #785026}.game-stage[data-background="jade"]{background-color:#124d42;background-blend-mode:luminosity}.game-stage[data-background="bamboo"]{background-color:#405d28;background-blend-mode:luminosity}.game-stage[data-background="ruby"]{background-color:#5a1b29;background-blend-mode:luminosity}.game-stage[data-background="violet"]{background-color:#39244f;background-blend-mode:luminosity}
/* Wooden, parchment-lined dialogs and a real theme picker. */
.modal{color:#56351e;background:linear-gradient(115deg,#fff1cd,#f5d9a8);border:7px solid #b97836;border-radius:21px;box-shadow:0 0 0 2px #6b3e22,0 20px 90px #0b1217aa,inset 0 0 0 2px #efc98e;padding:30px;max-height:calc(100dvh - 40px)}.modal::backdrop{background:#15130fc7;backdrop-filter:blur(3px)}.modal-close{width:35px;height:35px;right:12px;top:12px;z-index:2}.modal-close:hover{background:linear-gradient(#c18439,#85431c)}.modal h2{font-family:Trebuchet MS,sans-serif;font-size:27px;font-weight:bold;color:#68401e;text-shadow:0 1px #fff1cc;margin:11px 20px 19px}.modal>.eyebrow{color:#a1703d;font-size:9px;letter-spacing:2px}.modal>p:not(.eyebrow){color:#886344;font-size:12px}.modal-flower{background:#dfbc7d55;color:#a97a38}.secondary-button,.text-button{color:#82603d}.secondary-button:hover{background:#d7b27844}.rules strong{color:#78502c}.rules p,.modal .modal-note{color:#967149}.rules li>span{border-color:#d1b17b;color:#8b642e}.league-tabs{background:#d9b88088;border:1px solid #c69e61;padding:4px;border-radius:10px}.league-tabs button{color:#8e633a;font-size:14px;font-weight:bold;border-radius:7px}.league-tabs button[aria-selected="true"]{background:linear-gradient(#b47842,#905128);color:#ffe4ad;box-shadow:inset 0 1px #d0a16a,0 2px #70431f}.theme-modal{width:min(520px,calc(100% - 28px));padding:24px}.tile-skins{display:flex;flex-direction:column;gap:10px;max-height:390px;overflow:auto;padding:3px}.skin-option{position:relative;text-align:left;border:2px solid #966f37;border-radius:10px;padding:10px 13px 14px;color:#d6e8c1;background:linear-gradient(130deg,#226153,#16473f);box-shadow:inset 0 1px #9aa16d44}.skin-option[aria-pressed="true"]{border-color:#e7a03b;box-shadow:0 0 0 2px #ffc45c,inset 0 1px #9aa16d44}.skin-option[aria-pressed="true"]:after{content:'✓';position:absolute;right:13px;top:8px;font-size:20px;font-weight:bold;color:#ffcb62}.skin-option>strong{display:block;font-size:13px;margin-bottom:8px;letter-spacing:.3px}.skin-preview{display:flex;gap:5px}.mini-tile{position:relative;width:48px;height:61px;flex-shrink:0;border:1px solid #d9bb88;border-radius:5px;background:linear-gradient(130deg,#fff3d4,#eedcb7);box-shadow:1px 3px #997044,2px 4px #4c3521;display:grid;place-items:center;overflow:hidden}.mini-tile svg{width:90%;height:90%;stroke:none}.mini-tile img{width:90%;height:90%;object-fit:cover;border-radius:3px}.mini-tile.back{background:linear-gradient(140deg,#d09546,#a0642a);color:#e9c68a;font:30px Georgia,serif;border-color:#bd9955}.skin-simple .tile,.skin-simple .mini-tile{background:linear-gradient(#fffff4,#e8ecd4);border-color:#fffaf0;box-shadow:2px 6px #86a565,5px 9px #466448,6px 11px 10px #031722aa}.skin-porcelain .tile,.skin-porcelain .mini-tile{background:linear-gradient(#fff,#e4ebed);border-color:#e1f4f8;box-shadow:2px 6px #65b1c8,5px 9px #2a6986,6px 11px 10px #031722aa}.skin-vintage .tile,.skin-vintage .mini-tile{background:linear-gradient(#fff1cf,#dfbd87);border-color:#d9aa68;box-shadow:2px 6px #b35139,5px 9px #68352a,6px 11px 10px #031722aa}.skin-vintage .tile svg{filter:sepia(.25)}.skin-antique .tile,.skin-antique .mini-tile{background:repeating-linear-gradient(3deg,#fff0c900 0 3px,#a37c3810 4px 5px),linear-gradient(120deg,#f5dfb6,#e5c397)}.backgrounds{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:5px}.background-option{position:relative;border-radius:10px;border:3px solid #c3985d;min-height:150px;background:#173e50 url('./table.svg') center/cover no-repeat;color:#dbe7dc;padding:14px 5px;box-shadow:0 4px #9b7441;display:flex;align-items:flex-end;justify-content:center;isolation:isolate}.background-option:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 45%,#081c31aa);z-index:-1;border-radius:6px}.background-option[data-bg="jade"]{background-color:#124d42;background-blend-mode:luminosity}.background-option[data-bg="bamboo"]{background-color:#405d28;background-blend-mode:luminosity}.background-option[data-bg="ruby"]{background-color:#5a1b29;background-blend-mode:luminosity}.background-option[data-bg="violet"]{background-color:#39244f;background-blend-mode:luminosity}.background-option[aria-pressed="true"]{border-color:#ffa828;outline:2px solid #ffca6b;outline-offset:1px}.background-option[aria-pressed="true"]:after{content:'✓';position:absolute;right:7px;top:6px;font-weight:bold;color:#ffcd62;font-size:26px}.background-option strong{font-size:12px}.theme-modal .theme-note{font-size:10px;line-height:1.6;color:#967347;margin:18px 0 15px}.theme-modal .primary-button{margin-top:10px}.game-menu-modal{text-align:left;max-width:500px}.game-menu-modal>h2{text-align:center}.theme-menu-button{background:#d8ad6e44;border:1px solid #c19a61;margin-bottom:20px;font-size:13px;font-weight:bold;gap:10px;padding:12px}.theme-menu-button svg{width:21px;height:21px}.game-menu-modal .mode-picker{width:100%;margin:0 0 12px;background:#dec18c;border:1px solid #c9a569}.game-menu-modal .mode-picker button{font-size:12px;flex:1;padding:12px 4px;color:#875e34}.game-menu-modal .mode-picker button[aria-pressed="true"]{background:#fff0c8;color:#68421e}.game-menu-modal .tile-theme-picker{display:none}.game-menu-modal .sidebar{display:flex;gap:12px}.game-menu-modal .progress-card,.game-menu-modal .tip-card{display:none}.journey-card,.league-card{background:#f9e6b9;border:1px solid #cfaa6c;padding:18px;border-radius:10px}.journey-card h2{font-family:Georgia,serif;font-size:23px;margin:12px 0}.journey-card>p{display:none}.eyebrow{color:#a47a45}.section-number{color:#a47a45}.level-option{background:#ffedc7;border-color:#d3b37c;color:#79562f}.level-option.current{background:#e4d398;border-color:#a19449}.level-option:hover{background:#f5d99b}.level-art{background:#d8c58f;color:#82783c}.level-meta{color:#a57d4d}.level-option .level-indicator{border-color:#b19a60}.new-game{color:#936638;border-color:#d8ba83;font-size:12px;padding:13px 0 0;margin-top:13px}.sidebar-bottom{color:#a47a45;font-size:9px;justify-content:center}.league-card h2{color:#79562f}.league-card .league-next{color:#a17c4c}.league-card .league-points{color:#ac7b45}.league-card .league-open{background:#e5cc98;color:#906536}.league-hero{background:#ecd7a6;border-color:#d5b474}.league-hero h3{color:#7c562b}.league-hero .eyebrow,.league-hero p{color:#a17a44}.league-overview strong{color:#815b2c}.league-overview span{color:#a27c46}.league-overview>div+div{border-color:#d8bb82}.league-step{border-color:#dabd89;background:#f3e1b7}.league-step.current{background:#e5d39c;border-color:#a59452}.league-step strong{color:#7c582e}.league-step small,.league-note{color:#a37e4b}.league-step.current .league-step-state{background:#c3c07c;color:#595c2b}.league-rewards{border-color:#d9bd83}.league-rewards>div>span{color:#97743f}.league-rewards strong{color:#83732e}.leaderboard-controls select,.leaderboard-join input,.voice-settings select,#profile-edit input{background:#fff1d0;border-color:#ceaa6f;color:#795831}.leaderboard-caption,.leaderboard-status,.leaderboard-footnote{color:#a37b47}.leaderboard-table-wrap{border-color:#d0ad75}.leaderboard-table thead{background:#dec38c;color:#8b6235}.leaderboard-table td{border-color:#dac08c;color:#7c582e}.leaderboard-table .leaderboard-empty{color:#a07b48}.leaderboard-table .leaderboard-points{color:#84702e}.leaderboard-table tr.is-me{background:#e5d59d}.leaderboard-table small{color:#a07b48}.leaderboard-login{background:#e9d6a9;border-color:#d4b37b}.leaderboard-login p{color:#977140}.leaderboard-own{background:#e3d49d;color:#81702f}.leaderboard-join label,.leaderboard-join p{color:#997344}.win-stats{background:#ecd5a5}.win-stats>div+div{border-color:#ccb17b}.win-stats span{color:#987240}.win-league{background:#ecd4a0;border-color:#cbaa6b}.profile-modal #profile-identity,.voice-settings p,#nickname-status,.voice-settings>label:not(.voice-switch),#profile-edit label{color:#9a7444}.voice-settings{border-color:#d4b580}.voice-switch{color:#805d30}.voice-switch input{accent-color:#6b8b35}.toast{background:#ffeec8;border:2px solid #d2a56a;color:#78542c;font-size:13px;box-shadow:0 8px 25px #081c31aa}.trophy-gallery{display:flex;justify-content:center;gap:8px;margin:10px 0 20px}.trophy-gallery>div{width:28%;text-align:center;font-size:10px;color:#9b7544}.trophy-gallery svg{display:block;max-width:90px;width:100%;height:105px;stroke:none;margin:auto}.trophy-gallery .locked{filter:saturate(.1);opacity:.5}.trophy-gallery .current{filter:drop-shadow(0 0 7px #f8c96c)}
@media(min-width:1500px){.home-logo{top:19%;transform:translateX(-50%) rotate(-2deg) scale(1.15)}.home-play-dock{bottom:9%}.home-floating{width:185px}.home-guide{left:21%}.home-league-display{right:21%}}
@media(max-width:1050px){.header{padding:12px 18px;height:77px}.header nav{gap:0}.header .nav-link{font-size:11px;padding:9px 11px}.header-actions{gap:7px}.header-actions .icon-button{width:43px;height:43px}.home-view{min-height:690px}.home-logo{width:400px;top:19%}.home-logo h1{font-size:61px}.home-logo h1>span{font-size:43px}.home-logo>p{font-size:8px;letter-spacing:3px}.logo-leaf{left:45px}.home-floating{width:140px;top:48%}.home-guide{left:12%}.home-league-display{right:12%}.home-floating strong{font-size:16px}.trophy-art{width:107px;height:127px}.scroll-art{width:95px;height:116px;font-size:65px}.home-play-dock{bottom:6%;width:370px}.home-play-dock .primary-button{font-size:22px}.stage-top{padding:14px 18px;gap:14px;grid-template-columns:57px 1fr auto 57px;min-height:90px}.wood-round{width:53px;height:53px}.stage-top .level-title{margin-left:5px}.game-tools{right:17px}.tool-button{width:59px;height:59px}.game-stats{gap:17px}.board-area{width:calc(100% - 155px)}.board-message{margin-bottom:13px}}
@media(max-width:700px){.header nav{display:none}.header-actions .icon-button{width:41px;height:41px}.header .brand{font-size:20px}.header .brand-mark{width:35px;height:35px}.header .brand-sub{font-size:7px;letter-spacing:2px}.home-view{min-height:730px;background-size:auto 100%;background-position:50% 0}.home-logo{top:19%;width:330px}.home-logo h1{font-size:49px}.home-logo h1>span{font-size:38px;margin-bottom:8px}.home-logo>p{font-size:7px;letter-spacing:2.5px}.logo-leaf{left:33px;top:27px;font-size:37px}.logo-ribbon{font-size:10px;padding:7px 24px;margin-top:14px}.home-floating{top:46%;width:120px}.home-guide{left:10%}.home-league-display{right:10%}.home-floating strong{font-size:14px}.home-floating button{border-width:2px;padding-bottom:12px}.home-floating span:not(.trophy-art):not(.scroll-art){font-size:8px}.home-floating small{font-size:8px}.scroll-art{width:79px;height:96px;font-size:57px}.trophy-art{width:95px;height:111px;margin-top:-18px}.home-play-dock{width:340px;bottom:6%;padding:13px 16px}.home-play-dock .primary-button{font-size:21px;padding:13px 16px}.home-saved-note{font-size:9px}.home-menu>button>span{font-size:11px!important}.stage-top{grid-template-columns:44px 1fr auto 44px;gap:10px;min-height:82px;padding:14px 12px}.wood-round{width:43px;height:43px;border-width:2px}.wood-round svg{width:24px;height:24px}.stage-eyebrow{font-size:8px;letter-spacing:1px}.level-title h2{font-size:21px}.game-stats{gap:13px}.stat>svg{display:none}.stat strong{font-size:18px}.stat span>small{font-size:7px}.stat strong small{font-size:10px}.stage-icon{display:none}.game-tools{right:12px;gap:20px;top:57%}.tool-button{width:49px;height:49px;border-width:2px;padding:5px}.tool-button .tool-icon svg{width:23px;height:23px}.tool-button>span:not(.tool-icon){font-size:6px;margin-top:1px}.board-area{width:calc(100% - 82px);margin:5px 70px 0 12px;max-width:none}.board-message{font-size:9px;margin:10px 65px 15px 12px;min-height:30px}.slot-tray{padding:7px 10px 9px;border-width:4px;max-width:80%;margin:0 auto 11px}.slot-cell{width:43px;height:55px}.slot-cells{gap:6px}.slot-heading{font-size:8px;margin-bottom:6px}.slot-heading>span{font-size:8px}.tile{border-radius:7px}.tile .animal-tile-photo{width:calc(100% - 6px);height:calc(100% - 6px);border-radius:4px}.combo-message{font-size:29px}.modal{padding:28px 21px 22px;border-width:5px}.theme-modal{padding:24px 17px}.theme-modal h2{font-size:25px}.mini-tile{width:43px;height:56px}.background-option{min-height:135px}.backgrounds{gap:10px}.theme-menu-button{font-size:12px}.game-menu-modal .sidebar{display:flex}.journey-card{padding:15px}.game-menu-modal .league-card{padding:15px}.game-menu-modal .primary-button{font-size:15px}.game-menu-modal .journey-card h2{font-size:22px}}
@media(max-width:390px){.home-guide{left:7%}.home-league-display{right:7%}.home-logo{width:300px}.home-logo h1{font-size:45px}.logo-leaf{left:28px}.home-play-dock{width:310px}.time-stat{display:none}.stage-top{gap:9px}.mini-tile{width:38px;height:50px}.skin-preview{gap:4px}}
@media(max-height:700px) and (min-width:700px){.home-view{min-height:600px}.home-logo{top:18%;transform:translateX(-50%) rotate(-2deg) scale(.85)}.home-floating{top:46%;transform:scale(.8)}.home-play-dock{bottom:4%;transform:translateX(-50%) scale(.85);transform-origin:bottom}.stage-top{min-height:75px;padding-top:10px;padding-bottom:10px}.slot-tray{padding:6px 10px 8px;margin-bottom:5px}.slot-heading{display:none}.slot-cell{width:42px;height:52px}.board-message{margin-bottom:7px}.game-tools{gap:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.primary-button:active{transform:none}}

.scroll-art svg{width:75%;height:75%;stroke-width:1.3}.trophy-gallery{display:grid;grid-template-columns:repeat(3,1fr);row-gap:12px}.trophy-gallery>div{width:auto}.menu-preferences{display:flex;align-items:center;justify-content:center;gap:12px;color:#997344;font-size:12px;margin-top:20px}.menu-preferences .icon-button{background:#ecd4a3;color:#956e35;border-color:#c9aa73}.menu-preferences .icon-button[aria-pressed="true"]{background:#d4d494;color:#63722c;border-color:#99a45f}.door-transition{position:fixed;inset:0;z-index:20000;pointer-events:none;display:none;overflow:hidden}.door-transition.opening{display:block}.door-transition>div{position:absolute;inset:0;background:#6d4527 url('./temple.svg') center/cover no-repeat;animation:door-left .8s cubic-bezier(.65,0,.25,1) both;clip-path:inset(0 50% 0 0)}.door-transition>div+div{clip-path:inset(0 0 0 50%);animation-name:door-right}@keyframes door-left{0%,10%{transform:translateX(0)}100%{transform:translateX(-55%)}}@keyframes door-right{0%,10%{transform:translateX(0)}100%{transform:translateX(55%)}}@media(prefers-reduced-motion:reduce){.door-transition{display:none!important}}

.skin-option.skin-simple .mini-tile:not(.back){background:linear-gradient(#fffff4,#e8ecd4);box-shadow:1px 3px #86a565,2px 4px #466448}.skin-option.skin-porcelain .mini-tile:not(.back){background:linear-gradient(#fff,#e4ebed);box-shadow:1px 3px #65b1c8,2px 4px #2a6986}.skin-option.skin-vintage .mini-tile:not(.back){background:linear-gradient(#fff1cf,#dfbd87);box-shadow:1px 3px #b35139,2px 4px #68352a}.skin-option.skin-antique .mini-tile:not(.back){background:repeating-linear-gradient(3deg,#fff0c900 0 3px,#a37c3810 4px 5px),linear-gradient(120deg,#f5dfb6,#e5c397);box-shadow:1px 3px #997044,2px 4px #4c3521}.skin-option .mini-tile.back{background:linear-gradient(140deg,#d09546,#a0642a);box-shadow:1px 3px #997044,2px 4px #4c3521}.skin-option.skin-simple .mini-tile.back{background:linear-gradient(140deg,#72ae4b,#40803d)}.skin-option.skin-porcelain .mini-tile.back{background:linear-gradient(140deg,#58bad8,#2f7da9)}.skin-option.skin-vintage .mini-tile.back{background:linear-gradient(140deg,#c44c45,#8b2e2b)}

/* Language is always available at Home and in the game menu. */
.language-select{font:700 13px Trebuchet MS,Segoe UI,sans-serif;color:#ffe5b0;background:#67391e;border:2px solid #ce954c;border-radius:12px;min-height:44px;padding:0 8px;max-width:132px;cursor:pointer;box-shadow:0 3px #3e2013;color-scheme:dark}
.language-select:focus-visible{outline:3px solid #fff0a5;outline-offset:3px}
.language-select option{background:#67391e;color:#ffe5b0}
.menu-language{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding-top:16px;border-top:1px solid #bb8d5544;font-size:12px}
.menu-language .language-select{min-width:130px}
@media(max-width:1250px){.header nav{display:none}}
@media(max-width:420px){.header{padding:12px;gap:9px}.header-actions{gap:6px}.header-actions .icon-button{width:37px;height:40px}.header-actions .language-select{font-size:11px;max-width:114px;padding:0 4px}.header .brand{font-size:17px;gap:6px}.header .brand-mark{width:29px;height:29px}.header .brand-sub{font-size:6px;letter-spacing:1.5px}}

/* Four recessed green spaces, like the player's reference. */
.game-stage.has-slot-tray{--tray-height:clamp(88px,13vw,172px);--tray-left:clamp(14px,4.1vw,60px)}
.has-slot-tray .stage-top{padding-top:calc(var(--tray-height) + 42px);padding-bottom:10px;min-height:0}
.has-slot-tray .slot-tray{position:absolute;top:22px;left:var(--tray-left);width:clamp(266px,41vw,590px);height:var(--tray-height);max-width:calc(100% - 110px);margin:0;padding:7px;border:0;border-radius:25px;background:linear-gradient(180deg,#69d934 0%,#3fbd16 20%,#298f0b 90%,#53c726 100%);box-shadow:0 7px 0 #205d0c,0 11px 16px #031d2c88,inset 0 2px 2px #a6f66a99;z-index:4}
.has-slot-tray .slot-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.has-slot-tray .slot-cells{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;height:100%;border-radius:19px;background:#103e08;box-shadow:inset 0 4px 8px #032300cc,inset 0 0 0 3px #235d0b;overflow:visible}
.has-slot-tray .slot-cell{width:100%;height:100%;min-width:0;margin:0;border:0;border-right:2px solid #082e06;border-radius:0;background:linear-gradient(90deg,#143f09,#124307 80%,#103606);box-shadow:inset 2px 0 0 #2e60154d;color:transparent;font-size:0}
.has-slot-tray .slot-cell:first-child{border-radius:18px 0 0 18px}
.has-slot-tray .slot-cell:last-child{border:0;border-radius:0 18px 18px 0}
.has-slot-tray button.slot-cell{position:relative;z-index:2;transform:translate(-4px,-6px);height:calc(100% + 5px);border:1px solid #b58252;border-radius:16px!important;background:linear-gradient(115deg,#fff1d5,#f3e1bd);box-shadow:5px 6px 0 #a16d43,8px 10px 0 #5a3a23,0 8px 15px #061c21aa,inset 0 1px 1px #fff9e7;color:#315535;animation:tray-arrival .25s ease-out}
.has-slot-tray .slot-cell svg{width:85%;height:88%}
.has-slot-tray .slot-cell .animal-tile-photo{width:calc(100% - 12px);height:calc(100% - 12px);object-fit:cover;border-radius:10px}
.has-slot-tray .slot-cells:after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:18px;background:radial-gradient(circle at 43% 40%,#66ff38bb 0 1px,#39fb1922 3px,transparent 7px),radial-gradient(circle at 61% 71%,#57f42a99 0 1px,transparent 6px),radial-gradient(circle at 90% 47%,#48f72d99 0 1px,transparent 5px),radial-gradient(circle at 35% 80%,#79ff36bb 0 1px,transparent 7px);animation:tray-glimmer 2.8s ease-in-out infinite alternate}
#game-menu{border-color:#b8732e;background:repeating-linear-gradient(2deg,transparent 0 5px,#62301212 6px 7px),radial-gradient(ellipse at 38% 22%,#c78a43,#a55b22 70%,#743711);box-shadow:0 5px 0 #582b15,0 8px 8px #031f2b66,inset 1px 2px 2px #edb66b88;color:#ffdc91}
#game-menu svg{stroke-width:3.5;filter:drop-shadow(0 2px 1px #71380d);width:62%;height:62%}
.has-slot-tray #game-menu{position:absolute;right:clamp(15px,2vw,30px);top:28px;width:clamp(52px,7.1vw,104px);height:clamp(52px,7.1vw,104px)}
@keyframes tray-glimmer{from{opacity:.35}to{opacity:1}}
@keyframes tray-arrival{from{filter:brightness(1.3);transform:translate(-4px,-16px)}to{filter:brightness(1);transform:translate(-4px,-6px)}}
@media(max-width:700px){.has-slot-tray .slot-tray{top:16px;padding:5px;border-radius:17px;max-width:calc(100% - 91px)}.has-slot-tray .slot-cells{border-radius:12px}.has-slot-tray .slot-cell:first-child{border-radius:12px 0 0 12px}.has-slot-tray .slot-cell:last-child{border-radius:0 12px 12px 0}.has-slot-tray button.slot-cell{border-radius:10px!important}.has-slot-tray .stage-top{padding-top:calc(var(--tray-height) + 30px);gap:8px}.has-slot-tray #game-menu{top:22px}.has-slot-tray .stage-top .level-title{margin-left:0}}
@media(prefers-reduced-motion:reduce){.has-slot-tray .slot-cells:after,.has-slot-tray button.slot-cell{animation:none}}
.effects-off .has-slot-tray .slot-cells:after{display:none}
/* Daily task cabinet: carved wood, a chest shelf, and parchment task cards. */
.daily-modal{width:570px;max-width:calc(100vw - 26px);max-height:94dvh;padding:16px 12px 12px;border:8px solid #9c4d1e;border-radius:12px;background:repeating-linear-gradient(2deg,#733313 0 7px,#793715 8px 10px);box-shadow:0 0 0 2px #e5af62,inset 0 0 0 2px #4c210f,0 20px 65px #11080099;overflow-y:auto;color:#754b2b}
.daily-modal::backdrop{background:#140c07b8;backdrop-filter:brightness(.7)}
.daily-modal .daily-banner{position:relative;width:70%;margin:0 auto 12px;padding:12px 15px;border:3px solid #f8ce83;border-radius:18px 18px 10px 10px;background:linear-gradient(#a34a12,#e59432 70%,#b85f16);box-shadow:0 3px #552509,inset 0 0 0 2px #b45d1b;color:#fff1ca;font:700 29px Georgia,serif;text-shadow:0 2px #7e3812}
.daily-modal>.modal-close{top:19px;right:13px;width:45px;height:45px;background:linear-gradient(#ffe3a5,#eab363);color:#87461c;border:3px solid #a95d27;box-shadow:0 3px #542711}
.daily-modal>.modal-close svg{stroke-width:3;width:25px;height:25px}
.daily-shelf{padding:5px 24px 0;border:4px solid #9c511f;border-radius:6px;background:radial-gradient(ellipse at 45% 20%,#663317,#2d1008);box-shadow:inset 0 0 12px #180703,inset 0 -12px #7c3618}
.daily-chests{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:end}
.daily-chest{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;padding-bottom:12px;color:#e7c07a}
.daily-chest svg{width:104px;height:83px;max-width:100%;stroke:none;filter:drop-shadow(0 5px 3px #18090466)}
.daily-chest>span{font-size:9px;letter-spacing:.4px}
.daily-chest.collected svg{filter:drop-shadow(0 0 9px #f6c65888)}
.daily-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:4px 0 8px}
.daily-tabs button{position:relative;border:2px solid #a66a38;border-top:3px solid #edbd79;border-radius:3px;background:linear-gradient(#dfa65b,#be7e3e);box-shadow:inset 0 0 0 1px #f8d09966;color:#fff2ca;font-size:18px;min-height:45px}
.daily-tabs button[aria-selected=true]{background:linear-gradient(#198773,#075a4b);border-color:#76ac87;color:#b8f5d9}
.daily-tabs button:disabled{opacity:.8;color:#7b4927;cursor:default}
#daily-content{background:radial-gradient(circle at 15px 15px,#dab57e 0 2px,transparent 3px),#ffebc5;border:5px double #d1a76d;border-radius:12px;padding:0 24px 12px;box-shadow:0 3px 0 #52200e}
.daily-task-list{list-style:none;margin:0;padding:0}
.daily-task{padding:18px 0;border-bottom:1px solid #d4b68688;text-align:left}
.daily-task h3{display:flex;align-items:center;gap:12px;margin:0 0 14px;font:600 20px Trebuchet MS,Segoe UI,sans-serif;line-height:1.3;color:#78502e}
.daily-task-icon{font-size:23px;color:#78502e;min-width:28px;text-align:center}
.daily-task-progress{display:grid;grid-template-columns:53px minmax(40px,1fr) 109px;align-items:center;gap:16px;padding-left:38px}
.daily-task-progress>strong{color:#b86525;font-size:22px;font-variant-numeric:tabular-nums}
.daily-task-progress progress{appearance:none;-webkit-appearance:none;height:15px;width:100%;border:0;border-radius:20px;overflow:hidden;background:#d1b491;color:#4ca23d;box-shadow:inset 0 2px 2px #a57a5466}
.daily-task-progress progress::-webkit-progress-bar{background:#d1b491;border-radius:20px;box-shadow:inset 0 2px 2px #a57a5466}
.daily-task-progress progress::-webkit-progress-value{background:linear-gradient(#8ccc57,#3f9734);border-radius:20px}
.daily-task-progress progress::-moz-progress-bar{background:#58a740;border-radius:20px}
.daily-task-progress .primary-button{font-size:23px;padding:8px 15px;min-height:45px;border-color:#75b451;box-shadow:0 3px #2a5820;line-height:1}
.daily-done{text-align:center;font-size:30px;color:#45943b}
.daily-claim{min-height:44px;font-size:16px;padding:9px 24px;min-width:65%;margin:15px auto 0}
.daily-claim:disabled{background:linear-gradient(#ddc395,#c6a878);border-color:#e1c99f;box-shadow:none;text-shadow:none;color:#7d613d;opacity:.85;cursor:default}
#daily-summary{font-size:11px;color:#9e793f;margin:10px 0 0}
.daily-modal .daily-note{font-size:10px;line-height:1.5;margin:12px 10px 0;color:#edc890;text-align:center}
#daily-storage{font-size:11px;color:#ffe6bd;margin:6px}
.home-rules-small{position:absolute;bottom:20px;right:25px;z-index:6;background:#482719aa;color:#ffe0aa;border:1px solid #dba35b77;border-radius:18px;padding:9px 18px;font-size:12px}
.in-game .home-rules-small{display:none}
.home-guide button{position:relative}
.home-guide .daily-home-badge{position:absolute;right:8px;top:0;width:24px;height:24px;background:#b8421c;color:#fff5c8!important;border:2px solid #f7c370;border-radius:50%;font-size:15px!important;font-weight:bold;display:grid;place-items:center}
@media(max-width:600px){.daily-modal{padding:10px 8px;border-width:6px}.daily-modal .daily-banner{font-size:23px;padding:10px 8px;margin-bottom:10px}.daily-modal>.modal-close{top:13px;right:9px;width:36px;height:36px}.daily-modal>.modal-close svg{width:21px;height:21px}.daily-shelf{padding-left:12px;padding-right:12px}.daily-chest svg{height:66px}.daily-chest>span{font-size:8px}.daily-tabs button{font-size:15px;min-height:41px}#daily-content{padding:0 14px 12px}.daily-task{padding:15px 0}.daily-task h3{font-size:17px;gap:8px;margin-bottom:12px}.daily-task-progress{padding-left:0;grid-template-columns:45px minmax(35px,1fr) 84px;gap:10px}.daily-task-progress>strong{font-size:20px}.daily-task-progress .primary-button{font-size:21px}.daily-claim{margin-top:12px}.daily-modal .daily-note{font-size:9px;margin-top:9px}}
@media(max-height:700px) and (min-width:601px){.daily-modal .daily-banner{font-size:24px;padding:7px 12px;margin-bottom:7px}.daily-chest svg{height:57px}.daily-chest{padding-bottom:8px}.daily-task{padding:11px 0}.daily-task h3{margin-bottom:9px;font-size:18px}.daily-tabs button{min-height:39px}.daily-modal .daily-note{margin-top:7px}.daily-claim{margin-top:10px}}
.home-mini-button{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px 0 0;width:100%;min-height:42px;border:1px solid #e2b36b;border-radius:11px;background:linear-gradient(#715132,#4a3021);color:#ffedc7;font-weight:bold;font-size:14px;box-shadow:0 3px #301c12,inset 0 1px #e6bf7333}.home-mini-button:hover{filter:brightness(1.15)}.home-play-dock{bottom:5%}
