:root {
    --blue: #00AEEF;
    --dark-blue: #103A45;
    --pink: #FF2F92;
    --lime: #B6FF00;
    --yellow: #FFD400;
    --orange: #FF7A00;
    --purple: #8B35FF;
    --black: #050505;
    --white: #FFFFFF;
    --cyan: #00F5FF;
    --card-shadow: 8px 8px 0 var(--black);
    --comic-border: 5px solid var(--black);
    --outline: 0 0 0 4px var(--white), 8px 8px 0 var(--black);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--black);
    font-family: "Trebuchet MS", "Arial Black", Arial, sans-serif;
    background-color: var(--blue);
    background-image:
        radial-gradient(circle at 12px 12px, rgba(5, 5, 5, 0.16) 0 3px, transparent 3px),
        linear-gradient(132deg, rgba(255, 212, 0, 0.95) 0 14%, transparent 14% 31%, rgba(255, 47, 146, 0.88) 31% 39%, transparent 39% 100%),
        linear-gradient(24deg, rgba(182, 255, 0, 0.72) 0 9%, transparent 9% 100%);
    background-size: 22px 22px, 100% 560px, 100% 760px;
    line-height: 1.45;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

main {
    width: min(1440px, calc(100% - 28px));
    margin: 0 auto;
}

.top-strip {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 9px max(18px, calc((100vw - 1440px) / 2));
    background: var(--black);
    color: var(--white);
    border-bottom: 4px solid var(--pink);
}

.top-strip nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-weight: 900;
}

.jukebox-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.jukebox-button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--black);
    font-size: 1rem;
    background: var(--yellow);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 130ms ease, filter 130ms ease, opacity 130ms ease;
}

.jukebox-button:hover,
.jukebox-button:focus-visible {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.04);
}

.jukebox-button:active {
    transform: translateY(1px) scale(0.98);
}

