:root{--bg:#f7f7f9;--surface:#fff;--green:#a9ffa1;--green-soft:#ddffd9;--rose:#c98ca7;--rose-soft:#f1dde6;--ink:#1b1b3a;--ink-2:#2a2a50;--muted:#55557a;--line:#e4e4ec;--indigo-soft:#e4e4f0;--font-ui:"Lexend", system-ui, sans-serif;--font-mono:"JetBrains Mono", ui-monospace, monospace;--border:2px solid var(--ink);--shadow:0 4px 0 var(--ink);--shadow-lg:0 5px 0 var(--ink);--shadow-hover:0 6px 0 var(--ink);--shadow-active:0 2px 0 var(--ink);--radius-input:14px;--radius-card:20px;--radius-card-lg:24px;--radius-pill:999px}*,:before,:after{box-sizing:border-box}body{background:var(--bg);color:var(--ink);font-family:var(--font-ui);margin:0;font-size:15px}button{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--ink);outline-offset:3px}.page{max-width:1280px;margin:0 auto;padding:32px 36px 40px}.page__error{border:var(--border);border-radius:var(--radius-input);background:var(--rose-soft);padding:16px 20px}@media (width<=700px){.page{padding:20px 16px 32px}}.header{background:var(--surface);border-bottom:var(--border);align-items:center;gap:32px;height:76px;padding:0 36px;display:flex}.header__logo{align-items:center;gap:10px;display:flex}.header__logo-mark{background:var(--ink);width:38px;height:38px;color:var(--green);font-family:var(--font-mono);border-radius:11px;justify-content:center;align-items:center;font-size:14px;font-weight:500;display:flex}.header__logo-text{font-size:19px;font-weight:800}.header__nav{gap:6px;display:flex}.header__nav-item{border-radius:var(--radius-pill);color:var(--ink);border:2px solid #0000;padding:11px 18px;font-size:15px;font-weight:500;text-decoration:none}.header__nav-item--active{background:var(--green);border-color:var(--ink);font-weight:600}.header__right{align-items:center;gap:16px;margin-left:auto;display:flex}.header__login{border:var(--border);border-radius:var(--radius-pill);background:var(--ink);color:var(--green);white-space:nowrap;box-shadow:var(--shadow);padding:10px 20px;font-size:15px;font-weight:700;text-decoration:none;transition:transform .1s,box-shadow .1s}.header__login:hover{box-shadow:var(--shadow-hover);transform:translateY(-1px)}.header__login:active{box-shadow:var(--shadow-active);transform:translateY(2px)}.header__avatar{background:var(--rose);border:var(--border);border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;font-weight:700;display:flex}@media (width<=700px){.header{gap:16px;padding:0 16px}.header__logo-text{display:none}.header__nav{overflow-x:auto}.header__nav-item{white-space:nowrap;padding:9px 12px}.header__login{padding:8px 14px;font-size:14px}}.attempt-filters{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:20px;display:flex}.attempt-filters__field{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;font-weight:600;display:flex}.attempt-filters__field select,.attempt-filters__field input{border:var(--border);border-radius:var(--radius-input);background:var(--surface);min-width:160px;font:inherit;color:var(--ink);padding:8px 12px}.attempt-filters__reset{border:var(--border);border-radius:var(--radius-pill);background:var(--surface);cursor:pointer;padding:8px 16px;font-weight:600}.attempts-table__wrap{border:var(--border);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow);overflow-x:auto}.attempts-table{border-collapse:collapse;width:100%}.attempts-table th,.attempts-table td{border-bottom:1px solid var(--line);text-align:left;white-space:nowrap;padding:12px 16px}.attempts-table tbody tr:last-child td{border-bottom:none}.attempts-table__sort{cursor:pointer;background:0 0;border:none;padding:0;font-weight:700}.attempts-table__empty{border:2px dashed var(--line);border-radius:var(--radius-card);color:var(--muted);text-align:center;padding:28px}.attempts-table__delete{border:var(--border);border-radius:var(--radius-pill);background:var(--rose-soft);cursor:pointer;padding:6px 14px;font-weight:600}.attempts-table__sr{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.pagination{justify-content:center;align-items:center;gap:16px;margin-top:20px;display:flex}.pagination__button{border:var(--border);border-radius:var(--radius-pill);background:var(--surface);cursor:pointer;padding:8px 16px;font-weight:600}.pagination__button:disabled{opacity:.4;cursor:default}.pagination__info{color:var(--muted);font-size:14px}.attempts__title{margin:0 0 20px;font-size:28px;font-weight:800}.assignment-card{background:var(--rose);border:var(--border);border-radius:var(--radius-card-lg);box-shadow:var(--shadow-lg);flex-direction:column;gap:8px;padding:24px;display:flex}.assignment-card__label{text-transform:uppercase;letter-spacing:.08em;margin:0;font-size:12px;font-weight:700}.assignment-card__title{margin:0;font-size:23px;font-weight:800}.assignment-card__message{margin:0;font-size:14px}.assignment-card__link{color:var(--ink);margin-top:auto;padding-top:8px;font-size:15px;font-weight:700;text-decoration:none}.assignment-card__link:hover{text-decoration:underline}.badge{border-radius:var(--radius-pill);white-space:nowrap;padding:5px 10px;font-size:12px;font-weight:700;display:inline-block}.badge--done{background:var(--green)}.badge--in_progress{background:var(--rose)}.badge--new{background:var(--ink);color:var(--green)}.badge--locked{background:var(--line)}.game-card{background:var(--surface);border:var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow);color:var(--ink);flex-direction:column;text-decoration:none;transition:transform .12s ease-out,box-shadow .12s ease-out;display:flex;overflow:hidden}.game-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px)}.game-card:active{box-shadow:var(--shadow-active);transform:translateY(2px)}.game-card--locked{opacity:.6;cursor:not-allowed}.game-card--locked:hover,.game-card--locked:active{box-shadow:var(--shadow);transform:none}.game-card__image{border-bottom:var(--border);justify-content:center;align-items:center;height:110px;display:flex}.game-card__image--tint-0{background:repeating-linear-gradient(135deg, var(--green-soft) 0 8px, var(--surface) 8px 16px)}.game-card__image--tint-1{background:repeating-linear-gradient(135deg, var(--rose-soft) 0 8px, var(--surface) 8px 16px)}.game-card__image--tint-2{background:repeating-linear-gradient(135deg, var(--indigo-soft) 0 8px, var(--surface) 8px 16px)}.game-card__image-text{font-family:var(--font-mono);color:var(--muted);font-size:12px}.game-card__body{padding:14px 16px 16px}.game-card__name{margin:0;font-size:16px;font-weight:700}.game-card__topic{color:var(--muted);margin:4px 0 0;font-size:13px}.game-card__footer{justify-content:space-between;align-items:center;margin-top:12px;display:flex}.game-card__footer .stars{font-size:15px}.filters{gap:8px;display:flex}.filters__pill{border:var(--border);border-radius:var(--radius-pill);background:var(--surface);cursor:pointer;padding:8px 16px;font-size:14px;font-weight:600}.filters__pill--active{background:var(--ink);color:var(--bg)}.segments{gap:6px;display:flex}.segments__item{border:var(--border);background:var(--surface);border-radius:7px;flex:1;height:14px}.segments__item--done{background:var(--ink)}.segments__item--in_progress{background:var(--rose)}.progress-card{background:var(--green);border:var(--border);border-radius:var(--radius-card-lg);box-shadow:var(--shadow-lg);flex-direction:column;gap:18px;padding:28px;display:flex}.progress-card__title{margin:0;font-size:30px;font-weight:800;line-height:1.2}.progress-card__actions{align-items:center;gap:16px;display:flex}.progress-card__button{border:var(--border);border-radius:var(--radius-input);background:var(--ink);color:var(--green);padding:14px 22px;font-size:16px;font-weight:700;text-decoration:none;transition:transform .12s ease-out}.progress-card__button:hover{transform:translateY(-2px)}.progress-card__button:active{transform:translateY(2px)}.progress-card__level{font-size:14px}@media (width<=700px){.progress-card{padding:20px}.progress-card__title{font-size:24px}.progress-card__actions{flex-wrap:wrap}}.home{max-width:1280px;margin:0 auto;padding:32px 36px 40px}.home__row{grid-template-columns:2fr 1fr;gap:22px;margin-bottom:28px;display:grid}.home__error{border:var(--border);border-radius:var(--radius-input);background:var(--rose-soft);padding:16px 20px}.home__games-header{align-items:center;gap:16px;margin-bottom:18px;display:flex}.home__section-title{margin:0;font-size:24px;font-weight:800}.home__grid{grid-template-columns:repeat(5,1fr);gap:18px;display:grid}.home__empty{border:2px dashed var(--line);border-radius:var(--radius-card);color:var(--muted);text-align:center;padding:28px}@media (width<=1100px){.home__grid{grid-template-columns:repeat(3,1fr)}}@media (width<=900px){.home__row{grid-template-columns:1fr}}@media (width<=700px){.home{padding:20px 16px 32px}.home__grid{grid-template-columns:repeat(2,1fr)}.home__games-header{flex-wrap:wrap}}.login-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;display:grid}.login-form__field{gap:6px;display:grid}.login-form__field span{color:var(--ink);font-size:13px;font-weight:700}.login-form__field input{border:var(--border);background:var(--surface);width:100%;min-height:52px;color:var(--ink);font:inherit;border-radius:14px;padding:0 16px}.login-form__submit{border:var(--border);background:var(--ink);min-width:128px;min-height:52px;color:var(--green);box-shadow:var(--shadow);cursor:pointer;border-radius:14px;padding:0 18px;font-size:20px;font-weight:800}.login-form__submit:disabled,.login-form__field input:disabled{opacity:.7;cursor:default}@media (width<=700px){.login-form{grid-template-columns:1fr}.login-form__submit{width:100%}}.login-hero{background:var(--green);min-height:100vh;color:var(--ink);flex-direction:column;padding:36px 30px 28px;display:flex;position:relative;overflow:hidden}.login-hero__brand{color:inherit;align-self:flex-start;align-items:center;gap:10px;text-decoration:none;display:flex}.login-hero__brand-mark{background:var(--ink);width:38px;height:38px;color:var(--green);font-family:var(--font-mono);border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;font-size:14px;font-weight:700;display:inline-flex}.login-hero__brand-text{font-size:19px;font-weight:800}.login-hero__copy{z-index:1;max-width:480px;margin-top:clamp(72px,14vh,150px);position:relative}.login-hero__eyebrow{font-family:var(--font-mono);margin:0 0 18px;font-size:15px;font-weight:700}.login-hero__title{letter-spacing:0;margin:0;font-size:clamp(38px,4.4vw,56px);font-weight:800;line-height:1.1}.login-hero__art{min-height:250px;margin-top:auto;position:relative}.login-hero__block{background:var(--ink);border-radius:22px;width:72px;height:72px;position:absolute;bottom:140px;right:180px;transform:rotate(12deg)}.login-hero__circle{aspect-ratio:1;background:var(--rose);border-radius:50%;width:330px;position:absolute;bottom:-110px;right:-90px}.login-hero__note{z-index:1;margin:0;font-size:14px;font-weight:600;position:relative}@media (width<=980px){.login-hero{min-height:440px}}@media (width<=700px){.login-hero{min-height:380px;padding:24px 20px}.login-hero__copy{margin-top:48px}.login-hero__title{font-size:36px}.login-hero__block{width:60px;height:60px;bottom:110px;right:120px}.login-hero__circle{width:250px;bottom:-85px;right:-80px}}.role-card{border:var(--border);background:var(--surface);min-height:170px;box-shadow:var(--shadow);text-align:left;cursor:pointer;border-radius:26px;align-content:start;gap:14px;padding:20px;display:grid}.role-card--active{background:var(--green)}.role-card__icon{background:var(--ink);width:42px;height:42px;color:var(--green);font-family:var(--font-mono);border-radius:50%;justify-content:center;align-items:center;font-size:18px;font-weight:700;display:inline-flex}.role-card__icon--teacher{background:var(--rose);color:var(--ink)}.role-card__title{font-size:20px;font-weight:800;line-height:1.1;display:block}.role-card__text{color:var(--muted);font-size:15px;font-weight:600;display:block}.login{background:var(--rose-soft);grid-template-columns:1fr 1.1fr;min-height:100vh;display:grid}.login__brand{align-items:center;gap:10px;margin-bottom:24px;display:flex}.login__brand-mark{background:var(--ink);width:38px;height:38px;color:var(--green);font-family:var(--font-mono);border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;font-size:14px;font-weight:700;display:inline-flex}.login__brand-text{font-size:19px;font-weight:800}.login__panel{justify-content:center;align-items:center;min-height:100vh;padding:32px;display:flex}.login__panel-inner{width:min(680px,100%)}.login__panel-title{text-align:center;color:var(--ink);margin:0 0 28px;font-size:clamp(36px,4vw,54px);font-weight:800;line-height:1}.login__role-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px;display:grid}.login__message{border:var(--border);background:var(--surface);color:var(--ink);border-radius:14px;margin:18px 0 0;padding:14px 16px;font-weight:600}.login__message--error{background:var(--rose-soft)}@media (width<=980px){.login{grid-template-columns:1fr}.login__panel{min-height:auto}}@media (width<=700px){.login__panel{padding:20px 16px 28px}.login__panel-title{margin-bottom:20px;font-size:36px}.login__role-grid,.login__role-grid{grid-template-columns:1fr}}.avatar-editor{flex-direction:column;gap:24px;display:flex}.avatar-editor__title{margin:0;font-size:32px;font-weight:800}.avatar-editor__group{flex-direction:column;gap:10px;display:flex}.avatar-editor__label{margin:0;font-size:15px;font-weight:600}.avatar-editor__options{flex-wrap:wrap;gap:12px;display:flex}.avatar-editor__error{border:var(--border);border-radius:var(--radius-input);background:var(--rose-soft);margin:0;padding:12px 16px}.swatch{border:var(--border);cursor:pointer;border-radius:50%;width:56px;height:56px;padding:0}.swatch--rose{background:var(--rose)}.swatch--green{background:var(--green)}.swatch--white{background:var(--surface)}.swatch--ink{background:var(--ink)}.swatch[aria-pressed=true]{box-shadow:0 0 0 3px var(--bg), 0 0 0 5px var(--ink)}.pill{background:var(--surface);border:var(--border);border-radius:var(--radius-pill);cursor:pointer;padding:10px 22px;font-weight:600}.pill[aria-pressed=true]{background:var(--ink);color:var(--surface)}.symbol-tile{background:var(--surface);border:var(--border);border-radius:var(--radius-input);cursor:pointer;width:56px;height:56px;font-size:20px;font-weight:800}.symbol-tile[aria-pressed=true]{background:var(--ink);color:var(--green)}.leaderboard-setting{background:var(--surface);border:var(--border);border-radius:var(--radius-card);justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;display:flex}.leaderboard-setting__title{margin:0 0 4px;font-weight:700}.leaderboard-setting__hint{color:var(--muted);margin:0;font-size:14px}.switch{background:var(--indigo-soft);border:var(--border);border-radius:var(--radius-pill);cursor:pointer;flex-shrink:0;width:64px;height:36px;padding:0;position:relative}.switch__knob{background:var(--ink);border-radius:50%;width:24px;height:24px;transition:transform .15s;position:absolute;top:4px;left:4px}.switch[aria-checked=true]{background:var(--green)}.switch[aria-checked=true] .switch__knob{transform:translate(28px)}.avatar{border:var(--border);color:var(--ink);-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;font-weight:800;display:flex}.avatar--rose{background:var(--rose)}.avatar--green{background:var(--green)}.avatar--white{background:var(--surface)}.avatar--ink{background:var(--ink);color:var(--green)}.avatar--ring{border-radius:50%}.avatar--square{border-radius:var(--radius-card)}.avatar--sticker{border-radius:var(--radius-card-lg);box-shadow:var(--shadow);transform:rotate(-6deg)}.profile-card{background:var(--rose-soft);border:var(--border);border-radius:var(--radius-card-lg);box-shadow:var(--shadow-lg);flex-direction:column;align-items:center;gap:8px;padding:40px 32px 32px;display:flex}.profile-card__name{margin:16px 0 0;font-size:28px;font-weight:800}.profile-card__meta{color:var(--ink-2);margin:0}.profile-card__stats{gap:12px;margin:24px 0 0;padding:0;list-style:none;display:flex}.stat{background:var(--surface);border:var(--border);border-radius:var(--radius-input);flex-direction:column;align-items:center;min-width:96px;padding:12px 16px;display:flex}.stat__value{font-size:20px;font-weight:800}.stat__label{font-size:13px}.profile__layout{grid-template-columns:minmax(280px,460px) 1fr;align-items:start;gap:40px;display:grid}@media (width<=900px){.profile__layout{grid-template-columns:1fr}}.play__title{margin-bottom:20px}.play__panel{border:var(--border);border-radius:var(--radius-card);background:var(--surface);max-width:420px;box-shadow:var(--shadow);flex-direction:column;gap:16px;padding:24px;display:flex}.play__label{flex-direction:column;gap:8px;font-weight:600;display:flex}.play__actions{gap:12px;display:flex}.play__button{border:var(--border);border-radius:var(--radius-pill);background:var(--green);cursor:pointer;padding:10px 20px;font-weight:600}.play__button--quiet{background:var(--surface)}
