:root {
    --ink: #17203a;
    --blue: #2a4fd6;
    --orange: #ff8a1e;
    --ice: #f3f6ff;
    --card: #ffffff;
    --line: #d9e1f5;
    --good: #128a5a;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Manrope, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(900px 400px at 100% -10%, #ffe3c4 0%, transparent 55%),
        linear-gradient(180deg, #f7f9ff 0%, #eef3ff 40%, #f8fafc 100%);
    min-height: 100vh;
}
a { color: inherit; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6vw;
}
.logo { font-weight: 800; text-decoration: none; font-size: 1.2rem; }
.logo span {
    background: var(--orange);
    color: white;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: .85rem;
}
nav { display: flex; gap: 18px; }
nav a { text-decoration: none; font-weight: 700; }
main { padding: 10px 6vw 120px; }
.hero, .split, .cabinet-head, .admin-head {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 28px;
    align-items: center;
}
h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; margin: 8px 0; }
.lead { font-size: 1.15rem; max-width: 46rem; }
.eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; font-weight: 800; color: var(--blue); }
.btn, button {
    border: 0;
    background: var(--blue);
    color: white;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.danger { background: transparent; color: #b42318; border: 1px solid #f0c4c0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card, .panel, .warning, .block-card, .open, .level-grid article, .progress-card, .guest-block, .day, .auth, .admin-day {
    background: var(--card);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(23, 32, 58, .08);
}
.float { animation: float 4.5s ease-in-out infinite; }
@keyframes float {
    50% { transform: translateY(-8px); }
}
.warning {
    margin: 36px 0;
    background: #fff4e8;
    border: 2px solid #ffd7ad;
}
.slogans, .blocks, .level-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.slogans article, .level-grid article {
    background: white;
    border-radius: 20px;
    padding: 18px;
}
.slogans span { font-weight: 800; color: var(--orange); }
.blocks { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.level-grid { grid-template-columns: repeat(3, 1fr); }
.level-grid .open { outline: 3px solid var(--orange); }
.kind-parent { border-top: 6px solid #7c5cbf; }
.kind-move { border-top: 6px solid var(--blue); }
.kind-mind { border-top: 6px solid var(--good); }
.kind-evening { border-top: 6px solid var(--orange); }
.mock-banner {
    background: var(--ink);
    color: white;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 18px;
}
.cabinet-head { align-items: stretch; }
.bar { height: 10px; background: #e6ebf8; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--good); transition: width .4s ease; }
.task, .media-list li, .admin-day header, .cycle-link {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.task, .admin-day li {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}
.task.done { opacity: .55; }
.task.done .done-btn { background: var(--good); }
.guest-block, .admin-day { margin: 16px 0; }
.day h3 { margin-bottom: 0; }
.linkish { background: transparent; color: var(--blue); padding: 0; }
.achievements { margin-top: 28px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
    background: white;
    border-radius: 16px;
    padding: 10px 12px;
    min-width: 140px;
    animation: pop .45s ease;
}
.badge small { display: block; color: #667; }
@keyframes pop {
    from { transform: scale(.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.award {
    position: fixed;
    inset: 0;
    background: rgba(23, 32, 58, .35);
    display: grid;
    place-items: center;
    z-index: 20;
}
.award div {
    background: white;
    border-radius: 28px;
    padding: 28px 36px;
    text-align: center;
    animation: pop .4s ease;
}
.award[hidden] { display: none; }
.player {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--ink);
    color: white;
    border-radius: 18px;
    padding: 10px 14px;
    z-index: 15;
}
.player[hidden] { display: none; }
.player button { width: 42px; height: 42px; padding: 0; }
.player-meta { flex: 1; }
.player-meta span { display: block; opacity: .75; font-size: .85rem; }
.player input { width: 110px; }
.auth, .panel { max-width: 520px; }
.panel.wide { max-width: 720px; }
.hint { font-weight: 500; color: #52608a; }
.material {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
}
.material span, .material p { display: block; font-weight: 500; }
.material video, .material audio, .material img {
    display: block;
    width: 100%;
    max-width: 640px;
    margin-top: 10px;
    border-radius: 16px;
}
.material-actions { display: flex; gap: 8px; align-items: center; }
.material.view { flex-direction: column; align-items: stretch; }
label { display: block; margin: 10px 0; font-weight: 700; }
input, textarea, select {
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font: inherit;
}
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }
.stack { display: grid; gap: 10px; }
.cycle-link {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
}
.media-list { list-style: none; padding: 0; }
.media-list li, .admin-day li { background: white; border-radius: 16px; padding: 12px; margin: 8px 0; }
.flash { background: #fff4e8; padding: 10px 14px; border-radius: 12px; }
.crumb { color: #52608a; }
.inline { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.inline label { flex: 1; }
@media (max-width: 900px) {
    .hero, .split, .cabinet-head, .slogans, .blocks, .level-grid, .admin-head { grid-template-columns: 1fr; }
    .task, .admin-day header { flex-direction: column; align-items: stretch; }
}
