/* The published Android game uses cream surfaces, purple ink, coral navigation,
   peach borders and glossy orange controls. Original branding is reused verbatim. */
:root{--purple:#8c64a8;--ink:#66516d;--muted:#938078;--line:#e6d8cc;--peach:#ff9a51;--green:#a7c85a;background:#f8f4ed;color:#66516d;font-family:'Arial Rounded MT Bold','Nunito','Avenir Next Rounded Pro','PingFang SC','Microsoft YaHei',sans-serif}body{background:#f8f4ed}.sidebar{background:#fff9ed;border-color:#ecd9c3;width:220px;padding:22px 18px}.brand{display:block;width:184px;height:89px;position:relative;overflow:hidden;line-height:1;letter-spacing:0}.brand img{position:absolute;width:184px;height:auto;left:0;top:-18px;max-width:none}.brand-bead,.brand small{display:none}.nav-label{margin-top:28px;color:#b08d73}.nav-item{color:#a2694d;border-radius:16px}.nav-item.active{color:#99631e;background:linear-gradient(#ffe9b4,#ffd48e);border:1px solid #f0bf7a;box-shadow:inset 0 2px #fff8e4,0 3px #e6bc87}.nav-item:hover{background:#fff0d3}.nav-item .count{background:#fff9e9;color:#ab794e}.side-collection{background:linear-gradient(#fff7e5,#f9e9ca);border:2px solid #f0d1a4;border-radius:23px;box-shadow:inset 0 2px #fffdf5;color:#a2694d}.collection-drawing{color:#f0ab4f;text-shadow:2px 3px #f7d6a4}.mini-progress{background:#ead9c2}.mini-progress i{background:#a8cb5b}.side-collection p,.side-collection span{color:#b49379}.side-bottom button{color:#af8a6d}.side-bottom small{color:#bda18b}main{margin-left:220px;width:calc(100% - 220px)}.topbar{background:#fff9ed;border-color:#ead7c3;height:94px}.breadcrumb{color:#a98163}.icon-button{background:linear-gradient(#fff9e9,#f5e4ca);border:2px solid #edd1ac;border-bottom-width:4px;border-radius:13px;box-shadow:inset 0 2px #fffff6;color:#9b7358}.icon-button:hover{background:#ffe5b2}.saved-indicator{color:#ad927b}.saved-indicator:before{color:#90ad55}#view{padding-top:24px}.page-title h1{color:#9c674a}.subtitle{color:#ac8c76}.pill{border-color:#ead3b3;background:#fff8e8;color:#b08a64}.game-card{background:#f8f4ed;border:0;box-shadow:none;border-radius:0;overflow:visible}.game-top{height:68px;padding:0 0 13px;border-bottom:2px solid #e6d8cc;position:relative;justify-content:center}.native-back{position:absolute;left:0;top:0;width:52px;height:50px;background:linear-gradient(#fa9b87,#e97562);border:2px solid #ed9a83;border-bottom:5px solid #cc735f;border-radius:13px;box-shadow:inset 0 2px #ffc1ab,0 2px 3px #9f735126;display:grid;place-items:center;color:#fff6e7}.native-back svg{stroke-width:4;width:25px;height:25px;filter:drop-shadow(0 2px #b56d57)}.level-heading{display:flex;flex-direction:column;align-items:center;gap:3px}.native-level{font-size:24px;font-weight:900;color:#66516d}.level-badge{display:none}.game-name{font-size:12px;color:#a68a76;font-weight:600;margin-left:0}.game-top-actions{position:absolute;right:0;top:8px}.game-top-actions button{color:#a79384}.game-top-actions [data-action=favorite]{display:none}.game-top-actions button.favorited{color:#d88796}.board-wrap{background:#f8f4ed;background-image:none;margin-top:12px}.board-hint{background:#fff2d7;border:1px solid #edd9b8;color:#b08b62;border-radius:13px;margin-top:9px;font-weight:600}.tray-section{background:#f8f4ed;padding:15px 0 12px}.tray-label{color:#a98e76;font-weight:700}.tray{background:#f1e4ce;border:3px solid #fffdf2;border-radius:18px;box-shadow:inset 0 0 0 2px #dfcdb3,0 3px 3px #b4987120}.tools-bar{border:0;padding:4px 0 8px;justify-content:space-evenly;gap:18px}.tool{min-height:88px;width:104px;display:flex;flex-direction:column;justify-content:center;gap:3px;background:linear-gradient(#fdf5e7,#f1e6d6);border:2px solid #e6d8c5;border-bottom-width:4px;border-radius:20px;padding:5px 7px;position:relative;font-size:13px;font-weight:900;color:#756177}.native-tool-art{display:block;width:53px;height:53px;filter:drop-shadow(0 2px 1px #7e5e3528)}.tool .stock{position:absolute;top:-8px;right:-5px;width:27px;height:25px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(#be98d5,#8e60b0);border:2px solid #cfb5e0;color:white;font-size:10px;line-height:1;padding:0}.tool.locked{opacity:.6}.tool.locked .stock{width:auto;min-width:28px;padding:0 5px;right:-8px;font-size:9px;white-space:nowrap}.tool.active{background:linear-gradient(#ffefb8,#ffd287);border-color:#e7ad64;box-shadow:0 0 0 3px #ffda8c77}.zoom-tools{background:#fff9eaeb;border-color:#e5d0b3;color:#aa8562}.zoom-tools span{color:#ae8f72}.under-game,.text-button{color:#b2957b}.reference-card,.progress-card{background:linear-gradient(#fffaf0,#fff5e2);border:2px solid #efd4ad;border-radius:24px;box-shadow:inset 0 2px #fffef8}.section-title{color:#a2694d;font-size:14px}.section-title small{color:#b29377}.reference-card p,.progress-stats{color:#b29377}.progress-percent{color:#8d6a9f}.progress-track{background:#eddcc5}.progress-track i{background:linear-gradient(#bfd978,#a8c85d)}.guide-card{background:linear-gradient(#f6f7df,#edf0d1);border:2px solid #d7dfa7;border-radius:24px}.guide-card h3{color:#8d9c53}.guide-card p{color:#939867}.guide-card button{color:#84934d}.primary{background:linear-gradient(#ffbc5d,#f69a38);border:2px solid #f6c178;border-bottom:5px solid #d68d3c;box-shadow:inset 0 2px #ffe3aa,0 3px 2px #ad7f3820;border-radius:17px;color:#fffef5;text-shadow:0 2px #ce8534;font-weight:900}.primary:hover{background:linear-gradient(#ffc871,#f8a244)}.secondary{background:linear-gradient(#fff8e4,#f5e4c4);border:2px solid #eac899;border-bottom:4px solid #d9b17b;border-radius:16px;color:#a7784f;font-weight:800}.theme-card{background:#fff7e5;border:3px solid #edc796;border-bottom-width:5px;border-radius:24px;box-shadow:inset 0 2px #fffefa}.theme-art{background:#ffefd2!important;border-bottom:2px solid #eed2aa}.theme-card-info h3{color:#a2694d}.theme-card-info p{color:#b28f71}.theme-card-info .mini-progress{background:#ead8bd}.theme-card:hover,.level-card:hover{box-shadow:0 9px 20px #b07b3920}.level-card{background:linear-gradient(#fff9e9,#fae8c9);border:3px solid #f1cba0;border-bottom-width:5px;border-radius:24px;color:#a2694d}.level-card canvas{background:linear-gradient(#fff8e6,#f6e6c9);border:2px solid #fffef5;border-radius:17px}.level-card h3{color:#a2694d}.level-card p{color:#b59070}.finished-mark{background:linear-gradient(#badb71,#88b140);border:2px solid #d8eda9}.search,.select{background:#fffaf0;border:2px solid #eacfa9;color:#9d7457;box-shadow:inset 0 2px 2px #cbb18f15;border-radius:16px}.search::placeholder{color:#b39a7f}.daily-banner{background:linear-gradient(#fff2d4,#f8dfae);border:3px solid #f0c48d;border-radius:24px;color:#a2694d}.daily-banner p{color:#ab835f}.pagination button{background:linear-gradient(#ffbd60,#f5a13f);border:2px solid #f3c783;border-bottom:4px solid #d9994c;color:#fff7e3;font-weight:800;border-radius:12px}.pagination span{color:#b08a66}.dialog{background:linear-gradient(#fff5df,#ffeed0);border:7px solid #ff9a51;box-shadow:inset 0 0 0 2px #ffeac9,0 20px 90px #48362c40;border-radius:35px;color:#a2694d}.dialog h2{color:#ad795b;font-weight:900}.dialog p{color:#a17f64}.dialog-close{background:linear-gradient(#fbac76,#ed8c53);border:2px solid #f6bf8b;border-bottom:4px solid #cc7c44;border-radius:12px;color:#fff9e8;right:12px;top:12px;padding:4px}.help-number{background:linear-gradient(#ffb34e,#f29324);border:2px solid #ffd18c;border-radius:50%;color:#fff9dc;text-shadow:0 1px #bd7633}.help-step b{color:#a2694d}.help-step p{color:#aa876b}.setting-row{border-color:#ead2b4}.toggle{background:#d9c3a4;box-shadow:inset 0 2px #b99b74}.toggle.on{background:#a7c85a;box-shadow:inset 0 2px #89a642}.language-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px;max-height:55dvh;overflow:auto;padding:4px}.language-option{padding:12px 10px;text-align:start;border:2px solid #ebd4b0;border-radius:13px;background:#fff8e8;color:#9d7657;font-size:14px;line-height:1.5}.language-option small{display:block;opacity:.65;font-size:11px}.language-option.selected{border-color:#f0a347;background:#ffe7ba}.language-button{font-size:19px}.victory .stats b{color:#b98145}.victory .stats span{color:#b19170}.victory .victory-flower{color:#efa837}#toast{background:#826c58f5;color:#fff8e8;box-shadow:0 5px 25px #66503b30}.mobile-item{color:#ae8a69}.mobile-item.active{color:#b87931}.error-message{color:#b36c4b}.empty-state{color:#ac8b6c}.loading{color:#ae8762}
/* Script-specific typography and layout; board coordinates stay identical in RTL. */
html[lang^=ja]{font-family:'Hiragino Maru Gothic ProN','Yu Gothic',sans-serif}html[lang^=ko]{font-family:'Apple SD Gothic Neo','Malgun Gothic',sans-serif}html[lang^=ar],html[lang^=fa],html[lang^=ur]{font-family:'Geeza Pro','Noto Naskh Arabic','Tahoma',sans-serif}html[lang^=he]{font-family:'Arial Hebrew','Noto Sans Hebrew',sans-serif}html[lang^=th]{font-family:'Thonburi','Leelawadee UI',sans-serif}html[lang^=hi],html[lang^=mr],html[lang^=ne]{font-family:'Kohinoor Devanagari','Nirmala UI',sans-serif}html[lang^=ta]{font-family:'Tamil Sangam MN','Nirmala UI',sans-serif}html[lang^=bn]{font-family:'Bangla Sangam MN','Nirmala UI',sans-serif}html[lang^=my]{font-family:'Myanmar Sangam MN','Myanmar Text',sans-serif}html[lang^=km]{font-family:'Khmer Sangam MN','Khmer UI',sans-serif}body{font-family:inherit}.board-wrap,.tray-section canvas,.zoom-tools{direction:ltr}.game-top .native-back{direction:ltr}html[dir=rtl] .sidebar{left:auto;right:0;border-right:0;border-left:1px solid var(--line)}html[dir=rtl] main{margin-left:0;margin-right:220px}html[dir=rtl] .native-back{left:auto;right:0}html[dir=rtl] .game-top-actions{right:auto;left:0}html[dir=rtl] .nav-item .count{margin-left:0;margin-right:auto}html[dir=rtl] .help-step{text-align:right}html[dir=rtl] .brand img{left:0}html[dir=rtl] .level-card{text-align:right}.nav-item,.tool,.primary,.secondary,.page-title h1,.dialog h2{overflow-wrap:anywhere}.select{appearance:none;padding-inline-end:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23a2694d' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}html[dir=rtl] .select{background-position:left 10px center}
@media(min-width:1450px){.workspace{grid-template-columns:minmax(450px,1fr) 260px}.board-wrap{height:clamp(330px,44dvh,600px)}.tools-bar{padding-top:9px}.tray-section{padding-top:16px}}
@media(max-width:1150px){.sidebar{width:205px}main{margin-left:205px;width:calc(100% - 205px)}html[dir=rtl] main{margin-right:205px}.tool .stock{display:grid}.workspace{grid-template-columns:minmax(300px,1fr) 200px}}
@media(max-width:900px){.sidebar{width:180px;padding-inline:13px}.brand{width:154px}.brand img{width:154px;top:-14px}main{margin-left:180px;width:calc(100% - 180px)}html[dir=rtl] main{margin-right:180px}.workspace{grid-template-columns:1fr}.board-wrap{height:43dvh;min-height:280px}.native-level{font-size:23px}.topbar{height:83px}.tool{width:100px}}
@media(max-width:620px){main,html[dir=rtl] main{width:100%;margin:0}.topbar{height:86px;padding:0 16px;background:#fff8e9}.mobile-brand{display:block;width:155px;height:73px}.mobile-brand img{width:155px;top:-15px}.header-actions{gap:8px}.icon-button{width:34px;height:35px;border-radius:11px;border-bottom-width:3px}#view{padding:16px 14px 92px}.workspace{gap:0}.game-top{height:61px;padding-bottom:9px}.native-back{height:43px;width:45px;border-radius:12px}.native-level{font-size:22px}.game-name{font-size:10px;max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-top-actions{top:4px}.game-top-actions button{width:29px}.game-top-actions button svg{width:19px}.board-wrap{height:39dvh;min-height:240px;margin-top:4px}.board-hint{font-size:11px;padding:8px;line-height:1.5;min-height:37px;margin-top:5px}.tray-section{padding:12px 0 10px}.tray-label{font-size:11px;padding:0 4px}.tray{border-radius:15px;border-width:3px}.tools-bar{padding:7px 10px;gap:23px}.tool{width:85px;min-height:82px;font-size:12px;border-radius:19px;flex:1}.native-tool-art{height:47px;width:47px}.tool.locked .stock{font-size:9px;top:-9px}.under-game{font-size:10px}.game-aside{display:none}#mobile-nav{background:#fff6e4f5;border-top:2px solid #ead4b3;padding-top:10px}.mobile-item{font-size:10px}.mobile-item.active{color:#b98139}.mobile-item.active svg{filter:drop-shadow(0 1px #ffd79a)}.theme-grid{gap:13px}.theme-art{height:130px}.theme-card-info{padding:13px 10px}.theme-card-info h3{font-size:14px}.level-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.level-card{padding:7px;border-radius:18px;border-width:2px;border-bottom-width:4px}.level-card canvas{height:85px;border-radius:12px;margin-bottom:7px}.level-card h3{font-size:11px}.level-card p{font-size:9px}.finished-mark{top:10px;right:9px;width:19px;height:19px}.dialog{border-width:6px;border-radius:29px;padding:30px 19px 23px}.dialog h2{padding-inline-end:22px;font-size:22px}.dialog .actions{gap:9px}.language-option{padding:10px 8px;font-size:13px}.page-title h1{font-size:22px}.page-title .pill{display:none}.select{max-width:135px}.search{font-size:13px}.nav-item.active{box-shadow:none}html[dir=rtl] .native-back{right:0}html[dir=rtl] .game-top-actions{left:0}}
@media(max-width:380px){.tools-bar{gap:16px}.native-level{font-size:19px}.level-card canvas{height:72px}.game-name{max-width:140px}}
.sidebar .brand{height:63px}.sidebar .brand img{top:-19px}.mobile-brand{height:54px}.mobile-brand img{top:-15px}html[dir=rtl] .native-back svg{transform:rotate(180deg)}.tool .stock{width:25px;min-width:25px;height:25px;right:-5px;font-size:12px}.tool.locked .stock{width:25px;min-width:25px;right:-5px;padding:0;font-size:11px}.tool{height:auto}.game-name{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:620px){.game-name{max-width:165px}.tool{min-height:86px}.sidebar .brand{display:none}.game-top-actions button{width:28px}}
.topbar .mobile-brand{display:none}.sidebar .brand{height:59px}.nav-item{font-size:14px;gap:9px;padding:13px 9px;overflow-wrap:normal;hyphens:auto}.nav-item svg,.nav-item .count{flex-shrink:0}.tool{overflow-wrap:normal;hyphens:auto}.game-top-actions{gap:2px}
@media(max-width:1150px){.nav-item .count{display:none}}
@media(max-width:620px){.topbar .mobile-brand{display:block}.mobile-brand{height:52px}.mobile-brand img{top:-15px}}
#tray-count,.progress-percent,#bead-progress{direction:ltr;unicode-bidi:isolate;display:inline-block}.reference-card bdi{display:inline-block;unicode-bidi:isolate}.language-list bdi{unicode-bidi:isolate}.game-name{font-weight:700}.theme-card-info h3{line-height:1.45;min-height:1.45em}
.native-store{display:block;width:fit-content;margin:20px auto 0;color:#a67449;text-decoration:none;font-size:13px;font-weight:700;border-bottom:1px solid #dfbb89;padding-bottom:3px}.text-button{padding-inline:5px}.overview-canvas{margin-top:10px}
@media(max-width:620px){body[data-view=game] .topbar{display:none}body[data-view=game] #view{padding-top:max(17px,env(safe-area-inset-top))}.game-top{padding-top:0}.under-game{gap:4px;font-size:9px}.under-game .text-button{font-size:10px;padding-inline:4px}}
.topbar .mobile-brand{height:49px}.sidebar .brand{height:57px}.level-card h3{text-align:center;font-size:14px;font-weight:900;margin:4px 0 2px;line-height:1.4}.level-card.in-progress{border-color:#f3ab49;background:linear-gradient(#ffedbf,#ffdc94)}.level-card.in-progress h3{color:#ce8534}
