/* KazanGo play theme
 * Loaded only for member screens.  It keeps the existing semantic markup and
 * turns the product into a brighter, reward-led experience without touching
 * the admin command centre styles.
 */
:root {
    --bg: #fbf8ff;
    --surface: #ffffff;
    --surface-2: #f6f0ff;
    --ink: #25183f;
    --muted: #817696;
    --line: #ece3fa;
    --violet: #7a4dff;
    --violet-2: #aa6cff;
    --mint: #20cda4;
    --amber: #ffb83f;
    --red: #f06a88;
    --shadow: 0 20px 60px rgba(100, 66, 180, .12);
}

[data-theme="dark"] {
    --bg: #120d24;
    --surface: #1e1634;
    --surface-2: #291c45;
    --ink: #f8f2ff;
    --muted: #b3a6cb;
    --line: #382957;
    --shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

body.app-body {
    background:
        radial-gradient(circle at 80% -5%, rgba(173, 117, 255, .18), transparent 32rem),
        radial-gradient(circle at 12% 92%, rgba(50, 219, 177, .12), transparent 30rem),
        var(--bg);
}

.ambient {
    opacity: .35;
}

.app-body:not(.app-body--admin) .sidebar {
    overflow: hidden;
    border-right: 0;
    background: linear-gradient(180deg, #27125c 0%, #41209a 56%, #2b176d 100%);
    box-shadow: 10px 0 40px rgba(59, 28, 141, .16);
}

.app-body:not(.app-body--admin) .sidebar::before,
.app-body:not(.app-body--admin) .sidebar::after {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.app-body:not(.app-body--admin) .sidebar::before {
    top: 12%;
    right: -110px;
}

.app-body:not(.app-body--admin) .sidebar::after {
    bottom: 9%;
    left: -130px;
}

.app-body:not(.app-body--admin) .sidebar__inner {
    position: relative;
    z-index: 1;
}

.app-body:not(.app-body--admin) .sidebar .brand,
.app-body:not(.app-body--admin) .sidebar .brand__word,
.app-body:not(.app-body--admin) .sidebar .sidebar__section-label,
.app-body:not(.app-body--admin) .sidebar .sidebar-nav__item,
.app-body:not(.app-body--admin) .sidebar .sidebar-nav__item--muted {
    color: #f7f3ff;
}

.app-body:not(.app-body--admin) .sidebar .brand__word small {
    color: #cfc2f4;
}

.app-body:not(.app-body--admin) .sidebar .brand__mark {
    background: linear-gradient(135deg, #ff77c8, #8f6bff);
    box-shadow: 0 10px 24px rgba(255, 109, 197, .34);
}

.app-body:not(.app-body--admin) .sidebar__section-label {
    color: #bca9ef !important;
}

.app-body:not(.app-body--admin) .sidebar-nav__item {
    border: 1px solid transparent;
}

.app-body:not(.app-body--admin) .sidebar-nav__item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .12);
}

.app-body:not(.app-body--admin) .sidebar-nav__item.is-active {
    color: #2e155f !important;
    background: linear-gradient(100deg, #fff, #f2dfff);
    box-shadow: 0 10px 22px rgba(17, 6, 65, .2);
}

.app-body:not(.app-body--admin) .sidebar-nav__item.is-active .sidebar-nav__icon {
    color: #7a4dff;
}

.app-body:not(.app-body--admin) .nav-badge {
    color: #5a2ec3;
    background: #f5ddff;
}

.app-body:not(.app-body--admin) .sidebar-promo {
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(145deg, #f95fb6, #754cff);
    box-shadow: 0 17px 35px rgba(20, 3, 62, .23);
}

.app-body:not(.app-body--admin) .sidebar-promo p {
    color: #fbe8ff;
}

.app-body:not(.app-body--admin) .admin-switch {
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .12);
}

.topbar {
    border-bottom-color: rgba(230, 218, 249, .8);
    background: color-mix(in srgb, var(--bg) 83%, transparent);
}

.global-search,
.topbar-user__trigger,
.theme-toggle,
.notification-button {
    border-color: var(--line);
}

.global-search {
    border-radius: 99px;
    box-shadow: 0 7px 18px rgba(88, 50, 160, .06);
}

.topbar-xp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 3px;
    padding: 5px 8px;
    border: 1px solid #f0d28b;
    border-radius: 99px;
    color: #9b6810;
    background: #fff4d6;
    font-size: 9px;
    font-weight: 800;
}

.topbar-xp svg {
    width: 12px;
    height: 12px;
}

.page-intro {
    position: relative;
}

.page-intro::after {
    position: absolute;
    top: -28px;
    right: 5%;
    width: 86px;
    height: 86px;
    border: 12px dotted rgba(255, 184, 63, .33);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.page-intro h1 {
    background: linear-gradient(100deg, #4a24ad 5%, #bb4cb6 56%, #ed8e45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    color: #835ce3;
}

.button {
    border-radius: 14px;
}

.button--primary {
    background: linear-gradient(110deg, #7a4dff, #d64eb5 58%, #ffad45);
    box-shadow: 0 12px 24px rgba(120, 70, 255, .25);
}

.button--soft {
    background: var(--surface);
    box-shadow: 0 6px 16px rgba(91, 54, 155, .06);
}

.metric-card,
.panel,
.task-card,
.profile-hero,
.modal__card,
.safety-card {
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(94, 57, 157, .08);
}

.metric-card {
    position: relative;
    overflow: hidden;
    border-color: transparent;
}

.metric-card::after {
    position: absolute;
    right: -24px;
    bottom: -38px;
    width: 110px;
    height: 110px;
    border: 16px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    content: "";
}

.metric-card--hero {
    color: #fff;
    background: linear-gradient(135deg, #48249f, #a44dd0 65%, #e47a9a);
}

.metric-card--hero .metric-card__top,
.metric-card--hero .metric-card__foot,
.metric-card--hero small {
    color: #f3eaff;
}

.metric-card--hero strong {
    color: #fff;
}

.metric-grid .metric-card:nth-child(2) {
    background: linear-gradient(135deg, #e9fff9, #b9f4e1);
}

.metric-grid .metric-card:nth-child(3) {
    background: linear-gradient(135deg, #fff5dc, #ffe2a3);
}

.metric-grid .metric-card:nth-child(4) {
    background: linear-gradient(135deg, #ffeaf3, #ffc8dd);
}

[data-theme="dark"] .metric-grid .metric-card:nth-child(2),
[data-theme="dark"] .metric-grid .metric-card:nth-child(3),
[data-theme="dark"] .metric-grid .metric-card:nth-child(4) {
    color: #261940;
}

.metric-icon,
.quick-icon {
    border-radius: 13px;
}

.task-card {
    border-color: transparent;
    background: color-mix(in srgb, var(--surface) 94%, #f3eaff);
}

.task-card:hover {
    border-color: #d4c2ff;
    box-shadow: 0 22px 46px rgba(101, 54, 191, .16);
}

.task-card h3 {
    color: var(--ink);
}

.task-card__bottom strong,
.task-row__reward {
    color: #7847df;
}

.task-card__bottom {
    gap: 10px;
}

.task-card__reward {
    min-width: 0;
    margin-right: auto;
}

.task-card__reward strong,
.task-card__reward small {
    display: block;
}

.task-card__reward small {
    margin-top: -2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.task-card__xp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid #f0d28b;
    border-radius: 99px;
    color: #96620b;
    background: #fff4d6;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.task-card__xp svg {
    width: 11px;
    height: 11px;
}

.filter-pill {
    border-color: #e2d5f6;
    background: color-mix(in srgb, var(--surface) 88%, #f5eaff);
}

.filter-pill.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(100deg, #7a4dff, #c552c4);
}

.task-progress {
    background: #eee4fc;
}

.task-progress span {
    background: linear-gradient(90deg, #20cda4, #7a4dff, #ed7bb1);
}

.dashboard-grid--lower .panel:first-child {
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 95%, #f5eaff), var(--surface));
}

.task-row {
    border-radius: 15px;
}

.task-row:hover {
    background: linear-gradient(90deg, #f5efff, #fff);
}

.streak-card,
.level-hero,
.xp-card,
.badge-tile {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(94, 57, 157, .09);
}

.game-quest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.game-quest {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(94, 57, 157, .07);
}

.game-quest__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
}

.game-quest__icon svg {
    width: 17px;
    height: 17px;
}

.game-quest__copy {
    min-width: 0;
    flex: 1;
}

.game-quest__copy strong,
.game-quest__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-quest__copy strong {
    font-size: 11px;
}

.game-quest__copy small {
    margin: 2px 0 7px;
    color: var(--muted);
    font-size: 9px;
}

.game-quest__bar,
.badge-tile__progress,
.profile-goal__bar {
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: color-mix(in srgb, var(--violet) 11%, var(--surface-2));
}

.game-quest__bar span,
.badge-tile__progress i,
.profile-goal__bar > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20cda4, #7a4dff, #ed7bb1);
}

.game-quest > b {
    color: var(--muted);
    font-size: 10px;
}

.game-quest--mint .game-quest__icon {
    background: linear-gradient(145deg, #21cda5, #59dfc4);
}

.game-quest--violet .game-quest__icon {
    background: linear-gradient(145deg, #6f48ee, #b365f5);
}

.game-quest--amber .game-quest__icon {
    background: linear-gradient(145deg, #ffb83f, #f06a88);
}

.level-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 26px 30px;
    color: #fff;
    background: linear-gradient(115deg, #2d146d, #713ee2 58%, #dd68b3);
}

.level-hero::after {
    position: absolute;
    right: -50px;
    bottom: -85px;
    width: 230px;
    height: 230px;
    border: 30px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

.level-hero__copy,
.level-hero__progress {
    position: relative;
    z-index: 1;
}

.level-hero__copy {
    min-width: 0;
}

.level-hero__copy .eyebrow,
.level-hero__copy p,
.level-hero__progress small {
    color: #dfd2ff;
}

.level-hero__copy h2 {
    margin: 7px 0 5px;
    color: #fff;
    font-size: 27px;
}

.level-hero__copy p {
    margin: 0;
    font-size: 12px;
}

.level-hero__progress {
    width: min(320px, 42%);
}

.level-hero__progress strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 13px;
}

.level-progress {
    height: 11px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 99px;
    background: rgba(34, 7, 91, .38);
}

.level-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #78f0d0, #ffd472);
}

.level-hero__progress small {
    display: block;
    margin-top: 7px;
    font-size: 10px;
}

.streak-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    background: linear-gradient(120deg, #fff7df, #ffe9b0);
}

.streak-card__icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #ff8f45, #ed4d90);
    box-shadow: 0 8px 18px rgba(239, 91, 111, .25);
}

.streak-card strong,
.streak-card small {
    display: block;
}

.streak-card strong {
    color: #8a4b14;
    font-size: 14px;
}

.streak-card small {
    margin-top: 2px;
    color: #a57641;
    font-size: 11px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.badge-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
}

.badge-tile__body {
    min-width: 0;
    flex: 1;
}

.badge-tile__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 13px;
    color: #8d5d00;
    background: linear-gradient(145deg, #ffe9a9, #ffbd5d);
}

.badge-tile strong,
.badge-tile small {
    display: block;
}

.badge-tile strong {
    font-size: 11px;
}

.badge-tile small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.badge-tile__progress {
    margin-top: 7px;
    height: 4px;
}

.badge-tile__status {
    align-self: flex-start;
    min-width: 28px;
    padding: 4px 6px;
    border-radius: 99px;
    color: #198a70;
    background: #e3fff6;
    font-size: 9px;
    text-align: center;
}

.badge-tile.is-locked {
    box-shadow: none;
    opacity: .76;
}

.badge-tile.is-locked .badge-tile__icon {
    color: var(--muted);
    background: var(--surface-2);
    filter: grayscale(.45);
}

.badge-tile.is-locked .badge-tile__status {
    color: #7851d5;
    background: #f0eaff;
}

.profile-goal {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--mint) 8%, var(--surface));
}

.profile-goal strong,
.profile-goal small {
    display: block;
}

.profile-goal small {
    color: var(--muted);
    font-size: 10px;
}

.profile-goal > b {
    color: #15977b;
    font-size: 11px;
}

.profile-goal__bar {
    grid-column: 2 / -1;
    width: 100%;
}

.watch-page-intro h1 {
    max-width: 760px;
}

.watch-rules,
.watch-summary,
.watch-video-grid {
    display: grid;
    gap: 14px;
}

.watch-rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.watch-rules article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 94%, #f4eaff);
    box-shadow: 0 10px 28px rgba(94, 57, 157, .06);
}

.watch-rules article > span,
.watch-summary__icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #7a4dff, #d64eb5);
}

.watch-rules article:nth-child(2) > span {
    background: linear-gradient(145deg, #ffb83f, #f06a88);
}

.watch-rules article:nth-child(3) > span {
    background: linear-gradient(145deg, #20cda4, #45bfe7);
}

.watch-rules strong,
.watch-rules small {
    display: block;
}

.watch-rules strong {
    font-size: 11px;
}

.watch-rules small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.watch-neutrality-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid color-mix(in srgb, var(--mint) 28%, var(--line));
    border-radius: 16px;
    background: linear-gradient(110deg, color-mix(in srgb, var(--mint) 10%, var(--surface)), color-mix(in srgb, var(--violet) 5%, var(--surface)));
    box-shadow: 0 10px 27px rgba(34, 159, 132, .07);
}

.watch-neutrality-notice > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #20cda4, #45bfe7);
    color: #fff;
}

.watch-neutrality-notice > span svg {
    width: 19px;
    height: 19px;
}

.watch-neutrality-notice strong,
.watch-neutrality-notice p {
    display: block;
}

.watch-neutrality-notice strong {
    color: var(--ink);
    font-size: 11px;
}

.watch-neutrality-notice p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.watch-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.watch-summary article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 31px rgba(94, 57, 157, .07);
}

.watch-summary__icon--mint {
    background: linear-gradient(145deg, #20cda4, #51ddbb);
}

.watch-summary__icon--amber {
    background: linear-gradient(145deg, #ffb83f, #f0806c);
}

.watch-summary small,
.watch-summary strong {
    display: block;
}

.watch-summary small {
    color: var(--muted);
    font-size: 9px;
}

.watch-summary strong {
    margin-top: 2px;
    font: 800 20px var(--font-display);
}

.watch-library {
    overflow: hidden;
}

.watch-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.watch-video-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--violet) 12%, var(--line));
    border-radius: 19px;
    background: var(--surface);
    box-shadow: 0 13px 32px rgba(94, 57, 157, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.watch-video-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--violet) 32%, var(--line));
    box-shadow: 0 20px 42px rgba(94, 57, 157, .14);
}

.watch-video-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #2d146d, #713ee2);
}

.watch-video-card__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 42%, rgba(18, 7, 45, .68));
    pointer-events: none;
}

.watch-video-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.watch-video-card:hover .watch-video-card__media img {
    transform: scale(1.035);
}

.watch-video-card__play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, rgba(122, 77, 255, .94), rgba(226, 76, 169, .94));
    box-shadow: 0 12px 28px rgba(27, 7, 66, .34);
    transform: translate(-50%, -50%);
}

