/* =========================================================
   Zecod — design system
   ========================================================= */
:root {
    --bg: #070a12;
    --bg-soft: #0b101c;
    --surface: #101827;
    --surface-2: #151f33;
    --surface-3: #1b2740;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text: #edf3ff;
    --text-soft: #c7d2e5;
    --muted: #8b9ab3;
    --accent: #b6ff3b;
    --accent-2: #7c5cff;
    --accent-3: #43d9ff;
    --danger: #ff5c7a;
    --warning: #ffc857;
    --success: #5ce1a4;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --font: "Inter", "Segoe UI", "SF Pro Display", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(182, 255, 59, 0.10), transparent 65%),
        radial-gradient(800px 500px at 92% 2%, rgba(124, 92, 255, 0.16), transparent 68%),
        linear-gradient(180deg, #080b14 0%, #070a12 55%, #090c16 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, p {
    margin-top: 0;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.025em;
}

::selection {
    background: var(--accent);
    color: #05070d;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), 100% - 48px);
    margin-inline: auto;
}

.page {
    position: relative;
    padding-bottom: 96px;
}

.ambient {
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.24;
    pointer-events: none;
}

.ambient--one {
    width: 420px;
    height: 420px;
    background: #5f4bff;
    top: 30%;
    left: -220px;
}

.ambient--two {
    width: 360px;
    height: 360px;
    background: #67a80a;
    top: 62%;
    right: -180px;
}

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(100deg, var(--accent) 5%, #e8ffb0 45%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.muted {
    color: var(--muted);
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
    vertical-align: middle;
}

.pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(182, 255, 59, 0.5);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(182, 255, 59, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(182, 255, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(182, 255, 59, 0); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--accent);
    color: #071006;
    box-shadow: 0 10px 30px rgba(182, 255, 59, 0.16);
}

.btn--primary:hover {
    background: #c7ff67;
    box-shadow: 0 14px 36px rgba(182, 255, 59, 0.24);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(182, 255, 59, 0.4);
}

.btn--danger-ghost {
    background: rgba(255, 92, 122, 0.06);
    border-color: rgba(255, 92, 122, 0.28);
    color: #ff9aab;
}

.btn--danger-ghost:hover {
    background: rgba(255, 92, 122, 0.12);
}

.btn--sm {
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.btn--lg {
    min-height: 52px;
    padding: 14px 26px;
    font-size: 15px;
}

.btn--block {
    width: 100%;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    transition: color 180ms ease, gap 180ms ease;
}

.link-arrow span {
    color: var(--accent);
}

.link-arrow:hover {
    color: var(--accent);
    gap: 12px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
    background: rgba(7, 10, 18, 0.82);
    border-bottom-color: var(--border);
    backdrop-filter: blur(18px);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--accent), #70c900);
    color: #071006;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.08em;
    box-shadow: 0 8px 24px rgba(182, 255, 59, 0.22);
}

.brand__text {
    display: flex;
    flex-direction: column;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand__text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.brand--small .brand__mark {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.brand--small .brand__text {
    font-size: 17px;
}

.brand--large {
    gap: 14px;
}

.brand--large .brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 30px;
}

.brand--large .brand__text {
    font-size: 26px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.site-nav a.is-active {
    color: var(--accent);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 7px;
}

.user-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 9px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, background 180ms ease;
}

.user-chip:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.user-chip__name {
    max-width: 120px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.count-badge {
    position: absolute;
    top: -4px;
    right: -3px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--bg);
    border-radius: 999px;
    background: var(--accent);
    color: #071006;
    font-size: 10px;
    font-weight: 800;
}

.logout-form {
    margin: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Avatars & chips
   ========================================================= */
.avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.4), transparent 45%),
        var(--avatar-color, var(--accent));
    color: #071006;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.avatar img,
.avatar__image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

.avatar--sm {
    width: 30px;
    height: 30px;
    font-size: 10px;
}

.avatar--xl {
    width: 78px;
    height: 78px;
    font-size: 24px;
}

.avatar--more {
    background: var(--surface-3);
    color: var(--text-soft);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack .avatar {
    margin-left: -10px;
    border: 2px solid var(--surface);
    width: 36px;
    height: 36px;
    font-size: 10px;
}

.avatar-stack .avatar:first-child {
    margin-left: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag--host {
    border-color: rgba(182, 255, 59, 0.3);
    background: rgba(182, 255, 59, 0.08);
    color: var(--accent);
}

.count-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.game-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    transition: border-color 180ms ease, color 180ms ease;
}

.game-chip:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.game-chip--small {
    padding: 3px 9px;
    font-size: 11px;
}

.game-chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* =========================================================
   Flash messages
   ========================================================= */
.toasts {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 44px 14px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(16, 24, 39, 0.96);
    box-shadow: var(--shadow);
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
    animation: toast-in 260ms ease both;
}

.toast--success {
    border-color: rgba(92, 225, 164, 0.3);
}

.toast--success .toast__icon {
    color: var(--success);
}

.toast--error {
    border-color: rgba(255, 92, 122, 0.32);
}

.toast--error .toast__icon {
    color: var(--danger);
}

.toast__icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 800;
}

.toast__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.toast__close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.toast {
    position: relative;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--border);
    background: rgba(8, 12, 21, 0.55);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    padding: 52px 0 40px;
}