.jukebox-now-playing {
    min-width: 0;
    max-width: 180px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-strip a {
    color: var(--white);
    text-decoration: none;
}

.top-strip a:hover {
    color: var(--yellow);
}

.top-strip a:focus-visible,
.main-nav > a:focus-visible,
.main-nav-item > a:focus-visible,
.submenu a:focus-visible,
.crew-button:focus-visible,
.small-button:focus-visible,
.mini-panel:focus-visible,
.action-tile:focus-visible {
    outline: 4px solid var(--white);
    outline-offset: 2px;
}

.top-slogan {
    color: var(--yellow);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
}

.zigzag {
    width: 72px;
    height: 18px;
    background: var(--pink);
    clip-path: polygon(0 35%, 55% 35%, 45% 0, 100% 50%, 45% 100%, 55% 65%, 0 65%);
    flex: 0 0 auto;
}

.site-header {
    position: relative;
    z-index: 25;
    width: min(1440px, calc(100% - 28px));
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: minmax(220px, 370px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.logo-burst {
    position: relative;
    min-height: 118px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    filter: drop-shadow(6px 7px 0 var(--black));
    transform-origin: 52% 54%;
    animation: logoBounceIn 860ms cubic-bezier(.2, .9, .2, 1) both;
}

.logo-burst-text {
    isolation: isolate;
    text-align: center;
    background:
        radial-gradient(circle at 14% 78%, var(--pink) 0 22px, transparent 23px),
        radial-gradient(circle at 88% 18%, var(--yellow) 0 24px, transparent 25px),
        radial-gradient(circle at 84% 78%, var(--cyan) 0 22px, transparent 23px),
        var(--black);
    border: 5px solid var(--white);
    clip-path: polygon(7% 18%, 20% 22%, 17% 3%, 34% 16%, 47% 0, 56% 17%, 76% 6%, 75% 25%, 97% 17%, 86% 39%, 100% 53%, 82% 58%, 94% 82%, 70% 75%, 66% 100%, 49% 82%, 32% 98%, 30% 76%, 6% 88%, 15% 64%, 0 50%, 16% 39%);
}

.logo-burst-text span,
.logo-burst-text strong {
    position: relative;
    z-index: 1;
    display: block;
    line-height: 0.86;
    letter-spacing: 0;
}

.logo-burst-text span {
    color: var(--pink);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    -webkit-text-stroke: 2px var(--white);
    text-shadow: 4px 4px 0 var(--black);
    transform: rotate(-5deg);
}

.logo-burst-text strong {
    color: var(--lime);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    -webkit-text-stroke: 3px var(--white);
    text-shadow: 5px 5px 0 var(--pink), 9px 9px 0 var(--black);
}

.logo-burst::before {
    display: none;
}

.logo-burst::after {
    display: none;
}

.logo-burst img {
    width: min(100%, 360px);
    height: auto;
    position: relative;
    z-index: 1;
}

.logo-burst.is-bouncing {
    animation: logoBounceClick 460ms cubic-bezier(.22, .9, .28, 1);
}

@keyframes logoBounceIn {
    0% {
        transform: scale(1.12) translateY(-8px);
    }
    35% {
        transform: scale(0.93) translateY(2px);
    }
    58% {
        transform: scale(1.03) translateY(-2px);
    }
    76% {
        transform: scale(0.985) translateY(1px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes logoBounceClick {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.94);
    }
    62% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-burst,
    .logo-burst.is-bouncing {
        animation: none;
    }
}

.header-main {
    display: block;
    min-width: 0;
}

.header-crew-art {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    background:
        radial-gradient(circle at 30px 26px, rgba(5, 5, 5, 0.18) 0 3px, transparent 3px),
        linear-gradient(120deg, var(--yellow) 0 18%, transparent 18% 74%, var(--pink) 74% 100%),
        var(--cyan);
    background-size: 22px 22px, 100% 100%, 100% 100%;
    border: 5px solid var(--black);
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--black);
}

.header-crew-art img {
    width: 100%;
    height: 178px;
    object-fit: cover;
    object-position: center 38%;
    transform: none;
    filter: drop-shadow(0 5px 0 var(--white)) drop-shadow(6px 8px 0 rgba(5,5,5,0.72));
}

.header-crew-art::after {
    content: "Teamwork · Vriendschap · Avontuur!";
    position: absolute;
    right: 12px;
    bottom: 8px;
    padding: 5px 10px;
    color: var(--white);
    background: var(--black);
    border: 3px solid var(--white);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--pink);
    font-size: 0.82rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.main-nav {
    display: grid;
    grid-template-columns: repeat(8, minmax(68px, 1fr));
    gap: 9px;
    align-items: stretch;
}

.main-nav-item {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    min-width: 0;
}

.has-submenu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}

.main-nav > a,
.main-nav-item > a {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    overflow: visible;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    transform: translateY(0);
    transition: transform 140ms ease, filter 140ms ease;
}

.main-nav.public-nav {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.menu-button-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(5px 6px 0 rgba(5, 5, 5, 0.32));
}

.main-nav > a:focus-visible,
.main-nav-item > a:focus-visible {
    outline: 4px solid var(--white);
    outline-offset: 4px;
    transform: translateY(-3px) scale(1.02);
}

.main-nav > a.is-active,
.main-nav-item > a.is-active {
    transform: translateY(-3px);
}

.main-nav > a:hover,
.main-nav-item > a:hover,
.crew-button:hover,
.mini-panel:hover,
.action-tile:hover,
.leader-row:hover {
    transform: translateY(-4px) scale(1.03);
}

.main-nav > a:active,
.main-nav-item > a:active {
    transform: translateY(1px) scale(0.99);
}

.main-nav > a.is-active .menu-button-image,
.main-nav-item > a.is-active .menu-button-image {
    filter: drop-shadow(6px 7px 0 rgba(5, 5, 5, 0.4));
}

.submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    display: none;
    min-width: 210px;
    padding: 8px;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 10px;
    box-shadow: 6px 6px 0 var(--black);
}

.submenu.submenu-missions {
    background: linear-gradient(180deg, rgba(255, 47, 146, 0.18), rgba(255, 255, 255, 0.98));
    border-color: #7f0d45;
}

.submenu.submenu-home {
    background: linear-gradient(180deg, rgba(255, 71, 163, 0.16), rgba(255, 255, 255, 0.98));
    border-color: #8c1658;
}

.submenu.submenu-sport {
    background: linear-gradient(180deg, rgba(0, 174, 239, 0.2), rgba(255, 255, 255, 0.98));
    border-color: #0f5b88;
}

.submenu.submenu-social {
    background: linear-gradient(180deg, rgba(255, 212, 0, 0.22), rgba(255, 255, 255, 0.98));
    border-color: #8e6400;
}

.submenu.submenu-clubhouse {
    background: linear-gradient(180deg, rgba(0, 220, 214, 0.18), rgba(255, 255, 255, 0.98));
    border-color: #13696a;
}

.submenu.submenu-profile {
    background: linear-gradient(180deg, rgba(255, 47, 146, 0.16), rgba(255, 255, 255, 0.98));
    border-color: #7f0d45;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: grid;
    gap: 6px;
}

.submenu a {
    display: block;
    padding: 8px 10px;
    color: var(--black);
    background: linear-gradient(180deg, var(--yellow), var(--white));
    border: 3px solid var(--black);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 1000;
    text-decoration: none;
    text-transform: uppercase;
}

.submenu-missions a {
    background: linear-gradient(180deg, #ff75b8, #ffd9eb);
}

.submenu-home a {
    background: linear-gradient(180deg, #ff9fcf, #ffe3f1);
}

.submenu-sport a {
    background: linear-gradient(180deg, #53cfff, #d8f7ff);
}

.submenu-social a {
    background: linear-gradient(180deg, #ffe465, #fff6c7);
}

.submenu-clubhouse a {
    background: linear-gradient(180deg, #6ce8e1, #d8fffb);
}

.submenu-profile a {
    background: linear-gradient(180deg, #ff75b8, #ffd9eb);
}

.submenu a:hover {
    background: var(--lime);
    transform: translate(-1px, -1px);
}

.submenu-missions a:hover,
.submenu-missions a:focus-visible {
    background: linear-gradient(180deg, #ff2f92, #ff89c0);
}

.submenu-home a:hover,
.submenu-home a:focus-visible {
    background: linear-gradient(180deg, #ff479f, #ff9dc9);
}

.submenu-sport a:hover,
.submenu-sport a:focus-visible {
    background: linear-gradient(180deg, #00aeef, #6ad8ff);
}

.submenu-social a:hover,
.submenu-social a:focus-visible {
    background: linear-gradient(180deg, #ffd400, #ffe871);
}

.submenu-clubhouse a:hover,
.submenu-clubhouse a:focus-visible {
    background: linear-gradient(180deg, #11d6c9, #77f7ef);
}

.submenu-profile a:hover,
.submenu-profile a:focus-visible {
    background: linear-gradient(180deg, #ff2f92, #ff89c0);
}

.nav-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(1px 2px 0 rgba(255,255,255,0.9));
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.player-bar {
    position: relative;
    z-index: 10;
    width: min(1440px, calc(100% - 28px));
    margin: 12px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    padding: 5px 1px 7px;
    color: var(--white);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    scrollbar-width: none;
}

.player-icon,
.player-meter {
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 48px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    color: var(--black);
    text-decoration: none;
    background:
        linear-gradient(180deg, var(--white), #dcfbff);
    border: 4px solid var(--black);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--white), 5px 5px 0 var(--black);
    font-weight: 1000;
    white-space: nowrap;
}

.mission-chip,
.games-chip,
.sport-chip {
    width: 58px;
    padding-inline: 7px;
}

.mission-chip.has-timer {
    width: auto;
    min-width: 104px;
}

.meter-energy { min-width: 86px; }
.meter-status { min-width: 164px; justify-content: flex-start; }
.meter-location { min-width: 148px; justify-content: flex-start; }
.meter-messages { min-width: 66px; }
.travel-chip.has-timer {
    width: auto;
    min-width: 104px;
}

.status-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
}

.status-emoji {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    font-size: 1.4rem;
    line-height: 1;
}

.player-icon small,
.player-meter small {
    margin-left: 0;
    font-size: 0.82rem;
    line-height: 1;
    text-transform: uppercase;
}

.player-icon strong,
.player-meter strong {
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
}

.player-icon.is-ready {
    background:
        radial-gradient(circle at 9px 9px, rgba(5, 5, 5, 0.12) 0 2px, transparent 2px),
        linear-gradient(180deg, var(--lime), var(--white));
    background-size: 16px 16px, 100% 100%;
}

.player-icon.is-waiting {
    color: #303030;
    background:
        radial-gradient(circle at 9px 9px, rgba(5, 5, 5, 0.08) 0 2px, transparent 2px),
        linear-gradient(180deg, #f4f4f4, #b8b8b8);
    background-size: 16px 16px, 100% 100%;
}

.player-icon.is-waiting .status-icon {
    filter: grayscale(1) saturate(0) opacity(0.5);
}

.player-icon.is-waiting .status-emoji {
    filter: grayscale(1) opacity(0.48);
}

.player-meter {
    background:
        radial-gradient(circle at 9px 9px, rgba(5, 5, 5, 0.08) 0 2px, transparent 2px),
        linear-gradient(180deg, var(--white), #dffbff);
    background-size: 16px 16px, 100% 100%;
}

.meter-energy {
    background:
        radial-gradient(circle at 9px 9px, rgba(5, 5, 5, 0.08) 0 2px, transparent 2px),
        linear-gradient(180deg, var(--yellow), var(--white));
    background-size: 16px 16px, 100% 100%;
}

.dashboard-hud {
    --status-scale: 0.65;
    display: flex;
    flex-wrap: wrap;
    gap: calc(8px * var(--status-scale));
    padding-bottom: calc(8px * var(--status-scale));
    align-items: center;
    justify-content: start;
}

.dashboard-hud .status-skin {
    position: relative;
    display: block;
    flex: 0 0 auto;
    color: var(--white);
    text-decoration: none;
    transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.dashboard-hud .status-skin.is-ready:hover,
.dashboard-hud .status-skin.is-ready:focus-visible,
.dashboard-hud .status-profile-button:hover,
.dashboard-hud .status-profile-button:focus-visible,
.dashboard-hud .status-pill-button:hover,
.dashboard-hud .status-pill-button:focus-visible,
.dashboard-hud .status-wide-side:hover,
.dashboard-hud .status-wide-side:focus-visible {
    transform: translateY(-3px) scale(1.02);
}

.dashboard-hud .status-skin.is-disabled {
    opacity: 0.7;
    filter: grayscale(1) saturate(0.55);
    cursor: default;
}

.status-skin-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.status-profile-button {
    width: calc(204px * var(--status-scale));
    height: calc(84px * var(--status-scale));
    overflow: visible;
}

.status-avatar-hole {
    position: absolute;
    left: 6.3%;
    top: 12.8%;
    width: 27.6%;
    height: auto;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    clip-path: circle(50% at 50% 50%);
    background: #eaf5ff;
}

.status-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.status-avatar-emoji {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: calc(3rem * var(--status-scale));
    color: var(--black);
    background: radial-gradient(circle at 30% 30%, #ffffff, #dcefff 68%, #b8d8ff);
    border-radius: 999px;
}

.status-level-badge {
    position: absolute;
    left: calc(79px * var(--status-scale));
    bottom: calc(11px * var(--status-scale));
    z-index: 2;
    width: calc(22px * var(--status-scale));
    text-align: center;
    color: #6d4300;
    font-size: calc(0.8rem * var(--status-scale));
    font-weight: 1000;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.status-pill-button {
    height: calc(84px * var(--status-scale));
}

.status-xp-pill {
    width: calc(172px * var(--status-scale));
}

.status-coins-pill {
    width: calc(166px * var(--status-scale));
}

.status-energy-pill {
    width: calc(174px * var(--status-scale));
}

.status-pill-copy {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 37%;
    right: 14%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: 0 2px 0 rgba(5, 5, 5, 0.45);
}

.status-pill-copy-right {
    inset: 0 13% 0 37%;
}

.status-xp-pill .status-pill-copy {
    left: 32.9%;
    right: 13.9%;
}

.status-coins-pill .status-pill-copy {
    left: 30%;
    right: 13.1%;
}

.status-energy-pill .status-pill-copy {
    left: 22.95%;
    right: 13.6%;
}

.status-pill-copy strong {
    display: block;
    width: 100%;
    font-size: calc(1.34rem * var(--status-scale));
    line-height: 1;
    font-weight: 1000;
    text-align: center;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    white-space: nowrap;
    transform: translateY(calc(-1px * var(--status-scale)));
}

.status-xp-pill .status-pill-copy strong {
    letter-spacing: 0.01em;
}

.status-coins-pill .status-pill-copy strong {
    letter-spacing: 0.01em;
}

.status-energy-pill .status-pill-copy strong {
    font-size: calc(1.26rem * var(--status-scale));
    letter-spacing: 0;
}

.status-pill-button.tone-blue .status-pill-copy {
    color: var(--white);
}

.status-square-button {
    width: calc(84px * var(--status-scale));
    height: calc(84px * var(--status-scale));
    overflow: visible;
}

.status-tile-value,
.status-bag-count {
    position: absolute;
    left: 50%;
    bottom: calc(8px * var(--status-scale));
    min-width: calc(38px * var(--status-scale));
    padding: calc(2px * var(--status-scale)) calc(8px * var(--status-scale));
    color: var(--white);
    background: rgba(5, 5, 5, 0.72);
    border-radius: 999px;
    font-size: calc(0.88rem * var(--status-scale));
    font-weight: 1000;
    line-height: 1.15;
    text-align: center;
    transform: translateX(-50%);
    text-shadow: 0 2px 0 rgba(5, 5, 5, 0.45);
}

.status-bubble-count {
    position: absolute;
    top: calc(-5px * var(--status-scale));
    right: calc(-5px * var(--status-scale));
    min-width: calc(28px * var(--status-scale));
    height: calc(28px * var(--status-scale));
    display: inline-grid;
    place-items: center;
    padding: 0 calc(6px * var(--status-scale));
    color: var(--white);
    background: linear-gradient(180deg, #ff4ca8, #ff0066);
    border: calc(3px * var(--status-scale)) solid #dff8ff;
    border-radius: 999px;
    box-shadow: 0 3px 0 rgba(5, 5, 5, 0.3);
    font-size: calc(0.9rem * var(--status-scale));
    font-weight: 1000;
    line-height: 1;
}

.status-wide-split {
    width: calc(228px * var(--status-scale));
    height: calc(84px * var(--status-scale));
}

.status-wide-side {
    position: absolute;
    top: 0;
    bottom: 0;
    display: grid;
    align-content: center;
    color: var(--white);
    text-decoration: none;
    text-shadow: 0 2px 0 rgba(5, 5, 5, 0.48);
}

.status-wide-left {
    left: 0;
    width: 50%;
    justify-items: center;
}

.status-wide-right {
    right: 0;
    width: 50%;
    justify-items: center;
}

.status-bag-count {
    left: 49%;
    bottom: calc(8px * var(--status-scale));
}

.public-landing .top-strip {
    gap: 12px;
}

.public-landing .top-strip nav {
    margin-left: auto;
}

.hero-section {
    position: relative;
    min-height: 520px;
    margin: 24px 0 20px;
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
    gap: 20px;
    align-items: center;
    overflow: hidden;
    padding: 30px;
    border: 6px solid var(--black);
    outline: 5px solid var(--white);
    box-shadow: var(--card-shadow);
    background:
        radial-gradient(circle at 9% 14%, var(--yellow) 0 9%, transparent 10%),
        radial-gradient(circle at 91% 20%, var(--pink) 0 8%, transparent 9%),
        linear-gradient(130deg, transparent 0 44%, rgba(255,212,0,0.92) 44% 52%, transparent 52%),
        repeating-linear-gradient(-12deg, rgba(255,255,255,0.35) 0 10px, transparent 10px 28px),
        var(--cyan);
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-section::before {
    width: 320px;
    height: 320px;
    right: 2%;
    bottom: 4%;
    background: var(--pink);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
    opacity: 0.95;
}

.hero-section::after {
    inset: 0;
    background-image: radial-gradient(circle, rgba(5, 5, 5, 0.16) 0 3px, transparent 3px);
    background-size: 20px 20px;
    mix-blend-mode: multiply;
}

.hero-copy,
.hero-art {
    position: relative;
    z-index: 1;
}

.hero-copy {
    padding: 28px;
    color: var(--white);
    background: var(--black);
    border: 5px solid var(--white);
    box-shadow: 7px 7px 0 var(--pink), 12px 12px 0 var(--black);
    transform: rotate(-2deg);
}

.hero-copy p {
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    font-weight: 800;
}

.neon-title {
    margin: 8px 0 12px;
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 5.8rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0;
    -webkit-text-stroke: 4px var(--black);
    text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--black);
}

.hero-copy .neon-title {
    color: var(--lime);
    -webkit-text-stroke: 3px var(--white);
    text-shadow: 5px 5px 0 var(--pink), 9px 9px 0 var(--black);
}

.hero-actions,
.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-art {
    align-self: stretch;
    min-height: 380px;
    display: grid;
    place-items: center;
}

.hero-art img {
    width: min(920px, 100%);
    margin-left: auto;
    object-fit: contain;
    transform: translateY(-12px);
    filter: drop-shadow(0 8px 0 var(--white)) drop-shadow(10px 14px 0 rgba(5, 5, 5, 0.95));
}

.treehouse-hero-art {
    min-height: 560px;
    place-items: end center;
}

.treehouse-hero-art img {
    width: min(100%, 540px);
    max-height: 540px;
    margin: 0 auto;
    object-position: center bottom;
    transform: translateY(8px);
    background: rgba(255, 255, 255, 0.1);
    border: 6px solid var(--white);
    border-radius: 18px;
    outline: 5px solid var(--black);
    filter: none;
}

.paint-tag {
    position: absolute;
    right: 0;
    top: 28px;
    max-width: 190px;
    padding: 18px;
    color: var(--white);
    font-weight: 1000;
    text-transform: uppercase;
    background: var(--black);
    border: 4px solid var(--white);
    transform: rotate(4deg);
    box-shadow: 5px 5px 0 var(--yellow);
}

.public-hero-section {
    min-height: 560px;
    margin: 28px 0 24px;
    gap: 28px;
    padding: 36px;
    background:
        radial-gradient(circle at 10% 14%, rgba(255, 212, 0, 0.92) 0 8%, transparent 9%),
        radial-gradient(circle at 90% 18%, rgba(255, 47, 146, 0.88) 0 7%, transparent 8%),
        linear-gradient(118deg, rgba(255,255,255,0.14) 0 36%, transparent 36% 100%),
        linear-gradient(146deg, transparent 0 48%, rgba(255, 212, 0, 0.86) 48% 55%, transparent 55%),
        var(--cyan);
}

.public-hero-section::before {
    width: 210px;
    height: 210px;
    right: 4%;
    bottom: 7%;
    opacity: 0.75;
}

.public-hero-copy {
    max-width: 540px;
    align-self: center;
    padding: 32px;
    background: linear-gradient(180deg, #111 0%, #161616 100%);
    border-color: var(--white);
    border-radius: 16px;
    box-shadow: 7px 7px 0 var(--pink), 12px 12px 0 var(--black);
    transform: none;
}

.public-hero-copy .sticker {
    transform: none;
}

.public-hero-copy .neon-title {
    margin: 14px 0 14px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.98;
    text-transform: none;
    -webkit-text-stroke: 2px var(--white);
    text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--black);
}

.public-hero-copy .hero-lead {
    margin-bottom: 8px;
    font-size: clamp(1.12rem, 2vw, 1.4rem);
}

.public-hero-copy p:last-of-type {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.92);
}

.public-hero-copy .hero-actions {
    margin-top: 18px;
}

.public-hero-copy .button-pink {
    min-width: 220px;
}

.public-hero-copy .button-yellow {
    background: linear-gradient(180deg, #fff4b8, var(--yellow));
}

.public-hero-art {
    min-height: 520px;
    align-self: stretch;
}

.public-hero-art img {
    width: min(100%, 580px);
    max-height: 560px;
    background: rgba(255, 255, 255, 0.55);
}

.comic-card {
    position: relative;
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: var(--comic-border);
    border-radius: 8px;
    box-shadow: var(--outline);
}

.comic-card h1,
.comic-card h2,
.comic-card h3 {
    margin-top: 8px;
    line-height: 1;
    letter-spacing: 0;
}

.comic-card p {
    font-size: 1.02rem;
    font-weight: 700;
}

.sticker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 35px;
    padding: 6px 14px;
    color: var(--white);
    font-weight: 1000;
    text-transform: uppercase;
    background: var(--pink);
    border: 4px solid var(--black);
    border-radius: 6px;
    box-shadow: 3px 3px 0 var(--white), 6px 6px 0 var(--black);
    transform: rotate(-2deg);
}

.sticker-blue { background: var(--blue); }
.sticker-lime { background: var(--lime); color: var(--black); }
.sticker-orange { background: var(--orange); }

.public-section {
    margin: 28px 0 34px;
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
    -webkit-text-stroke: 2px var(--black);
    text-shadow: 4px 4px 0 rgba(5, 5, 5, 0.5);
}

.public-greeting-block {
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff6d7);
}

.public-greeting-block h2,
.public-badge-preview h2,
.public-parents-card h2,
.public-card h3 {
    margin-bottom: 10px;
}

.public-greeting-block p,
.public-badge-preview p,
.public-parents-card p,
.public-card p {
    max-width: 68ch;
}

.sound-preview-button {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #f7fbff, #dffbff);
}

.public-card {
    min-height: 256px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 12px;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.public-card h3,
.preview-card h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.04;
    text-transform: uppercase;
}

.public-card .feature-icon {
    margin-top: 8px;
}

.discover-card:nth-child(1) { background: linear-gradient(180deg, #fff6c4 0%, var(--white) 100%); }
.discover-card:nth-child(2) { background: linear-gradient(180deg, #ddf6ff 0%, var(--white) 100%); }
.discover-card:nth-child(3) { background: linear-gradient(180deg, #ffe4f3 0%, var(--white) 100%); }
.discover-card:nth-child(4) { background: linear-gradient(180deg, #eefcd2 0%, var(--white) 100%); }

.public-preview-grid .preview-card {
    min-height: 320px;
}

.preview-card .crew-button,
.public-card .crew-button {
    margin-top: auto;
}

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

.public-teaser-card {
    min-height: 176px;
}

.public-badge-preview {
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff8cf);
}

.badge-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.badge-preview-chip {
    position: relative;
    overflow: hidden;
}

.badge-preview-chip::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -42%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.68), transparent);
    transform: skewX(-20deg);
}

.public-parents-card {
    margin: 0 0 36px;
    background: linear-gradient(180deg, #fffef8 0%, #f2fff2 100%);
}

.parents-points {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.parents-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.parents-points li::before {
    content: "★";
    color: var(--pink);
    font-size: 1.1rem;
}

.splatter::before {
    content: "";
    position: absolute;
    right: 18px;
    top: 15px;
    width: 90px;
    height: 70px;
    background: var(--yellow);
    clip-path: polygon(50% 0, 62% 30%, 95% 20%, 72% 48%, 100% 70%, 63% 66%, 50% 100%, 36% 66%, 0 72%, 26% 48%, 4% 20%, 38% 30%);
    z-index: -1;
}

.crew-button,
.small-button {
    appearance: none;
    border: 4px solid var(--black);
    border-radius: 18px;
    color: var(--black);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 20px;
    font: inherit;
    font-weight: 1000;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 5px 5px 0 var(--black);
    transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.crew-button:active,
.small-button:active {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0 var(--black);
}

.button-pink { background: var(--pink); color: var(--white); }
.button-yellow { background: var(--yellow); }
.button-lime { background: var(--lime); }
.button-orange { background: var(--orange); color: var(--white); }
.button-black { background: var(--black); color: var(--white); border-color: var(--white); }

.small-button {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.78rem;
    background: var(--yellow);
    border-radius: 12px;
}

.small-button.danger {
    background: var(--pink);
    color: var(--white);
}

button:disabled,
.crew-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.9);
    opacity: 0.62;
}

.home-grid,
.challenge-grid,
.badge-grid,
.leaderboard-grid,
.shop-grid,
.action-grid,
.dashboard-grid {
    display: grid;
    gap: 22px;
    margin: 28px 0;
}

.home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.games-page .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.feature-card h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.feature-card h3 {
    margin: 10px 0 8px;
    line-height: 1.05;
}

.feature-card p,
.mini-panel strong,
.mini-panel small,
.action-tile strong,
.action-tile small {
    overflow-wrap: anywhere;
}

.feature-card:nth-child(1) { background: linear-gradient(180deg, var(--pink) 0 28%, var(--white) 28%); }
.feature-card:nth-child(2) { background: linear-gradient(180deg, var(--blue) 0 28%, var(--lime) 28%); }
.feature-card:nth-child(3) { background: linear-gradient(180deg, var(--orange) 0 28%, var(--white) 28%); }
.feature-card:nth-child(4) { background: linear-gradient(180deg, var(--lime) 0 28%, #fff6d7 28%); }

.feature-icon {
    width: 92px;
    height: 82px;
    object-fit: contain;
    margin: 15px 0 6px;
    filter: drop-shadow(4px 4px 0 var(--black));
}

.feature-thumb {
    width: 96px;
    aspect-ratio: 1086 / 1448;
    object-fit: cover;
    margin: 14px 0 6px;
    border: 4px solid var(--black);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--black);
}

.reward-line {
    color: var(--pink);
    font-size: 1.2rem;
}

.photo-strip,
.video-pop {
    display: grid;
    place-items: center;
    min-height: 88px;
    margin: 16px 0;
    background:
        radial-gradient(circle, rgba(255,255,255,0.95) 0 18%, transparent 19%),
        repeating-linear-gradient(45deg, var(--yellow) 0 12px, var(--orange) 12px 24px);
    border: 4px solid var(--black);
    border-radius: 8px;
    font-size: 2.8rem;
}

.photo-strip {
    grid-template-columns: repeat(3, 1fr);
    background: repeating-linear-gradient(-10deg, var(--cyan) 0 16px, var(--white) 16px 28px);
}

.poll-card label {
    display: block;
    margin: 8px 0;
    font-weight: 800;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 36px;
}

.mini-panel,
.action-tile {
    min-height: 124px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 16px;
    color: var(--white);
    text-decoration: none;
    background: var(--black);
    border: 5px solid var(--white);
    border-radius: 8px;
    box-shadow: 6px 6px 0 var(--pink);
    transition: transform 130ms ease, box-shadow 130ms ease;
}

.public-card:hover,
.public-teaser-card:hover,
.preview-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--black), 0 0 0 4px var(--white);
}

.mini-panel img {
    width: 58px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(3px 3px 0 var(--pink));
}

.mini-panel span,
.action-tile span {
    font-size: 2.3rem;
}

.mini-panel strong,
.action-tile strong {
    font-size: 1.15rem;
    text-transform: uppercase;
}

.mini-panel small,
.action-tile small {
    color: var(--yellow);
    font-weight: 800;
}

.badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 34px;
}

.badge-chip,
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--yellow);
    border: 4px solid var(--black);
    border-radius: 999px;
    font-weight: 1000;
    box-shadow: 4px 4px 0 var(--black);
}

.page-intro {
    margin: 28px 0;
    overflow: hidden;
}

.page-intro .neon-title {
    color: var(--yellow);
}

.auth-wrap {
    width: min(720px, 100%);
    margin: 28px auto 48px;
}

.form-card {
    display: grid;
    gap: 18px;
}

label,
legend {
    font-weight: 1000;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    padding: 10px 12px;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input,
.poll-card input {
    width: 20px;
    height: 20px;
    accent-color: var(--pink);
}

.avatar-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border: 4px dashed var(--black);
}

.avatar-option {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 110px;
    padding: 8px;
    background: var(--yellow);
    border: 4px solid var(--black);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.avatar-option input {
    position: absolute;
    opacity: 0;
}

.avatar-option:has(input:checked) {
    background: var(--lime);
    box-shadow: 5px 5px 0 var(--black);
}

.avatar-badge {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 4px solid var(--black);
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 3px 3px 0 var(--black);
    font-size: 1.45rem;
}

.avatar-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.avatar-large {
    width: 78px;
    height: 78px;
    font-size: 2.3rem;
}

.avatar-huge {
    width: 132px;
    height: 132px;
    font-size: 4rem;
    border-width: 6px;
}

.avatar-damon { background: linear-gradient(135deg, var(--yellow), var(--pink)); }
.avatar-skater { background: linear-gradient(135deg, var(--lime), var(--blue)); }
.avatar-gamer { background: linear-gradient(135deg, var(--purple), var(--cyan)); color: var(--white); }
.avatar-photo { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.avatar-star { background: linear-gradient(135deg, var(--pink), var(--purple)); color: var(--white); }
.avatar-rocket { background: linear-gradient(135deg, var(--cyan), var(--lime)); }

.form-error,
.flash {
    width: min(960px, calc(100% - 28px));
    margin: 18px auto;
    padding: 13px 16px;
    border: 4px solid var(--black);
    border-radius: 8px;
    box-shadow: 5px 5px 0 var(--black);
    font-weight: 1000;
}

.form-error,
.flash-error,
.flash-warning {
    background: var(--pink);
    color: var(--white);
}

.flash-success {
    background: var(--lime);
}

.flash-info {
    background: var(--yellow);
}

.flash-overlay {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 220;
    display: grid;
    gap: 12px;
    width: min(460px, calc(100vw - 28px));
    pointer-events: none;
}

.flash-floating {
    width: 100%;
    margin: 0;
    pointer-events: auto;
    animation: flashFloatIn 220ms ease-out;
}

.flash-floating.is-hiding {
    animation: flashFloatOut 220ms ease-in forwards;
}

@keyframes flashFloatIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flashFloatOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
}

.clubhouse-welcome {
    position: relative;
    isolation: isolate;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(460px, 1.18fr);
    gap: 18px;
    align-items: center;
    overflow: hidden;
    margin: 22px 0 26px;
    padding: clamp(18px, 2.4vw, 30px);
    background:
        radial-gradient(circle at 28px 28px, rgba(5, 5, 5, 0.12) 0 3px, transparent 3px),
        linear-gradient(118deg, rgba(255, 212, 0, 0.95) 0 13%, transparent 13% 70%, rgba(255, 47, 146, 0.82) 70% 100%),
        linear-gradient(145deg, #12cfff 0%, #0099e8 56%, #00aeef 100%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
    border: 6px solid var(--black);
    border-radius: 18px;
    box-shadow: 9px 9px 0 var(--black), 0 0 0 5px var(--white);
}

.clubhouse-welcome::before,
.clubhouse-welcome::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.clubhouse-welcome::before {
    inset: 12% -8% auto 44%;
    height: 170px;
    background: var(--yellow);
    clip-path: polygon(0 44%, 100% 0, 88% 58%, 100% 100%, 0 68%);
    opacity: 0.95;
    transform: rotate(-4deg);
}

.clubhouse-welcome::after {
    right: 26px;
    bottom: 22px;
    width: 154px;
    aspect-ratio: 1;
    background: var(--pink);
    clip-path: polygon(48% 0, 62% 35%, 100% 26%, 72% 52%, 90% 88%, 54% 68%, 22% 100%, 30% 60%, 0 42%, 38% 36%);
    transform: rotate(11deg);
}

.clubhouse-panel {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    max-width: 620px;
    padding: clamp(20px, 2.5vw, 34px);
    color: var(--white);
    background:
        radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px),
        var(--black);
    background-size: 22px 22px, 100% 100%;
    border: 6px solid var(--white);
    border-radius: 16px;
    outline: 5px solid var(--black);
    box-shadow: 12px 12px 0 var(--pink);
    transform: rotate(-1deg);
}

.clubhouse-ribbon {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 15px;
    color: var(--white);
    background: linear-gradient(180deg, #ff4cad, var(--pink));
    border: 4px solid var(--white);
    border-radius: 10px;
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.2);
    font-weight: 1000;
    text-transform: uppercase;
}

.clubhouse-panel h1 {
    margin: 0;
    color: var(--pink);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(3.6rem, 8vw, 7rem);
    line-height: 0.8;
    letter-spacing: 0;
    text-transform: uppercase;
    -webkit-text-stroke: 3px var(--white);
    text-shadow: 5px 5px 0 #7a002f, 9px 9px 0 rgba(255, 255, 255, 0.16);
}

.clubhouse-panel h1 span {
    display: block;
    color: var(--lime);
    -webkit-text-stroke-color: var(--white);
    text-shadow: 5px 5px 0 #3e7000, 9px 9px 0 rgba(255, 255, 255, 0.16);
}

.clubhouse-panel p {
    max-width: 520px;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 1000;
    line-height: 1.15;
}

.clubhouse-progress {
    height: 16px;
    background: #202a2f;
    border-color: var(--white);
}

.clubhouse-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.clubhouse-mini-stats span {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px 8px;
    align-items: center;
    padding: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 3px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.clubhouse-mini-stats img {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.clubhouse-mini-stats strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.clubhouse-mini-stats .club-logo-badge {
    grid-row: 1 / span 2;
    justify-self: center;
    align-self: center;
}

.clubhouse-actions {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
}

.clubhouse-actions .crew-button {
    min-height: 58px;
    justify-content: center;
    border-color: var(--white);
    outline: 4px solid var(--black);
    font-size: clamp(0.95rem, 1.8vw, 1.35rem);
}

.clubhouse-actions .crew-button span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--black);
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 50%;
    font-size: 0.9rem;
}

.clubhouse-panel > small {
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 1000;
}

.clubhouse-treehouse {
    position: relative;
    z-index: 2;
    align-self: stretch;
    display: grid;
    place-items: end center;
    min-height: 480px;
}

.clubhouse-treehouse img {
    width: min(100%, 560px);
    max-height: 500px;
    object-fit: contain;
    object-position: center bottom;
    background: rgba(255, 255, 255, 0.1);
    border: 6px solid var(--white);
    border-radius: 18px;
    outline: 5px solid var(--black);
    filter: none;
}

.skin-treehouse {
    background:
        radial-gradient(circle at 20px 20px, rgba(5, 5, 5, 0.18) 0 3px, transparent 3px),
        linear-gradient(160deg, #18c4ff, #00a5f4 54%, #00d48b);
    background-size: 28px 28px, 100% 100%;
}

.skin-arcade {
    background:
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px),
        linear-gradient(145deg, #4d14ff, #ff2f92 52%, #ffd400);
    background-size: 28px 28px, 100% 100%;
}

.skin-camp {
    background:
        radial-gradient(circle at 20px 20px, rgba(5, 5, 5, 0.12) 0 3px, transparent 3px),
        linear-gradient(145deg, #ff9a1f, #ff5d49 56%, #ffe14c);
    background-size: 28px 28px, 100% 100%;
}

.club-dashboard-grid {
    align-items: start;
}

.club-summary-card,
.club-card {
    position: relative;
    overflow: hidden;
}

.club-summary-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.club-summary-head h2 {
    margin: 0;
    line-height: 1;
}

.club-summary-head p {
    margin: 6px 0 0;
    font-weight: 900;
}

.club-logo-badge {
    display: inline-grid;
    place-items: center;
    border: 4px solid var(--black);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--black), 0 0 0 4px var(--white);
    font-weight: 1000;
}

.club-logo-medium {
    width: 64px;
    height: 64px;
    font-size: 1.9rem;
}

.club-logo-small {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    box-shadow: 3px 3px 0 var(--black), 0 0 0 3px var(--white);
}

.logo-bolt { background: linear-gradient(180deg, var(--pink), var(--yellow)); }
.logo-star { background: linear-gradient(180deg, var(--yellow), var(--lime)); }
.logo-shield { background: linear-gradient(180deg, #3fd1ff, #0076ff); }
.logo-gamepad { background: linear-gradient(180deg, #7d31ff, #00aeef); }
.logo-rocket { background: linear-gradient(180deg, #ff7a00, #ffd400); }
.logo-tree { background: linear-gradient(180deg, #7bdc35, #00ae8a); }

.club-stats-grid {
    margin-bottom: 12px;
}

.club-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.club-option-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 4px solid var(--black);
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--black);
    text-align: center;
    font-weight: 1000;
}

.club-option-card input {
    margin: 0;
}

.club-skin-swatch {
    width: 72px;
    height: 42px;
    border: 4px solid var(--black);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--black);
}

.stack-form {
    display: grid;
    gap: 14px;
}

.stack-form label,
.stack-form strong {
    display: grid;
    gap: 8px;
    font-weight: 1000;
}

.stack-form input,
.stack-form select,
.inline-form select {
    min-height: 46px;
    padding: 10px 12px;
    border: 4px solid var(--black);
    border-radius: 10px;
    font: inherit;
}

.inline-form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.club-member-row,
.club-role-line,
.club-shop-row {
    gap: 12px;
}

.club-role-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2px dashed rgba(5, 5, 5, 0.2);
}

.club-role-line:last-child {
    border-bottom: 0;
}

.seek-post-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,244,176,0.96));
    border: 4px solid var(--black);
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--black);
}

.seek-post-card small {
    font-weight: 1000;
    color: var(--dark-blue);
}

.dashboard-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 320px);
    gap: 18px;
    align-items: center;
    margin: 22px 0 24px;
    padding: 24px;
    background:
        radial-gradient(circle at 22px 22px, rgba(5, 5, 5, 0.12) 0 3px, transparent 3px),
        linear-gradient(118deg, rgba(255, 212, 0, 0.94) 0 14%, transparent 14% 74%, rgba(255, 47, 146, 0.78) 74% 100%),
        linear-gradient(145deg, #10cfff 0%, #0497e2 62%, #00aeef 100%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
    border-radius: 16px;
}

.dashboard-hero-copy {
    display: grid;
    gap: 10px;
    color: var(--white);
}

.dashboard-hero-copy .sticker {
    transform: none;
}

.dashboard-hero-copy h1 {
    margin: 0;
    color: var(--lime);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
    -webkit-text-stroke: 2px var(--white);
    text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--black);
}

.dashboard-hero-rank,
.dashboard-hero-meta {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.dashboard-hero-rank strong {
    color: var(--yellow);
}

.dashboard-progress {
    height: 16px;
    max-width: 520px;
    background: #173038;
    border-color: var(--white);
}

.dashboard-hero-actions {
    margin-top: 6px;
}

.dashboard-hero-actions .crew-button {
    min-width: 180px;
}

.dashboard-hero-art {
    align-self: stretch;
    display: grid;
    place-items: end center;
    min-height: 240px;
    overflow: hidden;
}

.dashboard-hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    background: none;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
}

.dashboard-section {
    margin: 26px 0;
}

.dashboard-section-heading h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.dashboard-stat-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.dashboard-group-card {
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #f9fbff);
}

.dashboard-group-card.tone-pink {
    background: linear-gradient(180deg, #fff4fb 0%, var(--white) 100%);
}

.dashboard-group-card.tone-lime {
    background: linear-gradient(180deg, #f4ffd5 0%, var(--white) 100%);
}

.dashboard-group-card.tone-blue {
    background: linear-gradient(180deg, #e8fbff 0%, var(--white) 100%);
}

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

.dashboard-mini-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-mini-card {
    min-height: 132px;
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 14px;
    color: var(--black);
    text-decoration: none;
    background: linear-gradient(180deg, var(--white), #f5fbff);
    border: 4px solid var(--black);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--black);
    transition: transform 130ms ease, box-shadow 130ms ease;
}

.dashboard-mini-card:hover,
.dashboard-mini-card:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--black);
}

.mini-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.dashboard-mini-card strong {
    font-size: 1.24rem;
    line-height: 1.05;
}

.dashboard-mini-card small,
.dashboard-mini-card .mini-meta {
    font-weight: 800;
}

.dashboard-mini-card .mini-meta {
    color: #38515b;
    font-size: 0.82rem;
    line-height: 1.2;
}

.dashboard-task-grid,
.dashboard-action-grid,
.dashboard-activity-grid,
.dashboard-news-grid {
    display: grid;
    gap: 18px;
}

.dashboard-task-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-activity-grid,
.dashboard-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-task-card,
.dashboard-action-card,
.dashboard-news-card {
    min-height: 172px;
    display: grid;
    gap: 8px;
    align-content: start;
    color: var(--black);
    text-decoration: none;
    transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.dashboard-task-card.is-active:hover,
.dashboard-task-card.is-active:focus-visible,
.dashboard-action-card.is-active:hover,
.dashboard-action-card.is-active:focus-visible,
.dashboard-news-card.is-active:hover,
.dashboard-news-card.is-active:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--black), 0 0 0 4px var(--white);
}

.dashboard-task-card.is-disabled,
.dashboard-action-card.is-disabled,
.dashboard-news-card.is-disabled {
    cursor: default;
    opacity: 0.72;
    filter: grayscale(0.2);
}

.dashboard-task-card strong,
.dashboard-action-card strong,
.dashboard-news-card h3 {
    font-size: 1.18rem;
    line-height: 1.06;
    text-transform: uppercase;
}

.dashboard-task-card small,
.dashboard-action-card small,
.dashboard-news-card p {
    font-weight: 800;
    line-height: 1.25;
}

.task-icon,
.news-icon,
.dashboard-action-card > span:first-child {
    font-size: 2rem;
    line-height: 1;
}

.dashboard-task-card.has-form form {
    margin-top: auto;
}

.dashboard-task-card.has-form .crew-button {
    width: 100%;
}

.dashboard-action-card {
    min-height: 144px;
    color: var(--white);
    background: var(--black);
    border-radius: 10px;
}

.dashboard-action-card small {
    color: var(--yellow);
}

.dashboard-activity-card {
    min-height: 220px;
}

.dashboard-activity-card h3 {
    font-size: 1.45rem;
    line-height: 1.06;
    text-transform: uppercase;
}

.dashboard-news-card .sticker {
    transform: none;
}

.dashboard-news-section .sticker {
    justify-self: start;
}

.dashboard-hero,
.profile-hero,
.crew-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: center;
    margin: 28px 0;
    background:
        repeating-linear-gradient(110deg, rgba(255, 212, 0, 0.9) 0 18px, rgba(255, 122, 0, 0.85) 18px 36px),
        var(--white);
}

.dashboard-hero .neon-title,
.profile-hero .neon-title,
.crew-panel .neon-title {
    color: var(--white);
}

.damon-guide {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 12px;
    background: var(--white);
    border: 5px solid var(--black);
    border-radius: 8px;
    box-shadow: 5px 5px 0 var(--black);
    font-weight: 1000;
    text-align: center;
}

.damon-guide img {
    width: 230px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border: 5px solid var(--black);
    border-radius: 50%;
}

.dashboard-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-page .dashboard-grid {
    gap: 12px;
    margin: 18px 0;
}

.stat-button-grid {
    align-items: stretch;
}

.stat-card {
    min-height: 150px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
    background: var(--white);
    border: var(--comic-border);
    border-radius: 8px;
    box-shadow: 5px 5px 0 var(--black);
}

.dashboard-page .stat-card {
    min-height: 0;
    height: 86px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    justify-items: start;
    gap: 8px 10px;
    padding: 9px 10px;
    color: var(--black);
    text-align: left;
    text-decoration: none;
    background:
        radial-gradient(circle at 9px 9px, rgba(5, 5, 5, 0.08) 0 2px, transparent 2px),
        linear-gradient(180deg, var(--white), #ecfbff);
    background-size: 16px 16px, 100% 100%;
    border-width: 4px;
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--black);
    overflow: hidden;
    transition: transform 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.dashboard-page .stat-card:hover {
    transform: translate(-2px, -2px);
    background:
        radial-gradient(circle at 9px 9px, rgba(5, 5, 5, 0.1) 0 2px, transparent 2px),
        linear-gradient(180deg, var(--lime), var(--white));
    background-size: 16px 16px, 100% 100%;
    box-shadow: 7px 7px 0 var(--black);
}

.dashboard-page .stat-card > span:first-child,
.dashboard-page .stat-card .avatar-badge {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    margin: 0;
    border-width: 3px;
    font-size: 1.35rem;
}

.dashboard-page .stat-card strong,
.dashboard-page .stat-card span:last-child {
    min-width: 0;
    max-width: 100%;
}

.stat-card > span:first-child {
    font-size: 2.1rem;
}

.stat-card strong {
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    line-height: 1;
}

.dashboard-page .stat-card strong {
    align-self: end;
    font-size: clamp(0.98rem, 1.6vw, 1.28rem);
    line-height: 0.98;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-page .stat-card span:last-child {
    align-self: start;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.12;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-page .daily-reward-card form {
    grid-column: 2;
    margin: 0;
}

.dashboard-page .daily-reward-card .crew-button {
    min-height: 34px;
    padding: 5px 10px;
    border-width: 3px;
    border-radius: 12px;
    font-size: 0.75rem;
}

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

.action-tile:nth-child(2n) { box-shadow: 6px 6px 0 var(--yellow); }
.action-tile:nth-child(3n) { box-shadow: 6px 6px 0 var(--lime); }

.dashboard-page .action-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.dashboard-page .action-tile {
    --tile-accent: var(--pink);
    position: relative;
    min-height: 0;
    height: 132px;
    align-content: start;
    overflow: hidden;
    padding: 14px 14px 12px;
    background:
        radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        var(--black);
    background-size: 18px 18px, 100% 100%, 100% 100%;
    border-color: var(--tile-accent);
    box-shadow: 5px 5px 0 var(--black), 0 0 0 4px var(--white);
}

.dashboard-page .action-tile::before {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: 0;
    height: 13px;
    background: var(--tile-accent);
    transform: skewX(-18deg);
}

.dashboard-page .action-tile::after {
    content: "➜";
    position: absolute;
    right: 9px;
    top: 8px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--black);
    background: var(--yellow);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 2px 2px 0 var(--black);
    font-size: 0.95rem;
    font-weight: 1000;
}

.dashboard-page .action-tile:nth-child(1) { --tile-accent: var(--pink); }
.dashboard-page .action-tile:nth-child(2) { --tile-accent: var(--lime); }
.dashboard-page .action-tile:nth-child(3) { --tile-accent: var(--orange); }
.dashboard-page .action-tile:nth-child(4) { --tile-accent: var(--cyan); }
.dashboard-page .action-tile:nth-child(5) { --tile-accent: var(--yellow); }
.dashboard-page .action-tile:nth-child(6) { --tile-accent: var(--purple); }
.dashboard-page .action-tile:nth-child(7) { --tile-accent: var(--pink); }

.dashboard-page .action-tile > span:first-child {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    color: var(--black);
    background: var(--tile-accent);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 3px 3px 0 var(--black);
    font-size: 1.55rem;
}

.dashboard-page .action-tile strong,
.dashboard-page .action-tile small {
    position: relative;
    z-index: 1;
}

.dashboard-page .action-tile strong {
    font-size: 1rem;
    line-height: 1;
}

.dashboard-page .action-tile small {
    font-size: 0.78rem;
    line-height: 1.15;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 28px 0;
}

.compact-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.friend-bonus-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

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

.friend-bonus-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 12px;
    background: linear-gradient(180deg, var(--white), #effbff);
    border: 3px solid var(--black);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--black);
    cursor: pointer;
}

.friend-bonus-choice input {
    width: 22px;
    height: 22px;
    accent-color: var(--pink);
    flex: 0 0 auto;
}

.friend-bonus-choice span {
    min-width: 0;
    font-weight: 1000;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .friend-bonus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .friend-bonus-grid {
        grid-template-columns: 1fr;
    }
}

.compact-row,
.leader-row {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: var(--black);
    text-decoration: none;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--black);
}

.compact-row strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.challenge-card {
    overflow: hidden;
}

.challenge-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -26px;
    width: 110px;
    height: 110px;
    background: var(--yellow);
    border: 4px solid var(--black);
    transform: rotate(16deg);
    z-index: 0;
}

.challenge-card > * {
    position: relative;
    z-index: 1;
}

.challenge-icon,
.shop-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    background: var(--lime);
    border: 5px solid var(--black);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--black);
    font-size: 2.4rem;
}

.location-card.is-current {
    background:
        radial-gradient(circle at 10px 10px, rgba(5, 5, 5, 0.09) 0 2px, transparent 2px),
        linear-gradient(180deg, var(--lime), var(--white));
    background-size: 16px 16px, 100% 100%;
}

.location-card {
    overflow: hidden;
}

.location-card-media {
    margin: -24px -24px 16px;
    border-bottom: 5px solid var(--black);
    background: #dff8ff;
}

.location-card-media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.trade-card {
    display: grid;
    gap: 12px;
}

.trade-card.bonus-product {
    background:
        radial-gradient(circle at 14px 14px, rgba(5, 5, 5, 0.12) 0 3px, transparent 3px),
        linear-gradient(180deg, var(--yellow), var(--white));
    background-size: 22px 22px, 100% 100%;
}

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

.trade-prices span {
    display: grid;
    justify-items: center;
    padding: 8px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--black);
}

.trade-prices strong {
    font-size: 1.4rem;
    line-height: 1;
}

.trade-prices small {
    font-weight: 1000;
    text-transform: uppercase;
}

.trade-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.trade-actions form,
.chat-form,
.profile-edit-card form {
    margin: 0;
}

.chat-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.chat-choice,
.smiley-choice {
    position: relative;
    cursor: pointer;
}

.chat-choice input,
.smiley-choice input {
    position: absolute;
    opacity: 0;
}

.chat-choice span,
.smiley-choice span {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--black);
    font-weight: 1000;
    text-align: center;
}

.chat-choice input:checked + span,
.smiley-choice input:checked + span {
    background: var(--lime);
    transform: translate(-1px, -1px);
}

.smiley-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.smiley-choice span {
    min-height: 54px;
    font-size: 1.7rem;
}

.chat-stream {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.chat-line {
    display: grid;
    grid-template-columns: 48px minmax(90px, 140px) minmax(0, 1fr) 46px;
    gap: 9px;
    align-items: center;
    padding: 8px 10px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--black);
}

.chat-line span {
    font-weight: 900;
}

.chat-line small {
    justify-self: end;
    font-weight: 1000;
}

.profile-edit-card {
    margin: 28px 0;
}

.profile-photo-tools {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.profile-photo-current {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 4px solid var(--black);
    border-radius: 12px;
}

.profile-photo-current .avatar-badge {
    box-shadow: 5px 5px 0 var(--black);
}

.profile-bio {
    max-width: 58ch;
    margin-bottom: 0;
    padding: 10px 12px;
    color: var(--white);
    background: rgba(5, 5, 5, 0.82);
    border: 3px solid var(--white);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--black);
    font-weight: 900;
}

.form-subgrid {
    margin: 0;
}

.stats-list {
    padding: 0;
    margin: 16px 0;
    list-style: none;
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.mission-subject {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: var(--cyan);
    border: 3px solid var(--black);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--black);
    font-size: 0.84rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.mission-story {
    margin: 14px 0;
    padding: 14px;
    background: #fff6d7;
    border: 4px solid var(--black);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--black);
    font-weight: 800;
}

.mission-lock,
.mission-active {
    margin: 28px 0;
}

.mission-active {
    background:
        radial-gradient(circle at 18px 18px, rgba(5, 5, 5, 0.13) 0 3px, transparent 3px),
        linear-gradient(135deg, var(--white), #fff6d7);
    background-size: 28px 28px, 100% 100%;
}

.mission-active-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: center;
}

.mission-countdown {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    justify-self: end;
    background: var(--pink);
    color: var(--white);
    border: 6px solid var(--black);
    border-radius: 50%;
    box-shadow: 6px 6px 0 var(--black);
    text-align: center;
}

.mission-countdown span {
    font-size: 3.8rem;
    line-height: 1;
    font-weight: 1000;
}

.mission-countdown small {
    color: var(--yellow);
    font-weight: 1000;
    text-transform: uppercase;
}

.mission-form {
    display: grid;
    gap: 14px;
}

.mission-options {
    display: grid;
    gap: 10px;
}

.mission-option {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
    min-height: 58px;
    padding: 10px;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--black);
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease;
}

.mission-option:hover {
    transform: translate(-2px, -2px);
    background: var(--yellow);
}

.mission-option input {
    position: absolute;
    opacity: 0;
}

.mission-option span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--pink);
    color: var(--white);
    border: 3px solid var(--black);
    border-radius: 50%;
    font-weight: 1000;
}

.mission-option:has(input:checked) {
    background: var(--lime);
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--black);
}

.cooldown-box {
    padding: 12px;
    background: var(--yellow);
    border: 4px solid var(--black);
    border-radius: 8px;
    font-weight: 1000;
}

.profile-main {
    display: flex;
    gap: 18px;
    align-items: center;
}

.profile-actions {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.clubhouse-preview,
.room-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.clubhouse-preview span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: var(--yellow);
    border: 4px solid var(--black);
    border-radius: 8px;
    font-size: 2rem;
}

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

.badge-grid.small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px 0 0;
}

.badge-card {
    min-height: 220px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 18px;
    text-align: center;
    background: var(--white);
    border: var(--comic-border);
    border-radius: 8px;
    box-shadow: var(--outline);
}

.badge-card > span {
    font-size: 3rem;
}

.badge-card.earned {
    background: linear-gradient(180deg, var(--lime) 0 35%, var(--white) 35%);
}

.badge-card.locked {
    filter: grayscale(0.78);
    opacity: 0.68;
}

.badge-stage-card {
    min-height: 0;
    align-content: start;
    justify-items: stretch;
    gap: 12px;
    text-align: left;
}

.badge-stage-card.locked {
    filter: none;
    opacity: 1;
}

.badge-stage-card.locked .badge-stage-icon {
    filter: grayscale(0.8);
    opacity: 0.68;
}

.badge-stage-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.badge-stage-header h2,
.badge-stage-header p {
    margin: 0;
}

.badge-stage-header h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 1.02;
}

.badge-stage-header p {
    margin-top: 5px;
    font-weight: 800;
    line-height: 1.25;
}

.badge-stage-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 4px solid var(--black);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--yellow), var(--lime));
    box-shadow: 0 5px 0 var(--black);
    font-size: 2.1rem;
}

.badge-progress-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 3px solid var(--black);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.badge-progress-summary strong {
    font-size: 1.2rem;
    line-height: 1;
}

.badge-progress-summary small,
.badge-next-target,
.badge-earned-date {
    font-weight: 900;
}

.badge-progress-track {
    height: 18px;
    overflow: hidden;
    border: 3px solid var(--black);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.16);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.badge-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink), var(--yellow), var(--lime));
}