.watch-video-card__duration,
.watch-video-card__done {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 99px;
    color: #fff;
    background: rgba(21, 9, 54, .76);
    backdrop-filter: blur(8px);
    font-size: 9px;
    font-weight: 800;
}

.watch-video-card__duration {
    right: 9px;
    bottom: 9px;
}

.watch-video-card__done {
    top: 9px;
    left: 9px;
    background: rgba(21, 172, 137, .9);
}

.watch-video-card__duration svg,
.watch-video-card__done svg {
    width: 11px;
    height: 11px;
}

.watch-video-card__body {
    padding: 17px;
}

.watch-video-card__body h3 {
    margin: 7px 0 6px;
    font-size: 15px;
}

.watch-video-card__channel {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin: 9px 0;
    padding: 8px 9px;
    border: 1px solid color-mix(in srgb, var(--violet) 10%, var(--line));
    border-radius: 12px;
    background: color-mix(in srgb, var(--violet) 5%, var(--surface));
}

.watch-video-card__channel > span {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(145deg, #ff5f75, #d64eb5);
    color: #fff;
}

.watch-video-card__channel > span svg {
    width: 15px;
    height: 15px;
}

.watch-video-card__channel > div {
    min-width: 0;
    flex: 1 1 auto;
}

.watch-video-card__channel small,
.watch-video-card__channel strong {
    display: block;
}

.watch-video-card__channel small {
    color: var(--muted);
    font-size: 8px;
}

.watch-video-card__channel strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-video-card__body > p {
    display: -webkit-box;
    min-height: 35px;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.watch-video-card__links,
.watch-player-external-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.watch-video-card__links {
    min-height: 27px;
    margin-top: 10px;
}

.watch-external-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line));
    border-radius: 9px;
    background: var(--surface);
    color: var(--violet);
    font-size: 9px;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.watch-external-link:hover {
    border-color: color-mix(in srgb, var(--violet) 42%, var(--line));
    background: color-mix(in srgb, var(--violet) 8%, var(--surface));
    transform: translateY(-1px);
}