.footer__brand p {
    max-width: 320px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer__nav > div {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer__title {
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer__nav a {
    width: fit-content;
    color: var(--muted);
    font-size: 13px;
    transition: color 180ms ease;
}

.footer__nav a:hover {
    color: var(--accent);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.footer__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.status-light {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(92, 225, 164, 0.8);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 48px;
    align-items: center;
    padding-top: 74px;
    padding-bottom: 84px;
}

.hero__content h1 {
    margin: 20px 0 22px;
    font-size: clamp(44px, 6vw, 82px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero__lead {
    max-width: 550px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__stats {
    display: flex;
    gap: 34px;
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat strong {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero__visual {
    position: relative;
    min-height: 460px;
    padding: 24px;
}

.hero__visual::before {
    content: "";
    position: absolute;
    inset: 8% 4% 4% 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.26), transparent 65%);
    filter: blur(30px);
}

.hero-card {
    position: relative;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(27, 39, 64, 0.95), rgba(13, 19, 33, 0.98));
    box-shadow: var(--shadow);
}

.hero-card--main {
    z-index: 2;
    width: min(100%, 390px);
    margin: 16px auto 0;
    padding: 20px;
    transform: rotate(-1.7deg);
}

.hero-card__top,
.hero-card__bottom,
.hero-card__players {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(182, 255, 59, 0.1);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.tiny-label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero-card__game {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.hero-card__game strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.hero-card__game small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.game-orb {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(182, 255, 59, 0.25), rgba(124, 92, 255, 0.3));
    border: 1px solid rgba(182, 255, 59, 0.28);
    color: var(--accent);
    font-size: 16px;
    font-weight: 900;
}

.hero-card__players {
    margin: 18px 0 10px;
}

.capacity {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.capacity > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #7ef29a);
    box-shadow: 0 0 14px rgba(182, 255, 59, 0.35);
}

.capacity--large {
    height: 7px;
    margin-bottom: 12px;
}

.hero-card__bottom {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
}

.hero-card--float {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    padding: 12px 14px;
    background: rgba(16, 24, 39, 0.97);
    transform: rotate(2.4deg);
}

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

.hero-card--float strong {
    font-size: 11px;
}

.hero-card--float small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.float-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: rgba(124, 92, 255, 0.18);
    font-size: 16px;
}

.hero-card--mini {
    position: absolute;
    z-index: 3;
    right: 6px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 170px;
    padding: 14px 16px;
    background: linear-gradient(155deg, rgba(27, 39, 64, 0.98), rgba(13, 19, 33, 0.99));
    transform: rotate(2deg);
}

.hero-card--mini strong {
    font-size: 15px;
}

.hero-card--mini > span:last-child {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
    padding-top: 64px;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section__head h2 {
    margin: 10px 0 0;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
}

.section__head .link-arrow {
    padding-bottom: 5px;
}

/* =========================================================
   Event cards
   ========================================================= */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(21, 31, 51, 0.9), rgba(13, 20, 34, 0.98));
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(182, 255, 59, 0.28);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.event-card__cover {
    position: relative;
    display: block;
    height: 146px;
    overflow: hidden;
    background:
        radial-gradient(130% 120% at 18% 0%, color-mix(in srgb, var(--accent) 50%, transparent) 0%, transparent 56%),
        linear-gradient(135deg, #1c2740, #0e1523 72%);
}

.event-card__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: perspective(300px) rotateX(48deg) scale(1.5) translateY(-16%);
    transform-origin: center bottom;
}

.event-card__scanlines {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.18) 3px 4px);
    mix-blend-mode: overlay;
}

.event-card__game {
    position: absolute;
    top: 14px;
    left: 16px;
    color: color-mix(in srgb, var(--accent) 74%, white);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.event-card__date {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    padding: 7px 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    background: rgba(7, 10, 18, 0.72);
    backdrop-filter: blur(8px);
}

.event-card__date strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.event-card__date small {
    margin-top: 3px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px 18px 15px;
}

.event-card__meta {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.event-card__title {
    margin: 8px 0 5px;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.event-card__title a {
    transition: color 180ms ease;
}

.event-card__title a:hover {
    color: var(--accent);
}

.event-card__host {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 12px;
}

.event-card__host span {
    color: var(--text-soft);
}

.event-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.event-status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.event-status--open {
    color: var(--success);
}

.event-status--full {
    color: var(--warning);
}

.event-status--past {
    color: #7e8ba3;
}

.event-status--cancelled {
    color: var(--danger);
}

.event-card__seats {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
}

.event-card__seats strong {
    color: var(--text-soft);
    font-weight: 800;
}

.event-card__seats svg {
    margin-right: 2px;
    color: var(--muted);
}

.event-card--past {
    opacity: 0.72;
}

.event-card--cancelled {
    opacity: 0.62;
}

.event-card--cancelled .event-card__cover {
    filter: grayscale(0.7);
}

/* =========================================================
   Games
   ========================================================= */
.game-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.game-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 172px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(23, 33, 53, 0.9), rgba(12, 18, 31, 0.98));
    transition: transform 200ms ease, border-color 200ms ease;
}

.game-tile:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.game-tile__glow {
    position: absolute;
    top: -42px;
    right: -42px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.18;
    filter: blur(26px);
}

.game-tile__initials {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
}

.game-tile__name {
    margin-top: auto;
    padding-top: 18px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

.game-tile__meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.game-tile__players {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 10px;
}

.game-tile__arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--accent);
    font-size: 14px;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.game-tile:hover .game-tile__arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Game catalog */
.game-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.game-catalog__card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(23, 33, 53, 0.9), rgba(12, 18, 31, 0.98));
    transition: transform 220ms ease, border-color 220ms ease;
}

.game-catalog__card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}

.game-catalog__glow {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.11;
    filter: blur(40px);
}

.game-catalog__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.game-catalog__initials {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent) 11%, transparent);
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
}

