/*
 * BoardGameClub — modern design layer.
 * Подключается после style.css и ассетов UserSpace.
 */

:root {
    --tgc-bg: #f5f1e9;
    --tgc-bg-deep: #e9e2d5;
    --tgc-surface: #fffdf8;
    --tgc-surface-2: #f8f4ec;
    --tgc-surface-muted: #ece5d8;
    --tgc-ink: #151a1f;
    --tgc-text: #1a1f24;
    --tgc-text-muted: #66717b;
    --tgc-border: rgba(21, 26, 31, 0.12);
    --tgc-accent: #cf5a35;
    --tgc-accent-dark: #a43d1d;
    --tgc-accent-soft: #f7e0d4;
    --tgc-green: #1f6b55;
    --tgc-green-soft: #dcebe4;
    --tgc-gold: #c99b44;
    --tgc-radius: 28px;
    --tgc-radius-sm: 16px;
    --tgc-shadow: 0 30px 80px rgba(21, 26, 31, 0.12);
    --tgc-shadow-soft: 0 14px 34px rgba(21, 26, 31, 0.07);
    --tgc-container: 1200px;
    --tgc-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background:
        radial-gradient(circle at 12% -10%, rgba(207, 90, 53, 0.10), transparent 32%),
        radial-gradient(circle at 92% 4%, rgba(31, 107, 85, 0.09), transparent 28%),
        var(--tgc-bg);
    color: var(--tgc-text);
    font-family: var(--tgc-font);
}

::selection {
    background: var(--tgc-accent);
    color: #fff;
}

a {
    color: var(--tgc-accent-dark);
}

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

:focus-visible {
    outline: 3px solid rgba(207, 90, 53, 0.45);
    outline-offset: 3px;
}

.usp-theme-container {
    max-width: var(--tgc-container);
    padding: 0 28px;
}

/* Header */

.usp-theme-header {
    border-bottom: 1px solid rgba(21, 26, 31, 0.06);
    background: rgba(245, 241, 233, 0.84);
    backdrop-filter: blur(20px);
}

.usp-theme-header__inner {
    min-height: 84px;
    gap: 20px;
}

.usp-theme-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tgc-accent), #e8875d);
    box-shadow: 0 10px 22px rgba(207, 90, 53, 0.28);
    font-size: 11px;
}

.usp-theme-brand__name {
    font-size: 20px;
    letter-spacing: -0.03em;
}

.usp-theme-menu {
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--tgc-border);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.62);
}

.usp-theme-menu a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--tgc-text-muted);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.usp-theme-menu a:hover,
.usp-theme-menu .current-menu-item > a {
    background: var(--tgc-surface);
    color: var(--tgc-text);
    box-shadow: 0 6px 16px rgba(21, 26, 31, 0.07);
}

.usp-theme-auth__link {
    min-height: 42px;
    padding: 9px 15px;
    border-color: transparent;
    background: transparent;
    font-size: 14px;
}

.usp-theme-auth__link:hover {
    background: var(--tgc-surface);
    border-color: var(--tgc-border);
}

.usp-theme-auth__link--primary {
    background: var(--tgc-ink);
    border-color: var(--tgc-ink);
    color: #fff;
}

.usp-theme-auth__link--primary:hover {
    background: var(--tgc-accent);
    border-color: var(--tgc-accent);
    color: #fff;
}

.usp-theme-auth__link--account {
    background: var(--tgc-accent-soft);
    color: var(--tgc-accent-dark);
}

.usp-theme-main {
    padding: clamp(28px, 4vw, 52px) 0 72px;
}

/* Buttons */

.usp-button {
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 999px;
    border-color: var(--tgc-border);
    background: var(--tgc-surface);
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.usp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(21, 26, 31, 0.10);
}