.watch-external-link svg {
    width: 12px;
    height: 12px;
}

.watch-external-link[hidden],
.watch-player-external-links .button[hidden] {
    display: none;
}

.watch-video-card__progress {
    margin-top: 14px;
}

.watch-video-card__progress > span,
.watch-progress {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: color-mix(in srgb, var(--violet) 10%, var(--surface-2));
}

.watch-video-card__progress > span i,
.watch-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20cda4, #7a4dff, #ed7bb1);
}

.watch-video-card__progress small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.watch-video-card__bottom {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
}

.watch-video-card__bottom strong {
    margin-right: auto;
    color: #7141dc;
    font: 800 17px var(--font-display);
}

.watch-video-card.is-completed {
    opacity: .72;
}

.watch-video-card.is-completed .watch-video-card__media img {
    filter: grayscale(.4);
}

.watch-loading,
.watch-empty {
    grid-column: 1 / -1;
}

.watch-loading {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--muted);
}

.watch-player-card {
    width: min(820px, calc(100vw - 28px));
    max-width: 820px;
}

.watch-player-channel {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin: -5px 0 12px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--violet) 12%, var(--line));
    border-radius: 13px;
    background: linear-gradient(110deg, color-mix(in srgb, var(--violet) 7%, var(--surface)), color-mix(in srgb, var(--mint) 5%, var(--surface)));
}

