:root {
    color-scheme: light;
    --color-bg: #fff8f8;
    --color-surface: #ffffff;
    --color-surface-muted: #fff1f2;
    --color-text: #26191b;
    --color-text-muted: #746467;
    --color-border: #ead6d9;
    --color-primary: #ed0013;
    --color-primary-hover: #bd000f;
    --color-primary-soft: #ffe8ea;
    --color-accent: #f04452;
    --color-gold: #f5b700;
    --color-teal: #087c78;
    --color-success: #108263;
    --color-warning: #9b5b00;
    --color-danger: #c91c2b;
    --shadow-sm: 0 3px 12px rgb(82 18 25 / 7%);
    --shadow-md: 0 10px 26px rgb(82 18 25 / 12%);
    --shadow-lg: 0 24px 70px rgb(39 8 12 / 28%);
    --radius-sm: 0.65rem;
    --radius-md: 0.8rem;
    --radius-lg: 1.15rem;
    --focus-ring: 0 0 0 4px rgb(237 0 19 / 20%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

html,
body,
#app {
    min-height: 100%;
    margin: 0;
}

body {
    background:
        radial-gradient(circle at 8% 12%, rgb(237 0 19 / 7%), transparent 24rem),
        radial-gradient(circle at 92% 88%, rgb(245 183 0 / 7%), transparent 22rem),
        var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--color-primary);
}

a:hover {
    color: var(--color-primary-hover);
}

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

h1,
h2,
h3 {
    color: var(--color-text);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}