.badge-stage-list {
    display: grid;
    gap: 8px;
}

.badge-stage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
    border: 3px solid var(--black);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 4px 0 var(--black);
}

.badge-stage-row.is-reached {
    background: linear-gradient(135deg, rgba(182, 255, 0, 0.92), rgba(255, 255, 255, 0.96));
}

.badge-stage-row.is-locked {
    background: rgba(255, 255, 255, 0.74);
}

.badge-stage-row.is-claimed {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.22), rgba(255, 255, 255, 0.95));
}

.badge-stage-meta {
    min-width: 0;
}

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

.badge-stage-meta small {
    margin-top: 2px;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.2;
}

.badge-stage-status {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    min-width: 62px;
    min-height: 34px;
    padding: 4px 8px;
    border: 3px solid var(--black);
    border-radius: 999px;
    background: var(--yellow);
    font-size: 0.82rem;
    font-weight: 1000;
}

.badge-claim-button {
    min-height: 34px;
    padding: 5px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.kapotte-kassa-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    gap: 22px;
    align-items: stretch;
}

.kapotte-kassa-intro,
.kapotte-kassa-card {
    display: grid;
    align-content: center;
    gap: 14px;
}

.kapotte-kassa-intro p,
.kapotte-kassa-card p {
    max-width: 58ch;
    margin: 0;
    font-weight: 900;
    line-height: 1.35;
}

