:root {
    --bg: #131317;
    --panel: #1d1d24;
    --panel-2: #252530;
    --text: #f1f1f3;
    --muted: #b3b3bc;
    --primary: #f01a1a;
    --primary-dark: #bd1414;
    --success: #1f8f48;
    --danger: #c93b3b;
    --warning: #7e6b1b;
    --border: #343444;
    --shadow: 0 14px 40px rgba(0,0,0,.28);
    --radius: 18px;
    --board-zoom: 1;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(180deg, #111116 0%, #17171d 100%);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
}

body.has-fixed-board-scroll {
    padding-bottom: 24px;
}

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

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

.container {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.header-right-zone {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.header-board-tools {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #0f0f14;
    border-radius: 14px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.08);
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.brand-subtitle {
    color: var(--muted);
    font-size: .92rem;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 10px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

.inline-form {
    margin: 0;
}

.page-shell {
    padding: 26px 0 56px;
    min-height: calc(100vh - 110px);
}

.page-header-card,
.form-card,
.game-column,
.admin-game-card,
.form-shell,
.slot-card,
.alert,
.empty-state,
.table-card {
    box-shadow: var(--shadow);
}

.page-header-card,
.form-card,
.form-shell,
.game-column,
.admin-game-card,
.empty-state,
.table-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.page-header-card {
    padding: 20px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.page-header-card h1,
.form-shell h1 {
    margin: 0 0 8px;
}

.small-muted,
.field-hint {
    color: var(--muted);
    font-size: .92rem;
}

.date-form,
.date-range-form,
.admin-top-actions,
.form-actions,
.slot-actions,
.game-actions,
.admin-game-actions,
.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.board-toolbar,
.board-date-form {
    align-items: flex-end;
}

.board-date-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.date-form label,
.date-range-form label {
    font-size: .95rem;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: #121218;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    outline: none;
    min-height: 56px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 52px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.5 7.5L10 13L15.5 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

textarea {
    resize: vertical;
}

input[type="date"] {
    min-width: 180px;
    color-scheme: dark;
    padding-right: 56px;
    cursor: pointer;
    line-height: 1.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='16' rx='3' stroke='%23ffffff' stroke-width='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 9h18' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='13' r='1' fill='%23ffffff'/%3E%3Ccircle cx='12' cy='13' r='1' fill='%23ffffff'/%3E%3Ccircle cx='16' cy='13' r='1' fill='%23ffffff'/%3E%3Ccircle cx='8' cy='17' r='1' fill='%23ffffff'/%3E%3Ccircle cx='12' cy='17' r='1' fill='%23ffffff'/%3E%3Ccircle cx='16' cy='17' r='1' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 24px 24px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.01;
    cursor: pointer;
    width: 28px;
    height: 28px;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

.btn-small {
    min-height: 34px;
    padding: 8px 12px;
    font-size: .9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #2b2b37;
    color: white;
    border: 1px solid rgba(255,255,255,.08);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.1);
}

.alert-success {
    background: rgba(31, 143, 72, .16);
    border-color: rgba(31, 143, 72, .35);
}

.alert-error {
    background: rgba(201, 59, 59, .16);
    border-color: rgba(201, 59, 59, .35);
}

.board-shell {
    --board-zoom: 1;
}

.board-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.game-grid.single-row-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 18px;
    min-width: max-content;
    zoom: var(--board-zoom);
}

.game-column {
    padding: 16px;
    min-width: 290px;
    width: 290px;
    flex: 0 0 290px;
}

.game-column-header,
.game-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.game-thumb,
.game-hero-image,
.admin-game-image {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 16px;
    background: #101015;
    border: 1px solid rgba(255,255,255,.08);
}

.game-hero-image {
    width: 92px;
    height: 92px;
}

.slot-stack,
.wide-slot-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slot-card {
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.slot-card-empty {
    background: rgba(31, 143, 72, .13);
    border-color: rgba(31, 143, 72, .35);
}

.slot-card-reserved {
    background: rgba(201, 59, 59, .13);
    border-color: rgba(201, 59, 59, .35);
}

.slot-card-disabled {
    background: rgba(126, 107, 27, .18);
    border-color: rgba(126, 107, 27, .34);
    opacity: .78;
}

.interactive:hover {
    transform: translateY(-2px);
    transition: transform .15s ease;
}

.slot-time {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.slot-status,
.slot-details {
    color: var(--muted);
    line-height: 1.45;
    flex: 1 1 auto;
}

.admin-slot .slot-details {
    margin-bottom: 12px;
}

.slot-actions {
    margin-top: auto;
}

.form-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 22px;
}

.form-shell.narrow {
    max-width: 520px;
}

.form-card {
    padding: 18px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

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

.checkbox-wrap input {
    width: auto;
}

.validation-summary,
.field-error {
    color: #ff9d9d;
}

.reservation-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--muted);
}

.games-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
}

.admin-game-card {
    overflow: hidden;
}

.admin-game-image {
    width: 100%;
    height: 220px;
    border-radius: 0;
}

.admin-game-content {
    padding: 18px;
}

.embed-block {
    margin-top: 14px;
}

.embed-block label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.empty-state {
    padding: 28px;
    text-align: center;
}

.table-card {
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: rgba(255,255,255,.04);
}

.pill {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: .78rem;
}

.game-page-header-block {
    align-items: flex-start;
}

.game-page-call-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.btn-call-now {
    background: var(--success);
    color: white;
}

.btn-call-now:hover {
    filter: brightness(1.06);
}


.single-game-board {
    max-width: none;
    width: 100%;
}

.embedded-game-board {
    width: 100%;
}

.embedded-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.embedded-public-slot {
    width: 190px;
    min-height: 68px;
    height: 68px;
    max-width: 190px;
    padding: 8px 12px;
    justify-content: flex-start;
}

.embedded-public-slot.slot-card {
    min-height: 68px;
    height: 68px;
}

.embedded-public-slot .slot-time {
    font-size: .92rem;
    margin-bottom: 4px;
    line-height: 1.05;
}

.embedded-public-slot .slot-status {
    font-size: .84rem;
    line-height: 1.18;
    flex: 0 0 auto;
}

.compact-empty-state {
    max-width: 420px;
}

@media (max-width: 700px) {
    .embedded-slot-grid {
        gap: 10px;
    }

    .embedded-public-slot {
        width: calc(50% - 5px);
        max-width: none;
        min-height: 66px;
        height: 66px;
    }

    .game-date-toolbar .board-date-form-inline {
        gap: 10px;
    }

    .game-date-toolbar .board-option-group input[type="date"] {
        width: 210px;
        max-width: min(210px, calc(100vw - 116px));
        min-height: 50px;
        height: 50px;
    }

    .game-date-toolbar .compact-today-btn,
    .game-date-toolbar .board-button-group-inline .btn {
        min-height: 50px;
        height: 50px;
        padding-inline: 16px;
    }
}

@media (max-width: 480px) {
    .embedded-public-slot {
        width: 100%;
    }

    .game-date-toolbar .board-date-form-inline {
        width: 100%;
    }

    .game-date-toolbar .board-option-group {
        width: 100%;
    }

    .game-date-toolbar .board-option-group input[type="date"] {
        width: 100%;
        max-width: 100%;
    }
}


.btn-delete-slot {
    min-height: 44px !important;
    height: 44px;
    padding: 0 20px !important;
    border-radius: 18px !important;
    line-height: 1;
}

.clickable-slot-card[data-slot-drag-source] {
    cursor: grab;
}

.clickable-slot-card[data-slot-drag-source].is-dragging {
    opacity: .72;
    cursor: grabbing;
}

[data-slot-drop-target].is-drop-target {
    outline: 2px dashed rgba(255,255,255,.45);
    outline-offset: -4px;
    filter: brightness(1.05);
}

.reservation-form-shell input,
.reservation-form-shell select,
.reservation-form-shell textarea {
    font-size: 1.08rem;
}

.reservation-form-shell label {
    font-size: 1rem;
}

.action-log-summary {
    font-weight: 700;
}

.action-log-details {
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 900px) {
    .header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-right-zone {
        width: 100%;
        justify-content: flex-start;
    }

    .container {
        width: calc(100% - 20px);
    }
}


.board-option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 112px;
}

.board-option-group-compact {
    min-width: 110px;
}

.board-option-group label {
    font-size: .95rem;
    color: var(--muted);
}

.board-zoom-select {
    min-width: 110px;
}

.board-option-group-wide {
    min-width: 240px;
}

.board-button-group {
    min-width: auto;
}

.board-button-group-inline {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1px;
}

.board-hidden-label {
    visibility: hidden;
    user-select: none;
}

.board-load-btn {
    min-width: 108px;
    align-self: flex-end;
}

.upload-preview-row {
    align-items: center;
}

.game-upload-preview {
    flex: 0 0 auto;
}

.board-fixed-scrollbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(10, 10, 14, .96);
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 1000;
}

.board-fixed-scrollbar.is-hidden {
    display: none;
}

.board-fixed-scrollbar-inner {
    height: 1px;
}

.board-scroll::-webkit-scrollbar {
    height: 0;
}

.board-fixed-scrollbar::-webkit-scrollbar {
    height: 14px;
}

.board-fixed-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.24);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.board-fixed-scrollbar::-webkit-scrollbar-track {
    background: rgba(255,255,255,.06);
}


.page-header-card,
.board-shell,
.games-admin-grid,
.table-card,
.form-shell,
.empty-state {
    width: 100%;
}

.board-scroll {
    width: 100%;
}

.header-nav {
    justify-content: flex-end;
}


.login-user-select {
    background-position: right 28px center;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 26, 26, .18);
    border: 1px solid rgba(240, 26, 26, .38);
    font-weight: 800;
    font-size: 1rem;
}

