@font-face{font-family:Vazir;src:url('./assets/Vazirmatn-Regular.ttf')}@font-face{font-family:Vazir;src:url('./assets/Vazirmatn-SemiBold.ttf');font-weight:700}
:root{font-family:Vazir,system-ui,sans-serif;color:#27214f;background:#eee9ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:#eee9ff}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}h1,h2,p{margin-top:0}h1{font-size:clamp(2rem,7vw,3rem);line-height:1.25}h2{font-size:1.35rem;margin:1.4rem 0 .7rem}p{line-height:1.7}.muted{color:#70698e;font-size:.9rem}.page{width:min(100%,760px);margin:auto;padding:22px 18px 112px;min-height:calc(100dvh - 70px)}.page>h1{margin-bottom:4px}.topbar{width:min(100%,760px);height:70px;margin:auto;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{border:0;background:none;color:#27214f;font-weight:700;font-size:1.3rem;display:flex;align-items:center;gap:7px;padding:0}.brand img{width:36px;height:36px}.wallet{display:flex;gap:7px;align-items:center;font-size:.85rem;font-weight:700}.wallet>span,.wallet>button{background:#fff;border:1px solid #ded4f9;border-radius:20px;padding:7px 10px;color:#48347d;white-space:nowrap}.bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;min-height:72px;padding:5px max(12px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fff;border-top:1px solid #ded4f9;display:flex;justify-content:center;box-shadow:0 -4px 20px #4b338018}.bottom-nav button{width:min(33.3%,240px);border:0;background:none;border-radius:18px;color:#70698e;display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px;font-size:.84rem}.bottom-nav button.active{background:#eee6ff;color:#6237dc;font-weight:700}.bottom-nav img{width:25px;height:25px}.card{background:#fff;border:1px solid #e1d6fc;border-radius:24px;padding:20px;margin:12px 0;box-shadow:0 9px 25px #4b33800c}.primary,.gold,.secondary,.danger{border:0;border-radius:16px;min-height:48px;padding:10px 18px;font-weight:700}.primary{background:#6b42ed;color:white}.gold{background:#ffc957;color:#4b3475}.secondary{background:#e8dfff;color:#5131a9}.danger{background:#fff0f1;color:#b63351;margin:20px 0}.notice{padding:12px 16px;border-radius:16px;background:#e8dfff;border:1px solid #cdb9ff;color:#4c3292;margin:14px 0;line-height:1.55}.auth{text-align:center;max-width:560px;padding-top:34px}.auth-logo{width:94px;height:94px}.subtitle{color:#70698e}.auth .card{text-align:right;margin-top:28px}.auth h2{margin-top:0}.auth label{display:block;margin:12px 0;font-weight:700}.auth input,.profile-card input,textarea{display:block;width:100%;border:1px solid #d6c9f4;background:#f9f7ff;border-radius:14px;margin-top:5px;padding:13px 15px;color:#27214f;outline-color:#6b42ed}.form-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.sample{background:#e5d8ff;border-radius:20px;padding:18px;margin-top:20px}.sample div{margin-top:9px}.hero{background:linear-gradient(135deg,#7246ed,#9a78fa);border-radius:28px;padding:26px;color:white;min-height:190px;box-shadow:0 16px 28px #6842d738}.hero h1{margin-bottom:5px}.hero p{margin-bottom:18px}.hero-stats{display:flex;gap:12px}.hero-stats span{background:#ffffff2c;border-radius:16px;padding:6px 12px}.category-list{display:grid;gap:14px}.category-card{min-height:145px;background-size:cover;background-position:center;border:0;border-radius:25px;color:white;text-align:right;padding:23px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;box-shadow:0 10px 24px #41306e28;text-shadow:0 2px 6px #302053c9}.category-card span{font-weight:700;font-size:1.55rem}.category-card small{font-size:.95rem}.back{border:0;background:#ffffffcb;border-radius:14px;padding:8px 13px;color:#5430ad;margin-bottom:16px}.themed{background-size:100% auto;background-repeat:no-repeat;background-position:top center}.themed.mixed{background-image:url('./assets/backgrounds/mixed_page.svg')}.themed.soccer{background-image:url('./assets/backgrounds/soccer_page.svg')}.themed.cinema{background-image:url('./assets/backgrounds/cinema_page.svg')}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}.level-grid button{aspect-ratio:1.15;border:1px solid #d5c4ff;border-radius:20px;background:#fff;color:#6240bd;font-size:1.35rem;font-weight:700;box-shadow:0 6px 12px #49317c18}.level-grid button.done{background:#d7f5e8;color:#197d6b}.level-grid button.current{background:#6b42ed;color:white}.game{padding-bottom:160px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}.game-heading .back{margin:0}.status-line{display:flex;justify-content:space-between;gap:5px;margin:18px 0;background:#fff;border-radius:16px;padding:10px;font-size:.9rem;font-weight:700}.practice{background:#e2f5ed;padding:9px 12px;border-radius:13px;font-size:.9rem}.hint-card{background:#fff;border:1px solid #decfff;border-radius:19px;padding:12px;margin-bottom:15px}.hint-card>button:first-child{width:100%;border:0;background:none;color:#4d3399;text-align:right;font-weight:700}.hint-card>div{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.hint-pill{background:#eee6ff;border-radius:14px;padding:5px 10px}.hint-buy{width:100%;border:0;border-radius:12px;padding:9px;background:#e8dfff;color:#4c3292;margin-top:8px}.solved{display:grid;gap:8px}.solved-group{display:flex;flex-direction:column;align-items:center;background:#ffe3a1;padding:10px;border-radius:16px}.solved-group.g1{background:#c6f2dd}.solved-group.g2{background:#cce8ff}.solved-group.g3{background:#e7d7ff}.solved-group span{font-size:.85rem}.word-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:16px}.word-grid button{min-height:70px;border:1px solid #dccbff;border-radius:13px;background:#fff;color:#30275b;font-weight:700;padding:6px 3px;overflow-wrap:anywhere;font-size:clamp(.75rem,2.5vw,1rem);box-shadow:0 4px 8px #4c32801a}.word-grid button.selected{background:#7550e9;color:#fff;border-color:#7550e9}.game-actions{position:fixed;bottom:72px;left:0;right:0;display:flex;justify-content:center;gap:9px;background:#eee9fff4;padding:9px 16px;z-index:9}.game-actions button{width:min(45%,340px)}.win,.empty-hearts{text-align:center;background:#fff;border-radius:20px;padding:20px;margin-top:15px}.empty-hearts button{display:block;margin:10px auto;border:0;background:#ffc957;border-radius:12px;padding:8px 16px}.balance{background:#ffe19a;border-color:#f6be50;display:flex;flex-direction:column}.balance strong{font-size:2.2rem}.pack{display:flex;align-items:center;justify-content:space-between;gap:12px}.pack div{display:flex;flex-direction:column}.pack strong{font-size:1.25rem}.pack button{white-space:nowrap}.profile-card{display:flex;flex-direction:column;gap:6px}.profile-card strong{font-size:1.4rem}.progress-row{display:flex;justify-content:space-between;background:#fff;border-radius:14px;padding:13px;margin:7px 0}.profile-card+ h2{margin-top:25px}textarea{min-height:125px;resize:vertical;margin:10px 0}@media(min-width:650px){.category-list{grid-template-columns:repeat(3,1fr)}.category-card{min-height:200px}.word-grid{gap:12px}.word-grid button{min-height:85px}}@media(max-width:380px){.wallet{font-size:.72rem}.word-grid button{font-size:.7rem}.status-line{font-size:.78rem}}
:root .bottom-nav img{filter:brightness(0);opacity:.58}:root .bottom-nav button.active img{opacity:.9}
