:root{color-scheme:dark;--bg:#0e1120;--panel:#181d2e;--line:#363c52;--text:#f4f2ff;--muted:#a0a5c0;--accent:#c6a8ff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 70% -10%,#2b2348,transparent 60%),var(--bg);color:var(--text);font:14px/1.48 Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #f4d699;outline-offset:3px}button:disabled{opacity:.55;cursor:default}h1,h2,h3,p{margin:0}
.app-shell{min-height:100vh}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1440px)/2 + 34px));background:#101321ed;border-bottom:1px solid #282e41}
.brand{border:0;background:transparent;padding:0;display:flex;align-items:center;gap:12px;color:#fff;font-size:17px;font-weight:850;line-height:1.1;letter-spacing:.025em;text-align:left}
.brand-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(140deg,#ae88ff,#6b56b4);box-shadow:inset 0 1px #ffffff68,0 6px 23px #765bc644;font-size:29px}
.brand-strong{color:#ceb2ff}.brand small{display:block;font-size:8px;color:#9195b2;letter-spacing:.22em;margin-top:6px}.header-actions{display:flex;align-items:center;gap:18px}
.header-badge{padding:8px 13px;border-radius:25px;background:#24273a;color:#b5b7cb;font-size:10px;font-weight:750;letter-spacing:.08em}.header-badge i{display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#78d0b1}
.avatar{width:39px;height:39px;border-radius:50%;border:1px solid #aa94dd;background:#39304e;color:white;font-size:24px}
.main-layout{display:grid;grid-template-columns:225px minmax(0,1fr);max-width:1440px;margin:auto}.sidebar{border-right:1px solid #282d40;min-height:calc(100vh - 76px);display:flex;flex-direction:column;gap:5px;padding:30px 14px 24px 24px}
.sidebar-label,.eyebrow{font-size:10px;font-weight:850;letter-spacing:.14em;color:#a995db}.sidebar-label{color:#7f87a0;margin:0 0 10px 11px}
.sidebar-link{width:100%;background:transparent;border:0;color:#aeb4c8;display:flex;align-items:center;gap:12px;padding:12px;border-radius:11px;text-align:left;font-size:12px;font-weight:760}
.sidebar-link span{font-size:18px;width:20px;text-align:center}.sidebar-link b{margin-left:auto;color:#8f99b3;font-size:11px}.sidebar-link.active{background:#302a48;box-shadow:inset 3px 0 #a98bed;color:#fff}.sidebar-link:hover{background:#292940}
.sidebar-divider{margin:20px 7px;border-top:1px solid #303347}.sidebar-coming{display:flex;align-items:center;gap:11px;padding:11px;color:#919ab2;font-size:12px}.sidebar-coming span{font-size:18px}.sidebar-spacer{flex:1;min-height:60px}
.sidebar-footer{padding:15px;background:linear-gradient(155deg,#26213f,#181d30);border-radius:14px;border:1px solid #463f65;display:grid;gap:8px}.sidebar-footer strong{font-size:10px;color:#cbb9ef}.sidebar-footer span{font-size:10px;color:#9fa2bd;line-height:1.65}
.content{min-width:0;padding:24px clamp(17px,3.5vw,44px) 30px}
.hero{min-height:272px;display:flex;justify-content:space-between;position:relative;overflow:hidden;padding:35px 39px;background:radial-gradient(circle at 85% 15%,#7869be69,transparent 42%),linear-gradient(115deg,#352a51,#232641 65%,#232945);border:1px solid #594b7c;border-radius:21px}
.hero-copy{max-width:500px;position:relative;z-index:2}.hero-label{font-size:10px;font-weight:850;letter-spacing:.13em;color:#ead4a0}.hero h1{margin:13px 0;font-size:clamp(32px,3.6vw,45px);letter-spacing:-.047em;line-height:1.07}.hero h1 em{font-style:normal;color:#d4bbff}.hero p{color:#bfc0d7;font-size:12px;max-width:370px;line-height:1.6}
.btn{border:1px solid transparent;min-height:42px;border-radius:11px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:750}
.btn-hero{margin-top:20px;background:#dac3ff;color:#201b32}.btn-hero:hover,.btn-primary:hover{background:#ecdfff}.btn-hero span{font-size:19px}.btn-primary{background:#b18cf0;color:#211a36}.btn-subtle{background:#282c40;border-color:#42475e;color:#dfd9f2}.btn-subtle:hover:not(:disabled){background:#35364d}
.hero-art{position:relative;align-self:stretch;min-width:250px;width:32%}.ring{position:absolute;top:7%;left:8%;height:255px;width:255px;border:1px solid #c6aeff5e;border-radius:50%}.ring-two{top:22%;left:26%;width:190px;height:190px;border-color:#ead29c77}
.hero-gem{position:absolute;line-height:1;filter:drop-shadow(0 0 21px #9880d67c)}.gem-a{top:6px;left:45px;color:#c7a8ff;font-size:125px;transform:rotate(-15deg)}.gem-b{top:73px;left:148px;color:#ffd89e;font-size:108px;transform:rotate(15deg)}.gem-c{top:122px;left:6px;color:#93e7d9;font-size:78px}.hero-spark{position:absolute;color:#f9eeff;font-size:35px}.s1{top:4px;right:4px}.s2{bottom:1px;right:20px}
.home-columns{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:18px;align-items:start;margin-top:22px}.play-panel,.widget,.library-panel,.profile-panel{border-radius:17px;border:1px solid #363a51;background:var(--panel)}
.play-panel{padding:22px;scroll-margin-top:18px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.game-title-line{display:flex;align-items:center;gap:11px}.game-title-line h2{font-size:23px;letter-spacing:-.02em}.icon-pill{display:grid;place-items:center;width:47px;height:47px;border-radius:12px;border:1px solid #685395;background:#393057;font-size:27px}
.level-chip{white-space:nowrap;padding:7px 11px;border-radius:22px;font-size:9px;font-weight:850;color:#e6c893;background:#3a302d;border:1px solid #66553c}.game-description{font-size:12px;color:#9ca5c3;margin:15px 0 17px}
.score-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.score-strip>div{padding:11px;background:#222639;border-radius:10px;border:1px solid #353b50;display:flex;flex-direction:column;gap:4px}.mini-label{font-size:9px;font-weight:800;letter-spacing:.13em;color:#8790a9}.score-strip strong{font-size:23px;line-height:1.2}.score-strip strong.moves{color:#eacc8d}.score-strip strong.low{color:#ffa5a1}
.progress-heading{display:flex;justify-content:space-between;color:#abb0c5;font-size:11px;margin:18px 2px 7px}.progress-track{height:7px;background:#343a50;border-radius:12px;overflow:hidden}.progress-track>div{height:100%;background:linear-gradient(90deg,#926fdc,#dcb7ff);border-radius:12px;transition:width .3s}
.board-frame{margin-top:19px;background:#111627;border:1px solid #484061;box-shadow:inset 0 5px 24px #070b19;border-radius:15px;padding:11px}.board-top,.board-foot{display:flex;justify-content:space-between;gap:8px;color:#a8a2c1;font-size:9px;letter-spacing:.1em;font-weight:750;padding:2px 4px 11px}.board-foot{padding:10px 4px 2px;font-size:10px;letter-spacing:normal;color:#928eaf}
.board{display:grid;grid-template-columns:repeat(var(--board-size),minmax(0,1fr));gap:clamp(3px,.6vw,7px);touch-action:none;user-select:none;-webkit-user-select:none}
.gem{width:100%;aspect-ratio:1;padding:0;min-width:0;min-height:0;border:1px solid #ffffff38;border-radius:11px;display:grid;place-items:center;color:white;font-size:clamp(19px,3vw,36px);font-weight:900;line-height:1;box-shadow:inset 0 2px 3px #ffffff55,inset 0 -5px 8px #0609155e,0 3px 0 #070d20;transition:filter .12s,transform .12s;-webkit-tap-highlight-color:transparent}
.gem span{text-shadow:0 2px 3px #0007}.gem:hover:not(:disabled){filter:brightness(1.13);transform:translateY(-1px)}.gem.chosen{outline:3px solid #fff0ac;outline-offset:-3px;transform:scale(1.04);z-index:2}.gem.suggested{outline:3px dashed #f9f0b1;outline-offset:-3px;animation:hintpulse 1.3s ease-in-out infinite}
.gem-0{background:linear-gradient(155deg,#d1a1f8,#7b4ac1)}.gem-1{background:linear-gradient(155deg,#ffa9a6,#d45383)}.gem-2{background:linear-gradient(155deg,#97c6ff,#4870cb)}.gem-3{background:linear-gradient(155deg,#ffd0de,#d25e9f)}.gem-4{background:linear-gradient(155deg,#99e7b8,#36a580)}.gem-5{background:linear-gradient(155deg,#ffecad,#c69a40)}
@keyframes hintpulse{50%{filter:brightness(1.45)}}.game-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.notice{margin-top:13px;min-height:41px;border:1px solid #423b5c;border-radius:10px;background:#27253b;color:#d3c7ee;padding:11px 12px;font-size:11px}.notice.end-message{border-color:#9273ba}.result-card{display:flex;flex-direction:column;gap:5px;margin-top:12px;padding:12px;background:#193a30;border:1px solid #448666;border-radius:11px}.result-card strong{color:#c3f2d2}.result-card span{font-size:11px;color:#bddac7}.result-card.lost{background:#352831;border-color:#82495e}.result-card.lost strong{color:#f2b1bc}.fineprint{color:#7d839d;font-size:10px;line-height:1.55;margin-top:14px}
.side-widgets{display:grid;gap:15px}.widget{padding:18px}.widget h3{font-size:17px;margin:11px 0 20px;line-height:1.3}.widget-stat{display:flex;justify-content:space-between;gap:11px;padding:10px 0;border-bottom:1px solid #363a50;color:#a8afc4;font-size:11px}.widget-stat strong{color:#f4edff;font-size:13px}.widget-link{border:0;background:none;padding:15px 0 0;color:#d1b2ff;font-weight:750;font-size:11px}.widget-secondary{background:linear-gradient(145deg,#27243e,#1c2032)}.widget-secondary p{color:#b0b2c5;font-size:11px;line-height:1.65;margin-bottom:18px}.widget-hint{color:#d0b5ee;font-size:10px}
.library-panel{margin-top:22px;padding:24px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-title h2,.profile-panel h2{margin:5px 0;font-size:23px}.section-title p{color:#9aa4bc;font-size:12px}.count-pill{padding:7px 11px;background:#292e42;border-radius:18px;color:#c2b5dc;font-size:10px;white-space:nowrap}
.genre-filter{display:flex;gap:8px;overflow-x:auto;padding:22px 0 19px}.filter-chip{flex:0 0 auto;background:#25293b;border:1px solid #3e4259;border-radius:20px;padding:9px 12px;color:#b4b8ce;font-size:11px}.filter-chip.active{background:#685291;border-color:#ac92e7;color:white}
.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-card{min-height:108px;padding:14px;display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:1fr auto;gap:7px 12px;background:#222639;border:1px solid #383e53;border-radius:12px}.catalog-card.ready{background:#302849;border-color:#7c68a8}
.catalog-icon{grid-row:span 2;width:48px;height:48px;display:grid;place-items:center;background:#443760;border-radius:12px;font-size:25px}.theme-coral .catalog-icon{background:#543b48}.theme-amber .catalog-icon,.theme-gold .catalog-icon{background:#54432f}.theme-mint .catalog-icon,.theme-emerald .catalog-icon{background:#2c4c45}.theme-blue .catalog-icon,.theme-steel .catalog-icon{background:#30425c}.theme-pink .catalog-icon,.theme-plum .catalog-icon{background:#483557}
.catalog-copy h3{font-size:14px}.catalog-copy p{font-size:10px;color:#9da3b9;margin-top:3px;line-height:1.4}.soon{font-size:9px;font-weight:800;letter-spacing:.08em;color:#8d93a9;text-transform:uppercase}.play-link{justify-self:start;background:none;border:0;padding:0;font-size:12px;color:#e0c8ff;font-weight:800}.play-link:hover{text-decoration:underline}
.profile-panel{padding:26px}.profile-note{font-size:12px;color:#adb1c7;margin:9px 0 23px}.profile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.profile-stats>div{display:flex;flex-direction:column;gap:8px;padding:16px;background:#252a3d;border:1px solid #393f54;border-radius:12px}.profile-stats span{font-size:11px;color:#a4abc2}.profile-stats strong{font-size:28px}.profile-panel h3{font-size:17px;margin:25px 0 13px}.achievements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:23px}.achievement{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #43455b;background:#24283b;border-radius:10px;opacity:.55}.achievement.unlocked{opacity:1;border-color:#a58cd7}.achievement>span{font-size:24px}.achievement strong{display:block;font-size:11px}.achievement small{display:block;font-size:10px;color:#a5acc2}
.footer{display:flex;justify-content:space-between;gap:10px;margin-top:25px;color:#737c96;font-size:10px}.initial-load{padding:70px;text-align:center}
@media(max-width:1130px){.main-layout{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-left:12px}.home-columns{grid-template-columns:minmax(0,1fr) 190px}.widget{padding:14px}.hero-art{transform:scale(.85);transform-origin:top left}}
@media(max-width:970px){.home-columns{grid-template-columns:minmax(0,1fr)}.side-widgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{position:absolute;right:20px;opacity:.55}.hero-copy{max-width:450px}}
@media(max-width:720px){.topbar{height:68px;padding:0 17px}.header-badge{display:none}.main-layout{display:block}.sidebar{display:none}.content{padding:15px 12px 28px}.hero{padding:26px 22px;min-height:246px}.hero h1{font-size:clamp(32px,8.5vw,43px)}.hero-copy{max-width:310px}.hero p{font-size:11px}.hero-art{opacity:.3;right:-122px;top:6px}.play-panel{padding:14px}.board-frame{padding:9px}.board{gap:4px}.gem{border-radius:9px;font-size:clamp(18px,5.3vw,33px)}.side-widgets{display:none}.library-panel{padding:16px}.catalog-grid{gap:8px}.catalog-card{grid-template-columns:1fr;grid-template-rows:auto 1fr auto;min-height:146px;padding:12px;gap:6px}.catalog-icon{grid-row:auto;width:42px;height:42px;font-size:21px}.catalog-copy h3{font-size:12px}.section-title h2{font-size:20px}.section-title p{font-size:11px}.achievements{grid-template-columns:1fr}.footer{flex-direction:column}}
@media(max-width:365px){.brand{font-size:15px}.brand-mark{height:38px;width:38px;font-size:22px}.hero{padding:22px 16px}.level-chip{padding:7px;font-size:8px}.game-title-line h2{font-size:20px}.score-strip strong{font-size:20px}.gem{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* GF-02: Committee Adventure Kit and independent season lanes */
.committee-panel{scroll-margin-top:16px;padding:22px;background:#1a1e30;border:1px solid #49405a;border-radius:17px}
.committee-icon{background:#4e3248;border-color:#926071}
.committee-stage{margin-top:18px;height:245px;overflow:hidden;position:relative;border:1px solid #72677d;border-radius:16px;background:linear-gradient(#9f8da2 0%,#d2b8b3 58%,#624e60 58%,#57465f 100%)}
.committee-stage.stage-kitchen{background:linear-gradient(#9aa9aa 0%,#d8c5ae 58%,#8d7a72 58%,#605261 100%)}
.committee-stage.stage-meeting{background:linear-gradient(#727d94 0%,#aaacbf 58%,#434f6d 58%,#343b55 100%)}
.stage-ceiling{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;justify-content:space-between;padding:11px 13px;background:#161728c9;color:#fff5d7;font-size:9px;font-weight:800;letter-spacing:.07em}
.stage-painting{position:absolute;left:17%;top:34%;font-size:73px;filter:drop-shadow(7px 10px 2px #0808124a);transform:rotate(-5deg)}
.stage-wall{position:absolute;top:44px;right:10%;height:140px;width:40%;display:flex;align-items:center;justify-content:space-between;color:#fef0d9a1}
.stage-window{width:70px;height:103px;border:8px solid #4c4056;border-radius:4px;background:linear-gradient(130deg,#b0c4d5,#faf2e688);display:grid;place-items:center;font-size:40px}
.stage-shelf{font-size:65px;text-shadow:3px 6px #33344e66}
.stage-floor{position:absolute;bottom:0;left:0;width:100%;height:25%;border-top:5px solid #5440558c;background:repeating-linear-gradient(125deg,#4a38453b 0 14px,#83677826 14px 28px)}
.npc{position:absolute;bottom:9%;left:46%;border:1px solid #f1ede8a6;border-radius:15px;padding:8px 11px;display:flex;align-items:center;gap:8px;background:#221f34e6;color:#f9f2ee;box-shadow:0 5px 18px #1010205c;font-size:12px;font-weight:780;z-index:3}
.npc.npc-away{background:#31313aaf;opacity:.83;left:54%}.npc-avatar{font-size:34px;line-height:1}
.committee-rooms{display:flex;gap:7px;overflow-x:auto;padding:13px 0 10px}
.room-tab{flex:1 0 auto;min-height:42px;border:1px solid #46485e;border-radius:9px;background:#292e43;color:#bcc0d5;padding:8px 9px;font-size:11px;font-weight:750}
.room-tab.active{background:#60476e;color:#fff;border-color:#b786ac}
.room-tab:hover:not(:disabled){background:#453955}
.committee-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:6px 0 14px}
.committee-status>div{background:#252b3d;border:1px solid #373e57;border-radius:10px;padding:9px;display:flex;flex-direction:column;gap:5px}
.committee-status small{color:#9ca5bc;font-size:8px;font-weight:800;letter-spacing:.05em}
.committee-status strong{font-size:19px;font-weight:840}.committee-status strong.alert{color:#ffb19f}
.scene-description{color:#b7b9c9;font-size:11px;line-height:1.6;margin:8px 0 11px}
.committee-objects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.object-card{border-radius:11px;border:1px solid #4a4a61;background:linear-gradient(150deg,#303247,#25283d);min-height:88px;padding:12px;text-align:left;display:flex;align-items:flex-start;gap:8px;color:#f6f1ff}
.object-card:hover:not(:disabled){border-color:#d0aaeb;background:#38344d}
.object-card.completed{border-color:#457666;background:#233b39}
.object-card:disabled{opacity:.67}
.object-emoji{font-size:27px;line-height:1.1;width:31px;flex:0 0 31px;text-align:center}
.object-text{display:grid;gap:3px;min-width:0;flex:1}.object-text strong{font-size:11px;line-height:1.3}.object-text small{font-size:9.5px;line-height:1.55;color:#bdc0ce}
.object-check{font-size:15px;color:#d3b3ff;font-weight:900}
.inventory-panel{margin-top:11px;display:flex;gap:9px;flex-wrap:wrap;align-items:center;border-radius:9px;padding:10px 12px;background:#2a253c;border:1px solid #463b60;font-size:11px}
.inventory-panel strong{color:#f0dbff}.inventory-panel span{color:#c3bbd5;line-height:1.5}
.committee-log{margin-top:11px;border:1px solid #8a659f;background:linear-gradient(130deg,#352b4d,#26253e);padding:13px;border-radius:11px}
.committee-log span{font-size:11px;font-weight:810;color:#ead2ff}.committee-log p{font-size:12px;line-height:1.65;margin-top:5px;color:#eee7f6}
.season-overview{margin-top:23px;border:1px solid #3d4058;border-radius:16px;padding:21px;background:#191d2f}
.season-overview h2{font-size:19px;letter-spacing:-.025em;margin:6px 0}
.season-overview p{font-size:11px;color:#9fa8c2;margin-bottom:17px;line-height:1.5}
.season-lanes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.season-lane{display:flex;flex-direction:column;gap:8px;background:#252c3d;border:1px solid #38415a;border-radius:12px;padding:14px;min-width:0}
.lane-label{font-weight:850;font-size:14px}
.season-flag{padding:7px 9px;border-radius:8px;background:#25483e;color:#aff3d2;font-size:10px;font-weight:750}
.season-next{padding:7px 9px;border-radius:8px;background:#423655;color:#e1cbff;font-size:10px;font-weight:750}
.season-package{font-size:10px;color:#858da6;overflow-wrap:anywhere}
@media(max-width:720px){.committee-panel{padding:14px}.committee-stage{height:220px}.stage-painting{left:8%;font-size:58px}.npc{left:35%;bottom:11%}.npc.npc-away{left:45%}.stage-window{height:85px;width:50px}.stage-shelf{font-size:48px}.committee-status strong{font-size:17px}.committee-status small{font-size:7px}.committee-objects{gap:7px}.object-card{padding:8px;min-height:100px;gap:6px}.object-emoji{font-size:22px;flex-basis:24px;width:24px}.object-text strong{font-size:10px}.object-text small{font-size:9px}.season-overview{padding:14px}.season-lanes{grid-template-columns:1fr}.room-tab{font-size:10px}}

/* GF-03 Telegram Mini App: preserve system and client safe areas. */
@supports (padding: env(safe-area-inset-bottom)) { .content { padding-bottom: max(26px, env(safe-area-inset-bottom)); } }
/* Compact long-title treatment for the first office game. */
@media(max-width:720px){.committee-panel .game-title-line h2{font-size:clamp(18px,5.1vw,24px);line-height:1.1}}