.watch-player-channel__icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #ff5f75, #d64eb5);
    color: #fff;
}

.watch-player-channel__icon svg {
    width: 18px;
    height: 18px;
}

.watch-player-channel > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.watch-player-channel small,
.watch-player-channel strong {
    display: block;
}

.watch-player-channel small {
    color: var(--muted);
    font-size: 9px;
}

.watch-player-channel strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-player-channel[hidden] {
    display: none;
}

.watch-player-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 17px;
    background: #120927;
}

.watch-player-stage iframe,
#watch-youtube-player {
    width: 100%;
    height: 100%;
}

.watch-player-lock {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: #fff;
    background: rgba(22, 9, 54, .91);
    text-align: center;
}

.watch-player-lock[hidden] {
    display: none;
}

.watch-player-lock svg {
    width: 38px;
    height: 38px;
    color: #ffca65;
}

.watch-player-lock small {
    color: #d8ccef;
}

.watch-player-status {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--violet) 6%, var(--surface));
}

.watch-player-status__head,
.watch-player-meta,
.watch-player-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.watch-player-status__head {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 10px;
}

.watch-player-status__head strong {
    color: #7141dc;
}

.watch-player-meta {
    justify-content: flex-start;
    margin-top: 10px;
    color: var(--muted);
    font-size: 10px;
}