.usp-button--primary {
    background: var(--tgc-accent);
    border-color: var(--tgc-accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(207, 90, 53, 0.24);
}

.usp-button--primary:hover {
    background: var(--tgc-accent-dark);
    border-color: var(--tgc-accent-dark);
    color: #fff;
}

.usp-button--ghost {
    background: transparent;
    border-color: var(--tgc-border);
    color: var(--tgc-text);
}

.usp-button--ghost:hover {
    background: var(--tgc-surface);
}

.usp-link {
    color: var(--tgc-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

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

/* Hero */

.usp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    min-height: 600px;
    padding: clamp(32px, 5vw, 72px);
    border: 1px solid var(--tgc-border);
    border-radius: 40px;
    background:
        radial-gradient(circle at 88% 12%, rgba(207, 90, 53, 0.18), transparent 32%),
        linear-gradient(135deg, #fffdf8 0%, #f1eadf 100%);
    box-shadow: var(--tgc-shadow);
    overflow: hidden;
}

.usp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(21, 26, 31, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 26, 31, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.65), transparent 65%);
    pointer-events: none;
}

.usp-hero__content {
    position: relative;
    z-index: 2;
    animation: tgcRise 0.7s ease both;
}

.usp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid var(--tgc-border);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.7);
    color: var(--tgc-accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.usp-hero__badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tgc-accent);
    box-shadow: 0 0 0 4px rgba(207, 90, 53, 0.14);
}

.usp-hero .usp-eyebrow {
    display: none;
}

.usp-hero__title {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(46px, 6.4vw, 82px);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.usp-hero__lead {
    max-width: 54ch;
    margin: 24px 0 0;
    color: var(--tgc-text-muted);
    font-size: 18px;
    line-height: 1.65;
}

.usp-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.usp-hero__stats {
    display: flex;
    gap: 28px;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--tgc-border);
    flex-wrap: wrap;
}

.usp-hero__stats div {
    display: grid;
    gap: 2px;
}

.usp-hero__stats strong {
    color: var(--tgc-accent);
    font-size: 13px;
    letter-spacing: 0.10em;
}

.usp-hero__stats span {
    color: var(--tgc-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.usp-hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    z-index: 1;
}

.usp-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 430px);
    transform: rotate(-2deg);
}

.usp-board__tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 126px;
    padding: 18px;
    border: 1px solid var(--tgc-border);
    border-radius: 22px;
    background: var(--tgc-surface);
    box-shadow: 0 16px 34px rgba(21, 26, 31, 0.10);
    transform: rotate(1deg);
}