.user-chip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-chip-name {
    font-weight: 700;
    line-height: 1.1;
}

.user-chip-role {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.1;
}

.user-chip-logout {
    margin-left: 4px;
}

.board-date-form-inline {
    align-items: flex-end;
}

.game-date-toolbar .board-date-form-inline {
    width: auto;
    max-width: 100%;
    align-items: flex-end;
    gap: 12px;
}

.game-date-toolbar .board-option-group {
    min-width: 0;
}

.game-date-toolbar .board-option-group input[type="date"] {
    min-height: 56px;
    height: 56px;
    width: 240px;
    max-width: min(240px, calc(100vw - 120px));
}

.game-date-toolbar .compact-today-btn,
.game-date-toolbar .board-button-group-inline .btn {
    min-height: 56px;
    height: 56px;
    padding-inline: 18px;
}

.field-grid {
    display: grid;
    gap: 14px;
}

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

.embedded-hero-card {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(320px, 1fr);
    align-items: stretch;
    gap: 30px;
    padding: 32px;
    background: linear-gradient(180deg, rgba(57,24,16,.96) 0%, rgba(33,20,17,.98) 100%);
}

.embedded-hero-media-wrap {
    display: flex;
    align-items: stretch;
}

.embedded-hero-media {
    width: 100%;
    background: rgba(129, 22, 14, .38);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.embedded-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.embedded-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.difficulty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.difficulty-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

.difficulty-star {
    color: rgba(255,255,255,.16);
    font-size: 1.15rem;
    line-height: 1;
}

.difficulty-star.filled {
    color: #ff2c23;
}

.difficulty-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .92rem;
}