.watch-player-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.watch-player-meta span:last-child {
    margin-left: auto;
    color: #15977b;
}

.watch-player-meta svg {
    width: 13px;
    height: 13px;
}

.watch-player-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #f1d99d;
    border-radius: 12px;
    color: #8a641e;
    background: #fff8e3;
    font-size: 10px;
}

[data-theme="dark"] .watch-player-warning {
    color: #f3cf81;
    background: #332713;
}

.watch-player-warning svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.watch-player-neutrality {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--mint) 26%, var(--line));
    border-radius: 12px;
    background: color-mix(in srgb, var(--mint) 8%, var(--surface));
    color: color-mix(in srgb, var(--mint) 68%, var(--ink));
    font-size: 10px;
}

.watch-player-neutrality svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.watch-player-external-links {
    justify-content: flex-start;
    margin-top: 11px;
}

.watch-player-external-links .button {
    min-width: 142px;
}

.watch-player-actions {
    justify-content: flex-end;
    margin-top: 15px;
}

.profile-hero {
    border-color: #ddcdf7;
    background: linear-gradient(120deg, #f9f2ff, #eafcff);
}

.profile-avatar {
    border: 5px solid #fff;
    box-shadow: 0 10px 25px rgba(122, 77, 255, .25);
}

.toast {
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(77, 43, 137, .18);
}

@media (max-width: 720px) {
    .page-intro::after {
        right: 0;
        width: 55px;
        height: 55px;
        border-width: 8px;
    }

    .level-hero {
        display: block;
        padding: 22px;
    }

    .level-hero__progress {
        width: 100%;
        margin-top: 19px;
    }

    .badge-grid {
        grid-template-columns: 1fr;
    }

    .game-quest-grid {
        grid-template-columns: 1fr;
    }

    .watch-rules,
    .watch-summary,
    .watch-video-grid {
        grid-template-columns: 1fr;
    }

    .watch-rules article {
        padding: 12px;
    }

    .watch-neutrality-notice {
        align-items: flex-start;
        padding: 12px;
    }

    .watch-video-card__bottom {
        flex-wrap: wrap;
    }

    .watch-video-card__bottom .button {
        width: 100%;
        justify-content: center;
    }

    .watch-player-card {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
        overflow: auto;
        padding: 15px;
    }

    .watch-player-actions .button {
        flex: 1;
    }

    .watch-player-external-links .button {
        min-width: 0;
        flex: 1 1 145px;
        justify-content: center;
    }

    .watch-video-card__links .watch-external-link {
        flex: 1;
        justify-content: center;
    }

    .watch-player-channel {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .task-card__bottom {
        flex-wrap: wrap;
    }

    .topbar-xp {
        display: none;
    }
}
