:root{--ink:#17342f;--green:#176b5b;--coral:#f57c4b;--paper:#f8faf7;--muted:#637b75;--line:#dbe6e1;--shadow:0 24px 65px rgba(23,52,47,.13)}*{box-sizing:border-box}html{font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)}body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.site-header{height:84px;max-width:1240px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:var(--green);color:#fff;font-size:28px;box-shadow:0 9px 25px rgba(23,107,91,.24)}.brand-mark.large{width:58px;height:58px;border-radius:19px;margin:20px 0;font-size:36px}.site-header nav{display:flex;align-items:center;gap:22px;font-weight:700}.nav-link{border:0;background:none;color:var(--ink);font-weight:700;cursor:pointer}.inline{display:inline}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:15px;padding:13px 20px;font-weight:800;cursor:pointer;transition:.2s}.button:hover{transform:translateY(-2px)}.button.small{padding:10px 16px}.button-dark{background:var(--ink);color:#fff}.button-coral{background:var(--coral);color:#fff;box-shadow:0 12px 28px rgba(245,124,75,.25)}.button-light{background:#fff;border:1px solid var(--line)}.wide{width:100%}.hero{max-width:1240px;margin:auto;padding:70px 28px 110px;display:grid;grid-template-columns:1.05fr .95fr;gap:75px;align-items:center}.eyebrow{display:inline-flex;border:1px solid #bde2d7;background:#fff;color:var(--green);border-radius:999px;padding:8px 14px;font-size:14px;font-weight:800}.hero h1{font-size:clamp(48px,6vw,78px);letter-spacing:-.055em;line-height:1;margin:24px 0}.hero-copy>p{font-size:19px;line-height:1.7;color:var(--muted);max-width:610px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}.feature-panel{position:relative;background:var(--green);padding:30px;border-radius:34px;box-shadow:var(--shadow);overflow:hidden}.feature-panel:after{content:"";position:absolute;width:150px;height:150px;background:#ffd166;border-radius:50%;right:-60px;top:-70px}.panel-head{position:relative;z-index:1;color:#fff;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.panel-head small{color:#c7eee4;font-weight:700}.panel-head h2{margin:5px 0;font-size:25px}.star{font-size:32px}.mini-list{position:relative;z-index:1;display:grid;gap:12px}.mini-list .game-card{grid-template-columns:60px 1fr;padding:14px}.game-card{display:grid;grid-template-columns:68px 1fr auto;gap:15px;align-items:center;background:#fff;border:1px solid #e1eae6;border-radius:21px;padding:17px;min-width:0}.game-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;font-weight:900;font-size:17px}.game-icon.sun{background:#ffe6a7}.game-icon.mint{background:#c7f0e5}.game-icon.sky{background:#dce7ff}.game-icon.coral{background:#ffd9cb}.game-icon.grape{background:#eadcff}.game-main{min-width:0}.game-main h3{margin:4px 0 6px;font-size:18px}.game-main p{color:var(--muted);line-height:1.5;margin:7px 0}.subject{font-size:12px;text-transform:uppercase;letter-spacing:.07em;font-weight:900;color:var(--green)}.level{font-size:13px;color:var(--muted)}.card-actions{align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.favorite{font-size:25px;border:0;background:none;color:#b7c8c2;cursor:pointer}.favorite.on{color:#f4b83f}.play-link{font-size:14px;font-weight:900;color:var(--green)}.page{max-width:1180px;margin:auto;padding:65px 28px 100px}.page.narrow{max-width:850px}.page-title{max-width:780px}.page-title h1,.dashboard-head h1{font-size:clamp(38px,5vw,58px);line-height:1.08;letter-spacing:-.045em;margin:18px 0}.page-title p,.dashboard-head p{color:var(--muted);font-size:18px}.filters{display:flex;align-items:flex-end;gap:14px;margin:42px 0 22px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:20px}.filters label{flex:1}.filters a{padding:13px;font-weight:800;color:var(--green)}label{display:grid;gap:7px;font-weight:800;font-size:14px}input,select,textarea{width:100%;border:1px solid #cbdad4;background:#fff;border-radius:12px;padding:12px 13px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(23,107,91,.12)}textarea{min-height:90px;resize:vertical}label small{font-weight:500;color:var(--muted)}.game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.login-hint{padding:12px 16px;border-radius:13px;background:#fff4d6;color:#785b13}.empty{grid-column:1/-1;text-align:center;padding:60px 30px;border:1px dashed #b8cbc4;border-radius:24px;background:#fff}.empty.wide{width:100%}.empty-star{font-size:46px;color:#f4b83f}.empty p{color:var(--muted);margin-bottom:24px}.auth-wrap{min-height:calc(100vh - 84px);display:grid;grid-template-columns:minmax(0,560px) 1fr;max-width:1200px;margin:auto;padding:30px 28px 70px;gap:35px}.auth-card{background:#fff;border:1px solid var(--line);border-radius:30px;padding:38px 52px;box-shadow:var(--shadow)}.auth-card h1{font-size:44px;margin:10px 0}.auth-card>p{color:var(--muted);margin-bottom:25px}.back{font-weight:800;color:var(--green)}.stack{display:grid;gap:17px}.auth-foot{text-align:center;margin-top:24px;color:var(--muted)}.auth-foot a{color:var(--green);font-weight:900}.auth-art{border-radius:30px;background:var(--green);color:#fff;padding:60px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}.auth-art span{position:absolute;top:40px;right:50px;font-size:80px;color:#ffd166}.auth-art h2{font-size:39px;line-height:1.15}.form-error,.notice{padding:13px 16px;border-radius:12px;background:#fff0ea;color:#9a3e20;margin:16px 0;font-weight:700}.notice{position:fixed;top:90px;left:50%;transform:translateX(-50%);z-index:5;background:#e5f8f1;color:#176b5b;box-shadow:0 8px 25px rgba(0,0,0,.1)}.profile-form{display:grid;gap:20px;margin-top:38px}.profile-form fieldset,.admin-panel{border:1px solid var(--line);border-radius:22px;background:#fff;padding:26px}.profile-form legend{font-size:21px;font-weight:900;padding:0 10px}.profile-form fieldset>label{margin-top:15px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:15px}.checks{display:flex;flex-wrap:wrap;gap:10px}.check{display:block}.check input{position:absolute;opacity:0;pointer-events:none}.check span{display:block;padding:10px 14px;border:1px solid var(--line);border-radius:999px;cursor:pointer}.check input:checked+span{background:var(--green);color:#fff;border-color:var(--green)}.dashboard-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:55px}.dashboard-head h1{margin-bottom:8px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 20px}.section-heading h2{font-size:28px;margin:0}.section-heading p{color:var(--muted);margin:6px 0}.count,.pill{font-size:13px;background:#e2f3ee;color:var(--green);border-radius:999px;padding:7px 11px;font-weight:800}.play-page{max-width:950px;margin:auto;padding:35px 28px 100px}.play-stage{text-align:center;background:#fff;border:1px solid var(--line);border-radius:30px;padding:75px 30px;margin-top:28px;box-shadow:var(--shadow)}.game-icon.big{width:90px;height:90px;margin:0 auto 20px;font-size:30px}.play-stage h1{font-size:48px;margin:12px 0}.play-stage p{font-size:18px;color:var(--muted);max-width:560px;margin:0 auto 28px}.play-stage small{display:block;margin-top:22px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:35px 0}.stats article{background:var(--green);color:#d9f4ed;border-radius:19px;padding:22px;font-weight:700}.stats span{display:block;color:#fff;font-size:36px;font-weight:900}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.span-2{grid-column:span 2}.admin-panel h2{margin-top:0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:13px;border-bottom:1px solid var(--line)}td small{display:block;color:var(--muted);margin-top:4px}.text-button{border:0;background:none;color:#b54b2c;font-weight:800;cursor:pointer}.center{text-align:center;padding:120px 20px}footer{max-width:1180px;margin:auto;padding:30px 28px 45px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:14px}footer span:first-child{font-weight:900;color:var(--ink)}
@media(max-width:850px){.site-header nav>a:not(.button),.site-header .inline{display:none}.hero{grid-template-columns:1fr;padding-top:35px}.hero h1{font-size:52px}.feature-panel{padding:22px}.auth-wrap{grid-template-columns:1fr}.auth-art{display:none}.game-grid{grid-template-columns:1fr}.filters{align-items:stretch;flex-direction:column}.filters label,.filters button{width:100%}.dashboard-head{align-items:flex-start;gap:20px;flex-direction:column}.admin-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.stats{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.auth-card{padding:30px 24px}.game-card{grid-template-columns:58px 1fr}.game-card .card-actions{grid-column:2;flex-direction:row;align-items:center}.page{padding-top:40px}}@media(max-width:520px){.site-header{padding:0 18px}.brand{font-size:18px}.hero,.page,.play-page{padding-left:18px;padding-right:18px}.hero h1{font-size:43px}.actions .button{width:100%}.panel-head h2{font-size:20px}.game-card{padding:14px}.auth-wrap{padding:15px}.auth-card h1{font-size:37px}footer{flex-direction:column;gap:8px}}