.kapotte-kassa-hero-art {
    overflow: hidden;
    width: 100%;
    margin: 2px 0 0;
    border: 5px solid var(--black);
    border-radius: 18px;
    background: var(--cyan);
    box-shadow:
        0 0 0 4px var(--white),
        0 8px 0 var(--black);
    aspect-ratio: 21 / 9;
}

.kapotte-kassa-hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kapotte-kassa-stats,
.kapotte-progress-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kapotte-kassa-stats span,
.kapotte-progress-row span,
.kapotte-result {
    display: grid;
    place-items: center;
    min-width: 126px;
    min-height: 68px;
    padding: 8px 12px;
    border: 4px solid var(--black);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 5px 0 var(--black);
    text-align: center;
}

.kapotte-kassa-stats strong,
.kapotte-result strong {
    font-size: 1.55rem;
    line-height: 1;
}

.kapotte-kassa-stats small,
.kapotte-result span,
.kapotte-progress-row span {
    font-weight: 1000;
}

.kapotte-kassa-card {
    padding: 22px;
    border: 5px solid var(--black);
    border-radius: 18px;
    background:
        radial-gradient(circle at 16px 16px, rgba(5, 5, 5, 0.12) 0 3px, transparent 4px),
        linear-gradient(135deg, rgba(255, 212, 0, 0.95), rgba(255, 255, 255, 0.96) 42%, rgba(255, 47, 146, 0.18));
    background-size: 28px 28px, auto;
    box-shadow: 0 8px 0 var(--black);
}

.kapotte-kassa-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.1;
}

.kapotte-kassa-register {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 5px solid var(--black);
    border-radius: 22px;
    background: var(--lime);
    box-shadow: 0 6px 0 var(--black);
    font-size: 3rem;
}

.kapotte-progress-track {
    height: 20px;
    overflow: hidden;
    border: 4px solid var(--black);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.kapotte-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--lime));
}

.kapotte-feedback {
    padding: 12px 14px;
    border: 4px solid var(--black);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 4px 0 var(--black);
}

.kapotte-feedback.success {
    background: var(--lime);
}

.kapotte-feedback.warning {
    background: var(--yellow);
}

.kapotte-answer-form {
    display: grid;
    gap: 10px;
}

.kapotte-answer-form label {
    font-weight: 1000;
}

.kapotte-answer-form input {
    width: min(100%, 340px);
    padding: 14px 16px;
    border: 5px solid var(--black);
    border-radius: 16px;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 1000;
    box-shadow: 0 5px 0 var(--black);
}

.kapotte-kassa-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 900px) {
    .kapotte-kassa-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .kapotte-kassa-card,
    .kapotte-kassa-shell {
        padding: 14px;
    }

    .kapotte-kassa-stats span,
    .kapotte-progress-row span,
    .kapotte-result {
        min-width: 0;
        flex: 1 1 130px;
    }

    .kapotte-kassa-actions .crew-button,
    .kapotte-answer-form .crew-button {
        width: 100%;
    }
}

.leaderboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leaderboard-card {
    display: grid;
    gap: 10px;
}

.rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--yellow);
    border: 3px solid var(--black);
    border-radius: 50%;
    font-weight: 1000;
}

.score {
    margin-left: auto;
    padding: 4px 9px;
    background: var(--lime);
    border: 3px solid var(--black);
    border-radius: 999px;
    font-weight: 1000;
}

.crew-badge {
    display: grid;
    place-items: center;
    width: 170px;
    height: 170px;
    justify-self: center;
    background: var(--black);
    color: var(--yellow);
    border: 6px solid var(--white);
    border-radius: 50%;
    box-shadow: 7px 7px 0 var(--pink);
    font-size: 5rem;
}

.mission-card {
    background: #fff6d7;
}

.mission-card-upgraded {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 430px;
    background:
        linear-gradient(180deg, rgba(255, 47, 146, 0.16) 0 34%, transparent 34%),
        radial-gradient(circle at 88% 12%, var(--yellow) 0 42px, transparent 43px),
        #fff6d7;
}

.mission-card-upgraded::after {
    right: -34px;
    top: -34px;
    background: var(--lime);
}

.mission-card-head {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mission-card-head h2 {
    margin: 7px 0 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 0.95;
}

.mission-card-head .challenge-icon {
    margin: 0;
}

.mission-location {
    width: fit-content;
    margin: 0;
    padding: 7px 10px;
    background: var(--black);
    color: var(--white);
    border: 3px solid var(--white);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--pink);
    font-size: 0.88rem;
}

.mission-reward-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.mission-reward-grid span {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 64px;
    padding: 8px 6px;
    text-align: center;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--black);
}

.mission-reward-grid strong {
    font-size: 1.05rem;
    line-height: 1;
}

.mission-reward-grid small {
    font-size: 0.66rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.mission-progress-pill {
    width: fit-content;
    margin: 0;
    padding: 6px 10px;
    background: var(--cyan);
    border: 3px solid var(--black);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--black);
    font-size: 0.82rem;
}

.mission-progress-panel {
    margin: 24px 0;
    background:
        repeating-linear-gradient(135deg, rgba(182, 255, 0, 0.2) 0 14px, rgba(255, 212, 0, 0.2) 14px 28px),
        var(--white);
}

.mission-progress-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.mission-progress-copy {
    min-width: 0;
}

.mission-progress-copy h2,
.mission-progress-copy p {
    overflow-wrap: anywhere;
}

.extended-mission-active-card {
    margin-top: 22px;
}

.extended-mission-grid {
    margin-top: 18px;
}

.extended-mission-card {
    background:
        radial-gradient(circle at top right, rgba(255, 47, 146, 0.22), transparent 36%),
        linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.extended-mission-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    font-weight: 800;
    color: var(--dark-blue);
}

.extended-mission-route span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.extended-mission-route-active {
    margin-bottom: 16px;
}

.mission-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.mission-storefront-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    margin: 28px 0 24px;
    background: var(--black);
    border: 6px solid var(--black);
    border-radius: 8px;
    outline: 5px solid var(--white);
    box-shadow: var(--card-shadow);
}

.mission-storefront-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mission-tabs a {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 1000;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--black);
}

.mission-tabs a:nth-child(1) { background: var(--yellow); }
.mission-tabs a:nth-child(2) { background: var(--orange); color: var(--white); }
.mission-tabs a:nth-child(3) { background: var(--cyan); }
.mission-tabs a:nth-child(4) { background: var(--lime); }
.mission-tabs a:nth-child(5) { background: var(--pink); color: var(--white); }
.mission-tabs a:nth-child(6) { background: var(--purple); color: var(--white); }

.mission-tabs a.active {
    transform: translate(-3px, -3px) rotate(-1deg);
    box-shadow: 7px 7px 0 var(--black);
    outline: 4px solid var(--white);
}

.mission-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.mission-status-inline {
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.mission-status-strip .stat-card {
    min-height: 82px;
    padding: 10px;
}

.mission-status-strip .stat-card > span:first-child {
    font-size: 1.45rem;
}

.mission-status-strip .stat-card strong {
    font-size: 1.15rem;
}

.locked-card {
    filter: grayscale(0.6);
}

.team-note,
.sport-hero {
    margin: 24px 0;
}

.sport-card {
    background: linear-gradient(180deg, var(--lime) 0 18%, #fff6d7 18%);
}

.status-ladder {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 42px;
}

.status-step {
    min-height: 130px;
    display: grid;
    align-content: center;
    gap: 8px;
}

.status-step.done {
    background: var(--lime);
}

.status-step.current {
    background: var(--yellow);
    transform: rotate(-1deg);
}

.status-step strong {
    font-size: 1.15rem;
}

.progress-bar {
    height: 34px;
    overflow: hidden;
    background: var(--white);
    border: 5px solid var(--black);
    border-radius: 999px;
    box-shadow: inset 4px 4px 0 rgba(5, 5, 5, 0.18);
}

.progress-bar span {
    display: block;
    height: 100%;
    background: repeating-linear-gradient(45deg, var(--lime) 0 15px, var(--yellow) 15px 30px);
    border-right: 4px solid var(--black);
}

.clubhouse-room {
    overflow: hidden;
    padding: 0;
}

.room-wall {
    min-height: 380px;
    padding: 24px;
    background:
        radial-gradient(circle at 20px 20px, rgba(5,5,5,0.18) 0 3px, transparent 3px),
        linear-gradient(160deg, var(--cyan), var(--purple));
    background-size: 28px 28px, 100% 100%;
}

.room-title {
    width: fit-content;
    padding: 10px 18px;
    margin-bottom: 20px;
    color: var(--white);
    background: var(--black);
    border: 4px solid var(--white);
    border-radius: 8px;
    box-shadow: 5px 5px 0 var(--pink);
    font-size: 1.3rem;
    font-weight: 1000;
}

.room-items {
    min-height: 250px;
    align-items: center;
}

.room-item {
    display: grid;
    place-items: center;
    gap: 6px;
    width: 132px;
    min-height: 118px;
    padding: 10px;
    background: var(--white);
    border: 5px solid var(--black);
    border-radius: 8px;
    box-shadow: 6px 6px 0 var(--black);
    text-align: center;
    font-weight: 900;
}

.room-item span {
    font-size: 3rem;
}

.empty-room {
    padding: 18px;
    background: var(--yellow);
    border: 4px solid var(--black);
    border-radius: 8px;
    font-weight: 1000;
}

.room-floor {
    height: 90px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 42px, var(--yellow) 42px 84px);
    border-top: 6px solid var(--black);
}

.room-editor-head {
    padding: 20px 20px 0;
}

.room-editor-head h2,
.room-editor-head p {
    margin: 0;
}

.room-editor-head p {
    max-width: 78ch;
    font-weight: 900;
    line-height: 1.35;
}

.corner-room-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    padding: 20px;
    align-items: start;
}