.app-shell {
    display: grid;
    grid-template: "sidebar header" 4rem "sidebar content" 1fr / 15rem minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.app-header {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgb(255 255 255 / 86%);
    border-bottom: 1px solid rgb(234 214 217 / 82%);
    display: flex;
    grid-area: header;
    justify-content: space-between;
    padding: 0.55rem clamp(1rem, 2vw, 1.5rem);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-sidebar {
    background:
        radial-gradient(circle at 12% 4%, rgb(255 255 255 / 12%), transparent 13rem),
        linear-gradient(165deg, #211719 0%, #33171b 58%, #4a171d 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    grid-area: sidebar;
    align-self: start;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 1rem 0.8rem 0.85rem;
    position: sticky;
    top: 0;
    transition: transform 200ms ease;
    z-index: 50;
}

.sidebar-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.brand {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
}

.brand:hover {
    color: #fff;
}

.playshopin-brand {
    align-items: center;
    display: inline-flex;
    max-width: 100%;
}

.playshopin-brand-compact {
    gap: 0.65rem;
}

.playshopin-symbol {
    background: #ed0013;
    border: 2px solid rgb(255 255 255 / 72%);
    border-radius: 0.65rem;
    box-shadow: 0 7px 18px rgb(15 5 30 / 24%);
    display: block;
    flex: 0 0 auto;
    height: 2.4rem;
    overflow: hidden;
    position: relative;
    width: 2.4rem;
}

.playshopin-symbol img {
    display: block;
    height: auto;
    left: -85%;
    max-width: none;
    position: absolute;
    top: -53%;
    width: 270%;
}

.playshopin-brand-copy {
    display: grid;
    line-height: 1.05;
    min-width: 0;
}

.playshopin-brand-copy strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.playshopin-brand-copy small {
    color: rgb(255 255 255 / 68%);
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.playshopin-full-logo {
    background: #ed0013;
    border: 2px solid rgb(255 255 255 / 38%);
    border-radius: 1rem;
    box-shadow: 0 14px 32px rgb(12 4 30 / 25%);
    display: block;
    height: 7.7rem;
    overflow: hidden;
    position: relative;
    width: min(11.5rem, 70vw);
}

.playshopin-full-logo img {
    display: block;
    height: auto;
    transform: translateY(-18%);
    width: 100%;
}

.mobile-brand .playshopin-symbol {
    border-width: 1px;
    height: 1.9rem;
    width: 1.9rem;
}

.mobile-brand .playshopin-brand-copy strong {
    color: var(--color-text);
    font-size: 0.95rem;
}

.full-page-loader .playshopin-brand-copy strong {
    color: var(--color-text);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.brand-copy small {
    color: rgb(255 255 255 / 68%);
    font-size: 0.72rem;
    margin-top: 0.25rem;
}

.nav-list {
    display: grid;
    gap: 0.35rem;
}

.nav-section-label {
    color: rgb(255 255 255 / 48%);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0 0.7rem 0.35rem;
    text-transform: uppercase;
}

.nav-section-spaced {
    margin-top: 1rem;
}

.nav-list a {
    align-items: center;
    border-radius: var(--radius-sm);
    color: rgb(255 255 255 / 78%);
    display: flex;
    font-size: 0.88rem;
    font-weight: 650;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-list a > span {
    align-items: center;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 0.55rem;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgb(255 255 255 / 14%);
    color: #fff;
    transform: translateX(2px);
}

.nav-list a.active > span {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #392400;
}

.sidebar-guest {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.25rem;
}

.sidebar-guest p {
    color: rgb(255 255 255 / 70%);
    font-size: 0.88rem;
    margin: 0;
    padding-inline: 0.7rem;
}

.sidebar-sign-in {
    background: rgb(255 255 255 / 12%);
    border-color: rgb(255 255 255 / 18%);
    color: #fff;
    margin-inline: 0.7rem;
}

.sidebar-sign-in:hover {
    background: rgb(255 255 255 / 20%);
    color: #fff;
}

.sidebar-footer {
    border-top: 1px solid rgb(255 255 255 / 10%);
    color: rgb(255 255 255 / 60%);
    display: grid;
    font-size: 0.78rem;
    gap: 0.75rem;
    margin-top: auto;
    padding: 1rem 0.7rem 0;
}

.live-indicator {
    align-items: center;
    color: rgb(255 255 255 / 84%);
    display: flex;
    gap: 0.5rem;
}

.live-indicator i {
    background: #52e6a7;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(82 230 167 / 14%);
    height: 0.5rem;
    width: 0.5rem;
}

.app-content {
    grid-area: content;
    margin: 0 auto;
    max-width: 82rem;
    padding: clamp(0.9rem, 2vw, 1.5rem);
    width: 100%;
}

.app-content > .form-stack,
.app-content > .action-stack,
.app-content > .game-dashboard,
.app-content > .ticket-page {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-inline: auto;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.35rem);
    position: relative;
}

.app-content > .form-stack,
.app-content > .game-dashboard {
    max-width: 36rem;
}

.app-content > .action-stack {
    max-width: 56rem;
}

.app-content > .ticket-page {
    max-width: 68rem;
}

.app-content > .form-stack::before,
.app-content > .action-stack::before,
.app-content > .game-dashboard::before,
.app-content > .ticket-page::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-gold));
    content: "";
    height: 0.25rem;
    inset: 0 0 auto;
    position: absolute;
}

.app-content > :is(.form-stack, .action-stack, .game-dashboard) .form-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.8rem;
    text-align: left;
}

.app-content > :is(.form-stack, .action-stack) .form-header h1,
.app-content > .game-dashboard .form-header h1 {
    font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.app-content .button-accent {
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    min-height: 2.15rem;
}

.page > .form-stack {
    max-width: 36rem;
}

.desktop-context {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-header-start {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.menu-button,
.mobile-brand,
.sidebar-close,
.sidebar-scrim {
    display: none;
}

.profile-menu {
    position: relative;
}

.profile-menu summary {
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    font-weight: 650;
    gap: 0.55rem;
    list-style: none;
    padding: 0.28rem 0.75rem 0.28rem 0.32rem;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-menu nav {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: grid;
    min-width: 11rem;
    padding: 0.4rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 30;
}

.profile-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), #ff3b49);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.profile-menu a,
.profile-menu button {
    background: transparent;
    border: 0;
    border-radius: 0.35rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.6rem 0.75rem;
    text-align: left;
    text-decoration: none;
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: var(--color-surface-muted);
}

.app-header-actions {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.quick-create-menu {
    position: relative;
}

.quick-create-floating {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right));
    z-index: 80;
}

.quick-create-floating .quick-create-trigger {
    border-radius: 999px;
    box-shadow: 0 10px 28px rgb(145 0 12 / 25%);
    min-height: 3rem;
    padding-inline: 1rem;
}

.quick-create-menu.quick-create-floating nav {
    bottom: calc(100% + 0.65rem);
    top: auto;
}

.quick-create-trigger {
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), #ff3343);
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 12px rgb(237 0 19 / 20%);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.4rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.65rem;
}

.quick-create-trigger > span:first-child {
    font-size: 1.15rem;
    line-height: 1;
}

.quick-create-menu-open .quick-create-trigger {
    background: var(--color-primary-hover);
    box-shadow: var(--focus-ring);
    position: relative;
    z-index: 82;
}

.quick-create-backdrop {
    background: transparent;
    border: 0;
    inset: 0;
    position: fixed;
    z-index: 79;
}

.quick-create-menu nav {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 0.25rem;
    min-width: 17rem;
    padding: 0.4rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 80;
}

.quick-create-menu nav a {
    align-items: center;
    border-radius: 0.5rem;
    color: var(--color-text);
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto 1fr;
    padding: 0.55rem;
    text-decoration: none;
}

.quick-create-menu nav a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
}

.quick-create-menu nav a > span:first-child {
    align-items: center;
    background: var(--color-primary-soft);
    border-radius: 0.45rem;
    color: var(--color-primary-hover);
    display: inline-flex;
    font-size: 0.65rem;
    font-weight: 850;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.quick-create-menu nav a > span:last-child {
    display: grid;
    gap: 0.1rem;
}

.quick-create-menu nav small {
    color: var(--color-text-muted);
    font-size: 0.65rem;
}

.game-background,
.player-layout,
.auth-layout {
    align-items: center;
    background:
        radial-gradient(circle at 10% 8%, rgb(245 183 0 / 18%), transparent 20rem),
        radial-gradient(circle at 92% 85%, rgb(237 0 19 / 24%), transparent 22rem),
        linear-gradient(145deg, #1f1114 0%, #3b1319 48%, #69101a 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(1rem, 3vw, 2rem);
    position: relative;
}

.game-background::before,
.auth-layout::before,
.player-layout::before {
    background-image: radial-gradient(rgb(255 255 255 / 8%) 1px, transparent 1px);
    background-size: 1.5rem 1.5rem;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.auth-shell,
.game-shell {
    display: grid;
    gap: 1rem;
    max-width: 34rem;
    position: relative;
    width: 100%;
    z-index: 2;
}

.game-shell {
    max-width: 36rem;
}

.experience-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-inline: 0.4rem;
}

.experience-brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    gap: 0.75rem;
    justify-self: center;
    text-decoration: none;
}

.experience-brand:hover {
    color: #fff;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(145deg, var(--color-gold), #ff8f3f);
    border: 3px solid rgb(255 255 255 / 70%);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgb(10 4 38 / 28%), inset 0 -5px 12px rgb(140 59 0 / 12%);
    color: #382000;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.45rem;
    font-weight: 900;
    height: 3.25rem;
    justify-content: center;
    letter-spacing: -0.08em;
    transform: rotate(-5deg);
    width: 3.25rem;
}

.brand-mark-small {
    border-width: 2px;
    font-size: 0.9rem;
    height: 2.2rem;
    width: 2.2rem;
}

.experience-brand .brand-copy strong {
    font-size: 1.2rem;
}

.organizer-badge {
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    color: rgb(255 255 255 / 86%);
    font-size: 0.75rem;
    font-weight: 750;
    padding: 0.42rem 0.7rem;
    text-decoration: none;
}

.organizer-badge:hover {
    background: rgb(255 255 255 / 20%);
    color: #fff;
}

.experience-footer {
    color: rgb(255 255 255 / 64%);
    font-size: 0.78rem;
    margin: 0;
    text-align: center;
}

.bingo-decoration {
    align-items: center;
    background: rgb(255 255 255 / 10%);
    border: 2px solid rgb(255 255 255 / 13%);
    border-radius: 50%;
    color: rgb(255 255 255 / 42%);
    display: flex;
    font-weight: 850;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    user-select: none;
}

.bingo-decoration-one {
    height: 7rem;
    left: 7%;
    top: 12%;
    transform: rotate(-12deg);
    width: 7rem;
}

.bingo-decoration-two {
    bottom: 7%;
    height: 10rem;
    right: 5%;
    transform: rotate(11deg);
    width: 10rem;
}

.bingo-decoration-three {
    height: 4.5rem;
    right: 14%;
    top: 9%;
    transform: rotate(8deg);
    width: 4.5rem;
}

.game-card,
.auth-card {
    background: rgb(255 255 255 / 97%);
    border: 1px solid rgb(255 255 255 / 72%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    max-height: calc(100vh - 8.5rem);
    overflow: auto;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    width: 100%;
}

.auth-card {
    max-height: calc(100vh - 10rem);
    max-width: 34rem;
}

.player-layout {
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-start;
    padding: 1rem;
}

.player-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    max-width: 70rem;
    position: relative;
    width: 100%;
    z-index: 2;
}

.player-view-label {
    background: rgb(255 255 255 / 14%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.38rem 0.65rem;
    text-transform: uppercase;
}

.player-content {
    background: var(--color-surface);
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-height: calc(100vh - 5.5rem);
    overflow: auto;
    position: relative;
    width: min(100%, 70rem);
    z-index: 2;
}

.player-content > .form-stack {
    margin: clamp(1rem, 6vh, 4rem) auto;
    max-width: 32rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.public-ticket-page {
    display: grid;
    min-height: calc(100vh - 7rem);
    padding: clamp(1rem, 5vw, 3rem);
    place-items: center;
}

.public-ticket-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(1.1rem, 4vw, 2rem);
    width: min(100%, 32rem);
}

.hosted-games {
    background: linear-gradient(145deg, #2b1648, #431c64);
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    color: #fff;
    padding: clamp(1.1rem, 4vw, 2rem);
    width: min(100%, 35rem);
}

.hosted-games h1,
.hosted-games p {
    color: #fff;
    margin-bottom: 0;
}

.hosted-games .eyebrow {
    color: #d9c9ff;
}

.music-toggle {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.music-toggle-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.hosted-game-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.hosted-game-card {
    align-items: center;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 4.5rem;
    padding: 0.7rem;
    text-align: left;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.hosted-game-card:hover,
.hosted-game-card:focus-visible,
.hosted-game-card.selected {
    background: rgb(255 255 255 / 15%);
    border-color: #f5c451;
    transform: translateY(-1px);
}

.hosted-game-brand {
    align-items: center;
    background: #fff;
    border-radius: 0.7rem;
    display: flex;
    height: 3rem;
    justify-content: center;
    overflow: hidden;
    width: 3rem;
}

.hosted-game-brand img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.hosted-game-brand i {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 900;
}

.hosted-game-copy {
    display: grid;
    gap: 0.1rem;
}

.hosted-game-copy small,
.hosted-game-copy em {
    color: #d9c9ff;
    font-size: 0.72rem;
    font-style: normal;
}

.hosted-game-join {
    background: #f5c451;
    border-radius: 999px;
    color: #3e2800;
    font-size: 0.72rem;
    font-weight: 850;
    padding: 0.38rem 0.65rem;
}

.hosted-games-empty {
    background: rgb(255 255 255 / 8%);
    border-radius: var(--radius-sm);
    margin-top: 1.2rem;
    padding: 0.8rem;
}

.hosted-game-loading {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.hosted-game-loading span {
    animation: skeleton-pulse 1.4s ease-in-out infinite;
    background: rgb(255 255 255 / 10%);
    border-radius: var(--radius-sm);
    display: block;
    height: 4.5rem;
}

/* One-card game joining flow: players choose one path at a time. */
.public-ticket-page > .join-game-card {
    display: grid;
    gap: 1rem;
    max-width: 33rem;
    width: min(100%, 33rem);
}

.join-game-heading {
    margin-bottom: 0;
    text-align: center;
}

.join-game-heading h1 {
    font-size: clamp(1.7rem, 5vw, 2.25rem);
}

.join-mode-switch {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.35rem;
    justify-self: center;
    max-width: 34rem;
    width: 100%;
}

.join-mode-switch button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-md) - 0.25rem);
    color: var(--color-text-muted);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 0.1rem;
    min-height: 3.7rem;
    padding: 0.55rem;
    text-align: center;
}

.join-mode-switch button.active {
    background: #fff;
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary-hover);
}

.join-mode-switch strong {
    font-size: 0.88rem;
}

.join-mode-switch small {
    font-size: 0.68rem;
}

.join-game-card .hosted-game-list {
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin-top: 0;
    padding: 0.1rem;
}

.join-game-card .hosted-game-card {
    background: #fff;
    border-color: var(--color-border);
    color: var(--color-text);
    min-height: 4rem;
    padding: 0.55rem 0.65rem;
}

.join-game-card .hosted-game-card:hover,
.join-game-card .hosted-game-card:focus-visible {
    background: #fff9fa;
    border-color: var(--color-primary);
}

.join-game-card .hosted-game-copy small {
    color: var(--color-text-muted);
}

.join-game-card .hosted-game-join {
    background: #fce8eb;
    color: var(--color-primary-hover);
}

.join-game-card .hosted-game-loading {
    margin-top: 0;
}

.join-game-card .hosted-game-loading span {
    background: var(--color-surface-muted);
    height: 4rem;
}

.join-game-card .hosted-games-empty {
    background: var(--color-surface-muted);
    color: var(--color-text);
    display: grid;
    gap: 0.2rem;
    margin-top: 0;
    text-align: center;
}

.join-game-card .hosted-games-empty span {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.private-game-entry {
    width: 100%;
}

.private-game-entry .form-field {
    margin: 0;
}

.game-selection-area {
    display: block;
    min-height: 5rem;
    width: 100%;
}

.game-selection-area > * {
    width: 100%;
}

.selected-hosted-game {
    align-items: center;
    background: #f8f5ff;
    border: 1px solid #ddd2f0;
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.65rem;
}

.selected-hosted-game > span:nth-child(2) {
    display: grid;
    gap: 0.08rem;
}

.selected-hosted-game small {
    color: var(--color-text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.selected-hosted-game button {
    background: transparent;
    border: 0;
    color: var(--color-primary-hover);
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.45rem;
}

/* Expanded panel shown after a game is picked: showcases the sponsor's branding at a
   larger size before the player enters their details. */
.selected-hosted-game-expanded {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.9rem;
}

.selected-hosted-game-heading {
    align-items: center;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.selected-hosted-game-media {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.selected-hosted-game-logo,
.selected-hosted-game-product {
    background: #fff;
    border: 1px solid #ddd2f0;
    border-radius: var(--radius-sm);
    margin: 0;
    overflow: hidden;
}

.selected-hosted-game-logo {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    height: 7rem;
    justify-content: center;
    padding: 0.5rem;
    width: 7rem;
}

.selected-hosted-game-logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.selected-hosted-game-logo i {
    color: var(--color-primary);
    font-size: 2.6rem;
    font-style: normal;
    font-weight: 900;
}

.selected-hosted-game-product {
    flex: 1 1 12rem;
    min-width: 10rem;
}

.selected-hosted-game-product img {
    display: block;
    height: 100%;
    max-height: 12rem;
    min-height: 7rem;
    object-fit: cover;
    width: 100%;
}

.player-details-fields {
    border-top: 1px solid var(--color-border);
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 1rem;
}

.player-details-fields .form-field {
    margin: 0;
}

.player-details-fields > .button {
    grid-column: 1 / -1;
}

@media (max-width: 40rem) {
    .join-game-card .hosted-game-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .player-details-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .player-details-fields > .button {
        grid-column: 1;
    }

    .selected-hosted-game-media {
        flex-direction: column;
    }

    .selected-hosted-game-logo {
        height: 6rem;
        width: 6rem;
    }

    .selected-hosted-game-product {
        flex-basis: auto;
        width: 100%;
    }

    .selected-hosted-game-product img {
        max-height: 10rem;
    }
}

.ticket-quantity-summary {
    align-items: center;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0.8rem;
}

.ticket-quantity-summary span {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.ticket-quantity-summary strong {
    align-items: center;
    background: var(--color-primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 1.8rem;
    justify-content: center;
    width: 1.8rem;
}

.landing-page {
    background:
        radial-gradient(circle at 82% 11%, rgb(237 0 19 / 8%), transparent 22rem),
        linear-gradient(180deg, #fff 0%, #fffafb 100%);
    min-height: calc(100vh - 5.5rem);
    overflow: hidden;
}

.landing-hero {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 7vw, 6rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
    margin-inline: auto;
    max-width: 68rem;
    min-height: min(42rem, calc(100vh - 5.5rem));
    padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 4rem);
}

.landing-copy {
    position: relative;
    z-index: 2;
}

.landing-kicker {
    align-items: center;
    color: var(--color-primary-hover);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 850;
    gap: 0.55rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.landing-kicker i,
.landing-ticket-card footer i {
    background: #19a974;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(25 169 116 / 13%);
    display: inline-block;
    height: 0.52rem;
    width: 0.52rem;
}

.landing-copy h1 {
    font-size: clamp(2.6rem, 5.8vw, 4.8rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
    margin-bottom: 1.35rem;
    max-width: 11ch;
}

.landing-intro {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 35rem;
}

.landing-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
}

.landing-actions > span {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.landing-primary-action,
.landing-final-cta .button {
    gap: 1rem;
    justify-content: space-between;
    min-width: 11.5rem;
}

.landing-primary-action span,
.landing-final-cta .button span {
    font-size: 1.25rem;
    line-height: 1;
}

.landing-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.15rem;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.landing-reassurance li {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 0.4rem;
}

.landing-reassurance li span {
    align-items: center;
    background: #e8f8f2;
    border-radius: 50%;
    color: #087c58;
    display: inline-flex;
    font-size: 0.62rem;
    height: 1.25rem;
    justify-content: center;
    width: 1.25rem;
}

.landing-ticket-preview {
    min-height: 24rem;
    position: relative;
}

.landing-ticket-glow {
    background: linear-gradient(135deg, rgb(237 0 19 / 16%), rgb(245 183 0 / 20%));
    border-radius: 50%;
    filter: blur(2px);
    inset: -2rem -3rem -1rem;
    position: absolute;
    transform: rotate(-7deg);
}

.landing-ticket-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    box-shadow: 0 30px 70px rgb(90 13 22 / 20%);
    overflow: hidden;
    padding: clamp(1rem, 3vw, 1.5rem);
    position: absolute;
    right: 0;
    top: 2.2rem;
    transform: rotate(2deg);
    width: min(100%, 27rem);
    z-index: 2;
}

.landing-ticket-card > header,
.landing-ticket-card > footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.landing-ticket-card > header div {
    display: grid;
    gap: 0.12rem;
}

.landing-ticket-card > header div span {
    color: var(--color-primary);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-ticket-card > header div strong {
    font-size: 1.2rem;
}

.landing-ticket-number {
    background: var(--color-primary-soft);
    border-radius: 999px;
    color: var(--color-primary-hover);
    font-size: 0.72rem;
    font-weight: 850;
    padding: 0.38rem 0.65rem;
}

.landing-ticket-grid {
    background: var(--color-border);
    border: 2px solid var(--color-border);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    margin: 1.2rem 0;
}

.landing-ticket-grid span,
.landing-ticket-grid i {
    align-items: center;
    background: #fff;
    display: flex;
    font-size: clamp(0.72rem, 1.5vw, 0.92rem);
    font-style: normal;
    font-weight: 850;
    justify-content: center;
    min-height: clamp(2.25rem, 4.5vw, 3rem);
}

.landing-ticket-grid span:nth-child(5) {
    background: var(--color-primary);
    color: #fff;
    position: relative;
}

.landing-ticket-grid span:nth-child(5)::after {
    border: 2px solid rgb(255 255 255 / 78%);
    border-radius: 50%;
    content: "";
    inset: 0.32rem;
    position: absolute;
}

.landing-ticket-card > footer span {
    align-items: center;
    color: #087c58;
    display: flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.45rem;
}

.landing-ticket-card > footer small {
    color: var(--color-text-muted);
    font-size: 0.68rem;
}

.landing-called-number {
    align-items: center;
    background: linear-gradient(145deg, var(--color-gold), #ffca2f);
    border: 5px solid #fff;
    border-radius: 50%;
    bottom: 0;
    box-shadow: 0 16px 30px rgb(84 51 0 / 22%);
    color: #372600;
    display: flex;
    flex-direction: column;
    height: 7rem;
    justify-content: center;
    left: -0.5rem;
    position: absolute;
    transform: rotate(-7deg);
    width: 7rem;
    z-index: 3;
}

.landing-called-number small {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-called-number strong {
    font-size: 2.25rem;
    line-height: 1;
}

.landing-how {
    background: #fff6f7;
    border-block: 1px solid var(--color-border);
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.landing-how > header,
.landing-steps,
.landing-final-cta {
    margin-inline: auto;
    max-width: 62rem;
}

.landing-how > header {
    margin-bottom: 2rem;
    max-width: 42rem;
    text-align: center;
}

.landing-how h2,
.landing-final-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    margin-bottom: 0.65rem;
}

.landing-how > header p,
.landing-steps p {
    color: var(--color-text-muted);
}

.landing-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-steps article {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
}

.landing-steps article > span {
    align-items: center;
    background: var(--color-primary-soft);
    border-radius: 0.7rem;
    color: var(--color-primary-hover);
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 900;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.landing-steps h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.landing-steps p {
    font-size: 0.84rem;
    margin: 0;
}

.landing-final-cta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
}

.landing-final-cta h2 {
    margin: 0;
}

@media (max-width: 54rem) {
    .landing-hero {
        gap: 2.5rem;
        grid-template-columns: 1fr;
        padding-top: 4rem;
    }

    .landing-copy {
        text-align: center;
    }

    .landing-copy h1,
    .landing-intro {
        margin-inline: auto;
    }

    .landing-actions,
    .landing-reassurance {
        justify-content: center;
    }

    .landing-ticket-preview {
        margin-inline: auto;
        width: min(100%, 30rem);
    }
}

@media (max-width: 42rem) {
    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-steps article {
        align-items: start;
        grid-template-columns: auto 1fr;
    }

    .landing-final-cta {
        align-items: stretch;
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }

    .landing-final-cta .button {
        width: 100%;
    }
}

@media (max-width: 30rem) {
    .landing-copy h1 {
        font-size: 2.65rem;
    }

    .landing-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-primary-action {
        width: 100%;
    }

    .landing-reassurance {
        align-items: center;
        flex-direction: column;
    }

    .landing-ticket-preview {
        min-height: 20rem;
    }

    .landing-called-number {
        height: 5.5rem;
        left: -0.25rem;
        width: 5.5rem;
    }

    .landing-called-number strong {
        font-size: 1.75rem;
    }

    .landing-ticket-card {
        padding: 0.85rem;
    }

    .landing-ticket-card > footer small {
        display: none;
    }
}

.auth-alternate-action {
    border-top: 1px solid var(--color-border);
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
}

.auth-alternate-action span {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.event-code-line {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.3rem 0 0.45rem;
}

.event-code-line strong {
    color: var(--color-primary-hover);
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.event-code-line > span {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.event-code-copy-button {
    font-size: 0.72rem;
    min-height: 1.75rem;
    padding: 0.2rem 0.55rem;
}

.page-skeleton-heading,
.page-skeleton-form-header {
    display: grid;
    gap: 0.5rem;
    min-width: min(22rem, 70vw);
}

.page-skeleton-form-header {
    border-bottom: 1px solid var(--color-border);
    justify-items: start;
    padding-bottom: 0.8rem;
}

.loading-skeleton {
    animation: skeleton-shimmer 1.35s ease-in-out infinite;
    background: linear-gradient(100deg, var(--color-surface-muted) 30%, #fffafa 50%, var(--color-surface-muted) 70%);
    background-size: 220% 100%;
    border-radius: 0.4rem;
    display: block;
    height: 0.8rem;
}

.skeleton-eyebrow {
    height: 0.65rem;
    width: 6.5rem;
}

.skeleton-title {
    height: 1.75rem;
    width: 9rem;
}

.skeleton-title-wide {
    width: min(24rem, 65vw);
}

.skeleton-description {
    width: min(22rem, 70vw);
}

.skeleton-breadcrumb {
    height: 0.65rem;
    width: 10rem;
}

.skeleton-meta {
    width: 11rem;
}

.skeleton-button {
    height: 2.1rem;
    width: 7.5rem;
}

.page-skeleton-actions {
    display: flex;
    gap: 0.5rem;
}

.page-skeleton-hero .loading-skeleton {
    background-image: linear-gradient(100deg, rgb(255 255 255 / 18%) 30%, rgb(255 255 255 / 38%) 50%, rgb(255 255 255 / 18%) 70%);
}

.skeleton-metric {
    height: 6rem;
}

.skeleton-panel {
    height: 17rem;
}

.page-skeleton-fields {
    display: grid;
    gap: 0.8rem;
}

.page-skeleton-contained-form {
    max-width: 36rem;
}

.page-skeleton-summary .skeleton-summary-stat {
    height: 2.2rem;
    width: 5rem;
}

.page-skeleton-summary .skeleton-summary-search {
    height: 2.4rem;
    margin-left: auto;
    width: min(20rem, 45%);
}

.page-skeleton-field {
    display: grid;
    gap: 0.4rem;
}

.skeleton-label {
    height: 0.65rem;
    width: 7rem;
}

.skeleton-input {
    height: 2.65rem;
    width: 100%;
}

.page-skeleton-card-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.page-skeleton-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
}

.skeleton-card-title {
    height: 1.2rem;
    width: 55%;
}

.skeleton-card-line {
    width: 75%;
}

.skeleton-card-block {
    height: 4.5rem;
    width: 100%;
}

.page-skeleton-workspace .page-skeleton-field {
    min-width: min(28rem, 100%);
}

.skeleton-workspace-action {
    height: 4.25rem;
    width: 100%;
}

.page-skeleton-table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.page-skeleton-table-row {
    align-items: center;
    border-top: 1px solid var(--color-border);
    display: grid;
    gap: 1rem;
    grid-auto-columns: minmax(4rem, 1fr);
    grid-auto-flow: column;
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
}

.page-skeleton-table-row:first-child {
    border-top: 0;
}

.page-skeleton-table-row .loading-skeleton {
    width: min(12rem, 85%);
}

.page-skeleton-table-header {
    background: var(--color-surface-muted);
    min-height: 2.5rem;
}

.page-skeleton-table-header .loading-skeleton {
    height: 0.65rem;
    width: 4rem;
}

.page-skeleton-table-row .skeleton-table-action {
    justify-self: end;
    width: 6rem;
}

.skeleton-detail-row {
    height: 3.5rem;
}

.page-skeleton-game-panel {
    align-content: start;
    display: grid;
    gap: 0.75rem;
}

.page-skeleton-panel-heading {
    display: grid;
    gap: 0.45rem;
}

.skeleton-game-board {
    height: 25rem;
    width: 100%;
}

.skeleton-ticket-count {
    height: 2rem;
    width: 5rem;
}

.page-skeleton-ticket-video {
    display: grid;
    gap: 0.75rem;
}

.skeleton-video-block {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
}

.page-skeleton-ticket-timeline {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.page-skeleton-instructions .loading-skeleton {
    height: 0.7rem;
    width: 8rem;
}

.page-skeleton-ticket-panel {
    display: grid;
    gap: 0.75rem;
}

.skeleton-ticket-board {
    height: 9rem;
    width: 100%;
}

@keyframes skeleton-shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.page,
.panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: clamp(0.8rem, 1.5vw, 1rem);
}

.page {
    overflow: hidden;
    position: relative;
}

.page-narrow {
    margin-inline: auto;
    max-width: 36rem;
}

.page::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-gold));
    content: "";
    height: 0.25rem;
    inset: 0 0 auto;
    position: absolute;
}

.page-header,
.toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.page-header > :first-child,
.toolbar > :first-child {
    min-width: 0;
}

.page-header h1,
.form-header h1 {
    margin-bottom: 0.25rem;
}

.page-header h1 {
    font-size: 1.65rem;
}

.form-header {
    margin-bottom: 1.1rem;
    text-align: center;
}

.form-header h1 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.form-header p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.eyebrow {
    color: var(--color-primary);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.form-stack,
.action-stack {
    display: grid;
    gap: 0.8rem;
}

.action-stack h1 {
    text-align: center;
}

.game-dashboard {
    display: grid;
    gap: 0.25rem;
}

.game-actions {
    display: grid;
    gap: 0.6rem;
}

.game-action {
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    cursor: pointer;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 3.5rem;
    padding: 0.45rem 0.6rem;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    width: 100%;
}

.game-action:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.game-action-number {
    align-items: center;
    background: var(--action-color);
    border: 3px solid rgb(255 255 255 / 65%);
    border-radius: 50%;
    box-shadow: 0 5px 12px color-mix(in srgb, var(--action-color) 30%, transparent);
    color: #fff;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 850;
    height: 2.1rem;
    justify-content: center;
    width: 2.1rem;
}

.game-action-copy {
    display: grid;
    gap: 0.18rem;
}

.game-action-copy strong {
    font-size: 0.98rem;
}

.game-action-copy small {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.game-action-arrow {
    color: var(--action-color);
    font-size: 1.25rem;
    font-weight: 900;
}

.game-action-coral { --action-color: var(--color-accent); }
.game-action-purple { --action-color: var(--color-primary); }
.game-action-teal { --action-color: var(--color-teal); }

.dashboard-page {
    display: grid;
    gap: 1rem;
}

.dashboard-hero {
    align-items: center;
    background:
        radial-gradient(circle at 92% 10%, rgb(245 183 0 / 22%), transparent 15rem),
        linear-gradient(135deg, #3d1016, #a9000e);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 10.5rem;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2rem);
    position: relative;
}

.dashboard-hero .eyebrow,
.dashboard-hero h1,
.dashboard-hero p {
    color: #fff;
}

.dashboard-hero h1 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin-bottom: 0.45rem;
}

.dashboard-hero p {
    margin-bottom: 0;
    max-width: 38rem;
    opacity: 0.78;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    margin-left: 1rem;
}

.dashboard-hero-actions .button-secondary {
    background: rgb(255 255 255 / 13%);
    border-color: rgb(255 255 255 / 24%);
    color: #fff;
}

.dashboard-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    --metric-color: var(--color-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.18rem;
    overflow: hidden;
    padding: 0.9rem 1rem;
    position: relative;
}

.metric-card::before {
    background: var(--metric-color);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 0.25rem;
}

.metric-card > span {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 750;
}

.metric-card strong {
    color: var(--metric-color);
    font-size: 1.65rem;
    line-height: 1.15;
}

.metric-card small {
    color: var(--color-text-muted);
    font-size: 0.68rem;
}

.metric-card-accent { --metric-color: var(--color-accent); }
.metric-card-teal { --metric-color: var(--color-teal); }
.metric-card-gold { --metric-color: var(--color-warning); }

.dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.75fr);
}

.dashboard-section-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.dashboard-section-header h2 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.dashboard-section-header p {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    margin-bottom: 0;
}

.recent-game-list {
    display: grid;
}

.recent-game-row {
    align-items: center;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.recent-game-name {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    min-width: 0;
}

.recent-game-name > div {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.recent-game-name strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-game-name small {
    color: var(--color-text-muted);
}

.recent-game-mark {
    align-items: center;
    background: var(--color-primary-soft);
    border-radius: var(--radius-sm);
    color: var(--color-primary-hover);
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 850;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.recent-game-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.45rem;
}

.dashboard-empty {
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}

.dashboard-empty h3 {
    margin-bottom: 0.25rem;
}

.dashboard-empty p {
    color: var(--color-text-muted);
}

.dashboard-quick-actions {
    align-content: start;
    display: grid;
    gap: 0.6rem;
}

.dashboard-action {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.65rem;
    text-align: left;
}

.dashboard-action:hover {
    background: var(--color-primary-soft);
    border-color: #efadb3;
}

.dashboard-action > span:first-child {
    align-items: center;
    background: var(--color-primary-soft);
    border-radius: var(--radius-sm);
    color: var(--color-primary-hover);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 850;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.dashboard-action > span:nth-child(2) {
    display: grid;
    gap: 0.15rem;
}

.dashboard-action small {
    color: var(--color-text-muted);
    font-size: 0.68rem;
}

.dashboard-action i {
    color: var(--color-primary);
    font-style: normal;
    font-weight: 850;
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

fieldset.form-field {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.form-field label,
.field-label {
    color: #3d2d30;
    font-size: 0.8rem;
    font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea,
.form-control {
    background: #fff;
    border: 1px solid #dec8cb;
    border-radius: var(--radius-sm);
    caret-color: var(--color-primary);
    color: var(--color-text);
    font-size: 0.88rem;
    min-height: 2.65rem;
    padding: 0.38rem 0.6rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
    width: 100%;
}

.form-field input,
.form-field select,
.form-control,
.app-select-trigger {
    height: 2.65rem;
    min-height: 2.65rem;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover,
.form-control:hover {
    border-color: #c99da2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-control:focus {
    background: #fff;
    border-color: var(--color-primary);
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.form-control::placeholder {
    color: #8f7d80;
    opacity: 1;
}

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text);
    box-shadow: 0 0 0 1000px #fff inset, var(--focus-ring);
    caret-color: var(--color-primary);
}

.form-field select option {
    background: #fff;
    color: var(--color-text);
}

.app-select {
    position: relative;
    width: 100%;
}

.app-select-open {
    z-index: 90;
}

.app-select-trigger {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid #dec8cb;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    min-height: 2.65rem;
    padding: 0.42rem 0.65rem;
    text-align: left;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
    width: 100%;
}

.app-select-trigger:hover:not(:disabled) {
    border-color: #c99da2;
}

.app-select-open .app-select-trigger {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.app-select-value {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.app-select-value strong,
.app-select-value > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-select-value small {
    color: var(--color-text-muted);
    font-size: 0.68rem;
}

.app-select-placeholder {
    color: #8f7d80;
    font-weight: 500;
}

.app-select-chevron {
    border-bottom: 2px solid var(--color-text-muted);
    border-right: 2px solid var(--color-text-muted);
    flex: 0 0 auto;
    height: 0.55rem;
    margin: 0 0.25rem 0.25rem 0.8rem;
    transform: rotate(45deg);
    transition: transform 150ms ease;
    width: 0.55rem;
}

.app-select-open .app-select-chevron {
    margin-bottom: -0.25rem;
    transform: rotate(225deg);
}

.app-select-disabled .app-select-trigger {
    background: var(--color-surface-muted);
    color: #6c5b5e;
    cursor: not-allowed;
}

.app-select-backdrop {
    background: transparent;
    border: 0;
    cursor: default;
    inset: 0;
    position: fixed;
    z-index: 90;
}

.app-select-menu {
    animation: select-menu-in 130ms ease-out;
    background: var(--color-surface);
    border: 1px solid #dec8cb;
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 45px rgb(57 20 25 / 22%);
    display: grid;
    gap: 0.25rem;
    left: 0;
    margin-top: 0.35rem;
    overflow: hidden;
    padding: 0.35rem;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 91;
}

.app-select-search {
    display: block;
    padding: 0.15rem 0.15rem 0.35rem;
    position: sticky;
    top: 0;
    z-index: 2;
}

.app-select-search input {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.6rem;
    width: 100%;
}

.app-select-search input:focus {
    background: var(--color-surface);
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.app-select-options-scroll {
    max-height: 14rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #d5b6ba transparent;
    scrollbar-width: thin;
}

.app-select-option {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 2.75rem;
    padding: 0.5rem 0.6rem;
    text-align: left;
    width: 100%;
}

.app-select-option:hover,
.app-select-option:focus-visible {
    background: var(--color-primary-soft);
    border-color: #f2cbd0;
}

.app-select-option.selected {
    background: var(--color-primary-soft);
    border-color: #efadb3;
    color: var(--color-primary-hover);
}

.app-select-option > span {
    display: grid;
    gap: 0.08rem;
}

.app-select-option strong {
    font-size: 0.82rem;
}

.app-select-option small {
    color: var(--color-text-muted);
    font-size: 0.68rem;
}

.app-select-option i {
    align-items: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.65rem;
    font-style: normal;
    height: 1.25rem;
    justify-content: center;
    width: 1.25rem;
}

.app-select-empty {
    color: var(--color-text-muted);
    padding: 0.75rem;
    text-align: center;
}

.event-workspace,
.select-form {
    overflow: visible !important;
}

@keyframes select-menu-in {
    from {
        opacity: 0;
        transform: translateY(-0.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-field textarea {
    height: auto;
    min-height: 4rem;
    resize: vertical;
}

.form-field input[readonly],
.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
    background: var(--color-surface-muted);
    color: #6c5b5e;
    cursor: not-allowed;
    opacity: 1;
}

.form-field small {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.optional-label {
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 650;
    margin-left: 0.35rem;
}

.security-code-input {
    font-size: 1.35rem !important;
    font-weight: 800;
    letter-spacing: 0.42em;
    text-align: center;
}

.validation-message,
.field-error {
    color: #ffb7bd;
    font-size: 0.82rem;
}

.page .validation-message,
.auth-card .validation-message,
.game-card .validation-message,
.page .field-error,
.auth-card .field-error,
.game-card .field-error {
    color: var(--color-danger);
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.34rem 0.7rem;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.button:hover:not(:disabled) {
    box-shadow: 0 8px 18px rgb(82 18 25 / 14%);
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-primary {
    background: linear-gradient(135deg, var(--color-primary), #ff3343);
    box-shadow: 0 7px 16px rgb(237 0 19 / 22%);
    color: #fff;
}

.button-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    color: #fff;
}

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

.button-secondary:hover:not(:disabled) {
    background: var(--color-primary-soft);
    border-color: #efadb3;
    color: var(--color-primary-hover);
}

.button-danger {
    background: var(--color-danger);
    color: #fff;
}

.button-success {
    background: var(--color-success);
    color: #fff;
}

.button-whatsapp {
    background: #25d366;
    border-color: #1fbd5a;
    box-shadow: 0 7px 16px rgb(37 211 102 / 24%);
    color: #fff;
}

.button-whatsapp:hover:not(:disabled) {
    background: #1fbd5a;
    border-color: #1aa850;
    box-shadow: 0 9px 20px rgb(37 211 102 / 30%);
    color: #fff;
}

.button-whatsapp:focus-visible {
    box-shadow: 0 0 0 4px rgb(37 211 102 / 24%);
}

.whatsapp-icon {
    display: block;
    flex: 0 0 auto;
    height: 1.1rem;
    width: 1.1rem;
}

.button-accent,
.gradient-button,
.gradient-button2,
.gradient-button3 {
    background: linear-gradient(135deg, var(--color-accent), #ff8b5e);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 750;
    box-shadow: 0 9px 20px rgb(255 92 115 / 22%);
    min-height: 2.2rem;
    padding: 0.4rem 0.8rem;
    width: 100%;
}

.gradient-button2 {
    background: linear-gradient(135deg, #d91b2a, #ff5b67);
}

.gradient-button3 {
    background: linear-gradient(135deg, #2479b9, #3e9f93);
}

.action-stack > .button-accent:nth-of-type(2) {
    background: linear-gradient(135deg, var(--color-primary), #ff3343);
    box-shadow: 0 9px 20px rgb(237 0 19 / 22%);
}

.action-stack > .button-accent:nth-of-type(3) {
    background: linear-gradient(135deg, #078f91, var(--color-teal));
    box-shadow: 0 9px 20px rgb(24 169 153 / 20%);
}

.gradient-button:disabled,
.gradient-button2:disabled,
.gradient-button3:disabled {
    background: #9ca5b3;
    cursor: not-allowed;
}

.button-block {
    width: 100%;
}

.app-content .button-block {
    justify-self: start;
    min-width: 8rem;
    width: auto;
}

.app-content .action-stack > .button-block {
    min-width: 10rem;
}

.button-large {
    min-height: 2.35rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.button-row-end {
    justify-content: flex-end;
}

.form-actions,
.page-actions,
.page-header-actions,
.event-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.form-actions,
.page-actions {
    border-top: 1px solid var(--color-border);
    justify-content: flex-end;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.form-actions {
    grid-column: 1 / -1;
}

.form-actions .button {
    min-width: 6.5rem;
}

.compact-field-action {
    justify-self: start;
}

.event-control-panel {
    align-items: end;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(15rem, 1fr) auto;
    padding: 1rem;
}

.event-picker {
    max-width: 28rem;
}

.event-help {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    margin: 0.65rem 0 0;
}

.event-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(12rem, 1fr));
}

.event-action-card {
    align-items: start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    display: grid;
    gap: 0.2rem;
    grid-template-columns: auto 1fr;
    padding: 0.65rem 0.75rem;
    text-align: left;
}

.event-action-card > span {
    align-items: center;
    background: var(--color-primary-soft);
    border-radius: 50%;
    color: var(--color-primary-hover);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 850;
    grid-row: 1 / 3;
    height: 1.8rem;
    justify-content: center;
    margin-right: 0.35rem;
    width: 1.8rem;
}

.event-action-card small {
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.event-action-card:hover:not(:disabled) {
    border-color: #efadb3;
    box-shadow: var(--shadow-sm);
}

.event-action-card:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.event-action-primary {
    border-color: #efadb3;
}

.page-header-actions {
    justify-content: flex-end;
}

.form-actions + .muted {
    margin-top: 0.75rem;
}

.title-with-badge {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.title-with-badge h1 {
    margin-bottom: 0;
}

.count-badge {
    align-items: center;
    background: var(--color-primary-soft);
    border-radius: 999px;
    color: var(--color-primary-hover);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    justify-content: center;
    min-height: 1.55rem;
    min-width: 1.55rem;
    padding-inline: 0.45rem;
}

.table-action-column {
    text-align: right !important;
    white-space: nowrap;
    width: 1%;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.customer-event-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}

.breadcrumbs {
    align-items: center;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.form-stack > .breadcrumbs {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.25rem;
    padding-bottom: 0.65rem;
}

.customer-directory {
    display: grid;
    gap: 1rem;
}

.customer-directory-header {
    margin-bottom: 0;
}

.customer-summary-bar {
    align-items: center;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    gap: 1.25rem;
    padding: 0.65rem 0.75rem;
}

.customer-summary-bar > div {
    display: grid;
    gap: 0.1rem;
    min-width: 4rem;
}

.customer-summary-bar strong {
    color: var(--color-primary-hover);
    font-size: 1.15rem;
    line-height: 1.1;
}

.customer-summary-bar span {
    color: var(--color-text-muted);
    font-size: 0.68rem;
}

.customer-search {
    margin-left: auto;
    width: min(100%, 24rem);
}

.customer-search input {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    min-height: 2.4rem;
    padding: 0.4rem 0.7rem;
    width: 100%;
}

.customer-card-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.customer-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
    padding: 1rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.customer-card:hover {
    border-color: #edbbc0;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.customer-card-heading {
    align-items: center;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.customer-card-heading h2 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-card-heading p {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin-bottom: 0;
}

.customer-avatar {
    align-items: center;
    background: linear-gradient(145deg, var(--color-primary), #ff3343);
    border-radius: var(--radius-sm);
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 850;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.event-count-badge {
    background: var(--color-primary-soft);
    border-radius: 999px;
    color: var(--color-primary-hover);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
}

.customer-card-actions {
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.customer-card-actions .button {
    flex: 1 1 0;
}

.customer-directory-empty {
    margin-block: 1.5rem;
}

.customer-event-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.customer-event-card-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.customer-event-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.customer-event-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.customer-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.65rem;
}

.customer-event-meta span {
    display: grid;
    gap: 0.1rem;
}

.customer-event-meta strong {
    color: var(--color-text);
    font-size: 0.82rem;
}

.customer-event-meta small {
    color: var(--color-text-muted);
    font-size: 0.65rem;
}

.customer-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.customer-event-actions .button {
    flex: 1 1 10rem;
}

.event-workflow-actions {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-workflow-action {
    align-items: center;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.65rem;
    text-align: left;
    text-decoration: none;
}

.event-workflow-action:hover {
    background: var(--color-primary-soft);
    border-color: #efadb3;
    color: var(--color-text);
}

.event-workflow-action > span:first-child {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.45rem;
    color: var(--color-primary-hover);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 850;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.event-workflow-action > span:nth-child(2) {
    display: grid;
    gap: 0.1rem;
}

.event-workflow-action strong {
    font-size: 0.78rem;
}

.event-workflow-action small {
    color: var(--color-text-muted);
    font-size: 0.64rem;
}

.event-workflow-action i {
    color: var(--color-primary);
    font-style: normal;
    font-weight: 850;
}

.event-workflow-primary {
    background: linear-gradient(135deg, var(--color-primary), #ff3343);
    border-color: transparent;
    color: #fff;
}

.event-workflow-primary:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

.event-workflow-primary small,
.event-workflow-primary i {
    color: rgb(255 255 255 / 78%);
}

.customer-event-empty {
    margin-block: 2rem;
}

.icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.35rem;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    justify-content: center;
    min-height: 2.25rem;
    min-width: 2.25rem;
}

.icon-button:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
}

.alert > :last-child {
    margin-bottom: 0;
}

.alert-error {
    background: #fff0f1;
    border-color: #ffc4ca;
    color: #8f1f2b;
}

.alert-success {
    background: #eaf8f2;
    border-color: #a9e2cc;
    color: #0d6947;
}

.alert-info {
    background: #edf3ff;
    border-color: #bed0ff;
    color: #294b9c;
}

.data-table {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #fff0f1;
    color: #684b50;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.virtualized-table-wrap {
    max-height: min(62vh, 36rem);
    overflow: auto;
    overscroll-behavior: contain;
}

.virtualized-table-wrap .data-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: #fff8f8;
}

.table-row-link {
    color: var(--color-text);
    display: inline-flex;
    font-weight: 750;
    min-height: 2.25rem;
    align-items: center;
    text-decoration: none;
}

.table-row-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.player-ticket-detail > .ticket-instructions {
    margin-bottom: 1rem;
}

.admin-ticket-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}

.ticket-panel-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.ticket-panel-heading > div {
    display: grid;
    gap: 0.1rem;
}

.ticket-panel-heading small {
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.ticket-panel-heading h2 {
    font-size: 1rem;
    margin-bottom: 0;
}

.empty-state {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    margin: 4rem auto;
    max-width: 36rem;
    text-align: center;
}

.empty-state > :is(h1, h2, h3, p) {
    margin-bottom: 0;
}

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

.modal-backdrop {
    align-items: center;
    background: rgb(5 10 23 / 68%);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1000;
}

.modal-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    display: grid;
    gap: 1rem;
    max-width: 30rem;
    padding: 1.5rem;
    width: 100%;
}

.modal-card > :is(h1, h2, h3, p) {
    margin-bottom: 0;
}

.invitation-toolbar {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.invitation-toolbar-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.invitation-toolbar-heading h2 {
    margin-bottom: 0;
    font-size: 1rem;
}

.invitation-send-progress {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.invitation-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.invitation-selection-tools {
    align-items: center;
    display: flex;
    font-size: 0.78rem;
    justify-content: space-between;
}

.invitation-picker-actions {
    display: flex;
    gap: 0.75rem;
}

.invitation-picker-actions button {
    background: none;
    border: 0;
    color: var(--color-primary-hover);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    padding: 0;
}

.player-select-column {
    text-align: center !important;
    width: 1%;
}

.player-select-column input {
    height: 1rem;
    width: 1rem;
}

.toast-region {
    display: grid;
    gap: 0.65rem;
    max-width: min(24rem, calc(100vw - 2rem));
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 1100;
}

.toast {
    align-items: start;
    background: var(--color-surface);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
}

.toast > div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.toast p {
    margin: 0;
}

.toast-success { border-left-color: var(--color-success); }
.toast-warning { border-left-color: var(--color-warning); }
.toast-error { border-left-color: var(--color-danger); }

.bingo-ticket {
    background: #ead9dc;
    border: 2px solid #34272a;
    border-radius: 0.65rem;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.bingo-ticket .row {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
}

.bingo-ticket .cell {
    align-items: center;
    border: 0;
    border-bottom: 1px solid #ccb9bc;
    border-right: 1px solid #ccb9bc;
    display: flex;
    height: auto;
    justify-content: center;
    min-width: 0;
    padding: 0.25rem;
    text-align: center;
}

.bingo-ticket .row:last-child .cell {
    border-bottom: 0;
}

.bingo-ticket .cell:last-child {
    border-right: 0;
}

.ticket-list {
    display: grid;
    gap: 1rem;
}

.ticket-panel,
.result-card,
.timeline-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    padding: 0.9rem;
}

.result-card {
    display: grid;
    gap: 0.75rem;
}

.result-card > :is(h2, h3, p) {
    margin-bottom: 0;
}

.ticket-panel summary {
    cursor: pointer;
    font-weight: 700;
}

.ticket-page {
    display: grid;
    gap: 1rem;
    min-height: 0;
    padding-bottom: 1rem;
}

.ticket-game-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(20rem, 0.9fr) minmax(28rem, 1.1fr);
    margin-inline: 1rem;
}

.ticket-play-column {
    display: contents;
}

.ticket-video-panel,
.player-draw-mode {
    grid-column: 1;
    order: 2;
}

.ticket-play-column > .timeline-panel {
    grid-column: 1;
    order: 3;
}

.ticket-play-column > .ticket-instructions {
    display: none;
}

.ticket-play-column > .ticket-list {
    align-self: start;
    grid-column: 2;
    grid-row: span 2;
    min-width: 0;
    order: 2;
}

.ticket-game-layout > .closest-players-panel {
    grid-column: 1 / -1;
    order: 4;
}

.ticket-header {
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1rem 1rem;
}

.ticket-header h1,
.ticket-header p {
    margin-bottom: 0;
}

.ticket-header-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.powered-by {
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.powered-by strong {
    color: var(--color-primary-hover);
}

.ticket-count,
.status-badge {
    align-items: center;
    background: #e8edff;
    border-radius: 999px;
    color: #2946ad;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.2;
    padding: 0.35rem 0.65rem;
}

.ticket-page > .timeline-panel,
.ticket-page > .ticket-list,
.ticket-page > .video-panel,
.ticket-page > .ticket-instructions {
    margin-inline: 1rem;
}

.sponsor-experience {
    align-items: center;
    background: linear-gradient(120deg, #fff7e6, #fff 52%, #f2edff);
    border: 1px solid #ead7ac;
    border-radius: var(--radius-md);
    display: grid;
    gap: 1rem;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 0.8rem 1rem;
    order: 1;
}

.sponsor-logo {
    max-height: 4rem;
    max-width: 8rem;
    object-fit: contain;
}

.sponsor-product-image {
    border-radius: var(--radius-sm);
    height: 4.5rem;
    object-fit: cover;
    width: 6.5rem;
}

.sponsor-copy {
    display: grid;
    gap: 0.15rem;
}

.sponsor-copy > span {
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
}

.sponsor-copy > strong {
    font-size: 1.2rem;
}

.sponsor-copy p {
    color: var(--color-text-muted);
    margin: 0;
}

.sponsor-copy mark,
.admin-sponsor-banner mark {
    background: #ffe8a3;
    border-radius: 999px;
    color: #6b4300;
    font-size: 0.75rem;
    font-weight: 800;
    justify-self: start;
    margin-top: 0.25rem;
    padding: 0.3rem 0.55rem;
}

.button-whatsapp {
    background: #128c7e;
    border-color: #128c7e;
    color: #fff;
    font-size: 0.74rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.65rem;
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
    background: #0f766a;
    border-color: #0f766a;
    color: #fff;
}

.button-whatsapp svg {
    height: 1rem;
    width: 1rem;
}

.closest-players-panel {
    background: linear-gradient(180deg, #23143f, #301653);
    border-radius: var(--radius-md);
    color: #fff;
    overflow: hidden;
    padding: 0.9rem;
}

.closest-players-panel > header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.7rem;
}

.closest-players-panel h2 {
    color: #fff;
    font-size: 1.15rem;
    margin: 0.1rem 0 0;
}

.closest-players-panel .eyebrow,
.closest-players-panel .powered-by {
    color: #d9c9ff;
}

.closest-players-panel .powered-by strong {
    color: #fff;
}

.closest-pattern-grid {
    display: grid;
    gap: 0.75rem;
}

.closest-pattern-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.closest-pattern-filter {
    background: #fff;
    border: 1px solid #f0cfd5;
    border-radius: 0.8rem;
    color: #17121d;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    min-height: 2.45rem;
    padding: 0.55rem 0.85rem;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.closest-pattern-filter:hover,
.closest-pattern-filter:focus-visible {
    border-color: #ff536b;
}

.closest-pattern-filter.active {
    background: #f51636;
    border-color: #f51636;
    box-shadow: 0 0.35rem 0.8rem rgb(245 22 54 / 20%);
    color: #fff;
}

.closest-pattern-card {
    background: rgb(255 255 255 / 6%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
}

.closest-pattern-card h3 {
    color: #fff;
    display: inline;
    font-size: 0.92rem;
    margin: 0;
}

.closest-pattern-caption {
    color: #d9c9ff;
    float: right;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.closest-pattern-card .closest-player-list {
    clear: both;
    margin-top: 0.55rem;
}

.closest-player-list {
    counter-reset: closest-player;
    display: grid;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.closest-player-list li {
    align-items: center;
    background: rgb(255 255 255 / 9%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius-sm);
    counter-increment: closest-player;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.55rem 0.65rem;
}

.closest-rank::before {
    align-items: center;
    background: #f5c451;
    border-radius: 50%;
    color: #3e2800;
    content: counter(closest-player);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    height: 1.8rem;
    justify-content: center;
    width: 1.8rem;
}

.closest-player-list li > div {
    display: grid;
    gap: 0.1rem;
}

.closest-player-list li span {
    color: #d9d0e9;
    font-size: 0.68rem;
}

.closest-progress {
    text-align: right;
}

.closest-progress > strong {
    color: #ffe194;
}

.closest-players-empty {
    color: #d9d0e9;
    margin: 0;
}

.ticket-sponsor-brand {
    align-items: center;
    background: #fff8e9;
    border: 1px solid #f0dfb8;
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    min-height: 2.7rem;
    padding: 0.35rem 0.5rem;
}

.ticket-sponsor-brand img {
    height: 2rem;
    max-width: 4.5rem;
    object-fit: contain;
}

.ticket-sponsor-brand span {
    display: grid;
    flex: 1 1 8rem;
    line-height: 1.15;
}

.ticket-sponsor-brand small {
    color: var(--color-text-muted);
    font-size: 0.58rem;
    text-transform: uppercase;
}

.ticket-sponsor-brand .ticket-sponsor-tagline {
    font-size: 0.66rem;
    margin-top: 0.12rem;
    text-transform: none;
}

.ticket-sponsor-brand em {
    color: #76500b;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 750;
    margin-left: auto;
    text-align: right;
}

.ticket-sponsor-brand .ticket-sponsor-product {
    border-radius: 0.35rem;
    height: 2.35rem;
    max-width: none;
    object-fit: cover;
    width: 3.5rem;
}

.admin-sponsor-banner {
    align-items: center;
    background: linear-gradient(100deg, #fff8e8, #f5efff);
    border: 1px solid #e4d3b0;
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
}

.admin-sponsor-banner img {
    height: 2.8rem;
    max-width: 7rem;
    object-fit: contain;
}

.admin-sponsor-banner > div {
    display: grid;
    margin-right: auto;
}

.admin-sponsor-banner > div span,
.admin-sponsor-banner > div small {
    color: var(--color-text-muted);
    font-size: 0.68rem;
}

.sponsor-image-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sponsor-create-fields {
    background: #fffbf2;
    border: 1px solid #eadab6 !important;
    border-radius: var(--radius-sm) !important;
    gap: 0.45rem !important;
    padding: 0.8rem !important;
}

.sponsor-create-fields legend {
    color: var(--color-text);
    font-weight: 850;
    padding: 0 0.25rem;
}

.sponsor-create-fields p {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin: 0 0 0.2rem;
}

.admin-sponsor-product {
    border-radius: var(--radius-sm);
    height: 2.8rem !important;
    margin-left: 0.25rem;
    object-fit: cover !important;
    width: 3.8rem;
}

.sponsor-image-editor {
    align-content: start;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem;
}

.sponsor-image-editor > div {
    display: grid;
}

.sponsor-image-editor small {
    color: var(--color-text-muted);
}

.sponsor-image-editor img {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    height: 8rem;
    object-fit: contain;
    padding: 0.5rem;
    width: 100%;
}

.ticket-game-layout > .alert {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.timeline-panel h2 {
    font-size: 1.25rem;
    margin: 0.1rem 0 0;
}

.refresh-status {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    margin: 0.2rem 0 0;
}

.ticket-instructions {
    align-items: center;
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding: 0.65rem 0.8rem;
}

.ticket-instructions span {
    align-items: center;
    color: var(--color-text-muted);
    display: inline-flex;
    font-size: 0.78rem;
    gap: 0.35rem;
}

.legend-swatch {
    border: 1px solid rgb(0 0 0 / 15%);
    border-radius: 0.25rem;
    display: inline-block;
    height: 1rem;
    width: 1rem;
}

.ticket-cell {
    background: #fff;
    border-radius: 0;
    color: var(--color-text);
    cursor: pointer;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 850;
    min-height: clamp(3rem, 5vw, 3.75rem);
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.ticket-cell:disabled {
    cursor: default;
}

.ticket-cell:hover:not(:disabled):not(.selected):not(.valid-select) {
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
}

.ticket-cell:active:not(:disabled) {
    transform: scale(0.94);
}

.bingo-ticket .ticket-cell.empty-cell {
    background:
        linear-gradient(135deg, transparent 47%, rgb(116 100 103 / 8%) 48%, rgb(116 100 103 / 8%) 52%, transparent 53%),
        #f7f2f3;
}

.ticket-cell.selected {
    background: #b91c1c;
    color: #fff;
}

.ticket-cell.valid-select {
    background: #0f8a60;
    color: #fff;
}

.player-ticket-card {
    background: linear-gradient(180deg, #fff, #fcfbff);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgb(82 18 25 / 9%);
    overflow: hidden;
    padding: clamp(0.75rem, 1.5vw, 1rem);
}

.ticket-label {
    font-size: 0.95rem;
    font-weight: 850;
}

.ticket-marked-count {
    background: var(--color-primary-soft);
    border-radius: 999px;
    color: var(--color-primary-hover);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.55rem;
}

.number-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.number-chips span {
    align-items: center;
    background: #e8edff;
    border-radius: 999px;
    color: #2946ad;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 750;
    justify-content: center;
    min-height: 2.25rem;
    min-width: 2.25rem;
    padding: 0.2rem 0.45rem;
}

.called-numbers-empty {
    background: var(--color-surface-muted);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    margin: 0.75rem 0 0;
    padding: 0.7rem 0.8rem;
}

.video-container {
    background: #000;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    min-height: 12rem;
    overflow: hidden;
    width: 100%;
}

.video-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-panel-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
}

.video-panel-heading h2,
.video-panel-heading p {
    margin: 0;
}

.video-panel-heading h2 {
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

.video-panel-heading p {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    max-width: 13rem;
    text-align: right;
}

.live-video-label {
    align-items: center;
    color: var(--color-accent);
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 850;
    gap: 0.35rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.live-video-label i {
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(214 51 85 / 12%);
    height: 0.45rem;
    width: 0.45rem;
}

.ticket-video-panel .video-container,
.ticket-video-panel .youtube-container {
    border-radius: 0;
    max-height: none;
    width: 100%;
}

.video-panel summary {
    cursor: pointer;
    font-weight: 750;
    padding: 0.75rem 0.9rem;
}

.video-panel[open] summary {
    border-bottom: 1px solid var(--color-border);
}

.video-panel .video-container {
    border-radius: 0;
}

.compact-video-panel {
    justify-self: end;
    width: min(100%, 32rem);
}

.draw-settings-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.draw-settings-panel > header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.draw-settings-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

.draw-settings-panel h2,
.draw-settings-panel p {
    margin: 0;
}

.draw-settings-panel h2 {
    font-size: 1.15rem;
}

.draw-settings-panel p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.draw-mode-badge {
    background: #fff4ce;
    border: 1px solid #e7c75a;
    border-radius: 999px;
    color: #664b00;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
}

.draw-mode-badge.youtube {
    background: #fff0f2;
    border-color: #f0a4b2;
    color: #9f1835;
}

.draw-settings-controls {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(12rem, 0.7fr) minmax(16rem, 1.3fr) auto;
}

.draw-settings-controls.automatic {
    grid-template-columns: minmax(12rem, 1fr) auto;
}

.draw-settings-controls .form-field {
    margin: 0;
}

.draw-settings-controls .button {
    min-height: 2.65rem;
    white-space: nowrap;
}

.saved-video-hint {
    align-items: center;
    color: var(--color-success) !important;
    display: flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.saved-video-hint span {
    align-items: center;
    background: #e7f7f1;
    border-radius: 50%;
    display: inline-flex;
    height: 1.1rem;
    justify-content: center;
    width: 1.1rem;
}

.draw-settings-warning {
    color: var(--color-warning);
    font-weight: 700;
}

.admin-live-video-panel {
    background: #181214;
    border: 1px solid #3f3034;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(14rem, 0.55fr) minmax(22rem, 1fr);
    overflow: hidden;
    width: 100%;
}

.admin-live-video-panel > header {
    align-content: center;
    align-items: start;
    background:
        radial-gradient(circle at 10% 10%, rgb(237 0 19 / 22%), transparent 15rem),
        linear-gradient(145deg, #271b1e, #160f11);
    display: grid;
    gap: 0.55rem;
    padding: clamp(1rem, 3vw, 1.6rem);
}

.admin-live-video-panel h2 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0;
}

.admin-live-video-panel p {
    color: rgb(255 255 255 / 68%);
    font-size: 0.8rem;
    margin: 0.4rem 0 0;
    max-width: 27rem;
}

.admin-live-video-panel .live-video-label {
    color: #ff9ca7;
}

.video-ready-badge {
    align-items: center;
    background: rgb(16 130 99 / 20%);
    border: 1px solid rgb(80 216 178 / 28%);
    border-radius: 999px;
    color: #78e4c5;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    justify-self: start;
    padding: 0.3rem 0.55rem;
}

.admin-live-video-panel .video-container,
.admin-live-video-panel .youtube-container {
    border-radius: 0;
    height: 100%;
    max-height: none;
    width: 100%;
}

.admin-live-video-panel .youtube-container {
    aspect-ratio: 16 / 9;
}

.inline-video-panel .floating-video-resize-handle {
    display: none;
}

.inline-video-panel.is-collapsed {
    grid-template-columns: 1fr;
}

.inline-video-panel.is-collapsed .floating-video-content {
    display: none;
}

@media (max-width: 52rem) {
    .admin-live-video-panel {
        grid-template-columns: 1fr;
    }

    .admin-live-video-panel > header {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-live-video-panel > header > div {
        min-width: 0;
    }
}

@media (max-width: 32rem) {
    .admin-live-video-panel > header {
        grid-template-columns: 1fr;
    }

    .admin-live-video-panel p {
        display: none;
    }
}

.floating-video-panel {
    bottom: max(1rem, env(safe-area-inset-bottom));
    box-shadow: 0 1.25rem 4rem rgb(28 8 12 / 38%);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: min(24rem, calc(100vh - 2rem));
    max-height: calc(100vh - 1rem);
    max-width: calc(100vw - 1rem);
    min-height: 13rem;
    min-width: 17.5rem;
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    width: min(34rem, calc(100vw - 2rem));
    z-index: 120;
}

.floating-video-panel > header {
    align-content: center;
    align-items: center;
    cursor: grab;
    display: flex;
    gap: 0.75rem;
    grid-template-columns: none;
    justify-content: space-between;
    min-height: 4.5rem;
    padding: 0.75rem 0.85rem;
    touch-action: none;
    user-select: none;
}

.floating-video-panel > header:active {
    cursor: grabbing;
}

.floating-video-panel > header > div:first-child {
    min-width: 0;
}

.floating-video-panel > header h2 {
    font-size: 1rem;
}

.floating-video-panel > header p {
    font-size: 0.7rem;
    line-height: 1.35;
    margin-top: 0.2rem;
}

.floating-video-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.floating-video-control {
    align-items: center;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 0.45rem;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 2rem;
}

.floating-video-control:hover {
    background: rgb(255 255 255 / 18%);
}

.floating-video-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.floating-video-control svg {
    fill: none;
    height: 1.05rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.05rem;
}

.floating-video-content,
.floating-video-content .youtube-container {
    height: 100%;
    min-height: 0;
}

.floating-video-content iframe {
    height: 100%;
}

.floating-video-panel.is-collapsed {
    grid-template-rows: auto;
    height: auto !important;
    min-height: 0;
    min-width: 17.5rem;
    width: min(22rem, calc(100vw - 1rem)) !important;
}

.floating-video-panel.is-collapsed .floating-video-content,
.floating-video-panel.is-collapsed .floating-video-resize-handle,
.floating-video-panel.is-collapsed .video-ready-badge,
.floating-video-panel.is-collapsed header p {
    display: none;
}

.floating-video-panel.is-moving iframe {
    pointer-events: none;
}

.floating-video-resize-handle {
    height: 1rem;
    position: absolute;
    touch-action: none;
    width: 1rem;
    z-index: 2;
}

.floating-video-resize-handle::after {
    border-color: rgb(255 255 255 / 68%);
    border-style: solid;
    content: "";
    height: 0.4rem;
    position: absolute;
    width: 0.4rem;
}

.resize-nw {
    cursor: nwse-resize;
    left: 0;
    top: 0;
}

.resize-nw::after {
    border-width: 2px 0 0 2px;
    left: 0.2rem;
    top: 0.2rem;
}

.resize-ne {
    cursor: nesw-resize;
    right: 0;
    top: 0;
}

.resize-ne::after {
    border-width: 2px 2px 0 0;
    right: 0.2rem;
    top: 0.2rem;
}

.resize-sw {
    bottom: 0;
    cursor: nesw-resize;
    left: 0;
}

.resize-sw::after {
    border-width: 0 0 2px 2px;
    bottom: 0.2rem;
    left: 0.2rem;
}

.resize-se {
    bottom: 0;
    cursor: nwse-resize;
    right: 0;
}

.resize-se::after {
    border-width: 0 2px 2px 0;
    bottom: 0.2rem;
    right: 0.2rem;
}

@media (max-width: 36rem) {
    .floating-video-panel {
        bottom: 0.5rem;
        max-height: calc(100vh - 1rem);
        max-width: calc(100vw - 1rem);
        right: 0.5rem;
        width: min(29rem, calc(100vw - 1rem));
    }

    .floating-video-panel .video-ready-badge,
    .floating-video-panel > header p {
        display: none;
    }
}

.auto-draw-panel {
    align-items: center;
    background: linear-gradient(135deg, rgb(255 246 211), rgb(255 255 255));
    border: 1px solid #e7c75a;
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.9rem 1rem;
}

.auto-draw-panel > div {
    align-items: start;
    display: grid;
    gap: 0.15rem;
}

.auto-draw-panel strong {
    font-size: 1.1rem;
}

.auto-draw-panel .last-drawn-number {
    color: var(--color-primary);
    font-size: 2.5rem;
    line-height: 1;
}

.auto-draw-panel small {
    color: var(--color-text-muted);
}

.auto-draw-panel > small {
    grid-column: 1 / -1;
}

.auto-draw-status-panel {
    grid-template-columns: minmax(0, 1fr) auto;
}

.auto-draw-progress {
    align-items: end !important;
    justify-items: end;
}

.auto-draw-progress strong {
    color: var(--color-primary);
    font-size: 1.65rem;
    line-height: 1;
}

.auto-draw-panel .auto-draw-status-actions {
    align-items: end;
    display: flex;
    gap: 0.75rem;
}

.auto-draw-status-actions .auto-draw-progress {
    display: grid;
    gap: 0.15rem;
    justify-items: end;
}

.missing-live-video-panel {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.auto-draw-button {
    font-size: 1rem;
    min-height: 3rem;
    min-width: 14rem;
}

.drawn-number-toast {
    align-items: center;
    animation: drawn-number-toast-in 180ms ease-out;
    background: linear-gradient(145deg, #fff, #fff4c8);
    border: 2px solid #e2b72e;
    border-radius: 1.25rem;
    box-shadow: 0 1.25rem 4rem rgb(55 35 0 / 30%);
    display: grid;
    gap: 0.25rem;
    justify-items: center;
    left: 50%;
    min-width: min(18rem, calc(100vw - 2rem));
    padding: 1.25rem 2rem;
    pointer-events: none;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.drawn-number-toast span,
.drawn-number-toast small {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.drawn-number-toast strong {
    color: var(--color-primary);
    font-size: 5rem;
    line-height: 1;
    padding: 0.25rem 0;
}

@keyframes drawn-number-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.86);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.call-history-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.75rem;
    justify-content: space-between;
}

.call-history-copy {
    display: grid;
    gap: 0.12rem;
}

.call-history-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.4rem;
}

.call-history-actions .button {
    font-size: 0.7rem;
    min-height: 2rem;
    padding: 0.25rem 0.6rem;
}

.call-history-heading span,
.selected-number-summary {
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.draw-call-history {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-top: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0.1rem 0.7rem;
    scroll-behavior: smooth;
    scrollbar-color: var(--color-primary) var(--color-surface-muted);
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    width: 100%;
}

.draw-call-history::-webkit-scrollbar {
    height: 0.45rem;
}

.draw-call-history::-webkit-scrollbar-track {
    background: var(--color-surface-muted);
    border-radius: 999px;
}

.draw-call-history::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 999px;
}

.draw-call-chip {
    align-items: center;
    background: #fff8df;
    border: 1px solid #e7c75a;
    border-radius: 0.55rem;
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    min-width: 3.8rem;
    padding: 0.35rem 0.45rem;
    scroll-snap-align: start;
}

.draw-call-chip.youtube {
    background: #fff1f3;
    border-color: #f0a4b2;
}

.draw-call-chip strong {
    font-size: 1rem;
    line-height: 1;
}

.draw-call-chip small {
    color: var(--color-text-muted);
    font-size: 0.58rem;
    font-weight: 750;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.selected-number-summary {
    margin-top: 0.55rem;
}

.player-draw-mode {
    align-items: center;
    background: linear-gradient(135deg, #fff8df, #fff);
    border: 1px solid #e7c75a;
    border-radius: var(--radius-md);
    display: flex;
    gap: 1rem;
    padding: 0.9rem 1rem;
}

.player-draw-mode strong,
.player-draw-mode p {
    margin: 0;
}

.player-draw-mode p {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.play-page {
    display: grid;
    gap: 1rem;
    min-height: 0;
    min-width: 0;
}

.game-console-header {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}

.game-console-header h1,
.game-console-header p {
    margin-bottom: 0;
}

.game-console-header > :first-child,
.play-grid > .panel {
    min-width: 0;
}

.draw-status {
    align-items: end;
    display: grid;
    justify-items: end;
}

.draw-status strong {
    color: var(--color-primary);
    font-size: 1.6rem;
    line-height: 1;
}

.draw-status span,
.draw-status small {
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

.draw-status small {
    color: var(--color-warning);
    font-weight: 750;
}

.play-back {
    left: 0.75rem;
    position: absolute;
    top: 0.75rem;
    z-index: 5;
}

.play-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(24rem, 1.05fr) minmax(24rem, 0.95fr);
    padding: 0;
}

.play-grid > .panel {
    overflow: hidden;
}

.draw-actions {
    background: rgb(255 255 255 / 94%);
    border-top: 1px solid var(--color-border);
    bottom: -0.9rem;
    margin: 0 -0.9rem -0.9rem;
    padding: 0.75rem 0.9rem;
    position: sticky;
    z-index: 4;
}

.auto-draw-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
    text-align: center;
}

.auto-draw-actions small {
    color: var(--color-text-muted);
}

.draw-grid {
    display: grid;
    gap: 0.3rem;
    grid-template-columns: repeat(10, minmax(2rem, 1fr));
    margin: 1rem 0;
}

.draw-number {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
}

.draw-number.selected {
    background: #ffd65a;
    border-color: #bd8700;
    color: #4b3700;
}

.draw-grid.read-only .draw-number {
    cursor: default;
    opacity: 1;
}

.result-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-list {
    display: grid;
    gap: 0.75rem;
}

.winner-card {
    border-color: #79caaa;
    box-shadow: inset 0 0 0 1px #79caaa;
}

.winner-card.winner-selected {
    background: #f0fdf7;
}

.winner-card.winner-candidate {
    border-color: var(--color-border);
    box-shadow: none;
}

.ticket-result-meta {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.ticket-result-meta span {
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.tie-selection-panel {
    align-items: center;
    background: #fff8dc;
    border: 1px solid #e8c85b;
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.tie-selection-panel > div {
    display: grid;
    gap: 0.2rem;
}

.tie-selection-panel span {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.tie-winner-option {
    align-items: center;
    background: #fff8dc;
    border: 1px solid #e8c85b;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
}

.tie-winner-option input {
    accent-color: var(--color-primary);
    height: 1.1rem;
    width: 1.1rem;
}

.winner-statuses {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.winner-notification-actions {
    margin-top: 0.15rem;
}

.status-badge.notification-status-sent {
    background: #dcfce7;
    color: #166534;
}

.status-badge.notification-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.notification-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.notification-status-not-sent {
    background: #f1f5f9;
    color: #475569;
}

.checkbox-list {
    display: grid;
    gap: 0.45rem;
}

.checkbox-list label {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

:is(.form-field, .settings-section) .checkbox-list input[type="checkbox"],
:is(.form-field, .settings-section) .checkbox-list input[type="radio"] {
    accent-color: var(--color-primary);
    border: 0;
    flex: 0 0 auto;
    height: 1.15rem;
    min-height: 0;
    padding: 0;
    width: 1.15rem;
}

.settings-form {
    max-width: 46rem !important;
}

.settings-section {
    display: grid;
    gap: 0.8rem;
    padding-block: 1rem;
}

.settings-section + .settings-section {
    border-top: 1px solid var(--color-border);
}

.settings-section-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.settings-section-header h2 {
    font-size: 1rem;
    margin: 0 0 0.2rem;
}

.settings-section-header p {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    margin: 0;
}

.settings-section .checkbox-list label {
    align-items: flex-start;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    gap: 0.65rem;
    padding: 0.75rem;
}

.settings-section .checkbox-list input[type="checkbox"] {
    margin-top: 0.15rem;
}

.settings-section .checkbox-list label > span {
    display: grid;
    gap: 0.15rem;
}

.settings-section .checkbox-list small {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.settings-section-whatsapp .checkbox-list input[type="checkbox"] {
    accent-color: #25d366;
}

.settings-whatsapp-icon {
    align-items: center;
    background: rgb(37 211 102 / 12%);
    border-radius: 50%;
    color: #1fbd5a;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.settings-whatsapp-icon .whatsapp-icon {
    height: 1.3rem;
    width: 1.3rem;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.youtube-container {
    aspect-ratio: 16 / 9;
    background: #000;
    max-height: 22rem;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: min(100%, 39rem);
}

.youtube-container iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.full-page-loader,
.inline-loader {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.full-page-loader {
    flex-direction: column;
    min-height: 100vh;
}

.inline-loader {
    min-height: 8rem;
}

.spinner {
    animation: spin 0.75s linear infinite;
    border: 3px solid rgb(237 0 19 / 18%);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    display: inline-block;
    height: 1.5rem;
    width: 1.5rem;
}

.spinner-large {
    height: 3.5rem;
    width: 3.5rem;
}

.loading-overlay {
    align-items: center;
    background: rgb(6 11 24 / 56%);
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 10;
}

.loading-overlay .spinner {
    border-color: rgb(255 255 255 / 32%);
    border-top-color: #fff;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.selected { background: #a80000; color: #fff; }
.valid-select { background: #16845b; color: #fff; }

.h-100 { height: 100%; }
.w-100 { width: 100%; }
.overflow-auto { overflow: auto; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-end { justify-content: flex-end; }
.position-relative { position: relative; }
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.w-75 { width: 75%; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.cursor-pointer { cursor: pointer; }

/* The fixed desktop sidebar leaves less room than the viewport width suggests.
   Collapse the live console before its two minimum-width columns can overflow. */
@media (max-width: 72rem) {
    .play-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

#blazor-error-ui {
    background: #fff4c2;
    bottom: 0;
    box-shadow: 0 -2px 8px rgb(0 0 0 / 18%);
    display: none;
    left: 0;
    padding: 0.75rem 3rem 0.75rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1200;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
}

.blazor-error-boundary {
    background: var(--color-danger);
    color: #fff;
    padding: 1rem;
}

.loading-progress {
    display: block;
    height: 8rem;
    margin: 20vh auto 1rem;
    position: relative;
    width: 8rem;
}

.loading-progress circle {
    fill: none;
    stroke: #dce2ec;
    stroke-width: 0.6rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: var(--color-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
}

.loading-progress-text {
    font-weight: 700;
    inset: calc(20vh + 3.25rem) 0 auto;
    position: absolute;
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

@media (max-width: 64rem) {
    .ticket-page {
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .ticket-header {
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .ticket-header-meta {
        align-items: flex-end;
    }

    .ticket-header-meta .powered-by {
        display: none;
    }

    .ticket-header .eyebrow,
    .ticket-header p {
        display: none;
    }

    .ticket-header h1 {
        font-size: 1.15rem;
    }

    .ticket-count {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .ticket-game-layout {
        gap: 0.5rem;
        grid-template-columns: minmax(0, 1fr);
        margin-inline: 0.5rem;
    }

    .sponsor-experience {
        gap: 0.6rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
        order: 0;
        padding: 0.55rem 0.65rem;
    }

    .sponsor-logo {
        max-height: 2.8rem;
        max-width: 5rem;
    }

    .sponsor-product-image {
        display: block;
        height: 3.2rem;
        width: 3.2rem;
    }

    .sponsor-copy > strong {
        font-size: 1rem;
    }

    .sponsor-copy p {
        font-size: 0.72rem;
    }

    .sponsor-copy mark {
        font-size: 0.65rem;
        margin-top: 0.1rem;
    }

    .closest-players-panel {
        padding: 0.65rem;
    }

    .closest-players-panel h2 {
        font-size: 1rem;
    }

    .closest-player-list li {
        padding: 0.45rem 0.5rem;
    }

    .ticket-sponsor-brand {
        margin-bottom: 0.4rem;
        min-height: 2.2rem;
        padding: 0.25rem 0.4rem;
    }

    .ticket-sponsor-brand img {
        height: 1.6rem;
    }

    .ticket-video-panel {
        grid-column: 1;
        grid-row: auto;
        order: 1;
    }

    .ticket-play-column {
        display: grid;
        gap: 0.5rem;
        grid-column: 1;
        grid-row: auto;
        order: 2;
    }

    .ticket-play-column > .ticket-list,
    .ticket-play-column > .timeline-panel {
        grid-column: 1;
        grid-row: auto;
        order: initial;
    }

    .ticket-game-layout > .closest-players-panel,
    .player-draw-mode {
        grid-column: 1;
    }

    .player-draw-mode {
        order: 1;
    }

    .ticket-game-layout > .closest-players-panel {
        order: 3;
    }

    .video-panel-heading {
        min-height: 2.4rem;
        padding: 0.4rem 0.65rem;
    }

    .video-panel-heading h2,
    .video-panel-heading p {
        display: none;
    }

    .timeline-panel {
        padding: 0.6rem;
    }

    .ticket-page .timeline-panel .toolbar {
        align-items: center;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .timeline-panel .eyebrow,
    .timeline-panel .refresh-status {
        display: none;
    }

    .timeline-panel h2 {
        font-size: 1rem;
        margin: 0;
    }

    .timeline-panel .button {
        font-size: 0.72rem;
        min-height: 2.15rem;
        padding: 0.3rem 0.55rem;
    }

    .number-chips {
        gap: 0.3rem;
        margin-top: 0.45rem;
    }

    .number-chips span {
        font-size: 0.75rem;
        min-height: 1.8rem;
        min-width: 1.8rem;
        padding: 0.15rem 0.35rem;
    }

    .called-numbers-empty {
        margin-top: 0.45rem;
        padding: 0.5rem 0.6rem;
    }

    .ticket-instructions {
        display: none;
    }

    .ticket-list {
        gap: 0.5rem;
    }

    .player-ticket-card {
        padding: 0.55rem;
    }

    .ticket-panel-heading {
        margin-bottom: 0.4rem;
    }

    .ticket-panel-heading small {
        display: none;
    }

    .player-topbar .brand-copy small {
        display: none;
    }
}

@media (max-width: 40rem) {
    .draw-settings-panel > header {
        flex-direction: column;
    }

    .draw-settings-header-actions {
        justify-content: space-between;
        width: 100%;
    }

    .draw-settings-controls,
    .draw-settings-controls.automatic {
        grid-template-columns: 1fr;
    }

    .draw-settings-controls .button {
        width: 100%;
    }

    .auto-draw-panel {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .auto-draw-panel .auto-draw-status-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auto-draw-status-actions .button,
    .tie-selection-panel .button {
        width: 100%;
    }

    .auto-draw-status-actions .auto-draw-progress {
        justify-items: start;
    }

    .missing-live-video-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .auto-draw-button {
        width: 100%;
    }

    .auto-draw-panel > small {
        grid-column: 1;
    }

    .sponsor-image-grid {
        grid-template-columns: 1fr;
    }

    .admin-sponsor-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-sponsor-banner .button {
        width: 100%;
    }

    .closest-players-panel > header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .closest-player-list li {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .closest-progress {
        grid-column: 2;
        text-align: left;
    }

    .call-history-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .call-history-actions .button {
        flex: 1 1 8rem;
    }
}

@media (max-width: 48rem) {
    .invitation-toolbar-heading,
    .invitation-selection-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .invitation-action-buttons .button {
        width: 100%;
    }

    .app-shell {
        display: block;
    }

    .app-sidebar {
        align-self: auto;
        bottom: 0;
        height: auto;
        left: 0;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        width: min(18rem, 85vw);
        z-index: 50;
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-close,
    .menu-button {
        display: inline-flex;
    }

    .sidebar-close {
        background: rgb(255 255 255 / 10%);
        color: #fff;
    }

    .sidebar-close:hover {
        background: rgb(255 255 255 / 18%);
        color: #fff;
    }

    .sidebar-scrim {
        background: rgb(31 12 15 / 58%);
        border: 0;
        display: block;
        inset: 0;
        position: fixed;
        width: 100%;
        z-index: 40;
    }

    .mobile-brand {
        color: var(--color-text);
        display: inline;
        font-weight: 850;
        letter-spacing: -0.02em;
    }

    .desktop-context {
        display: none;
    }

    .app-content {
        padding: 1rem;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-hero-actions {
        justify-content: flex-start;
        margin-left: 0;
    }

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

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

    .customer-summary-bar {
        flex-wrap: wrap;
    }

    .customer-search {
        flex: 1 0 100%;
        margin-left: 0;
        max-width: none;
    }

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

    .app-content .data-table {
        min-width: 38rem;
    }

    .page-header,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .event-control-panel {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .event-picker {
        max-width: none;
    }

    .event-actions,
    .page-header-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .button {
        flex: 1 1 10rem;
    }

    .page-skeleton-actions .skeleton-button {
        flex: 1 1 6rem;
    }

    .page-skeleton-detail {
        grid-template-columns: 1fr;
    }

    .event-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .form-actions .button,
    .form-actions a.button {
        flex: 1 1 0;
        min-width: 0;
    }

    .players-page .data-table {
        min-width: 46rem;
    }

    .data-table-wrap {
        overflow-x: auto;
    }

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

    .game-console-header {
        align-items: stretch;
        flex-direction: column;
        gap: 0.8rem;
    }

    .customer-event-card-header {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .customer-event-card-header .status-badge {
        align-self: flex-start;
    }

    .compact-video-panel {
        justify-self: stretch;
        width: 100%;
    }

    .draw-grid {
        grid-template-columns: repeat(6, minmax(2rem, 1fr));
    }

    .ticket-header {
        align-items: center;
        flex-direction: row;
        gap: 0.5rem;
    }

    .ticket-instructions {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-panel {
        overflow: hidden;
    }

    .ticket-page .bingo-ticket {
        min-width: 0;
    }

    .ticket-game-layout {
        gap: 0.5rem;
        margin-inline: 0.5rem;
    }

    .ticket-play-column {
        gap: 0.5rem;
    }

    .ticket-page {
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .ticket-header {
        padding: 0.5rem;
    }

    .video-panel-heading {
        align-items: center;
    }

    .ticket-cell {
        font-size: clamp(0.78rem, 4vw, 1rem);
        min-height: clamp(2.6rem, 11vw, 3.25rem);
    }

    .game-background,
    .auth-layout {
        align-items: flex-start;
        padding: 0.85rem;
    }

    .game-card,
    .auth-card {
        border-radius: 1.15rem;
        max-height: none;
        padding: 1.25rem;
    }

    .experience-header {
        padding-inline: 0.15rem;
    }

    .bingo-decoration {
        display: none;
    }

    .player-layout {
        padding: 0;
    }

    .player-topbar {
        padding: 0.65rem 0.85rem 0;
    }

    .player-content {
        border: 0;
        border-radius: 0;
        min-height: calc(100vh - 4.5rem);
    }

    .button {
        min-height: 2.55rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea,
    .form-control {
        min-height: 2.65rem;
    }

    .app-select-backdrop {
        background: rgb(20 11 45 / 52%);
        backdrop-filter: blur(2px);
    }

    .app-select-menu {
        border-radius: var(--radius-md);
        bottom: 0.75rem;
        left: 0.75rem;
        margin-top: 0;
        max-height: min(65vh, 26rem);
        padding: 0.55rem;
        position: fixed;
        right: 0.75rem;
        top: auto;
    }

    .app-select-option {
        min-height: 3.15rem;
    }

    .app-select-options-scroll {
        max-height: min(48vh, 20rem);
    }

    .button-row .button {
        flex: 1 1 auto;
    }
}

@media (max-width: 24rem) {
    .quick-create-trigger > span:last-child {
        display: none;
    }

    .quick-create-trigger {
        justify-content: center;
        min-width: 2.4rem;
        padding-inline: 0.5rem;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .recent-game-row {
        align-items: stretch;
        flex-direction: column;
    }

    .recent-game-actions .button {
        flex: 1 1 0;
    }

    .customer-card-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .event-count-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .customer-card-actions {
        flex-direction: column;
    }

    .experience-brand .brand-copy small,
    .organizer-badge {
        display: none;
    }

    .game-card,
    .auth-card {
        padding: 1.1rem;
    }

    .draw-grid {
        grid-template-columns: repeat(5, minmax(2rem, 1fr));
    }

    .profile-menu summary > span:last-child {
        display: none;
    }
}

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

    .loading-skeleton {
        animation: none;
    }
}

/* Winner banner shown on the player's My Ticket page when they are the first/official winner. */
.winner-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px 0;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #f0c000;
    background: linear-gradient(135deg, #fff6cc 0%, #ffe27a 100%);
    color: #5a4200;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 6px 18px rgba(240, 192, 0, 0.35);
    animation: winner-banner-in 220ms ease-out;
}

.winner-banner-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.winner-banner-text {
    letter-spacing: 0.02em;
}

@keyframes winner-banner-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .winner-banner {
        animation: none;
    }
}