.embedded-hero-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: .96;
}

.embedded-hero-description {
    margin: 0;
    color: rgba(241,241,243,.8);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 720px;
}

.embedded-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.embedded-meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.embedded-meta-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(240, 26, 26, .12);
    border: 1px solid rgba(240, 26, 26, .18);
}

.embedded-meta-value {
    font-weight: 800;
    font-size: 1.15rem;
}

.embedded-call-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 6px;
}

.embedded-call-button {
    background: linear-gradient(180deg, #ff271d 0%, #ef1a1a 100%);
    color: white;
    min-width: 280px;
    box-shadow: 0 12px 28px rgba(240,26,26,.22);
}

.embedded-call-note {
    position: relative;
    padding-left: 20px;
}

.embedded-call-note::before {
    content: "◉";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff2c23;
    font-size: .8rem;
}

.game-date-toolbar {
    padding-top: 16px;
    padding-bottom: 16px;
}

.embedded-game-date-form {
    align-items: center;
}

.embedded-game-date-form input[type="date"],
.embedded-game-date-form .compact-today-btn {
    min-height: 48px !important;
    height: 48px !important;
    box-sizing: border-box;
}

.embedded-game-date-form input[type="date"] {
    flex: 0 0 240px;
    width: 240px;
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 1000px) {
    .embedded-hero-card {
        grid-template-columns: 1fr;
    }

    .embedded-hero-media {
        min-height: 380px;
    }

    .embedded-meta-grid,
    .field-grid-3 {
        grid-template-columns: 1fr;
    }
}


:root {
    --site-header-height: 104px;
}

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

.site-header {
    z-index: 40;
}

.header-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 12px;
}