.corner-room-playarea {
    display: grid;
    gap: 12px;
}

.corner-room-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1672 / 941;
    border: 6px solid var(--black);
    border-radius: 16px;
    background: #1f130d;
    box-shadow: 0 8px 0 var(--black);
}

.corner-room-stage:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #120b08;
}

.corner-room-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.corner-tv-layer {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    background: #050505;
}

.corner-room-stage.tv-cinema .corner-tv-layer {
    left: 12.5% !important;
    top: 12.5% !important;
    width: 75% !important;
    height: 75% !important;
    border: 5px solid #050505;
    border-radius: 14px;
    box-shadow: 0 8px 0 rgba(5, 5, 5, 0.9);
}

.corner-room-stage.tv-cinema .corner-slot,
.corner-room-stage.tv-cinema .corner-character {
    display: none;
}

.corner-tv-layer:fullscreen {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0;
    background: #050505;
}

.corner-tv-layer:fullscreen .corner-tv-frame,
.corner-tv-layer:fullscreen .corner-tv-frame iframe,
.corner-tv-layer:fullscreen .corner-tv-poster {
    width: 100vw;
    height: 100vh;
}

.corner-tv-layer:fullscreen .corner-tv-poster::after {
    width: clamp(52px, 8vw, 94px);
    height: clamp(52px, 8vw, 94px);
    font-size: clamp(1.4rem, 3.4vw, 3rem);
}

.corner-tv-frame,
.corner-tv-frame iframe,
.corner-tv-poster,
.corner-tv-empty {
    width: 100%;
    height: 100%;
}

.corner-tv-frame,
.corner-tv-frame iframe {
    display: block;
    pointer-events: none;
}

.corner-tv-frame iframe {
    border: 0;
}

.corner-tv-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    background-color: #050505;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

.corner-tv-poster::after {
    content: "▶";
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: clamp(18px, 3.2vw, 44px);
    height: clamp(18px, 3.2vw, 44px);
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 47, 146, 0.92);
    box-shadow: 0 2px 0 rgba(5, 5, 5, 0.9);
    font-size: clamp(0.7rem, 1.5vw, 1.4rem);
    transform: translate(-50%, -50%);
}

.corner-tv-poster[hidden] {
    display: none;
}

.corner-tv-empty {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 8px;
    color: rgba(255, 255, 255, 0.82);
    background: #050505;
    font-size: clamp(0.45rem, 0.9vw, 0.8rem);
    font-weight: 1000;
    text-align: center;
}

.corner-tv-empty[hidden] {
    display: none;
}

.corner-room-fullscreen-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 6;
    display: grid;
    width: clamp(34px, 4vw, 48px);
    height: clamp(34px, 4vw, 48px);
    place-items: center;
    border: 4px solid var(--black);
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: 0 5px 0 var(--black);
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 1000;
}

.corner-room-fullscreen-icon:hover,
.corner-room-fullscreen-icon:focus-visible {
    transform: translateY(-2px);
}

.corner-room-stage:fullscreen .corner-room-fullscreen-icon {
    right: 18px;
    bottom: 18px;
}

.corner-character {
    position: absolute;
    z-index: 5;
    left: 54%;
    bottom: 8%;
    overflow: hidden;
    transform: translateX(-50%) translateY(var(--jump-y, 0)) scaleX(var(--face, 1));
    transform-origin: center bottom;
    pointer-events: none;
    filter: drop-shadow(0 6px 2px rgba(5, 5, 5, 0.45));
}

.corner-character img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    transform-origin: left top;
}

.corner-slot {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.corner-slot span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 0 rgba(5, 5, 5, 0.8));
    line-height: 1;
}

.corner-slot-wall span {
    font-size: clamp(1.1rem, 3.4vw, 3.4rem);
}

.corner-slot-surface span,
.corner-slot-cabinet span {
    place-items: end center;
    padding-bottom: 6%;
    font-size: clamp(1rem, 2.2vw, 2.2rem);
}

.corner-slot-furniture span {
    place-items: end center;
    padding-bottom: 0;
    font-size: clamp(2.5rem, 7.5vw, 7.2rem);
}

.corner-slot.is-allowed {
    border-color: rgba(182, 255, 0, 0.88);
    background: rgba(182, 255, 0, 0.12);
    box-shadow: inset 0 0 0 2px rgba(5, 5, 5, 0.45);
}

.corner-slot.is-blocked {
    border-color: rgba(255, 47, 146, 0.35);
    opacity: 0.55;
}

.corner-slot.is-selected {
    border-color: var(--yellow);
    background: rgba(255, 212, 0, 0.2);
}

.corner-character-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 5px solid var(--black);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 0 var(--black);
}

.corner-character-choices {
    display: grid;
    grid-template-columns: repeat(8, minmax(46px, 1fr));
    gap: 8px;
}

.corner-character-choice {
    position: relative;
    display: grid;
    min-height: 68px;
    place-items: center;
    padding: 6px;
    border: 4px solid var(--black);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--yellow), var(--lime));
    box-shadow: 0 4px 0 var(--black);
    cursor: pointer;
}

.corner-character-choice.active {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    transform: translateY(-2px);
}

.corner-character-choice span {
    position: relative;
    display: block;
    overflow: hidden;
}

.corner-character-choice img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
}

.corner-character-choice small {
    position: absolute;
    right: 5px;
    bottom: 3px;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 2px solid var(--black);
    border-radius: 999px;
    background: var(--white);
    font-size: 0.72rem;
    font-weight: 1000;
}

.corner-character-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.corner-character-controls .crew-button {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 0.82rem;
}

.corner-character-panel small {
    font-weight: 900;
}

.corner-room-panel {
    display: grid;
    gap: 14px;
}

.corner-tv-controls,
.corner-place-form,
.corner-placement-list,
.corner-room-note {
    padding: 14px;
    border: 5px solid var(--black);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 5px 0 var(--black);
}

.corner-tv-controls,
.corner-place-form,
.corner-placement-list {
    display: grid;
    gap: 10px;
}

.corner-tv-controls strong,
.corner-placement-list > strong {
    font-size: 1.15rem;
}

.corner-tv-controls small {
    font-weight: 900;
}

.corner-tv-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.corner-volume-control {
    display: grid;
    grid-template-columns: auto minmax(90px, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-weight: 1000;
}

.corner-volume-control input {
    accent-color: var(--pink);
    width: 100%;
}

.corner-volume-control span {
    min-width: 38px;
    text-align: right;
}

.corner-tv-buttons .crew-button,
.corner-placement-list .crew-button {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.8rem;
}

.corner-place-form label {
    display: grid;
    gap: 5px;
    font-weight: 1000;
}

.corner-place-form select {
    width: 100%;
    padding: 10px;
    border: 4px solid var(--black);
    border-radius: 10px;
    font: inherit;
    font-weight: 900;
}

.corner-placement-list form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    border: 3px solid var(--black);
    border-radius: 10px;
    background: var(--yellow);
}

.corner-placement-list span {
    font-weight: 1000;
}

@media (max-width: 980px) {
    .corner-room-layout {
        grid-template-columns: 1fr;
    }

    .corner-character-choices {
        grid-template-columns: repeat(4, minmax(52px, 1fr));
    }
}

.shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-card {
    display: grid;
    gap: 8px;
}

.shop-card.owned {
    background: var(--lime);
}

.prank-card {
    background: linear-gradient(180deg, var(--yellow) 0 30%, var(--white) 30%);
}

.generated-login {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.generated-login code {
    display: block;
    padding: 10px;
    background: var(--black);
    color: var(--lime);
    border: 3px solid var(--white);
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 1000;
}

.inline-form {
    display: grid;
    gap: 12px;
    margin: 14px 0;
}

.admin-table-card {
    overflow-x: auto;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    margin-top: 14px;
    background: var(--white);
    border: 4px solid var(--black);
}

th,
td {
    padding: 10px;
    border: 3px solid var(--black);
    text-align: left;
}

th {
    background: var(--yellow);
    text-transform: uppercase;
}

.metworst-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
    gap: 22px;
    align-items: center;
    margin: 28px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 24px 24px, rgba(5, 5, 5, 0.16) 0 4px, transparent 4px),
        linear-gradient(120deg, var(--pink) 0 18%, transparent 18% 72%, var(--yellow) 72% 100%),
        var(--cyan);
    background-size: 28px 28px, 100% 100%, 100% 100%;
}

.metworst-hero .neon-title {
    color: var(--yellow);
}

.metworst-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metworst-hero-stats article,
.metworst-reward-list div {
    min-width: 0;
    min-height: 94px;
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 10px;
    text-align: center;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--black);
}

.metworst-hero-stats strong,
.metworst-reward-list strong {
    max-width: 100%;
    color: var(--pink);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.02;
    text-align: center;
    overflow-wrap: anywhere;
    -webkit-text-stroke: 2px var(--black);
}

.metworst-hero-stats span,
.metworst-reward-list span {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 1000;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.tower-game-page .metworst-hero-stats strong {
    font-size: clamp(1.25rem, 2.25vw, 1.7rem);
    -webkit-text-stroke-width: 1.4px;
}

.metworst-shell {
    --metworst-fullscreen-canvas-width: 100%;
    --metworst-fullscreen-canvas-height: 100%;
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.game-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-status {
    margin: 0;
    font-weight: 1000;
    color: var(--dark-blue);
}

.game-fullscreen-button {
    width: auto;
    min-width: 210px;
}

.metworst-canvas-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--black);
    border: 6px solid var(--black);
    border-radius: 8px;
    outline: 5px solid var(--white);
    box-shadow: var(--card-shadow);
}

.metworst-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.metworst-start-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(440px, calc(100% - 36px));
    min-height: 210px;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 6px solid var(--black);
    border-radius: 8px;
    box-shadow: 8px 8px 0 var(--black);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-1deg) scale(0.96);
    transition: opacity 160ms ease, transform 160ms ease;
}

.metworst-start-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(-1deg) scale(1);
}

.metworst-start-panel strong {
    color: var(--pink);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.9;
    text-transform: uppercase;
    -webkit-text-stroke: 3px var(--black);
    text-shadow: 4px 4px 0 var(--yellow);
}

.metworst-start-panel span {
    font-weight: 1000;
    text-transform: uppercase;
}

.metworst-start-panel .crew-button:disabled {
    cursor: wait;
    filter: grayscale(0.55);
    opacity: 0.8;
}

.metworst-touch-controls {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.metworst-touch-controls button {
    min-height: 72px;
    color: var(--white);
    background: var(--black);
    border: 5px solid var(--white);
    border-radius: 8px;
    box-shadow: 5px 5px 0 var(--pink);
    font: inherit;
    font-size: 2rem;
    font-weight: 1000;
}

.metworst-touch-controls button:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--pink);
}

.metworst-reward-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.metworst-panels {
    align-items: start;
}

.onrust-invite-panels {
    margin-top: 18px;
    margin-bottom: 18px;
}

.onrust-invite-card {
    display: grid;
    gap: 12px;
    min-height: 100%;
}

.onrust-invite-card h2,
.onrust-invite-card p {
    margin: 0;
}

.onrust-invite-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: auto;
}

.onrust-invite-form label {
    display: grid;
    gap: 6px;
}

.onrust-invite-form .crew-button {
    min-height: 52px;
    white-space: nowrap;
}

.onrust-invite-form input[type="hidden"] {
    display: none;
}

.capi-memory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 260px) minmax(270px, 0.45fr);
    gap: 22px;
    align-items: center;
    margin: 28px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 22px 24px, rgba(5, 5, 5, 0.18) 0 4px, transparent 4px),
        linear-gradient(120deg, var(--cyan) 0 30%, var(--white) 30% 62%, var(--yellow) 62% 100%);
    background-size: 28px 28px, 100% 100%;
}

.capi-memory-hero .neon-title {
    color: var(--lime);
}

.capi-memory-hero-copy {
    display: grid;
    justify-items: start;
}

.capi-memory-hero-art {
    justify-self: center;
}

.capi-memory-hero-art img {
    width: min(230px, 100%);
    aspect-ratio: 1086 / 1448;
    object-fit: cover;
    border: 5px solid var(--black);
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--black);
    transform: rotate(2deg);
}

.capi-memory-hero-art--dance img {
    width: min(220px, 100%);
    aspect-ratio: auto;
    object-fit: contain;
    background: rgba(7, 10, 25, 0.22);
}

.capi-memory-scorebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 10px;
    min-width: 0;
}

.capi-memory-scorebar article {
    min-width: 0;
    min-height: 94px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 10px;
    text-align: center;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--black);
}

.capi-memory-scorebar strong {
    display: flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.08em;
    min-height: 1.1em;
    color: var(--pink);
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    -webkit-text-stroke: 2px var(--black);
}

.capi-memory-scorebar strong span {
    display: inline;
    font: inherit;
    color: inherit;
}

.capi-memory-scorebar article > span {
    font-size: 0.76rem;
    font-weight: 1000;
    text-transform: uppercase;
    max-width: 100%;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.capi-memory-shell {
    --capi-beat: 0.472440945s;
    --capi-fullscreen-columns: 6;
    --capi-fullscreen-card-width: 120px;
    --capi-fullscreen-card-gap: 10px;
    position: relative;
    margin: 28px 0;
    overflow: hidden;
    display: grid;
    gap: 22px;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(182, 255, 0, 0.22), rgba(255, 255, 255, 0.94) 38%, rgba(0, 245, 255, 0.22)),
        var(--white);
}

.metworst-shell:fullscreen,
.metworst-shell.is-pseudo-fullscreen,
.capi-memory-shell:fullscreen,
.capi-memory-shell.is-pseudo-fullscreen {
    width: 100dvw;
    height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 14px;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    background: #050505;
}

.metworst-shell.is-pseudo-fullscreen,
.capi-memory-shell.is-pseudo-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

body.game-fullscreen-lock {
    overflow: hidden;
}

.metworst-shell:fullscreen,
.metworst-shell.is-pseudo-fullscreen {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
}

.metworst-shell:fullscreen .metworst-canvas-frame,
.metworst-shell.is-pseudo-fullscreen .metworst-canvas-frame {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    display: grid;
    place-items: center;
    outline: 0;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
}

.metworst-shell:fullscreen .metworst-canvas,
.metworst-shell.is-pseudo-fullscreen .metworst-canvas {
    width: var(--metworst-fullscreen-canvas-width);
    height: var(--metworst-fullscreen-canvas-height);
    max-width: 100%;
    max-height: 100%;
}

.metworst-shell.is-fullscreen .game-status,
.metworst-shell.is-pseudo-fullscreen .game-status,
.capi-memory-shell.is-fullscreen .capi-memory-table-top,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-table-top,
.capi-memory-shell.is-fullscreen .capi-memory-panels,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-panels {
    display: none;
}

.capi-memory-shell:fullscreen,
.capi-memory-shell.is-pseudo-fullscreen {
    display: grid;
    align-content: stretch;
    grid-template-rows: auto 1fr;
    gap: 12px;
    border-width: 0;
}

.capi-memory-shell:fullscreen .capi-memory-scorebar,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-scorebar {
    gap: 8px;
}

.capi-memory-shell:fullscreen .capi-memory-scorebar article,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-scorebar article {
    min-height: 56px;
    padding: 6px 4px;
    border-width: 3px;
    box-shadow: 3px 3px 0 var(--black);
}

.capi-memory-shell:fullscreen .capi-memory-scorebar strong,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-scorebar strong {
    font-size: clamp(1.05rem, 2.4vw, 1.7rem);
    -webkit-text-stroke-width: 1px;
}

.capi-memory-shell:fullscreen .capi-memory-scorebar article > span,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-scorebar article > span {
    font-size: 0.62rem;
}

.capi-memory-shell:fullscreen .capi-memory-stage,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-stage {
    min-height: 0;
    height: 100%;
    display: grid;
    place-items: center;
    box-shadow: none;
}

