/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.isolate{isolation:isolate}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-28{margin-top:calc(var(--spacing) * 28)}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform\!{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)!important}.resize{resize:both}.border{border-style:var(--tw-border-style);border-width:1px}.px-5{padding-inline:calc(var(--spacing) * 5)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.\[rdoc-ref\:lib\/racc\/rdoc\/grammar\.en\.rdoc\]{rdoc-ref:lib/racc/rdoc/grammar.en.rdoc}}:root{color-scheme:light;--page:#f2f3f5;--surface:#fff;--section:#fff;--text:#182729;--muted:#7b858b;--accent:#2785d1;--button-text:#fff;--link:#2785d1;--line:#354a4e17;--green:#285c50;--soft:#e9f0eb;--tg-safe-top:0px;--tg-safe-bottom:0px;--font:-apple-system, BlinkMacSystemFont, "Manrope", "Segoe UI", sans-serif}:root[data-theme=dark]{color-scheme:dark;--page:#111c24;--surface:#1c2a35;--section:#1c2a35;--text:#e6edf0;--muted:#98a8b4;--accent:#5eaae4;--button-text:#fff;--link:#6eb7ee;--line:#dcebf11a;--soft:#273a36;--green:#a7d6bd}*{box-sizing:border-box;touch-action:manipulation}body{background:var(--page);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;margin:0;font-size:15px}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:disabled{cursor:default;opacity:.38}button:active:not(:disabled){transform:scale(.97)}button,progress{transition:background .2s,transform .15s,opacity .2s}svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;display:block}h1,h2,p{margin:0}.app{max-width:480px;min-height:100svh;padding-top:max(env(safe-area-inset-top), var(--tg-safe-top));padding-bottom:max(env(safe-area-inset-bottom), var(--tg-safe-bottom));margin:0 auto}.home{min-height:calc(100svh - max(env(safe-area-inset-top), var(--tg-safe-top)) - max(env(safe-area-inset-bottom), var(--tg-safe-bottom)));flex-direction:column;gap:22px;padding:20px 22px 24px;display:flex}.topbar{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.brand{align-items:center;gap:10px;display:flex}.brandmark{color:#fff8e7;background:#214a43;border-radius:12px;place-items:center;width:39px;height:39px;padding-bottom:2px;font-family:Georgia,serif;font-size:29px;display:grid}.brand strong{letter-spacing:-.6px;font-size:21px;font-weight:750}.brand small{color:var(--muted);letter-spacing:1.6px;margin-top:2px;font-size:10px;display:block}.icon-button{background:var(--surface);width:42px;height:42px;color:var(--text);border:0;border-radius:50%;place-items:center;display:grid}.hero{isolation:isolate;background:#dce9e4;border-radius:26px;flex-shrink:0;height:302px;position:relative;overflow:hidden}.hero:after{content:"";z-index:-1;background:linear-gradient(#0000 60%,#c1d7cb8c);position:absolute;inset:0}.hero-landscape{z-index:-2;stroke:none;width:100%;height:100%;position:absolute;inset:0}.hero-sun{opacity:.85;background:#f3ead1;border-radius:50%;width:48px;height:48px;position:absolute;top:30px;right:45px}.hero-eyebrow{letter-spacing:1.8px;color:#3d6258;align-items:center;gap:6px;font-size:10px;font-weight:750;display:flex;position:absolute;top:21px;left:21px}.hero-eyebrow:before{content:"";background:#4d7a66;border-radius:50%;width:5px;height:5px}.hero-art{width:270px;height:210px;position:absolute;top:57%;left:50%;transform:translate(-50%,-50%)}.display-tile{background:linear-gradient(135deg,#fffef9,#f3ead8);border:1px solid #977c5124;border-radius:14px;width:102px;height:142px;position:absolute;box-shadow:0 7px #c8b58f,0 15px 20px #1d43352e,inset 2px 2px #fff}.display-tile .tile-art{inset:14px 5px 12px}.hero-tile-left{top:38px;left:10px;transform:rotate(-15deg)}.hero-tile-right{top:42px;right:8px;transform:rotate(15deg)}.hero-tile-center{z-index:2;width:110px;height:154px;top:7px;left:83px;transform:rotate(-2deg)}.hero-tile-center .tile-art{inset:12px 3px}.hero-caption{text-align:center;color:#4d6c60;letter-spacing:.1px;font-size:11px;position:absolute;bottom:18px;left:0;right:0}.intro{text-align:center}.intro h1{letter-spacing:-1.15px;font-size:30px;font-weight:800;line-height:1.18}.intro p{color:var(--muted);margin-top:10px;font-size:14px;line-height:1.55}.continue-card{background:var(--surface);border-radius:18px;align-items:center;gap:14px;padding:17px 18px;display:flex}.level-number{background:var(--soft);width:43px;height:48px;color:var(--green);border-radius:11px;place-items:center;font-size:21px;font-weight:750;display:grid}.continue-card .description{flex:1}.continue-card strong{font-size:16px;font-weight:700}.continue-card p{color:var(--muted);margin-top:5px;font-size:12px}.continue-card>.chevron{color:var(--muted);width:18px}.home-progress{color:var(--green);font-size:12px;font-weight:650}.row-group{background:var(--surface);border-radius:18px;overflow:hidden}.row-button{text-align:left;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px 16px;font-size:14px;display:flex}.row-button+.row-button{border-top:1px solid var(--line)}.row-button>.row-icon{color:#2785d1;background:#e9f2fd;border-radius:7px;place-items:center;width:27px;height:27px;display:grid}.row-icon svg{width:17px;height:17px}.row-button .row-icon.green{color:#4d8061;background:#e9f2eb}.row-button>.chevron{width:16px;color:var(--muted);margin-left:auto}.home-bottom{flex-direction:column;gap:10px;margin-top:auto;display:flex}.primary{background:var(--accent);color:var(--button-text);border:0;border-radius:13px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:52px;padding:14px 20px;font-size:16px;font-weight:650;display:flex}.primary svg{width:19px}.quiet-note{text-align:center;color:var(--muted);font-size:11px;line-height:1.5}.tile-art{background-image:var(--atlas);background-size:calc(var(--cols) * 100%) calc(var(--rows) * 100%);background-position:var(--sx) var(--sy);pointer-events:none;background-repeat:no-repeat;position:absolute;inset:8% 1%}.tile-art.portrait{inset:5% -9%}.game{min-height:calc(100svh - max(env(safe-area-inset-top), var(--tg-safe-top)) - max(env(safe-area-inset-bottom), var(--tg-safe-bottom)));height:calc(100svh - max(env(safe-area-inset-top), var(--tg-safe-top)) - max(env(safe-area-inset-bottom), var(--tg-safe-bottom)));flex-direction:column;gap:16px;padding:16px 14px 18px;display:flex;overflow:hidden}.game .topbar{padding:0 6px}.game-title{text-align:center;flex:1}.game-title h1{letter-spacing:-.4px;font-size:17px;font-weight:750}.game-title p{color:var(--muted);margin-top:4px;font-size:11px}.game-header-action{flex-shrink:0;width:40px;height:40px}.telegram .browser-back{visibility:hidden}.progress-block{padding:0 8px}.progress-labels{color:var(--muted);justify-content:space-between;align-items:center;margin-bottom:9px;font-size:12px;display:flex}.progress-labels strong{color:var(--text);font-weight:650}.progress-track{background:var(--line);border-radius:4px;height:4px;overflow:hidden}.progress-track>span{background:var(--accent);border-radius:4px;height:100%;transition:width .25s;display:block}.board-wrap{isolation:isolate;background:#dfe9e2;border-radius:24px;flex:1;min-height:170px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #41654b0d}.board-wrap:before{content:"";pointer-events:none;border:1px solid #3056411a;border-radius:16px;position:absolute;inset:10px}.board-wrap:after{content:"Ӕ";color:#30564109;z-index:-1;font-family:Georgia,serif;font-size:200px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.board{touch-action:manipulation;-webkit-user-select:none;user-select:none;position:absolute;inset:0}.tile{background:linear-gradient(135deg,#fffef9,#f3ecd9);border:1px solid #ded4be;border-radius:8px;padding:0;transition:box-shadow .16s,filter .16s,transform .16s,opacity .2s;display:block;position:absolute;overflow:hidden;box-shadow:0 4px #b4a483,0 6px 6px #24412d29,inset 1px 1px #fff}.tile:after{content:"";pointer-events:none;border-radius:7px;position:absolute;inset:0;box-shadow:inset 0 0 0 1px #ffffff73}.tile.hinted{animation:1s ease-in-out infinite hint-pulse;box-shadow:0 0 0 3px #d7a333,0 4px #b4a483,0 0 18px #e2c06b88}.tile.removing{pointer-events:none;filter:none;transition:none}.tile.shake{animation:.24s shake}.tile .family-mark{color:#875b98;font-size:10px;line-height:1;position:absolute;bottom:2px;right:3px}.tile .family-mark.seasons{color:#477c9f}.board-note{text-align:center;color:#5f7868;pointer-events:none;font-size:11px;line-height:1.5;position:absolute;bottom:15px;left:16px;right:16px}.game-caption{text-align:center;color:var(--muted);min-height:18px;padding:0 4px;font-size:12px}.tools{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.tool{background:var(--surface);border:0;border-radius:15px;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:77px;font-size:11px;font-weight:550;display:flex}.tool svg{width:23px;height:23px;color:var(--accent)}.tool:disabled svg{color:var(--muted)}.game-footer{color:var(--muted);justify-content:center;align-items:center;gap:7px;font-size:10px;display:flex}.game-footer svg{width:12px;height:12px}.toast{bottom:calc(115px + env(safe-area-inset-bottom));color:#fff;pointer-events:none;opacity:0;z-index:1000;text-align:center;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#1b282ded;border-radius:13px;max-width:min(360px,90vw);padding:11px 17px;font-size:13px;line-height:1.4;transition:opacity .2s,transform .2s;position:fixed;left:50%;transform:translate(-50%,12px)}.toast.visible{opacity:1;transform:translate(-50%)}.sheet{background:var(--page);width:min(480px,100%);max-height:85svh;color:var(--text);border:0;border-radius:25px 25px 0 0;margin:0 auto;padding:0;position:fixed;inset:auto 0 0;overflow:auto;box-shadow:0 -10px 50px #0002}.sheet::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0c202857}.sheet-inner{padding:10px 22px max(28px, env(safe-area-inset-bottom))}.sheet-handle{background:var(--muted);opacity:.3;border-radius:4px;width:34px;height:4px;margin:0 auto 19px}.sheet-heading{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.sheet-heading h2{letter-spacing:-.6px;font-size:21px}.sheet-heading .icon-button{width:32px;height:32px}.sheet-copy{color:var(--muted);font-size:14px;line-height:1.65}.sheet-copy p+p{margin-top:12px}.sheet-copy strong{color:var(--text)}.settings-list{background:var(--surface);border-radius:16px;padding:0 15px}.setting-row{justify-content:space-between;align-items:center;gap:15px;min-height:59px;font-size:14px;display:flex}.setting-row+.setting-row{border-top:1px solid var(--line)}.switch{background:#bcc3c8;border:0;border-radius:20px;align-items:center;width:47px;height:28px;padding:3px;transition:background .15s;display:flex}.switch:after{content:"";background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .15s;box-shadow:0 1px 3px #0002}.switch[aria-checked=true]{background:var(--accent)}.switch[aria-checked=true]:after{transform:translate(19px)}.setting-row select{font:inherit;color:var(--accent);background:0 0;border:0;max-width:145px;font-size:13px}.sheet-section-label{text-transform:uppercase;letter-spacing:1.3px;color:var(--muted);margin:22px 0 9px;font-size:11px}.danger-link{color:#d65c51;background:0 0;border:0;width:100%;padding:18px 0 7px;font-size:14px}.sheet-subnote{color:var(--muted);margin-top:15px;font-size:11px;line-height:1.5}.victory{text-align:center;padding:15px 0 5px}.victory-emblem{background:var(--soft);border-radius:50%;width:118px;height:118px;margin:0 auto 19px;position:relative}.victory h2{letter-spacing:-.9px;font-size:29px}.victory p{color:var(--muted);margin:10px 0 24px;font-size:14px;line-height:1.5}.victory-stats{justify-content:center;gap:48px;margin-bottom:25px;display:flex}.victory-stats strong{font-size:24px;display:block}.victory-stats span{color:var(--muted);font-size:11px}.text-button{color:var(--link);background:0 0;border:0;width:100%;padding:15px;font-size:14px}.telegram .home-bottom.native .primary{display:none}.telegram .home-bottom.native{padding-bottom:4px}.reduce-motion *{transition-duration:.01ms!important;animation-duration:.01ms!important}.reduce-motion .tile{transition:none!important;animation:none!important}@keyframes hint-pulse{50%{box-shadow:0 0 0 3px #e5bd58,0 4px #b4a483,0 0 22px #e2c06baa}}@keyframes shake{25%,75%{transform:translate(-3px)}50%{transform:translate(3px)}}@media (min-width:600px){body{background:var(--page);padding:24px 0}@supports (color:color-mix(in lab, red, red)){body{background:color-mix(in srgb, var(--page) 85%, #9aadb0)}}.app{background:var(--page);border-radius:30px;min-height:calc(100svh - 48px);overflow:hidden;box-shadow:0 16px 90px #102e3319}.home{min-height:calc(100svh - 48px)}.game{height:calc(100svh - 48px);min-height:650px}.sheet{border-radius:25px;bottom:24px}}@media (max-height:780px){.home{gap:16px;padding-top:14px}.hero{height:238px}.hero-art{transform:translate(-50%,-50%)scale(.86)}.hero-caption{bottom:13px}.intro h1{font-size:27px}.intro p{margin-top:7px}.game{gap:12px}.tool{min-height:67px}}@media (max-height:660px){.home{gap:12px}.hero{height:190px}.hero-art{top:54%;transform:translate(-50%,-50%)scale(.7)}.intro h1{font-size:24px}.intro p{font-size:12px}.hero-caption{font-size:10px}.game{gap:9px;padding-top:8px;padding-bottom:10px}.tool{min-height:58px}.game-footer{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}:root[data-theme=dark] .board-wrap{background:#263e34;box-shadow:inset 0 0 0 1px #ffffff08}:root[data-theme=dark] .board-wrap:before{border-color:#ffffff0c}:root[data-theme=dark] .board-wrap:after{color:#ffffff04}:root[data-theme=dark] .board-note{color:#9bb2a3}.scenery-layer{z-index:-3;background:var(--scene-light);pointer-events:none;position:absolute;inset:0}.hero.scenic{background:#d9e5dc}.hero.scenic:after{z-index:-1;background:radial-gradient(at 75% 0,#fff4,#0000 65%)}.hero.scenic .hero-eyebrow,.hero.scenic .hero-caption{color:var(--scene-ink)}.hero-tile-left{animation:7s ease-in-out infinite hero-float-left}.hero-tile-right{animation:7s ease-in-out -2s infinite hero-float-right}.hero-tile-center{animation:7s ease-in-out -1s infinite hero-float-center}.board-wrap.scenic{background:#d9e5dc}.board-wrap.scenic:before{z-index:-2;background:radial-gradient(at 50% 35%,#ffffff18,#0000 65%);border:1px solid #315e4510;border-radius:16px;inset:10px}.board-wrap.scenic:after{z-index:-1;color:var(--scene-ink);opacity:.035;font-size:165px}.board-wrap[data-scene=night]:before{border-color:#ffffff0a}.board-wrap[data-scene=night] .board-note{color:#aac4c6}:root[data-theme=dark] .scenery-layer{background:var(--scene-dark)}:root[data-theme=dark] .board-wrap.scenic:before{border-color:#ffffff0a}:root[data-theme=dark] .board-wrap.scenic .board-note{color:#adc0b3}:root[data-theme=dark] .hero.scenic .hero-eyebrow,:root[data-theme=dark] .hero.scenic .hero-caption{color:#d6e4d8}.tile{backface-visibility:hidden;transform-origin:50%;transition:filter .22s,box-shadow .2s,transform .18s}.tile.hinted{animation:1.4s ease-in-out infinite hint-pulse}.match-ring{pointer-events:none;z-index:1101;border:1.5px solid #fff8cf;border-radius:50%;width:42px;height:42px;position:absolute;box-shadow:0 0 15px #fff3c866}.match-spark{pointer-events:none;z-index:1102;background:#f5df9c;border-radius:50%;width:5px;height:5px;position:absolute}.motion-paused *{animation-play-state:paused!important}@keyframes hero-float-left{0%,to{transform:rotate(-15deg)translateY(0)}50%{transform:rotate(-13deg)translateY(-4px)}}@keyframes hero-float-right{0%,to{transform:rotate(15deg)translateY(0)}50%{transform:rotate(13deg)translateY(-4px)}}@keyframes hero-float-center{0%,to{transform:rotate(-2deg)translateY(0)}50%{transform:rotate(0)translateY(-5px)}}.reduce-motion .display-tile{animation:none!important}@media (prefers-reduced-motion:reduce){.display-tile{animation:none!important}}.game{gap:12px;padding-top:13px;padding-bottom:14px}.tray-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;flex-shrink:0;padding:10px 14px 9px;position:relative;box-shadow:0 3px 14px #132a2110}.tray-heading{justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;display:flex}.tray-heading strong{letter-spacing:-.1px;font-weight:650}.tray-heading>span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.tray-slots{grid-template-columns:repeat(4,minmax(0,64px));justify-content:center;gap:12px;display:grid}.tray-slot{border:1px dashed var(--muted);height:78px;position:relative}@supports (color:color-mix(in lab, red, red)){.tray-slot{border:1px dashed color-mix(in srgb, var(--muted) 30%, transparent)}}.tray-slot{background:var(--soft);border-radius:9px}@supports (color:color-mix(in lab, red, red)){.tray-slot{background:color-mix(in srgb, var(--soft) 55%, var(--surface))}}.tray-slot{place-items:center;display:grid}.slot-mark{color:var(--muted);opacity:.28;font-variant-numeric:tabular-nums;font-size:17px;font-weight:400}.tray-slot.occupied{background:0 0;border-color:#0000}.tray-slot.occupied .slot-mark{visibility:hidden}.tray-tile{cursor:default;border-radius:8px;width:100%;height:100%;inset:0}.tray-tile.incoming{opacity:0}.tray-note{text-align:center;color:var(--muted);margin-top:10px;font-size:10px;line-height:13px}.tray-card.full{background:var(--surface);border-color:#ce695e}@supports (color:color-mix(in lab, red, red)){.tray-card.full{background:color-mix(in srgb, var(--surface) 95%, #ce695e)}}.tray-card.full .tray-note,.tray-card.full .tray-heading>span{color:#c15c50}.flying-tile{will-change:transform, opacity;pointer-events:none;transform-origin:0 0;margin:0;position:fixed;transition:none!important}.mode-label{font-weight:600}.game-caption{min-height:16px;font-size:11px;line-height:16px}.game .tool{min-height:66px}.board-note{font-size:10px;bottom:10px}@media (max-height:780px){.game{gap:9px;padding-top:9px;padding-bottom:10px}.tray-card{padding:8px 12px}.tray-slot{height:65px}.tray-slots{grid-template-columns:repeat(4,minmax(0,55px));gap:12px}.tray-heading{margin-bottom:6px}.tray-note{margin-top:8px;font-size:9px}.game .tool{min-height:58px}.game .game-footer{font-size:9px}}@media (max-height:660px){.tray-note{display:none}.tray-slot{height:57px}.tray-slots{grid-template-columns:repeat(4,minmax(0,49px))}.game{gap:8px}.game .tool{min-height:53px}.game-caption{font-size:10px}}.tile{--tile-depth:7px;--tile-side:3px;box-shadow:none;isolation:isolate;background:0 0;border:0;border-radius:7px;overflow:visible}.tile:after{display:none}.tile-body{transform-origin:0 0;pointer-events:auto;display:block;position:absolute;inset:0;transform:matrix(1,.035,-.055,.94,0,0)}.tile-body:before{content:"";transform:translate(var(--tile-side), var(--tile-depth));background:linear-gradient(110deg,#d1c2a0 0%,#b5a078 67%,#96815d 100%);border:1px solid #998765;border-radius:7px;position:absolute;inset:0;box-shadow:1px 2px 2px #243b3438,3px 6px 9px #152d2830}.tile-face{background:linear-gradient(145deg,#fffef8 8%,#fcf6e6 67%,#eee2c6);border:1px solid #d3c5a7;border-radius:7px;display:block;position:absolute;inset:0;overflow:hidden;box-shadow:inset 2px 2px 1px #fff,inset -2px -2px 2px #d5c6a97a}.tile-face:after{content:"";pointer-events:none;border:1px solid #fff9e4aa;border-radius:5px;position:absolute;inset:2px}.tile.blocked{filter:brightness(.87)saturate(.82)}.tile.free{filter:none}.tile.selected{box-shadow:none;transform:translate(-2px,-5px)}.tile.selected .tile-face{outline:2px solid var(--accent);outline-offset:1px}.tile.hinted{box-shadow:none;animation:none}.tile.hinted .tile-face{outline-offset:1px;outline:2px solid #d6a43a;animation:1.4s ease-in-out infinite face-hint}.tile .tile-art{inset:8% 3% 7%}.tile .tile-art.portrait{inset:5% -7%}.tile .family-mark{z-index:1;bottom:4px;right:4px}.board .tile:active:not(.blocked){filter:brightness(1.04);transform:translate(-2px,-4px)}.tray-tile{--tile-depth:5px;--tile-side:2px;width:calc(100% - 4px);inset:0 2px}.tray-slot{box-shadow:inset 0 2px 4px #142f2710}.tray-slot.occupied{box-shadow:none}.tray-note{margin-top:12px}@keyframes face-hint{50%{outline-color:#ffe5a1;box-shadow:inset 2px 2px 1px #fff,0 0 14px #edc56b99}}@media (prefers-reduced-motion:reduce){.tile.hinted .tile-face{animation:none}}.reduce-motion .tile.hinted .tile-face{animation:none}:root{--story-green:#315e4c;--story-gold:#a17d3f;--story-soft:#e9eee5}:root[data-theme=dark]{--story-green:#a6cfb1;--story-gold:#dbc289;--story-soft:#273b33}.page-screen{min-height:calc(100svh - var(--tg-safe-top) - var(--tg-safe-bottom));flex-direction:column;gap:18px;padding:18px 20px 100px;display:flex;position:relative}.journey-topbar{justify-content:space-between;align-items:center;gap:12px;min-height:48px;display:flex}.eyebrow{letter-spacing:1.5px;color:var(--muted);font-size:9px;font-weight:700;line-height:1.5;display:block}.journey-topbar h1{letter-spacing:-1px;margin-top:3px;font-size:27px;font-weight:750;line-height:1.15}.journey-topbar .icon-button{flex-shrink:0;width:40px;height:40px}.journey-hero{color:#203f32;isolation:isolate;background:#dce8de;border-radius:24px;height:250px;position:relative;overflow:hidden}.journey-landscape{stroke:none;z-index:-2;width:100%;height:100%;position:absolute;inset:0}.journey-hero:after{content:"";z-index:-1;background:linear-gradient(90deg,#f0f3e2e8,#0000 90%);position:absolute;inset:0}.journey-hero-copy{position:absolute;top:23px;left:22px;right:38px}.chapter-tag{letter-spacing:1.6px;color:inherit;opacity:.8;border:1px solid;border-radius:5px;padding:6px 8px;font-size:8px;font-weight:750;display:inline-block}.journey-hero h2{letter-spacing:-.8px;max-width:230px;margin:14px 0 10px;font-family:Georgia,Times New Roman,serif;font-size:33px;font-weight:500;line-height:1.04}.journey-hero p{opacity:.85;max-width:260px;font-size:11px;line-height:1.6}.hero-stamp{color:#f5ecd4;border:1px solid #f5ecd49c;border-radius:50%;place-items:center;width:39px;height:39px;font:27px Georgia,serif;display:grid;position:absolute;bottom:18px;right:22px;transform:rotate(-12deg)}.chapter-progress{color:var(--muted);flex-wrap:wrap;align-items:center;gap:9px;font-size:11px;display:flex}.chapter-progress strong{color:var(--story-green);font-variant-numeric:tabular-nums;margin-left:auto;font-size:10px}.chapter-progress .progress-track{width:100%;height:4px}.chapter-progress .progress-track>span,.profile-chapter .progress-track>span{background:var(--story-green)}.next-discovery{border:1px solid var(--line);background:var(--surface);text-align:left;border-radius:20px;align-items:center;gap:16px;width:100%;padding:17px 14px;display:flex;box-shadow:0 4px 20px #1b382908}.journal-tile{background:linear-gradient(135deg,#fffef7,#f0e5ca);border:1px solid #dfd0b1;border-radius:9px;flex-shrink:0;width:66px;height:84px;display:block;position:relative;transform:rotate(-3deg);box-shadow:1px 5px #b4a17e,2px 8px 10px #1c38251c}.journal-tile .tile-art{inset:8% 2%}.journal-tile .tile-art.portrait{inset:4% -8%}.discovery-copy{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.discovery-copy>.eyebrow{color:var(--story-gold);letter-spacing:1px;font-size:8px}.discovery-copy>strong{letter-spacing:-.4px;font-size:18px;font-weight:700;line-height:1.15}.discovery-copy>span:not(.eyebrow):not(.milestone-dots){color:var(--muted);font-size:10px;line-height:1.5}.next-discovery>svg{width:15px;color:var(--muted);flex-shrink:0}.milestone-dots{gap:5px;margin-top:3px;display:flex}.milestone-dots i{background:var(--line);border-radius:5px;width:22px;height:5px;display:block}.milestone-dots i.complete{background:var(--story-green)}.milestone-dots svg{display:none}.journey-play{background:var(--accent)}.journey.native .journey-play{display:none}.route-heading{justify-content:space-between;align-items:center;margin:5px 0 -2px;display:flex}.route-heading h2{letter-spacing:-.4px;font-size:17px}.route-heading>span{color:var(--muted);font-size:11px}.story-route{flex-direction:column;gap:0;margin:0;padding:0;list-style:none;display:flex}.route-stop{align-items:flex-start;gap:15px;padding:0 0 24px;display:flex;position:relative}.route-stop:before{content:"";background:var(--line);width:1px;position:absolute;top:31px;bottom:0;left:16px}.route-node{background:var(--story-soft);width:34px;height:34px;color:var(--story-green);border:1px solid var(--story-green);border-radius:50%;flex-shrink:0;place-items:center;display:grid}@supports (color:color-mix(in lab, red, red)){.route-node{border:1px solid color-mix(in srgb, var(--story-green) 20%, transparent)}}.route-node{z-index:1;margin-top:12px}.route-node svg{width:16px;height:16px}.current .route-node{background:var(--story-green);color:var(--page);box-shadow:0 0 0 5px var(--story-soft)}.route-stop-card{border:1px solid var(--line);text-align:left;background:var(--surface);border-radius:15px;flex-direction:column;flex:1;gap:5px;min-width:0;padding:12px 34px 12px 14px;display:flex;position:relative}.route-stop-card strong{font-size:14px;font-weight:650}.route-stop-card>span:not(.eyebrow){color:var(--muted);font-size:10px}.route-stop-card .eyebrow{letter-spacing:1px;font-size:8px}.route-stop-card>svg{width:14px;height:16px;color:var(--muted);position:absolute;top:calc(50% - 8px);right:12px}.fog-stop{color:var(--muted);padding-bottom:0}.fog-stop:before{display:none}.fog-stop .route-node{color:var(--muted);background:0 0;border-style:dashed}.fog-stop>div{padding:15px 0 0}.fog-stop strong{font-size:13px;font-weight:550}.fog-stop p{max-width:220px;margin-top:5px;font-size:11px;line-height:1.6}.fog-dots{letter-spacing:7px;opacity:.4;font-size:24px}.story-lead{color:var(--story-green);border-left:2px solid var(--story-green);font:italic 15px/1.65 Georgia,serif}@supports (color:color-mix(in lab, red, red)){.story-lead{border-left:2px solid color-mix(in srgb, var(--story-green) 25%, transparent)}}.story-lead{margin-top:4px;padding-left:15px}.board-preview-link{color:var(--link);background:0 0;border:0;justify-content:center;align-items:center;gap:5px;padding:12px 4px;font-size:11px;display:flex}.board-preview-link svg{width:12px;height:12px}.author-note{color:var(--muted);text-align:center;margin:4px 0 8px;font-size:10px;line-height:1.6}.migration-note{color:var(--muted);background:var(--surface);border-radius:12px;padding:12px;font-size:11px;line-height:1.5}.journey-tabs{z-index:30;width:min(480px,100%);padding:8px 16px max(10px, env(safe-area-inset-bottom), var(--tg-safe-bottom));background:var(--page);grid-template-columns:repeat(3,1fr);display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}@supports (color:color-mix(in lab, red, red)){.journey-tabs{background:color-mix(in srgb, var(--page) 94%, transparent)}}.journey-tabs{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-top:1px solid var(--line)}.journey-tab{color:var(--muted);background:0 0;border:0;border-radius:12px;flex-direction:column;align-items:center;gap:4px;padding:5px;font-size:10px;display:flex}.section-title{letter-spacing:-.3px;justify-content:space-between;gap:10px;margin:5px 0 -6px;font-size:16px;display:flex}.section-title>span{color:var(--muted);font-size:12px;font-weight:500}.page-description{color:var(--muted);font-size:12px;line-height:1.6}.collection-summary{background:var(--story-soft);color:var(--story-green);border-radius:20px;align-items:center;gap:15px;padding:20px;display:flex}.collection-seal{border:1px solid var(--story-green);place-items:center;width:54px;height:58px;font:39px Georgia,serif;display:grid}@supports (color:color-mix(in lab, red, red)){.collection-seal{border:1px solid color-mix(in srgb, var(--story-green) 25%, transparent)}}.collection-seal{border-radius:12px}.collection-summary strong{letter-spacing:-1px;font-size:30px}.collection-summary strong span{opacity:.5;font-size:18px}.collection-summary p{margin-top:3px;font-size:11px}.collection-summary>.chapter-tag{letter-spacing:1px;margin-left:auto;font-size:7px}.collection-list,.starter-list{background:var(--surface);border-radius:17px;overflow:hidden}.collection-row,.starter-row{text-align:left;background:0 0;border:0;align-items:center;gap:16px;width:100%;min-height:88px;padding:15px 16px;display:flex}.collection-row+.collection-row,.starter-row+.starter-row{border-top:1px solid var(--line)}.collection-row .journal-tile{border-radius:6px;width:43px;height:54px;box-shadow:1px 3px #b4a17e}.collection-row>span:not(.journal-tile){flex-direction:column;flex:1;gap:6px;display:flex}.collection-row strong{font-size:14px;font-weight:650}.collection-row small{color:var(--muted);font-size:10px;line-height:1.5}.collection-row>svg,.starter-row>svg{width:14px;color:var(--muted);flex-shrink:0}.empty-collection{text-align:center;color:var(--muted);padding:24px 18px 12px;font-size:12px;line-height:1.6}.empty-collection .text-button{font-size:12px}.collection-next{border:1px dashed var(--story-green);align-items:center;gap:12px;width:100%;display:flex}@supports (color:color-mix(in lab, red, red)){.collection-next{border:1px dashed color-mix(in srgb, var(--story-green) 30%, transparent)}}.collection-next{text-align:left;color:var(--story-green);background:0 0;border-radius:14px;padding:15px}.collection-next>span{flex:1;font-size:12px;font-weight:650}.collection-next small{color:var(--muted);margin-top:4px;font-size:10px;font-weight:400;display:block}.collection-next>svg:last-child{width:14px}.starter-row{gap:14px;min-height:75px;padding-top:12px;padding-bottom:12px}.starter-row .journal-tile{border-radius:5px;width:34px;height:44px;box-shadow:1px 3px #b4a17e}.starter-row>span:not(.journal-tile){flex:1;font-size:12px}.traveler-card{text-align:center;padding:22px 0 13px}.traveler-avatar{background:var(--story-soft);width:76px;height:76px;color:var(--story-green);border:1px solid var(--line);border-radius:50%;place-items:center;margin:0 auto 16px;display:grid}.traveler-avatar svg{stroke-width:1.3px;width:33px;height:33px}.traveler-card h2{letter-spacing:-.6px;font-size:24px}.traveler-card p{color:var(--muted);margin-top:6px;font-size:12px}.profile-badge{background:var(--story-soft);color:var(--story-green);letter-spacing:1.2px;border-radius:20px;margin-top:14px;padding:7px 10px;font-size:8px;display:inline-block}.profile-stats{background:var(--surface);text-align:center;border-radius:18px;grid-template-columns:repeat(3,1fr);padding:20px 8px;display:grid}.profile-stats>div+div{border-left:1px solid var(--line)}.profile-stats strong{letter-spacing:-.8px;font-size:25px;display:block}.profile-stats span{color:var(--muted);margin-top:5px;font-size:9px;display:block}.profile-chapter,.chapter-ending{background:var(--surface);border-radius:18px;padding:20px}.profile-chapter h2,.chapter-ending h2{margin-top:9px;font:22px/1.2 Georgia,serif}.profile-chapter .progress-track{margin-top:18px}.profile-chapter p,.chapter-ending p{color:var(--muted);margin-top:10px;font-size:11px;line-height:1.6}.profile-chapter .text-button,.chapter-ending .text-button{justify-content:center;align-items:center;gap:8px;padding-bottom:0;font-size:12px;display:flex}.profile-chapter .text-button svg,.chapter-ending .text-button svg{width:14px;height:14px}.profile-finds{flex-wrap:wrap;gap:12px;padding:8px 4px 12px;display:flex}.profile-finds>button{background:0 0;border:0;padding:0}.profile-finds .journal-tile{width:47px;height:61px;box-shadow:1px 4px #b4a17e}.profile-finds p{color:var(--muted);padding:10px 0;font-size:12px;line-height:1.6}.story-sheet-art{isolation:isolate;place-items:center;height:140px;margin:0 0 20px;display:grid;position:relative}.story-sheet-art:before{content:"";background:radial-gradient(circle, var(--story-soft) 0%, transparent 72%);z-index:-1;border-radius:50%;width:140px;height:140px;position:absolute}.story-sheet-art .journal-tile{border-radius:12px;width:88px;height:114px;transform:rotate(-5deg);box-shadow:2px 7px #b4a17e,3px 15px 20px #183b231a}.story-sheet-title{letter-spacing:-.6px;margin-top:8px;font:30px/1.1 Georgia,serif}.story-scene{color:var(--text);margin:18px 0 20px;font:16px/1.7 Georgia,serif}.tile-history{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}.tile-history h3{margin:0 0 8px;font-size:12px}.tile-history p{color:var(--muted);font-size:12px;line-height:1.65}.tile-history a{color:var(--link);margin-top:10px;font-size:10px;line-height:1.5;text-decoration:none;display:inline-block}.reward-game-note{color:var(--story-green);text-align:center;margin-top:18px;font-size:11px;line-height:1.5}.reward-art .journal-tile{animation:.6s cubic-bezier(.2,.8,.2,1) both reward-arrival}@keyframes reward-arrival{0%{opacity:0;transform:translateY(14px)rotate(-12deg)scale(.8)}to{opacity:1;transform:translateY(0)rotate(-5deg)scale(1)}}.game{height:calc(100dvh - max(env(safe-area-inset-top), var(--tg-safe-top)) - max(env(safe-area-inset-bottom), var(--tg-safe-bottom)));min-height:0;padding:6px 8px max(8px, env(safe-area-inset-bottom));gap:6px}.game .topbar{min-height:36px;padding:0 3px}.game-header-action{width:34px;height:34px}.game-title h1{font-size:15px}.game-title p{margin-top:3px;font-size:9px}.game-header-action svg{width:19px;height:19px}.game .tray-card{border-radius:15px;padding:5px 10px 9px;box-shadow:0 2px 9px #132a2108}.tray-heading{margin-bottom:4px;font-size:10px}.tray-heading>span{font-size:10px}.tray-slots{grid-template-columns:repeat(4,minmax(0,56px));gap:15px}.tray-slot{height:62px}.tray-note{display:none}.tray-slot .slot-mark{font-size:13px}.game .progress-block{padding:0 5px}.progress-labels{gap:8px;min-height:29px;margin-bottom:3px;font-size:10px}.board-count{margin-left:auto;font-size:9px}.progress-track{height:3px}.zoom-controls{align-items:center;gap:2px;display:flex}.zoom-controls button{min-width:30px;height:29px;color:var(--accent);background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;gap:3px;padding:3px;display:flex}.zoom-controls svg{width:17px;height:17px}.zoom-controls span{font-variant-numeric:tabular-nums;font-size:8px}.game .board-wrap{border-radius:18px;min-height:160px}.board-wrap.scenic:before{border-radius:13px;inset:6px}.board-viewport{overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;border-radius:18px;position:absolute;inset:0;overflow:auto}.board-viewport::-webkit-scrollbar{display:none}.board{touch-action:pan-x pan-y;min-width:100%;min-height:100%;position:relative;inset:auto}.game .game-caption{min-height:12px;margin:0;font-size:9px;line-height:12px}.game .tools{gap:6px}.game .tool{border-radius:12px;flex-direction:row;gap:6px;min-height:45px;font-size:10px}.game .tool svg{width:18px;height:18px}.game .game-footer{display:none}.match-fragment{will-change:transform, opacity;transform-origin:50%;pointer-events:none!important;z-index:4000!important;filter:none!important;margin:0!important;transition:none!important;position:fixed!important}.match-fragment .tile-body{pointer-events:none!important}.dissolve-dust{pointer-events:none;z-index:4001;background:#ebcc7b;border-radius:50%;width:4px;height:4px;position:fixed;box-shadow:0 0 6px #fff1bf}@media (max-height:740px){.game{gap:4px;padding-top:4px}.game .tray-card{padding:4px 9px 7px}.tray-heading{margin-bottom:3px}.tray-slot{height:51px}.tray-slots{grid-template-columns:repeat(4,minmax(0,45px));gap:16px}.game .tool{min-height:40px}.game .game-title p{font-size:8px}.game .topbar{min-height:32px}.game .game-caption{font-size:8px}.journey-hero{height:220px}}@media (min-width:600px){.page-screen{min-height:calc(100svh - 48px)}.journey-tabs{border-radius:0 0 26px 26px;bottom:24px}.game{height:calc(100dvh - 48px);min-height:0}}@media (prefers-reduced-motion:reduce){.reward-art .journal-tile{animation:none}}.reduce-motion .reward-art .journal-tile{animation:none}a{color:inherit;text-decoration:none}input,select{font:inherit}form{margin:0}.primary{cursor:pointer;justify-content:center;align-items:center;gap:8px;width:100%;display:flex}.app{height:100dvh;min-height:0}.page-screen{height:calc(100dvh - var(--tg-safe-top) - var(--tg-safe-bottom));overscroll-behavior:contain;min-height:0;overflow:auto}.journey-tabs a{text-decoration:none}.journey-landscape{object-fit:cover}.native-play{display:none!important}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.collection-grid>.page-description{grid-column:1/-1}.collection-cell{text-align:center;flex-direction:column;align-items:center;gap:7px;font-size:9px;line-height:1.25;display:flex}.collection-cell .journal-tile{flex-shrink:0;width:52px;height:68px}.settings-form{flex-direction:column;gap:12px;display:flex}.settings-row{background:var(--surface);border-radius:14px;justify-content:space-between;align-items:center;gap:16px;padding:16px;font-size:14px;display:flex}.settings-row input[type=checkbox]{appearance:auto;width:22px;height:22px;accent-color:var(--accent)}.settings-row select{max-width:50%;color:var(--text);background:var(--page);border:1px solid var(--line);border-radius:7px;padding:8px}.rules{color:var(--muted);font-size:13px;line-height:1.6}.rules p{margin-top:14px}.effects-layer{z-index:3000;pointer-events:none;position:fixed;inset:0;overflow:hidden}.effects-layer .tile{pointer-events:none!important}.game-result{align-items:center;gap:15px;padding:8px;font-size:12px;display:flex}.game-result .primary{flex:1;width:auto;min-height:38px}.connection-banner{z-index:5000;color:#fff;background:#853a32;border-radius:12px;width:min(400px,90%);padding:14px 18px;font-size:13px;position:fixed;bottom:80px;left:50%;transform:translate(-50%);box-shadow:0 5px 30px #0003}.welcome{justify-content:center;padding-bottom:35px}.welcome .journey-hero{flex-shrink:0}.story-page{gap:16px;padding-bottom:28px}.story-page .story-sheet-art{margin:0 auto}.story-page .story-sheet-title,.story-page>.eyebrow{text-align:center}.game-caption{min-height:16px}.journey-play{min-height:46px}body{overflow:hidden}.game .tile[aria-disabled=true]{cursor:default}.game .tile[aria-disabled=true]:active{transform:none}.journey-tab{flex-direction:column;justify-content:center;align-items:center;gap:5px;display:flex}@media (max-height:740px){.page-screen{gap:12px;padding:12px 18px 78px}.journey-hero{height:166px;min-height:166px}.journey-hero-copy h2{font-size:25px}.journey-hero-copy p{font-size:11px}.journey .story-route,.journey .story-lead,.journey>.author-note,.journey .route-heading{display:none}.traveler-card{padding:14px}.traveler-avatar{width:44px;height:44px}.profile-finds .journal-tile{width:36px;height:48px}.profile-chapter{padding:14px}.profile-page .profile-stats{padding:12px}.collection-page .collection-summary{padding:10px}.collection-page .collection-grid{gap:7px}.collection-page .journal-tile{width:38px;height:48px}.collection-cell span:last-child{font-size:8px}.collection-page .section-title{font-size:13px}.story-page .story-sheet-art .journal-tile{width:64px;height:86px}.story-page .story-scene{font-size:13px;line-height:1.6}.story-page .tile-history,.settings-row{padding:12px}.welcome{padding-bottom:20px}}@media (min-width:600px){.app{height:calc(100dvh - 48px)}.page-screen{height:calc(100dvh - 48px - var(--tg-safe-top) - var(--tg-safe-bottom))}}.progress-track>span{width:var(--progress,0%)}.scenic[data-scene=mist]{--scene-light:linear-gradient(145deg, #e8efeb, #d2e1d9);--scene-dark:linear-gradient(145deg, #273e35, #1b3029);--scene-ink:#3e6555}.scenic[data-scene=sand]{--scene-light:linear-gradient(145deg, #f0ebe0, #e1d7c4);--scene-dark:linear-gradient(145deg, #403d32, #2e2b24);--scene-ink:#72644a}.scenic[data-scene=night]{--scene-light:linear-gradient(145deg, #263f49, #162d38);--scene-dark:linear-gradient(145deg, #263f49, #162d38);--scene-ink:#c1d8db}@media (max-height:740px){.collection-page{gap:8px}.collection-page .collection-summary{min-height:50px;padding:8px}.collection-page .collection-seal{width:34px;height:34px;font-size:30px}.collection-page .collection-summary strong{font-size:27px;line-height:1}.collection-page .collection-summary p{margin-top:3px;font-size:9px}.collection-page .collection-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.collection-page .starter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.collection-page .journal-tile{width:32px;height:42px}.collection-page .collection-cell{gap:4px}.collection-page .collection-next{min-height:44px;padding:8px}.collection-page .section-title{margin:4px 0 0}.profile-page{gap:9px}.profile-page .profile-badge{display:none}.profile-page .traveler-card{padding:10px}.profile-page .traveler-avatar{width:36px;height:36px}.profile-page .traveler-card h2{margin-top:7px;font-size:21px}.profile-page .traveler-card p{margin-top:4px;font-size:10px}.profile-page .profile-stats{padding:8px}.profile-page .profile-stats strong{font-size:23px}.profile-page .profile-stats span{font-size:9px}.profile-page .profile-chapter{padding:10px}.profile-page .profile-chapter>.eyebrow{display:none}.profile-page .profile-chapter h2{font-size:16px}.profile-page .profile-chapter p{margin:6px 0;font-size:11px}.profile-page .profile-chapter .progress-track{margin-top:8px}.profile-page .profile-chapter .text-button{padding:4px}.profile-page .section-title{margin:0;font-size:14px}.profile-page .traveler-card p{display:none}.profile-page .profile-stats strong{line-height:1}.profile-page .profile-stats span{margin-top:4px}.profile-page .profile-finds{min-height:48px;padding:0}.profile-page .author-note{margin-top:0}.profile-page .profile-chapter .text-button{min-height:25px}}.game[aria-busy=true] [data-board-target=tile],.game[aria-busy=true] [data-board-target=control],.game[aria-busy=true] .zoom-controls button{pointer-events:none}.game-feedback{flex-shrink:0}.game{position:relative}.pixi-host{z-index:200000;position:absolute;inset:0;overflow:hidden}.game-canvas{pointer-events:none;width:100%;height:100%;display:block}.pixi-ready .board .tile{opacity:0;filter:none;transition:none}.pixi-ready .board .tile:focus-visible{opacity:.35;outline:3px solid var(--accent)}.game-sync{color:var(--muted);margin:2px 0 0;font-size:9px;line-height:13px}.sync-recover{color:var(--accent);background:0 0;border:0;padding:5px 0;font-size:11px}.game [hidden]{display:none!important}.library-page{padding:22px 20px calc(100px + max(env(safe-area-inset-bottom), var(--tg-safe-bottom)));background:var(--page);scroll-behavior:smooth;gap:20px}.library-header{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.library-header h1{letter-spacing:-1px;font-size:27px;font-weight:720;line-height:1.15}.library-header .eyebrow{letter-spacing:.4px;margin-bottom:6px;font-size:11px;display:block}.library-header.compact{min-height:38px;font-size:16px}.library-header.compact .icon-button{width:34px;height:34px}.library-page .primary{background:var(--accent);min-height:50px;color:var(--button-text);border:0;border-radius:14px;font-size:16px;font-weight:600}.library-page .journey-play{margin:0}.library-page .native-play{display:flex!important}.account-strip{background:var(--surface);border-radius:16px;align-items:center;gap:12px;padding:14px;display:flex}.account-strip>span:nth-child(2){flex:1;gap:4px;display:grid}.account-strip strong{font-size:13px}.account-strip span span{color:var(--muted);font-size:11px}.account-strip>svg{width:15px;color:var(--muted)}.mini-avatar,.reader-avatar{background:var(--accent);border-radius:50%;place-items:center;display:grid}@supports (color:color-mix(in lab, red, red)){.mini-avatar,.reader-avatar{background:color-mix(in srgb, var(--accent) 12%, var(--surface))}}.mini-avatar,.reader-avatar{color:var(--accent);font-weight:600}.mini-avatar{flex-shrink:0;width:36px;height:36px}.section-heading{justify-content:space-between;align-items:center;gap:10px;margin:6px 0 -6px;display:flex}.section-heading h2{letter-spacing:-.5px;font-size:20px;font-weight:650}.section-heading a,.section-heading>span{color:var(--accent);font-size:11px}.feature-story{color:#fff;background:#304737;border-radius:22px;flex-shrink:0;min-height:285px;position:relative;overflow:hidden}.feature-art{object-fit:cover;object-position:50% 40%;width:100%;height:100%;position:absolute}.feature-story:after{content:"";background:linear-gradient(#11241b00 20%,#11241bf0);position:absolute;inset:0}.feature-copy{z-index:1;position:absolute;bottom:24px;left:22px;right:22px}.feature-copy .eyebrow{color:#f8eee2ba;letter-spacing:2px;font-size:10px}.feature-copy h2{letter-spacing:-1.2px;margin:8px 0;font:37px/1.05 Georgia,serif}.feature-copy p{color:#fffcebcb;max-width:280px;font-size:13px;line-height:1.5}.subtle-link{min-height:30px;color:var(--accent);justify-content:center;align-items:center;gap:8px;font-size:13px;display:flex}.subtle-link svg{width:14px;height:14px}.next-secret{background:var(--surface);border-radius:18px;align-items:center;gap:18px;padding:16px;display:flex}.next-secret .journal-tile{width:38px;height:49px}.next-secret strong{font-size:13px}.next-secret p{color:var(--muted);margin-top:6px;font-size:12px}.secret-tile{border:1px solid #fff9ea;place-items:center;box-shadow:1px 3px #b6a382,2px 5px 10px #00000013;background:linear-gradient(135deg,#fff9ec,#e9ddc6)!important;display:grid!important}.secret-tile>span{aspect-ratio:1;color:#97856a;border:1px solid #b6a3825c;border-radius:50%;place-items:center;width:65%;font:23px Georgia,serif;display:grid}.story-book{aspect-ratio:.68;isolation:isolate;background:#c7bda6;border-radius:5px 9px 9px 5px;margin:0 2px 12px;position:relative;box-shadow:1px 3px #e5dcc9,2px 5px #b7ab93,0 12px 18px #2220191a}.story-book>img{object-fit:cover;border-radius:inherit;width:100%;height:100%;display:block}.book-spine{background:linear-gradient(90deg,#19180f90,#ffffff38,#00000050,#0000);border-radius:4px 0 0 4px;width:12px;position:absolute;inset:0 auto 0 0}.book-marker{background:var(--accent);clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);width:14px;height:32px;position:absolute;bottom:-18px;left:14px}.book-hero{grid-template-columns:minmax(0,.95fr) minmax(0,1fr);align-items:center;gap:18px;display:grid}.book-description{flex-direction:column;justify-content:center;align-self:stretch;min-width:0;display:flex}.book-description>.eyebrow{letter-spacing:2px;color:var(--muted);font-size:10px}.book-description h1{letter-spacing:-1.3px;margin:12px 0 16px;font:36px/.98 Georgia,serif}.book-description>p{color:var(--muted);font-size:12px;line-height:1.55}.book-progress{margin-top:auto;padding-top:20px}.book-progress>span{font-size:10px}.book-progress .progress-track{background:var(--line);height:7px;margin-top:10px}.book-progress .progress-track>span{background:var(--accent);border-radius:inherit}.story-shortcuts{grid-template-columns:1fr 1fr;gap:10px;display:grid}.story-shortcuts>a{background:var(--surface);border-radius:17px;align-items:center;gap:10px;min-height:80px;padding:14px 11px;display:flex;box-shadow:0 4px 18px #14213105}.story-shortcuts .journal-tile{flex-shrink:0;width:28px;height:37px}.story-shortcuts>a>svg:first-child{color:#b8964c;flex-shrink:0;width:25px;height:30px}.story-shortcuts>a>svg:last-child{width:12px;height:12px;color:var(--muted);flex-shrink:0;margin-left:auto}.story-shortcuts a>span:not(.journal-tile){min-width:0;font-size:12px}.story-shortcuts small{color:var(--muted);font-size:10px}.story-shortcuts strong{margin-top:4px;font-size:14px;font-weight:600;display:block}.contents-heading h2{letter-spacing:-.8px;font:29px Georgia,serif}.contents-heading>span{color:var(--muted);font-size:10px}.chapter-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.chapter-row{background:var(--surface);border-radius:16px;align-items:center;gap:13px;min-height:87px;padding:13px 15px;display:flex;position:relative}.current-chapter{background:var(--accent)}@supports (color:color-mix(in lab, red, red)){.current-chapter{background:color-mix(in srgb, var(--accent) 11%, var(--surface))}}.chapter-bookmark{background:var(--line);width:27px;height:47px;color:var(--muted);clip-path:polygon(0 0,100% 0,100% 100%,50% 84%,0 100%);flex-shrink:0;place-items:center;padding-bottom:7px;font-size:13px;display:grid}.current-chapter .chapter-bookmark{background:var(--accent);color:var(--button-text)}.chapter-copy{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.chapter-copy strong{font-size:14px;font-weight:600}.chapter-copy>span{color:var(--muted);font-size:12px}.chapter-copy small{color:var(--accent);font-size:10px}.chapter-row .journal-tile{flex-shrink:0;width:33px;height:43px}.chapter-row .secret-tile>span{font-size:20px}.chapter-reward-icon{background:var(--line);width:38px;height:38px;color:var(--muted);border-radius:50%;place-items:center;display:grid}.chapter-reward-icon svg{width:18px;height:18px}.chapter-open{border-radius:inherit;position:absolute;inset:0}.chapter-open:hover{background:var(--accent)}@supports (color:color-mix(in lab, red, red)){.chapter-open:hover{background:color-mix(in srgb, var(--accent) 4%, transparent)}}.future-chapters summary{color:var(--accent);cursor:pointer;padding:14px 0;font-size:14px}.future-chapters>p{color:var(--muted);margin-bottom:18px;font-size:12px;line-height:1.6}.muted-note{color:var(--muted);font-size:11px;line-height:1.6}.library-story-card{background:var(--surface);border-radius:18px;align-items:center;gap:17px;padding:17px;display:flex}.library-story-card .story-book{flex-shrink:0;width:75px}.library-story-card>svg{width:15px;color:var(--muted);margin-left:auto}.story-card-copy{gap:8px;min-width:0;display:grid}.story-card-copy .eyebrow{letter-spacing:1.4px;font-size:9px}.story-card-copy>strong{letter-spacing:-.6px;font:23px/1.1 Georgia,serif}.story-card-copy>span:not(.eyebrow){color:var(--muted);font-size:11px;line-height:1.4}.story-card-copy .card-progress{font-weight:600;color:var(--accent)!important}.library-search{background:var(--surface);border-radius:13px;gap:10px;padding:4px 12px;display:flex}.library-search input[type=search]{outline-color:var(--accent);background:0 0;border:0;width:100%;min-width:0;padding:12px 0;font-size:14px}.library-search input[type=submit]{color:var(--accent);background:0 0;border:0;font-size:12px}.category-label{background:var(--accent);align-self:flex-start;align-items:center;gap:7px;padding:9px 13px;display:flex}@supports (color:color-mix(in lab, red, red)){.category-label{background:color-mix(in srgb, var(--accent) 10%, var(--surface))}}.category-label{color:var(--accent);border-radius:20px;font-size:12px}.category-label svg{width:15px;height:15px}.empty-state{text-align:center;justify-items:center;gap:15px;padding:32px 15px;display:grid}.empty-state>svg{width:40px;height:40px;color:var(--accent)}.empty-state h2{font:27px Georgia,serif}.empty-state p{color:var(--muted);font-size:13px;line-height:1.6}.reader-profile{justify-items:center;gap:10px;padding:10px 0;display:grid}.reader-avatar{width:72px;height:72px;font-size:30px}.reader-profile h2{font-size:25px}.reader-profile p{font-size:13px}.reader-profile .progress-track{width:70%;height:6px;margin:5px 0}.reader-profile>span:last-child{color:var(--muted);font-size:11px}.shared-cosmetics,.shop-products{grid-template-columns:1fr 1fr;gap:12px;display:grid}.cosmetic-card{background:var(--surface);border-radius:16px;gap:10px;padding:16px;display:grid}.cosmetic-card strong{font-size:12px}.cosmetic-card>span:last-child{color:var(--muted);font-size:10px}.cosmetic-swatch{background:linear-gradient(145deg,#e8efeb,#b8d2c5);border-radius:10px;width:50px;height:40px;display:block;box-shadow:inset 0 0 0 4px #ffffff50}.settings-link{background:var(--surface);border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:16px;display:flex}.settings-link>span{gap:6px;display:grid}.settings-link strong{font-size:13px}.settings-link small{color:var(--muted);font-size:11px;line-height:1.4}.settings-link>svg{width:15px;height:15px;color:var(--muted)}.preferences-form{gap:24px;display:grid}.field-label{gap:10px;font-weight:600;display:grid}.field-label select{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:13px;width:100%;padding:15px 12px;font-size:15px}.preferences-form fieldset{border:0;margin:0;padding:0}.preferences-form legend{margin-bottom:8px;font-weight:600}.preferences-form fieldset>p{margin-bottom:12px}.language-choice{background:var(--surface);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:16px;font-size:14px;display:flex}.language-choice:first-of-type{border-radius:14px 14px 0 0}.language-choice:last-of-type{border:0;border-radius:0 0 14px 14px}.language-choice input,.tutorial-choice input{width:21px;height:21px;accent-color:var(--accent)}.form-error{color:#b2403a;font-size:13px}.segmented-control{background:var(--line);border-radius:12px;padding:4px;display:flex}.segmented-control a{text-align:center;border-radius:9px;flex:1;padding:10px 5px;font-size:12px}.segmented-control a.selected{background:var(--surface);font-weight:600;box-shadow:0 2px 5px #0000000a}.ranking-context{align-items:center;gap:10px;font:20px Georgia,serif;display:flex}.ranking-context svg{color:var(--accent)}.leaderboard{border-radius:18px;margin:0;padding:0;list-style:none;overflow:hidden}.leaderboard li{background:var(--surface);border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:15px 12px;font-size:13px;display:flex}.leaderboard .my-rank{background:var(--accent)}@supports (color:color-mix(in lab, red, red)){.leaderboard .my-rank{background:color-mix(in srgb, var(--accent) 12%, var(--surface))}}.rank-number{text-align:center;width:20px;color:var(--muted)}.rank-name{flex:1;gap:6px;display:grid}.rank-name small,.leaderboard li>strong>small{color:var(--muted);font-size:10px;font-weight:400}.my-position{background:var(--surface);border-radius:16px;grid-template-columns:1fr auto;gap:10px;padding:18px;display:grid}.my-position>span{color:var(--muted);font-size:12px}.my-position strong{font-size:13px}.my-position a{color:var(--accent);grid-column:1/-1;font-size:13px}.demo-notice{border:1px dashed var(--accent)}@supports (color:color-mix(in lab, red, red)){.demo-notice{border:1px dashed color-mix(in srgb, var(--accent) 35%, var(--surface))}}.demo-notice{background:var(--accent)}@supports (color:color-mix(in lab, red, red)){.demo-notice{background:color-mix(in srgb, var(--accent) 6%, var(--surface))}}.demo-notice{border-radius:14px;padding:15px}.demo-notice strong{color:var(--accent);font-size:12px}.demo-notice p{color:var(--muted);margin-top:7px;font-size:12px;line-height:1.6}.premium-card{color:#fff;background:#172d49;border-radius:22px;padding:24px 20px}.premium-card .eyebrow{color:#c1d7f8;font-size:10px}.premium-card h2{margin:12px 0;font:30px/1.1 Georgia,serif}.premium-card p{color:#c5d2e3;margin-bottom:20px;font-size:13px;line-height:1.6}.shop-product{background:var(--surface);border-radius:17px;flex-direction:column;gap:12px;padding:18px;display:flex}.shop-product>svg{color:var(--accent);width:30px;height:30px}.shop-product h2{font-size:15px}.shop-product p{color:var(--muted);flex:1;font-size:11px;line-height:1.55}.secondary-button{width:100%;color:var(--accent);background:var(--accent);padding:11px 4px}@supports (color:color-mix(in lab, red, red)){.secondary-button{background:color-mix(in srgb, var(--accent) 10%, var(--surface))}}.secondary-button{border:0;border-radius:10px;font-size:12px}.experience-shop{background:var(--surface);border-radius:18px;padding:20px}.experience-shop h2{font-size:20px}.experience-shop p{color:var(--muted);margin:12px 0 18px;font-size:12px;line-height:1.6}.xp-limit{justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px;font-size:10px;display:flex}.experience-shop input[type=range]{width:100%;accent-color:var(--accent);height:30px}.experience-shop output{text-align:center;margin:10px 0 18px;font-size:23px;display:block}.shop-notice{color:var(--accent);font-size:13px;line-height:1.5}.journey-tabs{background:var(--surface);padding-bottom:max(12px, env(safe-area-inset-bottom), var(--tg-safe-bottom));grid-template-columns:repeat(4,1fr)}.journey-tab{min-height:51px;font-size:10px}.journey-tab svg{width:25px;height:25px}.journey-tab.active{color:var(--accent)}.library-page .profile-stats{padding:20px 8px}.comic-screen{height:calc(100dvh - var(--tg-safe-top) - var(--tg-safe-bottom));color:#fff;isolation:isolate;background:#131b22;flex-direction:column;display:flex;position:relative;overflow:hidden}.comic-header{z-index:3;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px 8px;display:flex}.comic-header .icon-button{color:#fff;background:#ffffff17;width:34px;height:34px}.comic-header>span{font-size:12px}.comic-counter{color:#ffffff80;text-align:right;width:40px}.comic-progress{z-index:3;gap:5px;margin:3px 20px 0;display:flex}.comic-progress>span{background:#ffffff30;border-radius:3px;flex:1;height:3px}.comic-panels{z-index:-1;position:absolute;inset:0}.comic-panel{position:absolute;inset:0;overflow:hidden}.comic-panel[hidden]{display:none}.comic-art{position:absolute;inset:0;overflow:hidden}.comic-art>img{object-fit:cover;object-position:50% 35%;transform-origin:55% 45%;width:100%;height:100%}.comic-shade{background:linear-gradient(#0a111962,#0000 23% 40%,#121c2490 67%,#121c24 88%);position:absolute;inset:0}.comic-caption{position:absolute;bottom:143px;left:26px;right:26px}.comic-caption .eyebrow{color:#f1d5a1;letter-spacing:1px;font-size:10px}.comic-caption p{text-shadow:0 2px 15px #00000030;margin-top:12px;font:22px/1.45 Georgia,serif}.comic-discovery{justify-items:center;gap:15px;display:grid;position:absolute;top:29%;left:30px}.comic-discovery .journal-tile{width:94px;height:123px;box-shadow:2px 5px #ac9874,0 0 75px #ffe3a378}.comic-discovery>span{text-shadow:0 1px 5px #000;gap:5px;display:grid}.comic-discovery strong{font:22px Georgia,serif}.comic-discovery small{color:#f0d9b7;font-size:10px}.comic-footer{padding:0 22px max(26px, env(safe-area-inset-bottom));z-index:4;margin-top:auto}.comic-step-controls{align-items:center;gap:12px;display:flex}.comic-footer .primary{background:var(--accent);min-height:48px;color:var(--button-text);border:0;border-radius:14px;font-size:15px}.comic-footer .icon-button{color:#fff;background:#ffffff14;flex-shrink:0}.comic-footer [hidden]{display:none!important}.comic-footer form{gap:14px;display:grid}.tutorial-choice{color:#ffffffb0;align-items:center;gap:8px;font-size:11px;display:flex}.comic-dust{background:#ffdfb490;border-radius:50%;width:4px;height:4px;animation:8s ease-in-out 2 comic-drift;position:absolute;box-shadow:0 0 12px #fff3bb}.dust-one{top:25%;left:20%}.dust-two{animation-delay:1s;top:39%;left:69%}.dust-three{animation-delay:2s;top:50%;left:36%}@keyframes comic-drift{0%,to{opacity:0;transform:translateY(12px)}40%{opacity:.8}80%{opacity:0;transform:translate(25px,-65px)}}.tutorial-box{z-index:300001;background:var(--surface);border:1px solid var(--accent);border-radius:15px;flex-shrink:0;margin:0 6px;padding:14px 16px;position:relative;box-shadow:0 5px 35px #12202030}@supports (color:color-mix(in lab, red, red)){.tutorial-box{border:1px solid color-mix(in srgb, var(--accent) 35%, var(--surface))}}.tutorial-box p{font-size:12px;line-height:1.5}.tutorial-box>div{justify-content:space-between;margin-top:8px;display:flex}.tutorial-box button{color:var(--accent);background:0 0;border:0;padding:5px;font-size:12px}.game-new .game-title h1{font:19px Georgia,serif}.game-new .board-wrap{background:linear-gradient(145deg,#e5ece7,#cad8cf)}:root[data-theme=dark] .game-new .board-wrap{background:linear-gradient(145deg,#293d37,#192c26)}@media (min-width:600px){.comic-screen{height:calc(100dvh - 48px - var(--tg-safe-top) - var(--tg-safe-bottom));border-radius:26px}}@media (max-width:360px){.book-description h1{font-size:31px}.story-shortcuts{gap:6px}.story-shortcuts>a{gap:7px;padding:12px 9px}.book-description>p{font-size:11px}.library-page{padding-left:16px;padding-right:16px}}@media (max-height:740px){.comic-caption{bottom:125px}.comic-caption p{font-size:18px}.feature-story{min-height:235px}.library-page{gap:17px}.comic-discovery{top:23%}.comic-discovery .journal-tile{width:67px;height:88px}}@media (prefers-reduced-motion:reduce){.comic-dust{animation:none;display:none}.library-page{scroll-behavior:auto}}.reduce-motion .comic-dust{animation:none;display:none}.welcome-library{justify-content:center;padding-bottom:32px}.welcome-library .library-header{margin-bottom:8px}.welcome-book{align-self:center;width:56%;max-width:215px;margin:10px 0 20px}.welcome-copy h2{letter-spacing:-.8px;font:31px/1.1 Georgia,serif}.welcome-copy p{color:var(--muted);margin-top:12px;font-size:13px;line-height:1.65}@media (max-height:740px){.welcome-book{max-width:150px;margin:0 0 10px}.welcome-copy h2{font-size:27px}}.tray-place{min-width:0}.tray-name{text-overflow:ellipsis;white-space:nowrap;text-align:center;height:15px;color:var(--muted);margin-top:5px;font-size:9px;display:block;overflow:hidden}.secret-tile>span,.chapter-row .secret-tile>span{color:#7c745e;box-shadow:none;background:0 0;border:0;border-radius:0;font:800 38px/1 system-ui,sans-serif}.secret-tile{background:linear-gradient(145deg,#fffdf5,#e9dfc9)}.lesson-heading{color:var(--accent);justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px;font-size:11px;display:flex}.lesson-heading span{font-variant-numeric:tabular-nums}.lesson-focus{outline-offset:3px;box-shadow:0 0 20px #e7bf6e77;outline:3px solid #dcae45!important}.pixi-ready .board .tile.lesson-focus{opacity:0;background:0 0}.game .board .tile{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.tutorial-box button{background:var(--accent);width:100%;min-height:38px;color:var(--button-text);border-radius:9px;margin-top:8px}.game-celebration{z-index:300001;pointer-events:none;text-align:center;color:var(--accent);background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:10px;font:16px Georgia,serif;position:absolute;top:26%;left:10%;right:10%;box-shadow:0 6px 30px #1232}.result-summary{gap:5px;font-size:11px;display:grid}.result-summary strong{font:20px Georgia,serif}.result-summary small{color:var(--muted);font-size:9px}.comic-progress{order:-1;gap:3px;margin:9px 10px 0}.comic-progress>span{background:#ffffff50;height:2px}.comic-progress>.read{background:#fff}.comic-progress>.current{box-shadow:0 0 5px #ffffff50}.comic-header{gap:9px;padding:11px 12px}.comic-avatar{color:#f1d5a1;background:#ffffff15;border:1px solid #ffffff70;border-radius:50%;place-items:center;width:38px;height:38px;font:25px Georgia,serif;display:grid}.comic-identity{flex:1;gap:4px;min-width:0;display:grid}.comic-identity strong{font-size:13px}.comic-identity>span{color:#ffffffb0;font-size:10px}.comic-header .icon-button{background:0 0}.comic-header .muted{opacity:.45}.comic-caption{pointer-events:none;bottom:118px;left:23px;right:23px}.comic-caption p{font:20px/1.45 Georgia,serif}.comic-footer{padding:0 20px max(20px, env(safe-area-inset-bottom))}.comic-gesture-note{color:#ffffff80;text-align:center;margin-bottom:13px;font-size:9px}.comic-screen{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.comic-actor{background-image:var(--actor);filter:drop-shadow(0 6px 12px #44332125);background-repeat:no-repeat;position:absolute}.letter-actor{aspect-ratio:543/724;background-position:0 0;background-size:400% 100%;width:100%;bottom:17%;right:-7%}[data-focus=letter] .letter-actor{animation:5s step-end forwards letter-action}[data-focus=heroine] .letter-actor{background-position:100% 0}.comic-walk-path{aspect-ratio:3/4;width:52%;animation:15s linear forwards walk-path;position:absolute;bottom:22%;right:20%}.walk-actor{background-size:400% 200%;animation:1.4s step-end infinite walk-cycle;inset:0}.comic-clouds{opacity:.2;background:radial-gradient(at 25% 40%,#fff 5%,#0000 35%),radial-gradient(at 65% 20%,#fff 10%,#0000 40%);animation:30s linear infinite alternate clouds-pass;position:absolute;inset:0 -35% 65%}.comic-river{clip-path:polygon(39% 0,47% 0,36% 29%,54% 45%,28% 68%,40% 100%,0 100%,0 79%,16% 58%,31% 42%,21% 27%);opacity:.23;width:60%;height:65%;position:absolute;bottom:0;left:0;overflow:hidden}.comic-river>span{background:repeating-linear-gradient(-15deg,#0000 0 18px,#f3ffffc0 21px,#0000 25px 40px);animation:2.5s linear infinite river-flow;position:absolute;inset:-25%}.comic-paused *,.comic-paused :before,.comic-paused :after{animation-play-state:paused!important}@keyframes letter-action{0%{background-position:0 0}25%{background-position:33.333% 0}50%{background-position:66.666% 0}75%,to{background-position:100% 0}}@keyframes walk-cycle{0%{background-position:0 0}12.5%{background-position:33.333% 0}25%{background-position:66.666% 0}37.5%{background-position:100% 0}50%{background-position:0 100%}62.5%{background-position:33.333% 100%}75%{background-position:66.666% 100%}87.5%{background-position:100% 100%}}@keyframes walk-path{0%{transform:translate(-15%)scale(.9)}to{transform:translate(25%)scale(1)}}@keyframes clouds-pass{0%{transform:translate(-10%)}to{transform:translate(10%)}}@keyframes river-flow{0%{transform:translateY(-40px)}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.comic-actor,.comic-clouds,.comic-river>span,.comic-walk-path{animation:none!important}}.reduce-motion .comic-actor,.reduce-motion .comic-clouds,.reduce-motion .comic-river>span,.reduce-motion .comic-walk-path{animation:none!important}.reward-page{text-align:center;flex-direction:column;gap:18px;display:flex}.reward-page h1{font:28px/1.2 Georgia,serif}.reward-page>p{font-size:13px;line-height:1.6}.reward-story-cover{border-radius:18px;flex-shrink:0;height:155px;position:relative;overflow:hidden}.reward-story-cover img{object-fit:cover;object-position:50% 30%;width:100%;height:100%}.reward-story-cover>span{color:#fff;bottom:0;background:linear-gradient(#0000,#152b38d0);padding:25px 10px 12px;font:19px Georgia,serif;position:absolute;inset-inline:0}.reward-object{place-items:center;height:130px;display:grid}.reward-object .journal-tile{width:80px;height:105px}.reward-live-preview{background:linear-gradient(140deg,#dcebe3,#bfd4c8);border:5px double #baaa7c;border-radius:20px;justify-content:center;align-items:center;gap:24px;height:180px;display:flex}.reward-live-preview .journal-tile{width:56px;height:74px}.preview-pair{gap:8px;display:flex}.night-preview{background:linear-gradient(145deg,#263f49,#162d38)}.sand-preview{background:linear-gradient(145deg,#f0ebe0,#e1d7c4)}.ice-preview .preview-piece{filter:drop-shadow(0 0 10px #79dbff)}.rose-preview .preview-piece{filter:drop-shadow(0 0 10px #f2a6bd)}.reward-page [hidden]{display:none!important}.journal-tile{position:relative}.match-group{aspect-ratio:1;color:#fffdf4;background:#9c4766;border-radius:3px;place-items:center;width:21%;font:700 10px/1 sans-serif;display:grid;position:absolute;bottom:5%;right:3%}.match-group.seasons{background:#326e80}.board-wrap[data-frame=goldframe]{border:3px double #b59a55;box-shadow:inset 0 0 0 4px #f0dba855}.goldframe-preview{border:7px double #c5a252;box-shadow:inset 0 0 0 5px #f4dfb3}.new-deal-note{background:var(--surface);width:100%;color:var(--accent);border:0;border-radius:8px;padding:6px 8px;font-size:10px}.home-account-row{align-items:center;gap:12px;display:flex}.home-account-row .account-strip{flex:1;min-width:0;padding:12px}.home-account-row .account-strip strong{font-size:16px}.home-shop{background:var(--surface);border-radius:16px;flex-shrink:0;width:52px;height:52px}.feature-story{display:block}.feature-copy h2{font-size:34px}.country-picker,.language-picker{border:0;min-width:0;padding:0}.preferences-form legend{margin-bottom:12px;font-size:19px;font-weight:650}.country-picker input[type=search]{background:var(--surface);width:100%;color:var(--text);border:1px solid var(--line);font:inherit;border-radius:12px;margin-bottom:12px;padding:13px 15px}.country-grid{overscroll-behavior:contain;grid-template-columns:repeat(6,1fr);gap:8px;max-height:285px;padding:3px;display:grid;overflow-y:auto}.country-choice{background:var(--surface);cursor:pointer;border:2px solid #0000;border-radius:12px;place-items:center;min-height:49px;display:grid;position:relative}.country-choice:has(input:checked){border-color:var(--accent);background:var(--accent)}@supports (color:color-mix(in lab, red, red)){.country-choice:has(input:checked){background:color-mix(in srgb, var(--accent) 12%, var(--surface))}}.country-choice:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.country-flag{font-size:30px;line-height:1.25}.preference-page [hidden],.country-grid [hidden]{display:none!important}.language-list{overscroll-behavior:contain;max-height:280px;overflow-y:auto}.language-choice{min-height:51px;font-size:16px}.language-choice:has(input:checked){color:var(--accent);font-weight:600}.collection-group{margin-top:15px}.collection-group .section-title,.locked-collection .section-title{font-size:20px}.locked-collection{margin-top:24px}.locked-collection .collection-cell>span:last-child{font-size:13px}.tutorial-box{grid-template-rows:16px 56px 38px;gap:6px;height:148px;padding:12px 16px;display:grid}.tutorial-box p{letter-spacing:-.4px;font-size:23px;font-weight:650;line-height:1.2}.lesson-heading{margin:0!important}.lesson-heading strong{display:none}.lesson-heading span{color:var(--muted);font-size:12px}.tutorial-box button{margin-top:0;font-size:16px}.teaching .board .tile:not(.lesson-focus),.teaching .board .tile:not(.lesson-focus) *{pointer-events:none}.teaching-hand{z-index:300002;color:#fff5df;pointer-events:none;animation:2s ease-in-out infinite teaching-drag;position:absolute;transform:translate(15px,35px)}.teaching-hand svg{filter:drop-shadow(0 2px 5px #152a4655);width:46px;height:56px}@keyframes teaching-drag{0%,15%{opacity:0;transform:translate(15px,35px)scale(1.1)}25%{opacity:1;transform:translate(15px,30px)scale(1)}70%{opacity:1;transform:translate(65px,15px)scale(1)}to{opacity:0;transform:translate(65px,15px)}}.chapter-result{z-index:400000;background:var(--page);padding-bottom:max(24px, env(safe-area-inset-bottom));animation:.3s ease-out result-arrive;position:fixed;inset:0;overflow-y:auto}.result-illustration{height:29svh;min-height:150px;max-height:280px;position:relative;overflow:hidden}.result-illustration>img{object-fit:cover;object-position:center 40%;width:100%;height:100%}.result-illustration:after{content:"";background:linear-gradient(transparent, var(--page));position:absolute;inset:0}.result-illustration>span{z-index:1;background:var(--surface);width:64px;height:64px;color:var(--green);border-radius:50%;place-items:center;display:grid;position:absolute;bottom:12px;left:calc(50% - 32px);box-shadow:0 3px 25px #1232}.result-illustration svg{width:32px;height:32px}.result-body{text-align:center;gap:16px;max-width:480px;margin:auto;padding:12px 24px 28px;display:grid}.result-body h2{letter-spacing:-1px;font:35px/1.1 Georgia,serif}.result-chapter-name{color:var(--muted);font-size:17px}.result-xp{color:var(--accent);font-size:25px;font-weight:700}.result-stats{grid-template-columns:1fr 1fr;gap:10px;display:grid}.result-stats>span{background:var(--surface);border-radius:16px;padding:17px 10px;font-size:15px}.result-helpers,.result-sync{color:var(--muted);font-size:13px;line-height:1.4}.result-account,.result-streak{font-size:16px;font-weight:600}.result-account:empty,.result-streak:empty{display:none}.result-next{border-top:1px solid var(--line);padding-top:17px;font-size:15px}.result-body .primary{width:100%}@keyframes result-arrive{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.teaching-hand,.chapter-result{animation:none}}.reduce-motion .teaching-hand{animation:none}.replay-teaching{text-align:left;width:100%;font:inherit;color:var(--accent);border:0}.teaching-spotlight{z-index:300000;pointer-events:none;width:100%;height:100%;position:fixed;inset:0}.comic-demo-cover{object-fit:cover;border-radius:12px;flex-shrink:0;width:76px;height:104px}.comic-demo-card{margin-top:16px}.comic-demo-screen{flex-direction:column;height:100%;display:flex}.comic-demo-heading{color:var(--muted);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:8px 16px;font-size:11px;display:flex}.comic-demo-frame{background:#161b1c;border:0;flex:1;width:100%;min-height:0;display:block}.comic-demo-heading .text-button{flex-shrink:0;width:auto}.comic-demo-heading{height:38px;min-height:38px;padding:0 14px}.comic-demo-heading .text-button{min-height:0;margin:0;padding:0;font-size:12px;line-height:1.4}button.chapter-open{background:0 0;border:0;padding:0}.lighthouse{background:var(--page);height:100%;color:var(--text);position:relative;overflow:hidden}.lighthouse>.page-screen{height:100%}.lh-header{color:#f4ead4;background:#102821;justify-content:space-between;align-items:center;gap:8px;height:42px;min-height:42px;padding:6px 14px;font-size:11px;display:flex}.lh-header a{color:#c8cbb2;text-decoration:none}.lh-header button{color:#f8e6bd;background:#ffffff08;border:1px solid #c7bb9144;border-radius:50%;width:30px;height:30px}.lh-status{z-index:300000;color:#183428;background:#f3ddac;border-radius:10px;padding:12px;font-size:12px;position:absolute;top:48px;left:12px;right:12px}.lh-comic{color:#f4ead4}.lh-discovery-copy button{color:#1d3b2c;background:#eed9b2;border:0;border-radius:11px;width:100%;padding:15px;font-size:12px;font-weight:750}.lighthouse-book-art,.lighthouse-result-art{border-radius:inherit;background:url("/assets/lighthouse/chapters-a-9c8de312.webp") 0 0/300%;width:100%;height:100%;display:block}.lighthouse-book-art{position:absolute;inset:0}.lighthouse-face{width:100%;height:100%;display:block;overflow:hidden}.lighthouse-face svg{stroke:none;width:100%;height:100%;overflow:hidden}.board-wrap[data-scene=workshop]:before{background:repeating-linear-gradient(3deg,#48352a 0,#574032 3px,#51392a 6px,#483124 12px)}.lighthouse-cover{background:url("/assets/lighthouse/chapters-a-9c8de312.webp") 0 0/300%;border-radius:12px;flex-shrink:0;width:76px;height:104px;display:block}.lh-comic{z-index:20;touch-action:none;-webkit-user-select:none;user-select:none;background:#10251d;position:absolute;inset:42px 0 0;overflow:hidden}.lh-comic-art{pointer-events:none;clip-path:inset(2px);background-size:300% 200%;position:absolute}.lh-comic-shade{pointer-events:none;background:linear-gradient(#061e1633,#0000 25% 75%,#061e1655);position:absolute;inset:0}.lh-comic-progress{z-index:9;gap:4px;display:flex;position:absolute;top:10px;left:12px;right:12px}.lh-comic-progress>span{background:#fff5;flex:1;height:3px;overflow:hidden}.lh-comic-progress i{transform-origin:0;background:#fff0c9;height:100%;display:block;transform:scaleX(0)}.lh-narration{color:#fff;padding:0 26px calc(42px + max(env(safe-area-inset-bottom), var(--tg-safe-bottom)));z-index:4;background:linear-gradient(#0000 40%,#121c2490 67%,#121c24 88%);align-items:flex-end;display:flex;position:absolute;inset:0}.lh-narration p{text-shadow:0 2px 15px #00000030;font:22px/1.45 Georgia,serif}.lh-dialogue{pointer-events:none;z-index:5;position:absolute;inset:0}.lh-dialogue .lh-bubble{color:#263d2c;background:#fff0d5;border-radius:15px;width:44%;padding:11px 12px;font-size:13px;line-height:1.55;position:absolute;box-shadow:0 4px 20px #0002}.lh-bubble:before{content:"";clip-path:polygon(0 100%,60% 0,100% 100%);background:#fff0d5;width:17px;height:13px;position:absolute;top:-11px;left:45%}.lh-discovery-prop{z-index:3;pointer-events:none;position:absolute}.lh-tile-body{opacity:0;background:linear-gradient(130deg,#fffaeb,#e8d7af);border-radius:14%;position:absolute;inset:-10% -14%;box-shadow:0 7px #af9a70,0 10px #746342,inset 0 0 0 5px #fff4d9,inset 0 0 0 7px #b79e6d}.lh-prop-image{color:#f1cd80;place-items:center;width:100%;height:100%;font-size:60px;display:grid;position:relative}.lh-prop-image svg{stroke:none;width:100%;height:100%}.lh-discovery-prop.lifted{z-index:8;filter:drop-shadow(0 14px 20px #0005)}.lh-discovery-dim{z-index:7;background:#08251ee0;position:absolute;inset:0}.lh-discovery-copy{z-index:9;text-align:center;touch-action:pan-y;padding-bottom:15px;position:absolute;bottom:12px;left:8%;right:8%;overflow:auto}.lh-discovery-copy>span{letter-spacing:2px;text-transform:uppercase;color:#e4c58e;font-size:8px}.lh-discovery-copy h2{margin:13px 0;font:25px/1.25 Georgia,serif}.lh-discovery-copy p{color:#d7e1ca;margin-bottom:20px;font-size:12px;line-height:1.8}.lh-discovery-copy button{margin:5px 0}.lh-discovery-copy button:last-child{color:#d4cfad;background:0 0;border:1px solid #decca133;padding:11px;font-size:11px}.lighthouse [hidden]{display:none!important}@media (max-height:650px){.lh-discovery-copy h2{margin:9px 0;font-size:21px}.lh-discovery-copy p{margin-bottom:12px;font-size:11px;line-height:1.6}.lh-discovery-copy button{padding:11px}}.lh-bubble.offscreen:before{clip-path:polygon(0 0,100% 50%,0 100%);width:24px;height:14px;top:20px;left:100%}.lh-bubble.offscreen{right:24px;left:auto!important}.lh-comic[data-weather=rain] .lh-comic-art:after{content:"";clip-path:polygon(62% 0,100% 0,100% 48%,62% 48%);background:repeating-linear-gradient(105deg,#0000 0 20px,#d2eaf233 22px,#0000 24px);animation:.4s linear infinite lh-rain;position:absolute;inset:0}.lh-comic[data-weather=beam] .lh-comic-art:after{content:"";background:conic-gradient(from 60deg at 30% 30%, transparent 0 25deg, #ffe6a526 27deg 40deg, transparent 43deg);animation:7s ease-in-out infinite lh-light;position:absolute;inset:0}@keyframes lh-rain{to{background-position:-24px 44px}}@keyframes lh-light{50%{opacity:.35;transform:rotate(8deg)}}.lh-voice-label{letter-spacing:1px;text-transform:uppercase;color:#7b735a;margin-bottom:5px;font-size:8px;display:block}.lh-prop-image svg.lh-reward-icon{stroke:currentColor;fill:none;stroke-width:3.2px;stroke-linecap:round;stroke-linejoin:round;color:#a57c39;width:78%;height:78%}.lh-icon-ambience path{animation:2.5s ease-in-out infinite lh-icon-wave}.lh-icon-ambience path:nth-child(2){animation-delay:-.8s}.lh-icon-ambience path:nth-child(3){animation-delay:-1.6s}@keyframes lh-icon-wave{50%{opacity:.6;transform:translateY(4px)}}.lh-bubble.has-tail:before{display:none}.lh-speech-tail{pointer-events:none;position:absolute;top:0;left:0;width:1px!important;height:1px!important;overflow:visible!important}.lh-speech-tail path{fill:#fff0d5;stroke:none}.lighthouse .board-wrap:after{content:""}.lh-comic:focus{outline:none}.lighthouse[data-lighthouse-screen-value=comic]{height:calc(100% + max(env(safe-area-inset-bottom), var(--tg-safe-bottom)))}.lh-discovery-copy{padding-bottom:max(15px, env(safe-area-inset-bottom), var(--tg-safe-bottom))}.letter-reader .letter-plate{object-fit:cover;width:100%;height:100%}.letter-reader .lh-prop-image .journal-tile{width:100%;height:100%}.letter-reader.reduce-motion .comic-actor,.letter-reader.reduce-motion .comic-clouds,.letter-reader.reduce-motion .comic-river{animation:none}body:has(.game-portrait){--game-field-start:#839587;--game-field-end:#566f61;background:var(--game-field-end)}body:has(.game-portrait[data-scene=workshop]){--game-field-start:#816c54;--game-field-end:#584b3c}body:has(.game-portrait[data-scene=sand]){--game-field-start:#a49575;--game-field-end:#7e745c}body:has(.game-portrait[data-scene=night]){--game-field-start:#34515a;--game-field-end:#203b43}body:has(.game-portrait) .app{background:var(--game-field-end)}.game-portrait{--helper-size:56px;--tray-height:61px;height:calc(var(--game-viewport-height,100dvh) - max(env(safe-area-inset-top), var(--tg-safe-top)) - max(env(safe-area-inset-bottom), var(--tg-safe-bottom)));background:radial-gradient(ellipse at 45% 25%, var(--game-field-start), var(--game-field-end));gap:0;padding:2px 0 0}.game-portrait .topbar{color:#fffaf0;flex-shrink:0;min-height:44px;padding:0 6px}.game-portrait .game-header-action{color:#fffaf0;background:0 0;width:44px;height:44px}.game-portrait .game-title h1{font-size:18px;line-height:24px}.game-portrait .game-title p,.game-portrait .sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.game-portrait .tray-card{z-index:1;box-shadow:none;background:0 0;border:0;flex-shrink:0;margin:8px auto 12px;padding:0;position:relative}.game-portrait .tray-slots{grid-template-columns:repeat(4,48px);gap:10px}.game-portrait .tray-slot{height:var(--tray-height);background:#203b432e;border:1px solid #fffaf061;border-radius:7px;box-shadow:inset 0 1px 4px #14271d24}.game-portrait .slot-mark{color:#fffaf099}.game-portrait .board-wrap{min-height:0;box-shadow:none;background:0 0;border-radius:0;flex-direction:column;display:flex}.game-portrait .board-wrap:before,.game-portrait .board-wrap:after,.game-portrait .scenery-layer{display:none}.game-portrait .board-viewport{border-radius:0;flex:1;width:100%;min-height:0;position:relative;inset:auto}.game-portrait .tools{z-index:1;grid-template-columns:repeat(3, var(--helper-size));flex-shrink:0;justify-content:space-between;width:min(100% - 32px,272px);margin:12px auto 8px;position:relative}.game-portrait .tool{width:var(--helper-size);height:var(--helper-size);min-height:var(--helper-size);background:linear-gradient(#fffaf0,#eee1c4);border:1px solid #c1a978;border-radius:50%;padding:0;position:relative;box-shadow:0 2px #364d3d70,0 3px 6px #10271b24}.game-portrait .tool svg{color:#36584a;stroke-width:1.8px;width:32px;height:32px;transition:transform .12s}.game-portrait .tool:enabled:active svg{transform:scale(.9)}.game-portrait .tool:focus-visible{outline-offset:3px;outline:2px solid #fffaf0}.game-portrait .tool-count{color:#fffaf0;background:#36584a;border:2px solid #fffaf0;border-radius:999px;place-items:center;min-width:21px;height:21px;padding:0 3px;font-size:12px;font-weight:700;line-height:1;display:grid;position:absolute;top:-2px;right:-2px}.game-portrait .tool-count:empty{display:none}.game-portrait .tool:disabled .tool-count{background:#6f7c70}.game-portrait .game-feedback{flex-shrink:0;margin:0 12px;position:relative}.game-portrait .game-feedback>:not([hidden]){margin-top:6px}.game-portrait .game-caption,.game-portrait .game-sync,.game-portrait .sync-recover{background:var(--surface);border-radius:8px;padding:6px 10px;font-size:11px;line-height:15px;box-shadow:0 2px 8px #0002}.game-portrait .game-celebration{text-align:center;color:#fffaf0;width:auto;box-shadow:none;background:0 0;border:0;padding:4px;position:static;transform:none}.game-portrait .board-pan-note{text-align:center;color:#fffaf0;font-size:11px;line-height:15px}.game-portrait .round-recovery{color:#253d32;background:#fffaf0;border-radius:12px;padding:10px 12px;font-size:13px;line-height:18px}.game-portrait .recovery-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.game-portrait .recovery-actions button{color:#fffaf0;background:#36584a;border:1px solid #36584a;border-radius:9px;min-height:44px;padding:8px 12px;font-size:13px}.game-portrait .restart-wait{margin-top:6px;font-size:11px;line-height:15px}@media (max-height:600px){.game-portrait{--tray-height:51px}.game-portrait .tray-slots{grid-template-columns:repeat(4,40px)}}@media (min-width:600px){.game-portrait{height:calc(100dvh - 48px)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}