.game-catalog__card h2 {
    margin: 22px 0 8px;
    font-size: 26px;
}

.game-catalog__card p {
    max-width: 460px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.game-catalog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 12px;
}

/* Game hero */
.game-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
    padding: 34px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
    border-radius: var(--radius-xl);
    background:
        radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
        linear-gradient(140deg, rgba(21, 31, 51, 0.95), rgba(10, 16, 28, 0.98));
}

.game-hero__badge {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    border-radius: 28px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.06em;
    box-shadow: inset 0 0 40px color-mix(in srgb, var(--accent) 10%, transparent);
}

.game-hero__content {
    flex: 1;
}

.game-hero__content h1 {
    margin: 7px 0 9px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
}

.game-hero__content p {
    max-width: 620px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.game-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.game-admin-form {
    margin: 0;
}

.field--color .color-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.field--color input[type="color"] {
    width: 52px;
    min-width: 52px;
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.field--color .field__hint {
    margin: 0;
}

/* =========================================================
   Steps & CTA
   ========================================================= */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(21, 31, 51, 0.7), rgba(11, 16, 28, 0.9));
}

.step__number {
    display: block;
    margin-bottom: 30px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.step h3 {
    margin-bottom: 9px;
    font-size: 19px;
    font-weight: 750;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.step::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.04;
}

.cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-top: 78px;
    padding: 40px 42px;
    overflow: hidden;
    border: 1px solid rgba(182, 255, 59, 0.22);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(80% 150% at 0% 0%, rgba(182, 255, 59, 0.14), transparent 60%),
        radial-gradient(70% 140% at 100% 100%, rgba(124, 92, 255, 0.16), transparent 60%),
        rgba(13, 20, 34, 0.9);
}