.usp-board__tile span {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.usp-board__tile small {
    color: var(--tgc-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.usp-board__tile--accent {
    background: linear-gradient(145deg, var(--tgc-accent), #e9835b);
    border-color: transparent;
    color: #fff;
    transform: rotate(-4deg);
}

.usp-board__tile--accent small,
.usp-board__tile--green small,
.usp-board__tile--wide small {
    color: rgba(255, 255, 255, 0.72);
}

.usp-board__tile--green {
    background: linear-gradient(145deg, var(--tgc-green), #2b8a6d);
    border-color: transparent;
    color: #fff;
    transform: rotate(3deg);
}

.usp-board__tile--wide {
    grid-column: 1 / -1;
    min-height: 98px;
    background: var(--tgc-ink);
    border-color: transparent;
    color: #fff;
    transform: rotate(1deg);
}

.usp-board__chip {
    position: absolute;
    z-index: 3;
    padding: 8px 13px;
    border: 1px solid var(--tgc-border);
    border-radius: 999px;
    background: var(--tgc-surface);
    color: var(--tgc-text);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(21, 26, 31, 0.10);
}

.usp-board__chip--one {
    top: 28px;
    left: 6px;
    transform: rotate(-6deg);
}

.usp-board__chip--two {
    right: 2px;
    top: 38%;
    background: var(--tgc-accent-soft);
    color: var(--tgc-accent-dark);
    transform: rotate(5deg);
}

.usp-board__chip--three {
    bottom: 30px;
    left: 24px;
    background: var(--tgc-green-soft);
    color: var(--tgc-green);
    transform: rotate(-3deg);
}

/* Sections */

.usp-section {
    margin-top: clamp(48px, 7vw, 92px);
}

.usp-section__header {
    max-width: 780px;
    margin-bottom: 30px;
}

.usp-section__header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: none;
    gap: 20px;
    flex-wrap: wrap;
}

.usp-eyebrow {
    margin: 0 0 10px;
    color: var(--tgc-accent-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.usp-section__header h2,
.usp-section--split h2,
.usp-cta-band h2 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.usp-section__header p,
.usp-section--split p,
.usp-cta-band p {
    margin: 0;
    color: var(--tgc-text-muted);
    font-size: 17px;
    line-height: 1.65;
}

.usp-meeting-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.usp-meeting-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 26px;
    border: 1px solid var(--tgc-border);
    border-radius: 24px;
    background: var(--tgc-surface);
    box-shadow: var(--tgc-shadow-soft);
    color: var(--tgc-text);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.usp-meeting-card:hover {
    transform: translateY(-5px);
    border-color: rgba(207, 90, 53, 0.35);
    box-shadow: var(--tgc-shadow);
    color: var(--tgc-text);
}

.usp-meeting-card__date {
    color: var(--tgc-accent);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.usp-meeting-card__month {
    color: var(--tgc-text-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.usp-meeting-card__time {
    margin-top: 10px;
    color: var(--tgc-green);
    font-size: 14px;
    font-weight: 800;
}

.usp-meeting-card h3 {
    margin: 12px 0 4px;
    font-size: 20px;
    line-height: 1.2;
}

.usp-meeting-card p {
    margin: 0;
    color: var(--tgc-text-muted);
    font-size: 14px;
}

.usp-meeting-card__cta {
    margin-top: auto;
    padding-top: 20px;
    color: var(--tgc-accent-dark);
    font-size: 13px;
    font-weight: 900;
}

.usp-empty-card {
    padding: clamp(28px, 4vw, 44px);
    border: 1px dashed rgba(21, 26, 31, 0.24);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.52);
}

.usp-empty-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.usp-empty-card p {
    margin: 0 0 20px;
    color: var(--tgc-text-muted);
}

.usp-feature-grid {
    gap: 18px;
}

.usp-feature-card {
    padding: 28px;
    border: 1px solid var(--tgc-border);
    border-radius: 24px;
    background: var(--tgc-surface);
    box-shadow: var(--tgc-shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.usp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tgc-shadow);
}

.usp-feature-card__index {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: var(--tgc-accent-soft);
    color: var(--tgc-accent-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.usp-feature-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.usp-feature-card p {
    margin: 0;
    color: var(--tgc-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.usp-section--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
    padding: clamp(32px, 5vw, 64px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 100% 0%, rgba(207, 90, 53, 0.24), transparent 35%),
        var(--tgc-ink);
    color: #f8f4ec;
}

.usp-section--split .usp-eyebrow,
.usp-cta-band .usp-eyebrow {
    color: #f0b69f;
}

.usp-section--split h2,
.usp-cta-band h2 {
    color: #f8f4ec;
}

.usp-section--split p,
.usp-cta-band p {
    color: #c8c2b8;
}

.usp-section--split .usp-button--primary {
    margin-top: 24px;
}

.usp-section--split .usp-stat-panel {
    gap: 12px;
}

.usp-section--split .usp-stat {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.usp-section--split .usp-stat span {
    color: #aaa49a;
}

.usp-stat-panel {
    gap: 12px;
}

.usp-stat {
    padding: 18px 20px;
    border-radius: 16px;
    border-color: var(--tgc-border);
    background: var(--tgc-surface-2);
}

.usp-stat strong {
    font-size: 18px;
}

.usp-stat span {
    color: var(--tgc-text-muted);
    font-size: 14px;
}

.usp-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: clamp(48px, 7vw, 92px);
    padding: clamp(32px, 5vw, 64px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 85% 10%, rgba(207, 90, 53, 0.28), transparent 32%),
        linear-gradient(135deg, #1b2127, #0f1216);
    color: #f8f4ec;
}

.usp-cta-band > div:first-child {
    max-width: 640px;
}

.usp-cta-band__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.usp-cta-band .usp-button--ghost {
    border-color: rgba(255, 255, 255, 0.24);
    color: #f8f4ec;
}

.usp-cta-band .usp-button--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* MAX channel */

.usp-max-channel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: clamp(48px, 7vw, 92px);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--tgc-border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(207, 90, 53, 0.18), transparent 36%),
        var(--tgc-surface);
    box-shadow: var(--tgc-shadow-soft);
}

.usp-max-channel__content {
    max-width: 680px;
}

.usp-max-channel h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.usp-max-channel p {
    margin: 0;
    color: var(--tgc-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Footer */

.usp-theme-footer {
    margin-top: clamp(56px, 8vw, 100px);
    padding: 56px 0 24px;
    border-top: 0;
    background: var(--tgc-ink);
    color: #f4efe6;
}

.usp-theme-footer .usp-theme-brand {
    color: #fff;
}

.usp-theme-footer .usp-theme-brand:hover {
    color: #fff;
}

.usp-theme-footer .usp-theme-brand__mark {
    background: var(--tgc-accent);
    box-shadow: 0 10px 22px rgba(207, 90, 53, 0.30);
}

.usp-theme-footer__tagline {
    color: #aaa49a;
}

.usp-theme-footer__channel {
    max-width: 360px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.usp-theme-footer__channel strong {
    display: block;
    margin-bottom: 6px;
    color: #f4efe6;
    font-size: 14px;
}

.usp-theme-footer__channel p {
    margin: 0 0 10px;
    color: #aaa49a;
    font-size: 13px;
    line-height: 1.5;
}

.usp-theme-footer__channel a {
    color: #f0b69f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.usp-theme-footer__channel a:hover {
    color: #fff;
}

.usp-theme-footer__channel a + a {
    display: block;
    margin-top: 8px;
}

.usp-theme-footer__menu {
    gap: 8px 18px;
}

.usp-theme-footer__menu a {
    color: #d9d3c9;
}

.usp-theme-footer__menu a:hover {
    color: #fff;
}

.usp-theme-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.10);
    color: #8e8980;
}

/* Page content */

.usp-page {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--tgc-border);
    border-radius: 32px;
    background: var(--tgc-surface);
    box-shadow: var(--tgc-shadow-soft);
}

.usp-page--account {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.usp-theme-post-title {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.usp-page__header {
    margin-bottom: 24px;
}

.usp-page__content > h2 {
    margin-top: 0;
    font-size: clamp(26px, 3.4vw, 38px);
    letter-spacing: -0.035em;
}

.usp-page__content > p {
    color: var(--tgc-text-muted);
    font-size: 17px;
}

/* Forms */

.usp-theme-main .usp-form {
    max-width: none;
}

.usp-theme-main .usp-form-section {
    padding: 18px;
    border: 1px solid var(--tgc-border);
    border-radius: 16px;
    background: var(--tgc-surface-2);
}

.usp-theme-main .usp-form-field-wrapper label,
.usp-theme-main .usp-form-section > label {
    color: var(--tgc-text);
    font-weight: 800;
}

.usp-theme-main input[type="text"],
.usp-theme-main input[type="email"],
.usp-theme-main input[type="password"],
.usp-theme-main input[type="url"],
.usp-theme-main input[type="number"],
.usp-theme-main input[type="date"],
.usp-theme-main input[type="time"],
.usp-theme-main select,
.usp-theme-main textarea {
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--tgc-border);
    border-radius: 12px;
    background: #fff;
    color: var(--tgc-text);
    box-shadow: inset 0 1px 2px rgba(21, 26, 31, 0.03);
}

.usp-theme-main input:focus,
.usp-theme-main select:focus,
.usp-theme-main textarea:focus {
    border-color: var(--tgc-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(207, 90, 53, 0.12);
}

.usp-theme-main .button,
.usp-theme-main button[type="submit"],
.usp-theme-main input[type="submit"] {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--tgc-accent);
    border-radius: 999px;
    background: var(--tgc-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.usp-theme-main .button:hover,
.usp-theme-main button[type="submit"]:hover,
.usp-theme-main input[type="submit"]:hover {
    background: var(--tgc-accent-dark);
    border-color: var(--tgc-accent-dark);
}

.usp-theme-main .button.button-secondary {
    background: var(--tgc-surface);
    border-color: var(--tgc-border);
    color: var(--tgc-text);
}

.usp-theme-main .button.button-secondary:hover {
    background: var(--tgc-surface-2);
    color: var(--tgc-accent-dark);
}

.usp-form-hint {
    color: var(--tgc-text-muted);
    font-size: 12px;
}

.usp-notice {
    border-radius: 14px;
    border-left-width: 0;
    border: 1px solid var(--tgc-border);
    background: var(--tgc-surface);
}

.usp-notice--warning {
    border-color: #e7c36b;
    background: #fff8e5;
    color: #6e5200;
}

/* Calendar */

.usp-schedule__header h2 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.045em;
}

.usp-schedule__actions .usp-button {
    min-height: 42px;
    padding: 9px 15px;
}

.usp-schedule__city-note {
    margin-bottom: 20px;
    color: var(--tgc-text-muted);
    font-weight: 700;
}

.usp-calendar {
    gap: 8px;
    padding: 14px;
    border-radius: 26px;
    box-shadow: var(--tgc-shadow-soft);
}

.usp-calendar__weekday {
    color: var(--tgc-text-muted);
    font-size: 11px;
    letter-spacing: 0.10em;
}

.usp-calendar__day {
    min-height: 104px;
    padding: 9px;
    border-color: rgba(21, 26, 31, 0.08);
    border-radius: 12px;
    background: var(--tgc-surface-2);
}

.usp-calendar__day.is-today {
    border-color: var(--tgc-accent);
    background: #fff7f2;
    box-shadow: inset 0 0 0 1px var(--tgc-accent);
}

.usp-calendar__date {
    color: var(--tgc-text-muted);
    font-size: 12px;
}

.usp-calendar__meeting {
    border-radius: 8px;
    background: var(--tgc-accent-soft);
    color: var(--tgc-accent-dark);
}

.usp-calendar__meeting:hover {
    background: #f2c8b6;
    color: var(--tgc-accent-dark);
}

.usp-meeting-list__item {
    border-radius: 16px;
    background: var(--tgc-surface);
    box-shadow: var(--tgc-shadow-soft);
}

.usp-meeting-list__date {
    border-radius: 14px;
    background: var(--tgc-ink);
}

.usp-empty-state {
    color: var(--tgc-text-muted);
}

/* Meeting page */

.usp-meeting-page__title {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.usp-meeting-page__section,
.usp-meeting-card {
    border-radius: 24px;
    border-color: var(--tgc-border);
    background: var(--tgc-surface);
    box-shadow: var(--tgc-shadow-soft);
}

.usp-meeting-page__section h2,
.usp-meeting-card h2 {
    font-size: 21px;
    letter-spacing: -0.02em;
}

.usp-badge {
    padding: 7px 13px;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.usp-participant,
.usp-proposal {
    border-radius: 14px;
    background: var(--tgc-surface-2);
    border-color: var(--tgc-border);
}

.usp-proposal__title {
    letter-spacing: -0.02em;
}

.usp-proposal__meta {
    color: var(--tgc-text-muted);
}

.usp-proposal-picker {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--tgc-border);
    border-radius: 18px;
    background: var(--tgc-surface-2);
}

.usp-proposal-picker > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    list-style: none;
    cursor: pointer;
}

.usp-proposal-picker > summary::-webkit-details-marker {
    display: none;
}

.usp-proposal-picker > summary::after {
    content: '+';
    font-size: 18px;
    line-height: 1;
}

.usp-proposal-picker[open] > summary {
    margin-bottom: 18px;
}

.usp-proposal-picker[open] > summary::after {
    content: '−';
}

.usp-proposal-picker .usp-proposal-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.usp-proposal-picker__content {
    max-height: 620px;
    overflow-y: auto;
    padding: 2px;
}

.usp-meeting-chat .usp-chat-container {
    min-height: 560px;
    border: 1px solid var(--tgc-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--tgc-surface);
}

.usp-meeting-form-wrap {
    max-width: none;
}

.usp-meeting-form__city-note {
    color: var(--tgc-text-muted);
}

.flatpickr-calendar {
    border-radius: 16px;
    box-shadow: var(--tgc-shadow);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: var(--tgc-accent);
    border-color: var(--tgc-accent);
}

/* BGG account tab */

.usp-bgg-tab h2 {
    letter-spacing: -0.03em;
}

.usp-bgg-status,
.usp-bgg-privacy {
    border-radius: 16px;
    background: var(--tgc-surface-2);
    border-color: var(--tgc-border);
}

/* UserSpace account layout */

.usp-account-layout {
    --usp-color-primary: var(--tgc-accent);
    --usp-color-primary-light: #e8875d;
    --usp-color-action: var(--tgc-green);
    --usp-color-bg: transparent;
    --usp-color-surface: var(--tgc-surface);
    --usp-color-border: var(--tgc-border);
    --usp-color-text-primary: var(--tgc-text);
    --usp-color-text-secondary: var(--tgc-text-muted);
    --usp-border-radius: 16px;
    --usp-shadow: var(--tgc-shadow-soft);
    --usp-header-height: 72px;
    background: transparent;
    min-height: 0;
}

.usp-account-layout__header {
    height: auto;
    min-height: 64px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--tgc-border);
    background: transparent;
}

.usp-account-layout__header h1 {
    font-size: 24px;
    letter-spacing: -0.035em;
}

.usp-account-layout__sidebar {
    background: var(--tgc-surface);
    border-right-color: var(--tgc-border);
    border-radius: 24px 0 0 24px;
}

.usp-account-layout__main {
    padding: 0 0 0 24px;
}

.usp-content-area {
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--tgc-border);
    border-radius: 24px;
    background: var(--tgc-surface);
    box-shadow: var(--tgc-shadow-soft);
}

.usp-sidebar-nav {
    padding: 0 14px;
}

.usp-sidebar-nav__link {
    border-radius: 12px;
    color: var(--tgc-text-muted);
    font-weight: 700;
}

.usp-sidebar-nav__link:hover {
    background: var(--tgc-surface-2);
    color: var(--tgc-text);
}

.usp-sidebar-nav__link.is-active {
    background: var(--tgc-accent);
    color: #fff;
    box-shadow: 0 12px 22px rgba(207, 90, 53, 0.24);
}

.usp-avatar-block {
    border-bottom-color: var(--tgc-border);
}

.usp-account-user-info .usp-account-display-name {
    color: var(--tgc-text);
}

/* Responsive */

.tgc-chat-page h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.tgc-chat-page__lead {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--tgc-text-muted);
    font-size: 17px;
    line-height: 1.6;
}

.tgc-chat-page .usp-chat-container {
    margin-top: 8px;
}

.tgc-chat-page .usp-chat-participant-name a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tgc-chat-page .usp-chat-participant-name a:hover {
    color: var(--tgc-accent-dark);
}

.tgc-chat-page .usp-chat-message-content a,
.tgc-chat-page .usp-chat-message-system-content a {
    color: var(--tgc-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.tgc-chat-page .usp-chat-message--sent .usp-chat-message-content a {
    color: #fff;
}

.tgc-chat-page .usp-empty-card {
    margin-top: 12px;
}

.usp-meeting-form__notify-hint {
    margin: -6px 0 22px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--tgc-accent-soft);
    color: var(--tgc-accent-dark);
    font-size: 14px;
    line-height: 1.5;
}

.usp-meeting-form__notify-hint a {
    color: inherit;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .usp-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .usp-hero__visual {
        min-height: 360px;
    }

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

    .usp-section--split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .usp-theme-header__inner {
        gap: 14px;
    }

    .usp-theme-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .usp-theme-menu {
        justify-content: flex-start;
        background: transparent;
        border: 0;
        padding: 0;
        gap: 4px 8px;
    }

    .usp-theme-menu a {
        padding: 8px 11px;
        background: rgba(255, 253, 248, 0.55);
    }

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

    .usp-account-layout__main {
        padding-left: 0;
    }
}

@media (max-width: 720px) {
    .usp-theme-container {
        padding: 0 18px;
    }

    .usp-theme-main {
        padding-top: 24px;
    }

    .usp-hero {
        padding: 26px;
        border-radius: 28px;
    }

    .usp-hero__title {
        font-size: clamp(40px, 12vw, 56px);
    }

    .usp-hero__lead {
        font-size: 16px;
    }

    .usp-hero__stats {
        gap: 18px;
    }

    .usp-board {
        gap: 10px;
    }

    .usp-board__tile {
        min-height: 100px;
        padding: 14px;
    }

    .usp-board__chip {
        display: none;
    }

    .usp-section__header--row {
        align-items: flex-start;
    }

    .usp-meeting-cards,
    .usp-feature-grid {
        grid-template-columns: 1fr;
    }

    .usp-section--split,
    .usp-cta-band {
        padding: 26px;
        border-radius: 26px;
    }

    .usp-cta-band__actions {
        width: 100%;
    }

    .usp-cta-band__actions .usp-button {
        flex: 1;
    }

    .usp-max-channel {
        align-items: flex-start;
        padding: 24px;
        border-radius: 24px;
    }

    .usp-max-channel .usp-button {
        width: 100%;
    }

    .usp-calendar {
        gap: 4px;
        padding: 8px;
        border-radius: 20px;
    }

    .usp-calendar__day {
        min-height: 76px;
        padding: 5px;
    }

    .usp-calendar__meeting {
        font-size: 10px;
    }

    .usp-theme-footer {
        padding-top: 42px;
    }

    .usp-account-layout__main {
        padding: 0;
    }

    .usp-account-layout__header h1 {
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .usp-theme-brand__name {
        font-size: 18px;
    }

    .usp-theme-auth {
        width: 100%;
    }

    .usp-theme-auth__link {
        flex: 1;
    }

    .usp-hero__actions .usp-button,
    .usp-cta-band__actions .usp-button {
        width: 100%;
    }

    .usp-hero__stats {
        flex-direction: column;
        gap: 12px;
    }
}

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

@keyframes tgcRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BGG collection tab */

.tgc-collection-tab {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tgc-collection-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tgc-collection-head h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.tgc-collection-head p {
    max-width: 680px;
    margin: 0;
    color: var(--tgc-text-muted);
}

.tgc-collection-count {
    margin: 0;
    color: var(--tgc-text-muted);
    font-size: 14px;
    font-weight: 700;
}

.tgc-collection-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid var(--tgc-border);
    border-radius: 16px;
    background: var(--tgc-surface-2);
}

.tgc-collection-search {
    flex: 1 1 240px;
    min-width: 0;
}

.tgc-collection-search input[type="search"],
.tgc-collection-tools select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--tgc-border);
    border-radius: 10px;
    background: var(--tgc-surface);
    color: var(--tgc-text);
    font: inherit;
    font-size: 14px;
}

.tgc-collection-tools select {
    flex: 0 1 220px;
    width: auto;
}

.tgc-collection-found {
    color: var(--tgc-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.tgc-game-card.is-hidden {
    display: none;
}

.tgc-collection-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.tgc-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.tgc-game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--tgc-border);
    border-radius: 20px;
    background: var(--tgc-surface);
    box-shadow: 0 8px 20px rgba(21, 26, 31, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tgc-game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(207, 90, 53, 0.28);
    box-shadow: var(--tgc-shadow-soft);
}

.tgc-game-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: var(--tgc-surface-2);
}

.tgc-game-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tgc-game-card__placeholder {
    display: grid;
    place-items: center;
    gap: 4px;
    color: var(--tgc-text-muted);
    text-align: center;
}

.tgc-game-card__placeholder strong {
    color: var(--tgc-accent-dark);
    font-size: 28px;
    letter-spacing: 0.06em;
}

.tgc-game-card__placeholder small {
    font-size: 11px;
}

.tgc-game-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 2px 2px;
}

.tgc-game-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.tgc-game-card__title a {
    color: var(--tgc-text);
    text-decoration: none;
}

.tgc-game-card__title a:hover {
    color: var(--tgc-accent-dark);
}

.tgc-game-card__meta {
    margin: 0;
    color: var(--tgc-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.tgc-game-card__rating {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--tgc-green-soft);
    color: var(--tgc-green);
    font-size: 11px;
    font-weight: 900;
}

.tgc-game-card__votes {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--tgc-surface-2);
    color: var(--tgc-text-muted);
    font-size: 11px;
    font-weight: 800;
}

.tgc-game-card__proposer,
.tgc-game-card__owner,
.tgc-game-card__note {
    margin: 0;
    color: var(--tgc-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.tgc-game-card__note {
    color: var(--tgc-text);
}

.tgc-game-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--tgc-border);
}

.tgc-game-card__action-form {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
}

.usp-theme-main .tgc-game-card__action-form button.tgc-game-card__action {
    display: inline-grid;
    place-items: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 1px solid var(--tgc-border);
    border-radius: 50%;
    background: var(--tgc-surface-2);
    color: var(--tgc-text-muted);
    box-shadow: none;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.usp-theme-main .tgc-game-card__action-form button.tgc-game-card__action:hover {
    border-color: var(--tgc-accent);
    background: var(--tgc-surface);
    color: var(--tgc-accent-dark);
}

.usp-theme-main .tgc-game-card__action-form button.tgc-game-card__action--vote.is-active {
    border-color: var(--tgc-green);
    background: var(--tgc-green-soft);
    color: var(--tgc-green);
}

.usp-theme-main .tgc-game-card__action-form button.tgc-game-card__action--trash:hover {
    border-color: #b3261e;
    background: #fbe9e7;
    color: #b3261e;
}

.usp-theme-main .tgc-game-card__action-form button.tgc-game-card__action.is-loading {
    opacity: 0.55;
    pointer-events: none;
    cursor: wait;
}

.usp-theme-main .tgc-game-card__action-form button.tgc-game-card__action.is-loading svg {
    animation: tgc-action-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes tgc-action-pulse {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0.55;
        transform: scale(0.92);
    }
}

/* Proposed games: horizontal cards */

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

.tgc-proposal-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--tgc-border);
    border-radius: 20px;
    background: var(--tgc-surface);
    box-shadow: 0 6px 18px rgba(21, 26, 31, 0.04);
}

.tgc-proposal-card__media {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--tgc-surface-2);
}

.tgc-proposal-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tgc-proposal-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tgc-proposal-card__title {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tgc-proposal-card__title a {
    color: var(--tgc-text);
    text-decoration: none;
}

.tgc-proposal-card__title a:hover {
    color: var(--tgc-accent-dark);
}

.tgc-proposal-card__meta,
.tgc-proposal-card__owner,
.tgc-proposal-card__proposer,
.tgc-proposal-card__note {
    margin: 0;
    color: var(--tgc-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.tgc-proposal-card__note {
    color: var(--tgc-text);
}

.tgc-proposal-card__meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.tgc-proposal-card > .tgc-game-card__actions {
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
}

@media (max-width: 1000px) {
    .tgc-proposal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tgc-proposal-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .tgc-proposal-card__media {
        width: 76px;
        height: 76px;
    }

    .tgc-proposal-card > .tgc-game-card__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
    }
}

.usp-meeting-page__main .tgc-collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .usp-meeting-page__main .tgc-collection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .usp-meeting-page__main .tgc-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tgc-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tgc-game-card {
        padding: 8px;
    }
}

@media (max-width: 420px) {
    .tgc-collection-grid {
        grid-template-columns: 1fr;
    }
}