.capi-memory-shell:fullscreen .capi-memory-grid,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-grid {
    width: max-content;
    max-width: 100%;
    grid-template-columns: repeat(var(--capi-fullscreen-columns), minmax(0, var(--capi-fullscreen-card-width)));
    gap: var(--capi-fullscreen-card-gap);
}

.capi-memory-shell.has-fullscreen-art:fullscreen .capi-memory-stage,
.capi-memory-shell.has-fullscreen-art.is-pseudo-fullscreen .capi-memory-stage {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
    align-items: center;
    justify-items: center;
    gap: 18px;
}

.capi-memory-shell.has-fullscreen-art:fullscreen .capi-memory-grid,
.capi-memory-shell.has-fullscreen-art.is-pseudo-fullscreen .capi-memory-grid {
    justify-self: end;
}

.capi-memory-shell.has-fullscreen-art:fullscreen .capi-memory-stage-art,
.capi-memory-shell.has-fullscreen-art.is-pseudo-fullscreen .capi-memory-stage-art {
    display: block;
}

.capi-memory-shell.is-landscape:not(:fullscreen):not(.is-pseudo-fullscreen) .capi-memory-grid {
    grid-template-columns: repeat(6, minmax(72px, 1fr));
}

.capi-memory-shell audio {
    display: none;
}

.capi-memory-table-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.capi-memory-table-top h2 {
    margin: 12px 0 0;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    text-transform: uppercase;
}

.capi-memory-status,
.capi-memory-best {
    margin: 0;
    font-weight: 1000;
}

.capi-memory-status {
    color: var(--dark-blue);
}

.capi-memory-best {
    color: var(--pink);
}

.capi-memory-stage {
    position: relative;
    overflow: hidden;
    padding: clamp(14px, 2vw, 24px);
    border: 4px solid var(--black);
    border-radius: 16px;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 118%, rgba(255, 214, 10, 0.24), transparent 38%),
        linear-gradient(180deg, rgba(7, 16, 61, 0.98), rgba(14, 30, 98, 0.95));
    box-shadow: 6px 6px 0 var(--black), 0 24px 48px rgba(5, 5, 5, 0.18);
}

.capi-memory-stage::before,
.capi-memory-stage::after {
    content: "";
    position: absolute;
    inset: -28%;
    pointer-events: none;
}

.capi-memory-stage::before {
    z-index: 0;
    opacity: 0.84;
    background:
        conic-gradient(from 0deg, rgba(255, 41, 124, 0.34), transparent 15%, rgba(0, 245, 255, 0.38) 32%, transparent 48%, rgba(255, 214, 10, 0.42) 66%, transparent 81%, rgba(182, 255, 0, 0.34));
    transform-origin: 50% 50%;
    animation: capiDiscoSpin calc(var(--capi-beat) * 16) linear infinite;
}

.capi-memory-stage::after {
    z-index: 0;
    opacity: 0.72;
    mix-blend-mode: screen;
    background:
        radial-gradient(circle at 20% 22%, rgba(255, 214, 10, 0.44), transparent 16%),
        radial-gradient(circle at 78% 22%, rgba(255, 41, 124, 0.4), transparent 18%),
        radial-gradient(circle at 50% 82%, rgba(0, 245, 255, 0.36), transparent 22%);
    animation: capiDiscoPulse calc(var(--capi-beat) * 2) ease-in-out infinite;
}

.capi-memory-stage-art {
    display: none;
    position: relative;
    z-index: 1;
    align-self: end;
    justify-self: center;
    pointer-events: none;
}

.capi-memory-stage-art img {
    display: block;
    width: min(100%, 220px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(8px 10px 0 rgba(5, 5, 5, 0.28));
}

.capi-memory-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(92px, 142px));
    justify-content: center;
    gap: clamp(10px, 1.2vw, 16px);
    perspective: 1800px;
}

.capi-memory-card {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1086 / 1448;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    perspective: 1150px;
    transform-style: preserve-3d;
}

.capi-memory-card::after {
    content: "";
    position: absolute;
    inset: 8% 8% -5%;
    z-index: 0;
    background: rgba(5, 5, 5, 0.28);
    border-radius: 50%;
    filter: blur(12px);
    transform: translateZ(-1px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.capi-memory-card:hover::after,
.capi-memory-card.is-flipped::after {
    opacity: 0.48;
    transform: translateY(4px) translateZ(-1px);
}

.capi-card-book {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px;
    will-change: transform;
    transition: filter 180ms ease, transform 180ms ease;
}

.capi-memory-card.is-turning .capi-card-book {
    filter: brightness(1.06) saturate(1.08);
}

.capi-card-book::before {
    content: "";
    position: absolute;
    inset: 3% auto 3% 0;
    z-index: 4;
    width: 24%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(5, 5, 5, 0.16), transparent);
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transform: translateZ(8px);
}

.capi-memory-card.is-turning .capi-card-book::before {
    animation: capiPageGlint 460ms ease;
}

.capi-card-face {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--black), 0 18px 32px rgba(5, 5, 5, 0.18);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition:
        transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
        clip-path 460ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 180ms ease;
}

.capi-card-face-back {
    opacity: 1;
    clip-path: inset(0 round 16px);
    transform-origin: left center;
    transform: perspective(1150px) rotateY(0deg) scaleX(1);
}

.capi-card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.capi-card-face-front {
    opacity: 0;
    clip-path: inset(0 100% 0 0 round 16px);
    transform-origin: right center;
    transform: perspective(1150px) rotateY(84deg) scaleX(0.94);
}

.capi-memory-card.is-flipped .capi-card-face-back,
.capi-memory-card.is-matched .capi-card-face-back {
    opacity: 0.18;
    clip-path: inset(0 0 0 100% round 16px);
    transform: perspective(1150px) rotateY(-84deg) scaleX(0.94);
}

.capi-memory-card.is-flipped .capi-card-face-front,
.capi-memory-card.is-matched .capi-card-face-front {
    opacity: 1;
    clip-path: inset(0 round 16px);
    transform: perspective(1150px) rotateY(0deg) scaleX(1);
}

.capi-memory-card.is-matched .capi-card-face {
    border-color: var(--lime);
}

.capi-memory-card.is-matched .capi-card-book {
    animation: capiMatchPop 560ms ease;
}

.capi-memory-card.is-missed .capi-card-book {
    animation: capiMissedShake 360ms ease;
}

.capi-memory-card:focus-visible {
    outline: 5px solid var(--pink);
    outline-offset: 5px;
}

.capi-memory-card[disabled] {
    cursor: default;
}

.capi-memory-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.capi-memory-panel {
    display: grid;
    gap: 12px;
    padding: clamp(16px, 2vw, 22px);
    background: rgba(255, 255, 255, 0.9);
    border: 4px solid var(--black);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--black);
}

.capi-memory-panel .sticker {
    justify-self: start;
}

.capi-memory-tip-list {
    display: grid;
    gap: 8px;
}

.capi-memory-tip-list p,
.capi-memory-audio-status,
.capi-memory-beat {
    margin: 0;
}

.capi-memory-tip-list p {
    color: var(--dark-blue);
    font-weight: 1000;
}

.capi-memory-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.capi-memory-control-row .crew-button {
    flex: 1 1 210px;
}

.capi-audio-toggle {
    flex: 0 0 62px;
    width: 62px;
    min-width: 62px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.capi-audio-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.capi-audio-toggle-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.capi-memory-volume {
    display: grid;
    gap: 8px;
    font-weight: 1000;
}

.capi-memory-volume input {
    width: 100%;
    accent-color: var(--pink);
}

.capi-memory-audio-status {
    min-height: 1.35em;
    color: var(--dark-blue);
    font-weight: 1000;
}

.capi-memory-beat {
    color: rgba(5, 5, 5, 0.68);
    font-size: 0.78rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.capi-memory-win {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 5, 5, 0.58);
}

.capi-memory-shell:fullscreen .capi-memory-win,
.capi-memory-shell.is-pseudo-fullscreen .capi-memory-win {
    position: absolute;
    z-index: 100;
}

.capi-memory-win[hidden] {
    display: none;
}

.capi-memory-win-panel {
    width: min(440px, 100%);
    padding: clamp(22px, 4vw, 34px);
    text-align: center;
    background: var(--white);
    border: 6px solid var(--black);
    border-radius: 8px;
    box-shadow: 9px 9px 0 var(--black), 0 26px 70px rgba(5, 5, 5, 0.32);
}

.capi-memory-win-panel h2 {
    margin: 0 0 12px;
    color: var(--lime);
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 0.9;
    text-transform: uppercase;
    -webkit-text-stroke: 3px var(--black);
    text-shadow: 4px 4px 0 var(--pink);
}

.capi-memory-win-panel p {
    font-weight: 1000;
}

.tower-game-shell {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.tower-game-frame {
    position: relative;
    min-height: min(74vh, 920px);
    background: #111;
    border: 5px solid var(--black);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.tower-game-frame iframe {
    width: 100%;
    min-height: min(74vh, 920px);
    height: min(74vh, 920px);
    display: block;
    border: 0;
    background: #111;
}

.tower-game-shell:fullscreen,
.tower-game-shell.is-pseudo-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 12px;
    border-radius: 0;
    background: #111;
}

.tower-game-shell:fullscreen .tower-game-frame,
.tower-game-shell.is-pseudo-fullscreen .tower-game-frame {
    min-height: calc(100vh - 76px);
    height: calc(100vh - 76px);
    border-radius: 0;
}

.tower-game-shell:fullscreen .tower-game-frame iframe,
.tower-game-shell.is-pseudo-fullscreen .tower-game-frame iframe {
    min-height: calc(100vh - 76px);
    height: calc(100vh - 76px);
}

@keyframes capiDiscoSpin {
    from {
        transform: rotate(0deg) scale(1.02);
    }
    to {
        transform: rotate(360deg) scale(1.02);
    }
}

@keyframes capiDiscoPulse {
    0%,
    100% {
        opacity: 0.58;
        transform: scale(0.94);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes capiPageGlint {
    0% {
        opacity: 0;
        transform: translateZ(8px) translateX(0);
    }
    42% {
        opacity: 0.82;
    }
    100% {
        opacity: 0;
        transform: translateZ(8px) translateX(160%);
    }
}

@keyframes capiMatchPop {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.045);
    }
}

@keyframes capiMissedShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 42px;
    padding: 18px max(18px, calc((100vw - 1440px) / 2));
    color: var(--white);
    background: var(--black);
    border-top: 5px solid var(--yellow);
    font-weight: 900;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer a {
    color: var(--yellow);
    text-decoration: none;
}

.dashboard-page .stat-button-grid > .stat-card {
    min-height: 0;
    height: 86px;
    max-height: 86px;
}

.dashboard-page .action-grid > .action-tile {
    min-height: 0;
    height: 132px;
    max-height: 132px;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr;
    }

    .logo-burst {
        width: min(420px, 100%);
        min-height: 116px;
    }

    .main-nav {
        grid-template-columns: repeat(4, minmax(108px, 1fr));
    }

    .main-nav.public-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .clubhouse-welcome {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dashboard-hero-card,
    .dashboard-stat-groups {
        grid-template-columns: 1fr;
    }

    .dashboard-task-grid,
    .dashboard-activity-grid,
    .dashboard-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .clubhouse-panel {
        max-width: none;
    }

    .clubhouse-treehouse {
        min-height: 360px;
        place-items: center;
    }

    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-art {
        min-height: 0;
    }

    .dashboard-hero-art {
        min-height: 220px;
    }

    .public-hero-copy {
        max-width: none;
    }

    .treehouse-hero-art {
        min-height: 380px;
    }

    .treehouse-hero-art img {
        max-height: 430px;
        transform: translateY(8px);
    }

    .home-grid,
    .shop-grid,
    .dashboard-grid,
    .status-ladder,
    .metworst-hero,
    .capi-memory-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chat-choice-grid,
    .smiley-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .capi-memory-scorebar {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(92px, 1fr));
    }

    .challenge-grid,
    .badge-grid,
    .action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-teaser-grid,
    .public-badge-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    main,
    .site-header {
        width: min(100% - 18px, 1440px);
    }

    .top-strip,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .zigzag {
        display: none;
    }

    .main-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .capi-memory-scorebar {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }

    .main-nav.public-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-bar {
        width: min(100% - 18px, 1440px);
    }

    .dashboard-hud {
        padding-bottom: 6px;
    }

    .player-icon,
    .player-meter {
        flex: 0 0 auto;
    }

    .meter-status {
        min-width: 132px;
    }

    .main-nav a {
        min-height: 0;
        font-size: inherit;
    }

    .hero-section {
        padding: 16px;
        margin-top: 14px;
    }

    .dashboard-hero-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .dashboard-hero-actions .crew-button {
        min-width: 0;
    }

    .public-hero-section {
        gap: 18px;
        padding: 18px;
    }

    .clubhouse-welcome {
        margin-top: 16px;
        padding: 14px;
        border-width: 4px;
        border-radius: 14px;
        box-shadow: 6px 6px 0 var(--black), 0 0 0 3px var(--white);
    }

    .clubhouse-panel {
        gap: 11px;
        padding: 17px;
        border-width: 4px;
        outline-width: 3px;
        box-shadow: 7px 7px 0 var(--pink);
        transform: none;
    }

    .clubhouse-panel h1 {
        font-size: clamp(3rem, 18vw, 4.8rem);
        -webkit-text-stroke-width: 2px;
    }

    .clubhouse-mini-stats,
    .clubhouse-actions {
        grid-template-columns: 1fr;
    }

    .clubhouse-treehouse {
        min-height: 280px;
    }

    .clubhouse-treehouse img {
        max-height: 340px;
    }

    .dashboard-hero-art img {
        width: 100%;
        height: 100%;
    }

    .hero-copy {
        padding: 18px;
        transform: none;
    }

    .public-hero-copy .button-pink {
        min-width: 0;
    }

    .treehouse-hero-art {
        min-height: 300px;
    }

    .treehouse-hero-art img {
        max-height: 330px;
    }

    .hero-actions,
    .admin-actions,
    .profile-main {
        flex-direction: column;
        align-items: stretch;
    }

    .crew-button {
        width: 100%;
    }

    .onrust-invite-form {
        grid-template-columns: 1fr;
    }

    .paint-tag {
        position: static;
        margin: 10px 0 0 auto;
    }

    .home-grid,
    .quick-links,
    .challenge-grid,
    .badge-grid,
    .badge-grid.small,
    .leaderboard-grid,
    .shop-grid,
    .dashboard-grid,
    .dashboard-stat-groups,
    .dashboard-task-grid,
    .dashboard-action-grid,
    .dashboard-activity-grid,
    .dashboard-news-grid,
    .mission-status-strip,
    .status-ladder,
    .action-grid,
    .two-column,
    .dashboard-hero,
    .profile-hero,
    .crew-panel,
    .metworst-hero,
    .metworst-hero-stats,
    .metworst-reward-list,
    .capi-memory-hero,
    .capi-memory-scorebar,
    .capi-memory-table-top,
    .capi-memory-panels {
        grid-template-columns: 1fr;
    }

    .trade-prices,
    .trade-actions,
    .chat-choice-grid,
    .smiley-grid,
    .chat-line {
        grid-template-columns: 1fr;
    }

    .chat-line small {
        justify-self: start;
    }

    .capi-memory-hero-copy,
    .capi-memory-table-top {
        justify-items: start;
    }

    .capi-memory-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .capi-memory-stage {
        padding: 10px;
    }

    .capi-memory-control-row {
        flex-direction: column;
    }

    .capi-card-book,
    .capi-card-face {
        border-radius: 12px;
    }

    .capi-card-face {
        border-width: 3px;
        box-shadow: 4px 4px 0 var(--black), 0 10px 22px rgba(5, 5, 5, 0.16);
    }

    .avatar-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-photo-tools {
        grid-template-columns: 1fr;
    }

    .dashboard-mini-grid,
    .dashboard-mini-grid.is-four {
        grid-template-columns: 1fr;
    }

    .public-greeting-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .sound-preview-button {
        width: 100%;
    }

    .neon-title {
        font-size: clamp(2rem, 14vw, 3.2rem);
        -webkit-text-stroke: 2px var(--black);
        text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--black);
    }

    .comic-card {
        padding: 18px;
    }

    .compact-row,
    .leader-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mission-active-head {
        grid-template-columns: 1fr;
    }

    .mission-countdown {
        justify-self: start;
    }

    .score {
        margin-left: 0;
    }

    .header-crew-art {
        min-height: 92px;
    }

    .header-crew-art img {
        height: 128px;
    }

    .mission-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission-storefront-hero {
        aspect-ratio: 4 / 3;
        border-width: 4px;
        outline-width: 3px;
    }

    .metworst-touch-controls {
        display: grid;
    }

    .metworst-canvas-frame {
        border-width: 4px;
        outline-width: 3px;
    }

    .metworst-start-panel {
        min-height: 178px;
        padding: 18px;
    }
}