.cta-band::after {
    content: "Z";
    position: absolute;
    right: 190px;
    top: -50px;
    color: rgba(255, 255, 255, 0.025);
    font-size: 280px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.cta-band h2 {
    margin: 8px 0 8px;
    font-size: clamp(25px, 3vw, 34px);
}

.cta-band p {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.cta-band .btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

/* =========================================================
   Page header, breadcrumbs
   ========================================================= */
.page-head {
    padding-top: 34px;
    padding-bottom: 28px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs a {
    transition: color 180ms ease;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    color: #526179;
}

.page-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.page-head h1 {
    margin: 9px 0 10px;
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.page-head p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================================================
   Filters
   ========================================================= */
.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) minmax(150px, 0.8fr) minmax(140px, 0.65fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(16, 24, 39, 0.68);
}

.filter-bar__actions {
    display: flex;
    gap: 8px;
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.results-head strong {
    color: var(--text);
    font-weight: 800;
}

.results-head__hint {
    font-size: 11px;
}

/* =========================================================
   Forms
   ========================================================= */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field__label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.field__label em {
    color: var(--accent);
    font-style: normal;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(8, 12, 21, 0.58);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% + 1px),
        calc(100% - 13px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #5f6e86;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(182, 255, 59, 0.55);
    background: rgba(8, 12, 21, 0.78);
    box-shadow: 0 0 0 3px rgba(182, 255, 59, 0.1);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
    border-color: rgba(255, 92, 122, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 92, 122, 0.08);
}

.field__hint {
    color: #6d7c94;
    font-size: 10px;
    line-height: 1.5;
}

.field__error {
    color: #ff96a8;
    font-size: 11px;
    line-height: 1.4;
}

.input-with-icon {
    position: relative;
    display: block;
}

.input-with-icon svg {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 39px;
}

.input-with-suffix {
    position: relative;
    display: block;
}

.input-with-suffix input {
    padding-right: 45px;
}

.input-with-suffix > span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--muted);
    font-size: 11px;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 4px;
}

.form-alert--error {
    border-color: rgba(255, 92, 122, 0.3);
    background: rgba(255, 92, 122, 0.08);
    color: #ffadba;
}

.form-alert--success {
    border-color: rgba(92, 225, 164, 0.3);
    background: rgba(92, 225, 164, 0.08);
    color: #a5f4cf;
}

/* =========================================================
   Panels, event form
   ========================================================= */
.panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(18, 27, 45, 0.82), rgba(10, 16, 28, 0.94));
}

.panel--accent {
    border-color: rgba(182, 255, 59, 0.18);
    background:
        radial-gradient(100% 120% at 0% 0%, rgba(182, 255, 59, 0.08), transparent 62%),
        linear-gradient(165deg, rgba(18, 27, 45, 0.9), rgba(10, 16, 28, 0.96));
}

.panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.panel__head h2 {
    margin: 7px 0 0;
    font-size: 23px;
    font-weight: 780;
}

.panel h3 {
    margin: 8px 0 10px;
    font-size: 18px;
}

.panel p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.panel p:last-child {
    margin-bottom: 0;
}

.panel .link-arrow {
    font-size: 12px;
}

.event-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
}

.event-form__main {
    padding: 28px;
}

.event-form__aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field--wide {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

.check-list--large li {
    font-size: 13px;
}

/* =========================================================
   Event detail
   ========================================================= */
.event-hero {
    position: relative;
    padding-top: 12px;
}

.event-hero::before {
    content: "";
    position: absolute;
    top: 6%;
    left: 12%;
    width: 380px;
    height: 280px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.07;
    filter: blur(70px);
    pointer-events: none;
}

.event-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 36px;
    align-items: start;
}