.header-row {
    padding: 0;
}

.header-top-row,
.header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.header-bottom-row {
    align-items: stretch;
}

.brand {
    gap: 10px;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 5px;
}

.brand-title {
    font-size: 1.08rem;
    line-height: 1.05;
}

.brand-subtitle {
    font-size: .8rem;
}

.header-board-tools {
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.header-nav {
    justify-content: flex-start;
    gap: 8px;
}

.nav-link {
    padding: 8px 12px;
    font-size: .94rem;
}

.user-chip {
    padding: 6px 8px;
    gap: 8px;
    border-radius: 12px;
    min-height: 46px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    font-size: 1.02rem;
    line-height: 1;
    align-items: center;
    justify-content: center;
    padding-top: 1px;
}

.user-chip-name {
    font-size: .95rem;
}

.user-chip-role {
    font-size: .74rem;
}

.user-chip-logout .btn {
    min-height: 32px;
}

.page-shell {
    padding: 16px 0 44px;
}

.compact-board-toolbar {
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.compact-date-form {
    width: auto;
    max-width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
}

.compact-date-form input[type="date"] {
    min-width: 0;
    flex: 0 0 240px;
    width: 240px;
    max-width: min(240px, 100%);
    min-height: 48px;
}

.compact-today-btn {
    min-height: 48px;
    padding-inline: 18px;
    white-space: nowrap;
}

.board-zoom-select {
    min-width: 92px;
    width: 92px;
    padding: 10px 40px 10px 12px;
    font-size: .92rem;
}

.game-grid.single-row-grid,
.single-row-grid {
    gap: 14px;
}

.game-column {
    padding: 10px 12px 12px;
    min-width: 300px;
    width: 300px;
    flex: 0 0 300px;
    overflow: visible;
    position: relative;
    align-self: flex-start;
}

.game-column-header-anchor {
    position: relative;
    min-height: var(--game-sticky-header-height, 0px);
    margin-bottom: 12px;
}

.game-column-header {
    margin-bottom: 0;
    min-height: 72px;
}

.game-column-header-sticky {
    position: relative;
    z-index: 14;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(20, 20, 27, .98);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.game-column-header-sticky.is-floating {
    position: fixed;
    top: calc(var(--site-header-height) + 8px);
    z-index: 32;
    margin: 0;
}


.board-header-hidden-for-overlay {
    visibility: hidden;
}

.board-sticky-track {
    position: fixed;
    display: none;
    z-index: 34;
    pointer-events: none;
    overflow: hidden;
}

.board-sticky-track.is-active {
    display: block;
}

.board-floating-header-clone {
    position: absolute;
    margin: 0;
    pointer-events: none;
    transform-origin: top left;
    will-change: transform, left, width, height;
}

.game-column-header-text {
    min-width: 0;
    flex: 1 1 auto;
}

.game-column-header-text h2 {
    margin: 0 0 4px;
    font-size: 1.22rem;
    line-height: 1.1;
}

.game-thumb {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    flex: 0 0 60px;
}

.slot-stack,
.wide-slot-stack {
    gap: 10px;
}

.slot-card {
    min-height: 186px;
    height: 186px;
    padding: 13px 15px;
    overflow: hidden;
}

.slot-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.slot-card-top-actions {
    align-items: center;
}

.slot-time {
    font-size: 1.3rem;
    margin-bottom: 0;
    line-height: 1.1;
}

.slot-status,
.slot-details {
    font-size: .94rem;
}

.slot-status {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    line-height: 1.35;
}

.slot-actions-inline {
    gap: 6px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.slot-actions-inline form {
    margin: 0;
}

.slot-actions-inline .btn {
    min-height: 42px;
    padding: 0 18px;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slot-details-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    padding-top: 2px;
    min-height: 0;
    flex: 1 1 auto;
}

.slot-line {
    min-width: 0;
}

.slot-line-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.16;
    padding-top: 1px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slot-line-phone {
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: #ffffff;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-line-comment {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.2;
    padding-bottom: 2px;
    word-break: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-slot .slot-details {
    margin-bottom: 0;
}

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

.reservation-form-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.transfer-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transfer-card-head h2 {
    margin: 0 0 6px;
}

.transfer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transfer-grid {
    align-items: end;
}

.transfer-grid input,
.transfer-grid select {
    min-height: 58px;
    height: 58px;
}

.transfer-grid input[type="date"] {
    line-height: 1.2;
}

.transfer-actions {
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .header-shell {
        gap: 8px;
        padding: 8px 0 10px;
    }

    .header-top-row,
    .header-bottom-row {
        width: 100%;
    }

    .header-bottom-row {
        gap: 8px;
        align-items: center;
    }

    .header-nav {
        flex: 1 1 auto;
    }

    .user-chip {
        margin-left: 0;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: .78rem;
    }

    .game-column {
        min-width: 286px;
        width: 286px;
        flex-basis: 286px;
    }

    .slot-card {
        min-height: 182px;
        height: 182px;
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 16px);
    }

    .compact-board-toolbar {
        padding: 10px 12px;
    }

    .compact-date-form {
        gap: 8px;
    }

    .compact-date-form input[type="date"] {
        min-height: 46px;
        padding-left: 12px;
        flex-basis: 178px;
        width: 178px;
        max-width: min(178px, calc(100vw - 120px));
    }

    .compact-today-btn {
        min-height: 46px;
        padding-inline: 14px;
    }

    .nav-link {
        padding: 7px 10px;
        font-size: .88rem;
    }

    .user-chip {
        padding: 6px 7px;
    }

    .user-chip-role {
        display: none;
    }

    .board-zoom-select {
        min-width: 86px;
        width: 86px;
    }

    .game-column-header-sticky {
        padding: 8px;
    }

    .game-thumb {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .game-column-header-text h2 {
        font-size: 1.08rem;
    }

    .slot-card {
        min-height: 180px;
        height: 180px;
        padding: 13px 14px;
    }

    .slot-time {
        font-size: 1.36rem;
    }

    .slot-line-phone {
        font-size: 1.12rem;
    }

    .slot-actions-inline {
        gap: 4px;
    }

    .slot-actions-inline .btn {
        padding: 0 14px;
        font-size: .86rem;
    }

    .btn-delete-slot {
        min-height: 40px !important;
        height: 40px;
        padding-inline: 16px !important;
    }

    .field-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .brand-title {
        font-size: .94rem;
    }

    .brand-subtitle {
        font-size: .72rem;
    }

    .header-nav {
        gap: 6px;
    }

    .nav-link {
        padding: 7px 9px;
        font-size: .84rem;
    }

    .user-chip-name {
        font-size: .86rem;
    }

    .slot-card {
        min-height: 176px;
        height: 176px;
    }

    .slot-time {
        font-size: 1.4rem;
    }
}