@media (max-width: 900px) {
    .top-strip {
        min-height: 48px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding-block: 7px;
    }

    .top-strip nav {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        overflow-x: auto;
        padding-bottom: 2px;
        font-size: 0.82rem;
        scrollbar-width: thin;
    }

    .top-strip a {
        flex: 0 0 auto;
    }

    .jukebox-controls {
        flex: 0 0 auto;
        max-width: 190px;
    }

    .jukebox-now-playing {
        max-width: 96px;
    }

    .site-header {
        width: min(100% - 24px, 1440px);
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 10px;
        align-items: stretch;
        margin-top: 8px;
    }

    .logo-burst {
        width: 128px;
        min-height: 78px;
        filter: drop-shadow(3px 4px 0 var(--black));
    }

    .main-nav {
        display: flex;
        gap: 7px;
        height: 100%;
        overflow-x: auto;
        padding: 1px 4px 6px 1px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .main-nav > a,
    .main-nav-item {
        flex: 0 0 86px;
        min-width: 86px;
        scroll-snap-align: start;
    }

    .main-nav > a,
    .main-nav-item > a {
        min-height: 72px;
        height: 100%;
        font-size: 0.72rem;
    }

    .submenu {
        display: none !important;
    }

    .player-bar {
        width: min(100% - 24px, 1440px);
        gap: 8px;
        margin-top: 8px;
        padding-bottom: 4px;
        flex-wrap: wrap;
        overflow: visible;
        scrollbar-width: none;
    }

    .dashboard-hud {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .status-profile-button {
        width: calc(193px * var(--status-scale));
        height: calc(80px * var(--status-scale));
    }

    .status-pill-button {
        height: calc(80px * var(--status-scale));
    }

    .status-xp-pill {
        width: calc(162px * var(--status-scale));
    }

    .status-coins-pill {
        width: calc(156px * var(--status-scale));
    }

    .status-energy-pill {
        width: calc(164px * var(--status-scale));
    }

    .status-square-button {
        width: calc(80px * var(--status-scale));
        height: calc(80px * var(--status-scale));
    }

    .status-wide-split {
        width: calc(216px * var(--status-scale));
        height: calc(80px * var(--status-scale));
    }

    .status-pill-copy strong {
        font-size: calc(1.2rem * var(--status-scale));
    }

    .dashboard-page .dashboard-grid,
    .challenge-grid,
    .shop-grid,
    .leaderboard-grid,
    .home-grid,
    .quick-links,
    .badge-grid,
    .location-grid,
    .trade-grid,
    .dashboard-stat-groups,
    .dashboard-task-grid,
    .dashboard-activity-grid,
    .dashboard-news-grid,
    .dashboard-action-grid,
    .status-ladder,
    .two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .challenge-card::after,
    .mission-card-upgraded::after {
        width: 86px;
        height: 86px;
        right: -20px;
        top: -20px;
    }

    .mission-card-head h2,
    .page-intro .neon-title,
    .compact-row strong,
    .leader-row strong,
    .dashboard-mini-card strong,
    .dashboard-news-card h3,
    .dashboard-activity-card h3 {
        overflow-wrap: anywhere;
    }

    .mission-location,
    .mission-progress-pill {
        width: auto;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 760px) {
    .site-header,
    .player-bar {
        width: calc(100% - 18px);
    }

    .site-header {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .logo-burst {
        width: 94px;
        min-height: 68px;
    }

    .main-nav > a,
    .main-nav-item {
        flex-basis: 78px;
        min-width: 78px;
    }

    .main-nav > a,
    .main-nav-item > a {
        min-height: 64px;
        font-size: 0.66rem;
    }

    .nav-icon {
        width: 26px;
        height: 26px;
    }

    .top-slogan {
        display: none;
    }

    .top-strip nav {
        justify-content: flex-start;
    }

    .jukebox-controls {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .jukebox-now-playing {
        max-width: 180px;
    }

    .page-intro,
    .dashboard-hero,
    .profile-hero,
    .crew-panel,
    .clubhouse-room,
    .mission-progress-panel,
    .mission-lock,
    .sport-hero {
        margin: 16px 0;
    }

    .page-intro {
        padding: 16px;
    }

    .challenge-grid,
    .shop-grid,
    .leaderboard-grid,
    .home-grid,
    .quick-links,
    .badge-grid,
    .location-grid,
    .trade-grid,
    .dashboard-stat-groups,
    .dashboard-task-grid,
    .dashboard-activity-grid,
    .dashboard-news-grid,
    .dashboard-action-grid,
    .status-ladder,
    .two-column,
    .dashboard-page .dashboard-grid,
    .mission-status-strip,
    .mission-progress-layout,
    .form-subgrid {
        grid-template-columns: 1fr;
    }

    .dashboard-hud {
        gap: 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .status-profile-button {
        width: calc(166px * var(--status-scale));
        height: calc(72px * var(--status-scale));
    }

    .status-pill-button {
        height: calc(72px * var(--status-scale));
        min-width: 0;
    }

    .status-xp-pill {
        width: calc(140px * var(--status-scale));
    }

    .status-coins-pill {
        width: calc(134px * var(--status-scale));
    }

    .status-energy-pill {
        width: calc(142px * var(--status-scale));
    }

    .status-square-button {
        width: calc(68px * var(--status-scale));
        min-width: calc(68px * var(--status-scale));
        height: calc(72px * var(--status-scale));
    }

    .status-wide-split {
        width: calc(184px * var(--status-scale));
        height: calc(72px * var(--status-scale));
    }

    .status-xp-pill .status-pill-copy {
        left: 32.9%;
        right: 13.9%;
    }

    .status-coins-pill .status-pill-copy {
        left: 30%;
        right: 13.1%;
    }

    .status-energy-pill .status-pill-copy {
        left: 22.95%;
        right: 13.6%;
    }

    .status-pill-copy strong {
        font-size: 1.02rem;
    }

    .status-energy-pill .status-pill-copy strong {
        font-size: 0.98rem;
    }

    .status-level-badge {
        left: 63px;
        bottom: 9px;
        width: 18px;
        font-size: 0.66rem;
    }

    .status-bubble-count {
        min-width: 24px;
        height: 24px;
        font-size: 0.76rem;
    }

    .dashboard-hero,
    .profile-hero,
    .crew-panel {
        gap: 14px;
    }

    .damon-guide {
        padding: 10px;
    }

    .damon-guide img {
        width: min(170px, 100%);
    }

    .challenge-card::after,
    .mission-card-upgraded::after {
        width: 74px;
        height: 74px;
        right: -18px;
        top: -18px;
        border-width: 3px;
    }

    .challenge-icon,
    .shop-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 10px;
        border-width: 4px;
        font-size: 1.9rem;
    }

    .mission-card-upgraded,
    .sport-card,
    .challenge-card {
        min-height: 0;
    }

    .mission-card-head {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .mission-card-head h2 {
        margin-top: 4px;
        font-size: clamp(1.05rem, 5vw, 1.35rem);
        line-height: 1;
    }

    .mission-location,
    .mission-progress-pill,
    .mission-subject {
        font-size: 0.76rem;
    }

    .mission-reward-grid span,
    .trade-prices span {
        min-height: 0;
    }

    .clubhouse-mini-stats,
    .clubhouse-actions,
    .trade-actions,
    .trade-prices,
    .chat-choice-grid,
    .smiley-grid,
    .avatar-picker {
        grid-template-columns: 1fr;
    }

    .compact-row,
    .leader-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .page-intro .neon-title,
    .dashboard-hero .neon-title,
    .profile-hero .neon-title,
    .crew-panel .neon-title {
        font-size: clamp(1.9rem, 11vw, 2.8rem);
    }

    .mission-card-head {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .challenge-icon,
    .shop-icon {
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .mission-location,
    .mission-progress-pill,
    .mission-subject {
        padding-inline: 8px;
    }
}

/* Keep the game itself close to the top and preserve usable touch targets. */
@media (max-width: 900px) {
    .metworst-page .top-strip,
    .capi-memory-page .top-strip {
        min-height: 48px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding-block: 7px;
    }

    .metworst-page .top-strip nav,
    .capi-memory-page .top-strip nav {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        overflow-x: auto;
        padding-bottom: 2px;
        font-size: 0.82rem;
        scrollbar-width: thin;
    }

    .metworst-page .top-strip a,
    .capi-memory-page .top-strip a {
        flex: 0 0 auto;
    }

    .metworst-page .site-header,
    .capi-memory-page .site-header {
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 10px;
        align-items: stretch;
        margin-top: 8px;
    }

    .metworst-page .logo-burst,
    .capi-memory-page .logo-burst {
        width: 128px;
        min-height: 78px;
        filter: drop-shadow(3px 4px 0 var(--black));
    }

    .metworst-page .main-nav,
    .capi-memory-page .main-nav {
        display: flex;
        gap: 7px;
        height: 100%;
        overflow-x: auto;
        padding: 1px 4px 6px 1px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .metworst-page .main-nav > a,
    .metworst-page .main-nav-item,
    .capi-memory-page .main-nav > a,
    .capi-memory-page .main-nav-item {
        flex: 0 0 86px;
        min-width: 86px;
        scroll-snap-align: start;
    }

    .metworst-page .main-nav > a,
    .metworst-page .main-nav-item > a,
    .capi-memory-page .main-nav > a,
    .capi-memory-page .main-nav-item > a {
        min-height: 0;
        height: auto;
        font-size: inherit;
    }

    .metworst-page .submenu,
    .capi-memory-page .submenu {
        display: none !important;
    }

    .metworst-page .player-bar,
    .capi-memory-page .player-bar {
        margin-top: 8px;
    }

    .metworst-touch-controls {
        display: grid;
    }
}

@media (max-width: 760px) {
    .metworst-page .site-header,
    .capi-memory-page .site-header {
        width: calc(100% - 18px);
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .metworst-page .logo-burst,
    .capi-memory-page .logo-burst {
        width: 94px;
        min-height: 68px;
    }

    .metworst-page .main-nav > a,
    .metworst-page .main-nav-item,
    .capi-memory-page .main-nav > a,
    .capi-memory-page .main-nav-item {
        flex-basis: 78px;
        min-width: 78px;
    }

    .metworst-page .main-nav > a,
    .metworst-page .main-nav-item > a,
    .capi-memory-page .main-nav > a,
    .capi-memory-page .main-nav-item > a {
        min-height: 0;
        font-size: inherit;
    }

    .metworst-page .nav-icon,
    .capi-memory-page .nav-icon {
        width: 26px;
        height: 26px;
    }

    .metworst-hero,
    .capi-memory-hero {
        gap: 14px;
        margin: 16px 0;
    }

    .metworst-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .metworst-hero-stats article,
    .metworst-reward-list div,
    .capi-memory-scorebar article {
        min-height: 72px;
        padding: 7px 5px;
        border-width: 3px;
        box-shadow: 3px 3px 0 var(--black);
    }

    .metworst-hero-stats strong,
    .metworst-reward-list strong,
    .capi-memory-scorebar strong {
        font-size: clamp(1.25rem, 7vw, 1.8rem);
        -webkit-text-stroke-width: 1px;
    }

    .metworst-hero-stats span,
    .metworst-reward-list span,
    .capi-memory-scorebar article > span {
        font-size: 0.66rem;
    }

    .metworst-shell,
    .capi-memory-shell {
        margin: 16px 0;
    }

    .game-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .game-fullscreen-button {
        width: 100%;
        min-width: 0;
    }

    .metworst-start-panel {
        width: calc(100% - 20px);
        min-height: 0;
        gap: 7px;
        padding: 10px;
        border-width: 4px;
        box-shadow: 4px 4px 0 var(--black);
    }

    .metworst-start-panel strong {
        font-size: clamp(1.35rem, 7vw, 2rem);
        -webkit-text-stroke-width: 2px;
        text-shadow: 2px 2px 0 var(--yellow);
    }

    .metworst-start-panel span {
        font-size: 0.72rem;
    }

    .metworst-start-panel .crew-button {
        width: auto;
        min-height: 44px;
        padding: 8px 22px;
    }

    .metworst-touch-controls {
        gap: 9px;
    }

    .metworst-touch-controls button {
        min-height: 64px;
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }

    .metworst-shell.is-landscape .metworst-touch-controls {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .capi-memory-hero {
        grid-template-columns: minmax(0, 1fr) 88px;
        align-items: start;
    }

    .capi-memory-hero-art {
        align-self: center;
    }

    .capi-memory-hero-art--dance img {
        width: 82px;
        border-width: 3px;
        border-radius: 12px;
        box-shadow: 3px 3px 0 var(--black);
    }

    .capi-memory-scorebar {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .capi-memory-shell {
        gap: 14px;
        padding: 11px;
    }

    .capi-memory-table-top {
        gap: 8px;
    }

    .capi-memory-table-top h2 {
        margin-top: 7px;
    }

    .capi-memory-stage {
        padding: 8px;
        border-width: 3px;
        border-radius: 12px;
        box-shadow: 4px 4px 0 var(--black), 0 14px 28px rgba(5, 5, 5, 0.16);
    }

    .capi-memory-grid {
        gap: 6px;
    }

    .capi-memory-card {
        min-width: 44px;
        min-height: 58px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .capi-memory-card::after {
        filter: blur(7px);
    }

    .capi-card-book,
    .capi-card-face {
        border-radius: 9px;
    }

    .capi-card-face {
        border-width: 2px;
        box-shadow: 3px 3px 0 var(--black), 0 8px 16px rgba(5, 5, 5, 0.14);
    }

    .capi-memory-panel {
        padding: 14px;
        border-width: 3px;
        box-shadow: 3px 3px 0 var(--black);
    }

    .capi-memory-control-row .crew-button,
    .capi-audio-toggle {
        flex-basis: auto;
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }

    .capi-memory-volume input {
        min-height: 32px;
    }

    .capi-memory-shell.is-landscape .capi-memory-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .metworst-page .top-slogan,
    .capi-memory-page .top-slogan {
        display: none;
    }

    .metworst-page .top-strip nav,
    .capi-memory-page .top-strip nav {
        justify-content: flex-start;
    }

    .metworst-hero,
    .capi-memory-hero,
    .capi-memory-shell {
        border-width: 4px;
        box-shadow: 5px 5px 0 var(--black);
    }

    .metworst-hero .neon-title,
    .capi-memory-hero .neon-title {
        font-size: clamp(1.85rem, 11vw, 2.7rem);
    }

    .metworst-hero p,
    .capi-memory-hero p {
        margin-bottom: 0;
    }

    .metworst-reward-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 350px) {
    .capi-memory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .capi-memory-hero {
        grid-template-columns: 1fr;
    }

    .capi-memory-hero-art {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .main-nav > a,
    .main-nav-item > a,
    .crew-button,
    .small-button,
    .mini-panel,
    .action-tile,
    .public-card,
    .public-teaser-card,
    .preview-card,
    .badge-preview-chip,
    .dashboard-mini-card,
    .dashboard-task-card,
    .dashboard-action-card,
    .dashboard-news-card,
    .dashboard-hud .hud-chip,
    .dashboard-hud .status-skin {
        transition: none !important;
    }

    .is-popping {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD VISUAL POLISH — v2
   Versterkte visuele hiërarchie voor de ingelogde startpagina.
   Alle bestaande buttons, statusbar-items en links blijven intact.
═══════════════════════════════════════════════════════════════ */

/* ── 1. SITE HEADER: frosted card container ────────────────── */
.site-header {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.58);
    border-radius: 20px;
    box-shadow:
        0 4px 12px rgba(5, 5, 5, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Nav: lichte pill-achtergrond */
.main-nav {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.20);
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-radius: 14px;
}

/* ── 2. TOP STRIP: subtiel versterkt ──────────────────────── */
.top-strip {
    border-bottom-color: var(--pink);
    border-bottom-width: 5px;
}

/* ── 3. STATUSBAR: donkere frosted pill ────────────────────── */
.player-bar.dashboard-hud {
    padding: 10px 14px;
    background: rgba(5, 5, 5, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(5, 5, 5, 0.28);
}

/* ── 4. DASHBOARD HERO CARD: steviger kader ─────────────────── */
.dashboard-hero-card {
    padding: 26px;
    border: 5px solid var(--black);
    border-radius: 20px;
    box-shadow: 9px 9px 0 var(--black), 0 0 0 4px var(--white);
    margin: 18px 0 22px;
}

/* Copy-panel: donker inset blok */
.dashboard-hero-copy {
    padding: 22px 24px;
    background:
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px),
        rgba(5, 5, 5, 0.64);
    background-size: 20px 20px, 100% 100%;
    border: 4px solid rgba(255, 255, 255, 0.50);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 6px 6px 0 rgba(5, 5, 5, 0.55), 0 0 0 3px var(--pink);
}

.dashboard-hero-copy .sticker {
    box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.3), 5px 5px 0 var(--black);
}

/* XP progress bar: dikker en ronder */
.dashboard-progress {
    height: 24px;
    max-width: none;
    border-color: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    box-shadow: inset 0 3px 0 rgba(5, 5, 5, 0.25), 3px 3px 0 rgba(5, 5, 5, 0.35);
}

.dashboard-hero-actions .crew-button {
    border-color: rgba(255, 255, 255, 0.65);
    outline: 3px solid var(--black);
    outline-offset: 2px;
}

/* Hero art: subtiel kader */
.dashboard-hero-art {
    background: rgba(255, 255, 255, 0.10);
    border: 4px solid rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    box-shadow: 5px 5px 0 rgba(5, 5, 5, 0.32);
    overflow: hidden;
    min-height: 260px;
}

/* ── 5. SECTIE-KOPPEN: comic underline ──────────────────────── */
.dashboard-section-heading {
    padding-bottom: 10px;
    border-bottom: 4px solid rgba(255, 255, 255, 0.30);
    margin-bottom: 20px;
}

.dashboard-section-heading h2 {
    text-shadow: 3px 3px 0 rgba(5, 5, 5, 0.5);
}

/* ── 6. STAT-GROEP-KAARTEN: gekleurde top-accents ──────────── */
.dashboard-group-card {
    border-top-width: 6px;
    padding: 18px;
    box-shadow: 7px 7px 0 var(--black), 0 0 0 4px var(--white);
    border-radius: 14px;
}

.dashboard-group-card.tone-pink {
    border-top-color: var(--pink);
    background: linear-gradient(180deg, #fff0f8 0%, var(--white) 45%);
}

.dashboard-group-card.tone-lime {
    border-top-color: #7ccc00;
    background: linear-gradient(180deg, #f2ffce 0%, var(--white) 45%);
}

.dashboard-group-card.tone-blue {
    border-top-color: var(--blue);
    background: linear-gradient(180deg, #e4f9ff 0%, var(--white) 45%);
}

/* ── 7. MINI-KAARTEN: gekleurde left-border + icon-cirkel ──── */
.dashboard-mini-card {
    padding: 12px;
    border-radius: 14px;
    border-width: 4px;
    background: linear-gradient(180deg, var(--white), #f3f8ff);
    box-shadow: 4px 4px 0 rgba(5, 5, 5, 0.20);
    gap: 5px;
    transition: transform 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.dashboard-group-card.tone-pink .dashboard-mini-card { border-left: 5px solid var(--pink); }
.dashboard-group-card.tone-lime .dashboard-mini-card { border-left: 5px solid #7ccc00; }
.dashboard-group-card.tone-blue .dashboard-mini-card { border-left: 5px solid var(--blue); }

.mini-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 3px solid var(--black);
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 2px 2px 0 var(--black);
    line-height: 1;
    margin-bottom: 2px;
}

/* ── 8. TAAK-KAARTEN: actief = groene tint + top-stripe ────── */
.dashboard-task-card.is-active {
    background: linear-gradient(180deg, #f2ffe8 0%, rgba(255, 255, 255, 0.98) 38%);
    border-top: 5px solid var(--lime);
}

.dashboard-task-card.is-disabled {
    background: linear-gradient(180deg, #f2f2f2, var(--white));
}

/* Task-icon als cirkel */
.task-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 3px solid var(--black);
    border-radius: 50%;
    font-size: 1.7rem;
    box-shadow: 3px 3px 0 var(--black);
    line-height: 1;
    margin-bottom: 4px;
}

.dashboard-task-card.is-disabled .task-icon {
    background: #d8d8d8;
    filter: grayscale(0.5);
}

/* ── 9. ACTIE-KAARTEN: donker navy i.p.v. puur zwart ─────────── */
.dashboard-action-card {
    background:
        radial-gradient(circle at 14px 14px, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px),
        #0d1a2e;
    background-size: 20px 20px, 100% 100%;
    border-width: 4px;
    border-color: var(--black);
    border-radius: 14px;
    box-shadow: 5px 5px 0 var(--black), 0 0 0 3px rgba(255, 255, 255, 0.12);
    padding: 16px;
}

/* Per-kaart kleuraccent bovenaan */
.dashboard-action-grid .dashboard-action-card:nth-child(1) { border-top: 5px solid var(--pink);   }
.dashboard-action-grid .dashboard-action-card:nth-child(2) { border-top: 5px solid var(--lime);   }
.dashboard-action-grid .dashboard-action-card:nth-child(3) { border-top: 5px solid var(--orange); }
.dashboard-action-grid .dashboard-action-card:nth-child(4) { border-top: 5px solid var(--cyan);   }
.dashboard-action-grid .dashboard-action-card:nth-child(5) { border-top: 5px solid var(--yellow); }
.dashboard-action-grid .dashboard-action-card:nth-child(6) { border-top: 5px solid var(--purple); }
.dashboard-action-grid .dashboard-action-card:nth-child(7) { border-top: 5px solid var(--pink);   }

/* Emoji-icoon als speels blok */
.dashboard-action-card > span:first-child {
    font-size: 2.2rem;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    line-height: 1;
    margin-bottom: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dashboard-action-card.is-active:hover,
.dashboard-action-card.is-active:focus-visible {
    background:
        radial-gradient(circle at 14px 14px, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px),
        #162034;
    background-size: 20px 20px, 100% 100%;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--black), 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* ── 10. NIEUWS-KAARTEN: getinte achtergronden ──────────────── */
.dashboard-news-card {
    border-radius: 14px;
    padding: 18px;
}

.dashboard-news-grid .dashboard-news-card:nth-child(1) {
    background: linear-gradient(180deg, #e6f4ff 0%, var(--white) 42%);
    border-top: 5px solid var(--blue);
}

.dashboard-news-grid .dashboard-news-card:nth-child(2) {
    background: linear-gradient(180deg, #fff3df 0%, var(--white) 42%);
    border-top: 5px solid var(--orange);
}

.dashboard-news-grid .dashboard-news-card:nth-child(3) {
    background: linear-gradient(180deg, #f3f0ff 0%, var(--white) 42%);
    border-top: 5px solid var(--purple);
}

/* News-icon als cirkel */
.news-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 3px solid var(--black);
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 3px 3px 0 var(--black);
    line-height: 1;
    margin-bottom: 4px;
}

/* ── 11. ACTIVITEIT-KAARTEN ────────────────────────────────── */
.dashboard-activity-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #eef6ff, var(--white) 42%);
    border-top: 5px solid var(--blue);
}

.dashboard-activity-grid .dashboard-activity-card:nth-child(2) {
    background: linear-gradient(180deg, #fff3fb, var(--white) 42%);
    border-top-color: var(--pink);
}

.dashboard-activity-grid .dashboard-activity-card:nth-child(3) {
    background: linear-gradient(180deg, #f2ffe8, var(--white) 42%);
    border-top-color: #7ccc00;
}

/* Compact-row rijen: subtiele kaartjes */
.compact-row {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 2px solid var(--black);
    border-radius: 8px;
    gap: 10px;
    box-shadow: 2px 2px 0 rgba(5, 5, 5, 0.15);
    font-size: 0.9rem;
}

/* ── 12. LEADERBOARD: verzamelkaart-stijl ──────────────────── */
.leaderboard-card {
    background: linear-gradient(180deg, #f5f0ff 0%, var(--white) 38%);
    border-top: 5px solid var(--purple);
    gap: 10px;
    border-radius: 14px;
}

.leader-row {
    min-height: 52px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 3px solid var(--black);
    border-radius: 10px;
    gap: 12px;
    box-shadow: 2px 2px 0 var(--black);
    transition: transform 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.leader-row:hover {
    transform: translate(-2px, -2px);
    background: var(--lime);
    box-shadow: 4px 4px 0 var(--black);
}

.rank {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    background: var(--black);
    color: var(--yellow);
    border-radius: 999px;
    font-weight: 1000;
    font-size: 0.86rem;
    flex-shrink: 0;
}

.score {
    color: var(--pink);
    font-weight: 1000;
    font-size: 1.08rem;
    margin-left: auto;
}

/* ── 13. FOOTER: arcade-balk ────────────────────────────────── */
.site-footer {
    margin-top: 60px;
    background: linear-gradient(180deg, #0d1a2e 0%, var(--black) 100%);
    border-top: 0;
    position: relative;
    padding: 28px max(20px, calc((100vw - 1440px) / 2));
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: repeating-linear-gradient(90deg,
        var(--pink)   0   60px,
        var(--yellow) 60px 120px,
        var(--lime)   120px 180px,
        var(--blue)   180px 240px,
        var(--orange) 240px 300px,
        var(--purple) 300px 360px
    );
}

.site-footer nav {
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer a {
    padding: 8px 14px;
    border: 2px solid rgba(255, 255, 255, 0.20);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--yellow);
    text-decoration: none;
    transition: background 130ms ease, border-color 130ms ease, color 130ms ease;
}

.site-footer a:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--yellow);
    color: var(--white);
}

.site-footer > span {
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.48);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── 14. FLASH-BERICHTEN: betere pill ───────────────────────── */
.flash {
    border-radius: 12px;
    box-shadow: 6px 6px 0 var(--black);
}

/* ── 15. DASHBOARD HOMEPAGE: rustiger, strakker, meer game-ui ───────── */
.dashboard-page .site-header {
    margin-top: 10px;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 3px solid rgba(255, 255, 255, 0.52);
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(5, 5, 5, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dashboard-page .logo-burst {
    align-self: center;
    min-height: 108px;
}

.dashboard-page .main-nav {
    padding: 8px 10px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
}

.dashboard-page .player-bar.dashboard-hud {
    justify-content: flex-start;
    margin-top: 10px;
    padding: 10px 12px;
    gap: 6px;
    background: rgba(5, 5, 5, 0.42);
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(5, 5, 5, 0.2);
}

.dashboard-page main {
    position: relative;
    margin-top: 18px;
    padding: 18px;
    border: 4px solid rgba(255, 255, 255, 0.58);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12)),
        linear-gradient(135deg, rgba(255, 212, 0, 0.12) 0 16%, transparent 16% 72%, rgba(255, 47, 146, 0.1) 72% 100%);
    box-shadow: 0 10px 28px rgba(5, 5, 5, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    overflow: hidden;
}

.dashboard-page main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
        radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px);
    background-size: 100% 100%, 24px 24px;
    opacity: 0.8;
}

.dashboard-page main > * {
    position: relative;
    z-index: 1;
}

.dashboard-shell {
    display: grid;
    gap: 22px;
}

.dashboard-first-view {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 20px;
    align-items: stretch;
}

.dashboard-priority-card {
    margin: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(247, 255, 232, 0.96), rgba(255, 255, 255, 0.98) 40%);
    border-top: 6px solid var(--lime);
    box-shadow: 7px 7px 0 var(--black), 0 0 0 4px rgba(255, 255, 255, 0.66);
}

.dashboard-priority-card .dashboard-section-heading {
    margin-bottom: 16px;
}

#today-to-do .dashboard-task-grid,
.dashboard-priority-card .dashboard-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#today-to-do .dashboard-task-card,
.dashboard-priority-card .dashboard-task-card {
    min-height: 60px;
    padding: 10px 12px;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

#today-to-do .dashboard-task-grid > *:last-child:nth-child(odd),
.dashboard-priority-card .dashboard-task-grid > *:last-child:nth-child(odd) {
    grid-column: auto;
}

#today-to-do .dashboard-task-grid > *:nth-last-child(2):nth-child(3n + 1),
.dashboard-priority-card .dashboard-task-grid > *:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 1;
}

#today-to-do .dashboard-task-grid > *:last-child:nth-child(3n + 2),
.dashboard-priority-card .dashboard-task-grid > *:last-child:nth-child(3n + 2) {
    grid-column: 2;
}

#today-to-do .dashboard-task-card strong,
.dashboard-priority-card .dashboard-task-card strong {
    font-size: 1rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

#today-to-do .dashboard-task-card small,
.dashboard-priority-card .dashboard-task-card small {
    font-size: 0.76rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

#today-to-do .dashboard-task-card.has-form .crew-button,
.dashboard-priority-card .dashboard-task-card.has-form .crew-button {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    min-width: 0;
    white-space: normal;
    text-align: center;
}

.dashboard-hero-card {
    margin: 0;
    min-height: 100%;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 300px);
    gap: 18px;
    padding: 24px;
    background:
        radial-gradient(circle at 24px 24px, rgba(5, 5, 5, 0.13) 0 3px, transparent 3px),
        linear-gradient(118deg, rgba(255, 212, 0, 0.92) 0 12%, transparent 12% 75%, rgba(255, 47, 146, 0.68) 75% 100%),
        linear-gradient(145deg, #10cfff 0%, #0497e2 62%, #00aeef 100%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
}

.dashboard-hero-copy {
    min-width: 0;
    gap: 12px;
}

.dashboard-hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    text-shadow: 4px 4px 0 var(--pink), 7px 7px 0 var(--black);
    overflow-wrap: anywhere;
}

.dashboard-hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-hero-chip {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
        "icon value"
        "icon meta";
    align-items: center;
    gap: 1px 8px;
    padding: 10px 12px;
    color: var(--white);
    text-decoration: none;
    background: rgba(9, 21, 43, 0.72);
    border: 3px solid rgba(255, 255, 255, 0.46);
    border-radius: 14px;
    box-shadow: 4px 4px 0 rgba(5, 5, 5, 0.38);
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.dashboard-hero-chip:hover,
.dashboard-hero-chip:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(5, 5, 5, 0.44);
    background: rgba(12, 31, 62, 0.86);
}

.dashboard-hero-chip > span {
    grid-area: icon;
    font-size: 1.4rem;
    line-height: 1;
}

.dashboard-hero-chip strong {
    grid-area: value;
    font-size: 1rem;
    line-height: 1.1;
}

.dashboard-hero-chip small {
    grid-area: meta;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
}

.dashboard-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.dashboard-hero-actions .crew-button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: clamp(10px, 1.1vw, 14px) clamp(14px, 2vw, 20px);
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
    font-size: clamp(0.96rem, 1.15vw, 1.12rem);
    line-height: 1.12;
}

.dashboard-section {
    margin: 0;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-section-heading h2 {
    margin: 0;
}

.dashboard-stat-groups,
.dashboard-action-grid,
.dashboard-activity-grid,
.dashboard-news-grid,
.leaderboard-grid {
    gap: 20px;
}

.dashboard-group-card,
.dashboard-task-card,
.dashboard-action-card,
.dashboard-activity-card,
.dashboard-news-card,
.leaderboard-card {
    box-shadow: 7px 7px 0 rgba(5, 5, 5, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.6);
}

.dashboard-mini-card {
    min-height: 144px;
    padding: 14px;
    box-shadow: 4px 4px 0 rgba(5, 5, 5, 0.18);
}

.dashboard-task-card,
.dashboard-news-card {
    padding: 16px;
}

.dashboard-action-card {
    min-height: 94px;
    padding: 10px 12px;
    gap: 5px;
}

.dashboard-action-card small {
    color: #ffe76f;
    font-size: 0.78rem;
    line-height: 1.2;
}

.dashboard-action-card strong {
    font-size: 1rem;
    line-height: 1.05;
}

.dashboard-activity-card {
    padding: 18px;
}

.dashboard-page .site-footer {
    margin-top: 26px;
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -6px 18px rgba(5, 5, 5, 0.14);
}

.shop-location-visual {
    margin: 8px 0 2px;
    overflow: hidden;
    border: 4px solid var(--black);
    border-radius: 16px;
    box-shadow: 6px 6px 0 rgba(5, 5, 5, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.7);
    background: #dff6ff;
}

.shop-location-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.shop-mission-card {
    margin-bottom: 20px;
    background:
        radial-gradient(circle at top right, rgba(182, 255, 0, 0.2), transparent 35%),
        linear-gradient(180deg, #fffdf4 0%, #ffffff 100%);
}

/* ── 15. MEDIA QUERIES: responsief behoud ───────────────────── */
@media (max-width: 900px) {
    .dashboard-page .site-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-page .main-nav {
        padding: 6px;
    }

    .dashboard-page main {
        padding: 16px;
        border-radius: 22px;
    }

    .dashboard-first-view {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-priority-card {
        padding: 18px;
    }

    #today-to-do .dashboard-task-grid,
    .dashboard-priority-card .dashboard-task-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #today-to-do .dashboard-task-grid > *:last-child:nth-child(odd),
    .dashboard-priority-card .dashboard-task-grid > *:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .site-header {
        padding: 8px 12px;
        border-radius: 14px;
    }

    .player-bar.dashboard-hud {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .dashboard-hero-card {
        padding: 16px;
        border-radius: 14px;
    }

    .dashboard-hero-copy {
        padding: 16px 18px;
    }

    .task-icon,
    .news-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .mini-icon {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .dashboard-page main {
        padding: 12px;
        border-radius: 18px;
    }

    .dashboard-hero-badges {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-chip {
        padding: 9px 10px;
    }

    .dashboard-hero-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-priority-card,
    .dashboard-hero-card {
        padding: 14px;
    }

    #today-to-do .dashboard-task-grid,
    .dashboard-priority-card .dashboard-task-grid {
        grid-template-columns: 1fr;
    }

    #today-to-do .dashboard-task-grid > *:last-child:nth-child(odd),
    .dashboard-priority-card .dashboard-task-grid > *:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .dashboard-section-heading {
        align-items: start;
        flex-direction: column;
    }

    .site-header {
        border-radius: 10px;
        padding: 6px 10px;
    }

    .player-bar.dashboard-hud {
        border-radius: 10px;
    }

    .site-footer {
        padding: 20px 14px;
    }

    .site-footer a {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .dashboard-hero-art {
        border-radius: 10px;
    }

    .tower-game-frame,
    .tower-game-frame iframe {
        min-height: 62vh;
        height: 62vh;
    }
}