.event-hero__content h1 {
    max-width: 760px;
    margin: 15px 0 22px;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.event-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.event-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 650px;
    margin-bottom: 26px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(16, 24, 39, 0.55);
}

.meta-item__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
}

.meta-item small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-item strong {
    display: block;
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 650;
}

.event-hero__description {
    max-width: 720px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.event-hero__description p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
}

.event-hero__aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-action-panel {
    padding: 22px;
}

.capacity-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.capacity-head strong {
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
}

.capacity-caption {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
}

.capacity-caption strong {
    color: var(--text);
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-actions form {
    margin: 0;
}

.action-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.invite-response {
    padding: 14px;
    border: 1px solid rgba(182, 255, 59, 0.22);
    border-radius: 13px;
    background: rgba(182, 255, 59, 0.05);
}

.invite-response .eyebrow {
    font-size: 10px;
}

.invite-response p {
    margin: 7px 0 12px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.invite-response form + form {
    margin-top: 8px;
}

.you-are-in,
.host-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(92, 225, 164, 0.2);
    border-radius: 12px;
    background: rgba(92, 225, 164, 0.06);
}

.host-note {
    border-color: rgba(182, 255, 59, 0.2);
    background: rgba(182, 255, 59, 0.05);
}

.you-are-in__check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(92, 225, 164, 0.15);
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
}

.host-note .you-are-in__check {
    background: rgba(182, 255, 59, 0.12);
    color: var(--accent);
}

.you-are-in strong,
.host-note strong {
    display: block;
    color: var(--text);
    font-size: 12px;
}

.you-are-in small,
.host-note small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.login-cta {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.login-cta p {
    margin: 0 0 11px;
    color: var(--text-soft);
    font-size: 12px;
}

.auth-link {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
    transition: color 180ms ease;
}

.auth-link:hover {
    color: var(--accent);
}

.event-state-note {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.host-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.host-actions form {
    margin: 0;
}

.host-panel .host-card {
    margin: 12px 0;
}

.host-card {
    display: flex;
    align-items: center;
    gap: 11px;
}

.host-card strong {
    display: block;
    font-size: 13px;
}

.host-card small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.event-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
    margin-top: 34px;
}

.event-content-main,
.event-content-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.participant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
}

.participant__info {
    min-width: 0;
    flex: 1;
}

.participant__info strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant__info small {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pending-invites {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.pending-invites h3 {
    margin: 0 0 12px;
    font-size: 14px;
}

.pending-invites h3 span {
    color: var(--accent);
}

.pending-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    color: var(--text-soft);
    font-size: 12px;
}

.pending-row .tag {
    margin-left: auto;
}

.invite-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 18px;
    border: 1px dashed rgba(182, 255, 59, 0.25);
    border-radius: 13px;
    background: rgba(182, 255, 59, 0.035);
}

.invite-box h3 {
    margin: 6px 0 4px;
    font-size: 16px;
}

.invite-box p {
    margin: 0;
    font-size: 11px;
}

.invite-form {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    flex: 0 0 auto;
}

.invite-form input {
    min-width: 190px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(8, 12, 21, 0.7);
    color: var(--text);
    font-size: 12px;
}

.invite-form input:focus {
    border-color: rgba(182, 255, 59, 0.5);
    outline: none;
}

.user-picker {
    position: relative;
    min-width: 220px;
    flex: 1;
}

.user-picker__field {
    position: relative;
}

.user-picker__field .user-picker__input {
    width: 100%;
    min-width: 0;
    padding-left: 34px;
}

.user-picker__icon {
    position: absolute;
    top: 50%;
    left: 11px;
    z-index: 1;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.user-picker__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 238px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(10, 16, 28, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.user-picker__dropdown[hidden] {
    display: none;
}

.user-picker__option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    text-align: left;
    transition: background 150ms ease;
}

.user-picker__option:hover,
.user-picker__option.is-active {
    background: rgba(182, 255, 59, 0.08);
}

.user-picker__option[hidden] {
    display: none;
}

.user-picker__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-picker__text strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.user-picker__empty {
    padding: 12px 8px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.notice {
    margin-top: 18px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 12px 0 0;
}

.detail-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.detail-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 11px;
}

.detail-list dd {
    margin: 0;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

/* =========================================================
   Users directory
   ========================================================= */
.filter-bar--users {
    grid-template-columns: minmax(0, 1fr) auto;
}

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

.user-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(21, 31, 51, 0.72), rgba(11, 16, 28, 0.9));
    transition: transform 200ms ease, border-color 200ms ease;
}

.user-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.user-card__head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.user-card__head .avatar--xl {
    width: 64px;
    height: 64px;
    font-size: 20px;
}

.user-card__identity {
    min-width: 0;
    flex: 1;
}

.user-card__identity h2 {
    margin: 0;
    overflow: hidden;
    font-size: 18px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card__identity p {
    margin: 3px 0 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
}

.user-card__head > .tag {
    align-self: flex-start;
}

.user-card__bio {
    display: -webkit-box;
    min-height: 60px;
    margin: 16px 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.user-card__bio--muted {
    color: var(--muted);
}

.user-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
}

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

@media (max-width: 720px) {
    .filter-bar--users {
        grid-template-columns: 1fr;
    }

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

/* =========================================================
   Profile
   ========================================================= */
.profile-head {
    padding-top: 38px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(60% 130% at 0% 0%, rgba(124, 92, 255, 0.14), transparent 65%),
        linear-gradient(150deg, rgba(21, 31, 51, 0.9), rgba(10, 16, 28, 0.96));
}

.profile-avatar {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 190px;
}

.profile-avatar .avatar--xl {
    width: 86px;
    height: 86px;
    font-size: 26px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.avatar-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.avatar-file {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.avatar-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.avatar-file:focus-within .btn {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.avatar-delete {
    margin: 0;
}

.avatar-remove {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.avatar-remove:hover {
    border-color: rgba(255, 92, 122, 0.4);
    background: rgba(255, 92, 122, 0.08);
    color: #ff9aab;
}

.avatar-hint {
    color: #66758d;
    font-size: 9px;
    line-height: 1.45;
    text-align: center;
}

.profile-card__info {
    flex: 1;
    min-width: 0;
}

.profile-card__info h1 {
    margin: 6px 0 7px;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
}

.profile-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.profile-stat {
    padding: 17px 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(16, 24, 39, 0.5);
}

.profile-stat strong {
    display: block;
    color: var(--accent);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.profile-stat span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
    margin-top: 22px;
}

.profile-main,
.profile-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-aside {
    position: sticky;
    top: 100px;
}

.profile-event-list,
.invitation-list {
    display: flex;
    flex-direction: column;
}

.profile-event {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.profile-event:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-event__date,
.invitation-row__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 56px;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
    border-radius: 11px;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.profile-event__date strong,
.invitation-row__date strong {
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}

.profile-event__date small,
.invitation-row__date small {
    margin-top: 3px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.profile-event__body {
    flex: 1;
    min-width: 0;
}

.profile-event__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
}

.profile-event__body h3 {
    margin: 4px 0 3px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-event__body h3 a:hover {
    color: var(--accent);
}

.profile-event__body p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.profile-event-list--muted .profile-event {
    opacity: 0.68;
}

.row-arrow {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    font-size: 13px;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.row-arrow:hover {
    border-color: var(--accent);
    background: rgba(182, 255, 59, 0.08);
    color: var(--accent);
}

.invitation-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(182, 255, 59, 0.17);
    border-radius: 14px;
    background: rgba(182, 255, 59, 0.03);
}

.invitation-row + .invitation-row {
    margin-top: 9px;
}

.invitation-row__body {
    flex: 1;
    min-width: 0;
}

.invitation-row__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
}

.invitation-row__body h3 {
    margin: 5px 0 3px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invitation-row__body h3 a:hover {
    color: var(--accent);
}

.invitation-row__body p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.invitation-row__body p strong {
    color: var(--text-soft);
}

.invitation-row__actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.invitation-row__actions form {
    margin: 0;
}

.compact-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.015);
}

.compact-empty__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 18px;
}

.compact-empty div {
    flex: 1;
}

.compact-empty strong {
    display: block;
    font-size: 13px;
}

.compact-empty p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.quick-links {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 12px;
    transition: color 180ms ease;
}

.quick-links a:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.quick-links a span {
    color: var(--accent);
}

.quick-links a:hover {
    color: var(--accent);
}

/* =========================================================
   Auth
   ========================================================= */
.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 44px;
    align-items: stretch;
    min-height: calc(100vh - 180px);
    padding-top: 48px;
    padding-bottom: 40px;
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 590px;
    padding: 42px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(80% 80% at 90% 10%, rgba(124, 92, 255, 0.2), transparent 60%),
        radial-gradient(70% 70% at 10% 90%, rgba(182, 255, 59, 0.12), transparent 60%),
        linear-gradient(150deg, rgba(21, 31, 51, 0.85), rgba(9, 14, 24, 0.98));
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 80%);
}

.auth-visual__content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.auth-visual__content h1 {
    margin: 42px 0 18px;
    font-size: clamp(34px, 4.3vw, 54px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.auth-visual__content > p {
    max-width: 430px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.auth-visual__quote {
    position: relative;
    max-width: 390px;
    margin-top: 44px;
    padding: 18px 18px 16px 40px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.auth-visual__quote p {
    margin: 0 0 7px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.quote-mark {
    position: absolute;
    top: 4px;
    left: 13px;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1;
}

.auth-visual__author {
    color: var(--muted);
    font-size: 10px;
}

.auth-orbit {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.orbit-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(9, 14, 24, 0.8);
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    backdrop-filter: blur(8px);
}

.orbit-card small {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 0.04em;
}

.orbit-card--one {
    top: 16%;
    right: 5%;
    transform: rotate(5deg);
}

.orbit-card--two {
    right: 22%;
    bottom: 14%;
    transform: rotate(-4deg);
}

.orbit-card--three {
    display: none;
}

.auth-visual--register .orbit-card--one {
    top: 12%;
    right: 7%;
}

.auth-visual--register .orbit-card--two {
    right: 7%;
    bottom: 10%;
}

.auth-orbit--register .orbit-card--three {
    display: flex;
    top: 45%;
    right: 2%;
}

.auth-card {
    align-self: center;
    padding: 32px;
}

.auth-card__head {
    margin-bottom: 22px;
}

.auth-card__head h2 {
    margin: 7px 0 7px;
    font-size: 29px;
    font-weight: 800;
}

.auth-card__head p {
    margin: 0;
    font-size: 12px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-switch {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 700;
}

.form-legal {
    margin: -2px 0 0;
    color: #66758d;
    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}

.demo-box {
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px dashed var(--border-strong);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.02);
}

.demo-box p {
    margin: 6px 0 10px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.demo-box code {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 10px;
}

.demo-box__users {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip-button {
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    transition: color 180ms ease, border-color 180ms ease;
}

.chip-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================================================
   Empty states
   ========================================================= */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px 24px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    text-align: center;
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 27px;
}

.empty-state h3 {
    margin: 0 0 7px;
    font-size: 20px;
}

.empty-state p {
    max-width: 430px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* =========================================================
   Error pages
   ========================================================= */
.error-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px;
}

.error-page {
    width: min(620px, 100%);
    text-align: center;
}

.error-page .brand {
    justify-content: center;
    margin-bottom: 42px;
}

.error-code {
    color: var(--accent);
    font-family: var(--mono);
    font-size: clamp(78px, 16vw, 150px);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.9;
    text-shadow: 0 0 60px rgba(182, 255, 59, 0.18);
}

.error-page h1 {
    margin: 24px 0 10px;
    font-size: clamp(27px, 4vw, 38px);
}

.error-page p {
    max-width: 460px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1120px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 34px;
    }

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

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

    .event-hero__grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 24px;
    }

    .event-content-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .profile-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .auth-page {
        grid-template-columns: minmax(0, 1fr) 440px;
        gap: 28px;
    }
}

@media (max-width: 980px) {
    .container {
        width: min(var(--container), 100% - 36px);
    }

    .header__inner {
        gap: 14px;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 12px;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius);
        background: rgba(10, 16, 28, 0.98);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 11px 12px;
    }

    .header__actions {
        margin-left: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 54px;
    }

    .hero__content {
        max-width: 680px;
    }

    .hero__visual {
        width: min(520px, 100%);
        margin-inline: auto;
        min-height: 430px;
    }

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

    .event-form__aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .event-hero__grid {
        grid-template-columns: 1fr;
    }

    .event-hero__aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .event-action-panel {
        grid-row: span 2;
    }

    .event-content-grid {
        grid-template-columns: 1fr;
    }

    .event-content-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

    .profile-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .auth-page {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 30px;
    }

    .auth-visual {
        min-height: 380px;
        padding: 30px;
    }

    .auth-visual__content h1 {
        margin-top: 28px;
        font-size: 38px;
    }

    .auth-visual__quote {
        display: none;
    }

    .auth-card {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .game-hero {
        flex-wrap: wrap;
    }

    .game-hero .btn {
        width: 100%;
    }

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

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), 100% - 28px);
    }

    .header__inner {
        min-height: 66px;
    }

    .brand__text small {
        display: none;
    }

    .user-chip__name {
        display: none;
    }

    .header__actions .btn--ghost {
        display: none;
    }

    .hero {
        padding-top: 36px;
    }

    .hero__content h1 {
        font-size: 42px;
    }

    .hero__lead {
        font-size: 15px;
    }

    .hero__stats {
        gap: 22px;
        margin-top: 34px;
    }

    .stat strong {
        font-size: 21px;
    }

    .hero__visual {
        min-height: 390px;
        padding: 8px;
    }

    .hero-card--float {
        right: -4px;
        width: 210px;
    }

    .hero-card--mini {
        right: 0;
        bottom: 0;
    }

    .section {
        padding-top: 48px;
    }

    .section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

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

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

    .step__number {
        margin-bottom: 18px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .filter-bar__actions .btn {
        flex: 1;
    }

    .results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .page-head {
        padding-top: 24px;
    }

    .page-head__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .page-head__row .btn {
        width: 100%;
    }

    .event-hero__meta {
        grid-template-columns: 1fr;
    }

    .event-hero__aside,
    .event-content-aside,
    .event-form__aside,
    .profile-aside {
        display: flex;
        flex-direction: column;
    }

    .event-hero__content h1 {
        font-size: 38px;
    }

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

    .invite-box {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .invite-form {
        flex-direction: column;
    }

    .invite-form input {
        min-width: 0;
    }

    .user-picker {
        width: 100%;
        min-width: 0;
    }

    .profile-card {
        flex-wrap: wrap;
        padding: 20px;
    }

    .profile-card .btn {
        width: 100%;
    }

    .profile-avatar {
        width: 100%;
    }

    .profile-avatar .btn {
        width: auto;
    }

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

    .invitation-row {
        flex-wrap: wrap;
    }

    .invitation-row__actions {
        width: 100%;
    }

    .invitation-row__actions .btn {
        flex: 1;
    }

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

    .auth-form__row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-visual {
        min-height: 320px;
        padding: 24px;
    }

    .auth-visual__content h1 {
        font-size: 32px;
    }

    .game-hero {
        padding: 22px;
        gap: 18px;
    }

    .game-hero__badge {
        width: 78px;
        height: 78px;
        border-radius: 20px;
        font-size: 25px;
    }

    .cta-band {
        margin-top: 48px;
    }

    .footer__nav {
        gap: 24px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .toasts {
        top: 76px;
        right: 14px;
    }
}

@media (max-width: 520px) {
    .hero__content h1 {
        font-size: 36px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 18px 28px;
    }

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

    .game-tile {
        min-height: 148px;
    }

    .profile-stats {
        gap: 8px;
    }

    .profile-stat {
        padding: 13px 14px;
    }

    .profile-stat strong {
        font-size: 21px;
    }

    .profile-event__date,
    .invitation-row__date {
        width: 46px;
        height: 50px;
    }

    .compact-empty {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .compact-empty .btn {
        width: 100%;
    }

    .auth-visual {
        display: none;
    }

    .auth-card {
        margin-top: 0;
    }

    .panel {
        padding: 18px;
    }

    .event-hero__content h1 {
        font-size: 32px;
    }

    .event-form__main {
        padding: 18px;
    }

    .event-actions .btn {
        font-size: 13px;
    }

    .breadcrumbs {
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
