/* ─────────────────────────────────────────────────────────────────────────────
   spin-wheel.css  —  SpinWheel app styles
   Complements Bootstrap; no overrides to existing site styles.
───────────────────────────────────────────────────────────────────────────── */
/* ── Page layout ───────────────────────────────────────────────────────────── */
/* spinwheel-app sits OUTSIDE Bootstrap's .container so it can span the full
   viewport width — padding provides breathing room on the sides. */
.spinwheel-app {
    max-width: 2400px;
    margin: 0px auto 0;
    padding-top: 1rem;
}

/* ── TV / ultra-wide enhancements (≥ 1400 px) ────────────────────────────── */
/* Wider result banner so long winner names don't wrap */
@media (min-width: 1400px) and (max-width: 1919.98px) {
    #resultBanner {
        max-width: 660px;
    }
}

@media (min-width: 1920px) {
    #resultBanner {
        max-width: 760px;
    }
}

/* Larger spin button for TV (easier to hit / read from a distance) */
@media (min-width: 1400px) {
    #spinBtn {
        font-size: 1.35rem;
        padding: 0.8rem 3rem;
    }
}

/* Tighter top padding in wheel view on TV — heading is hidden so less
   breathing room is needed above the back-button / title row. */
@media (min-width: 1400px) {
    .spinwheel-app {
        padding-top: 0.75rem;
    }
}

/* ── Wheel stage ──────────────────────────────────────────────────────────── */
.wheel-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.wheel-container {
    position: relative;
    display: inline-block;
    --wheel-size: clamp(320px, 60vmin, 860px);
    width: min(100%, var(--wheel-size));
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

#wheelCanvas {
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    width: 100%;
    height: 100%;
    max-width: none;
}

/* Pointer (triangle at top) */
.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    z-index: 10;
    pointer-events: none;
}

.wheel-pointer svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #dc3545;
}

/* Pointer size is now PROPORTIONAL to the wheel (scales on every screen,
   incl. large TVs) — see the casino theme layer below
   (.wheel-pointer width/height clamp). These old fixed-px TV tiers are gone. */

/* ── Result banner ────────────────────────────────────────────────────────── */
#resultBanner {
    width: 100%;
    max-width: 480px;
    text-align: center;
    padding: 1.1rem 1.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #0d6efd22, #0d6efd11);
    border: 2px solid #0d6efd55;
    display: none;
}

#resultBanner.show {
    display: block;
    animation: fadeSlideIn 0.4s ease forwards;
}

#resultText {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    font-weight: 700;
    color: #0d6efd;
    word-break: break-word;
}

#resultLabel {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ── Status messages ──────────────────────────────────────────────────────── */
#statusMsg {
    min-height: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

#statusMsg.text-danger {
    color: #dc3545 !important;
}

#statusMsg.text-success {
    color: #198754 !important;
}

/* ── Controls panel ───────────────────────────────────────────────────────── */
.controls-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.controls-panel h5 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #495057;
    margin-bottom: 1rem;
}

/* ── Items list ───────────────────────────────────────────────────────────── */
#itemsList {
    overflow-y: auto;
    scrollbar-width: thin;
}

#itemsList .list-group-item {
    padding: 0.4rem 0.75rem;
    font-size: 0.88rem;
}

#itemsList .list-group-item:nth-child(even) {
    background-color: #f8f9fa;
}

/* Item text: stretches to fill available width */
.item-label {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

/* Per-item delete button — right side of row, hidden until hovered ─────── */
.item-delete-btn {
    flex-shrink: 0;
    color: #adb5bd !important;
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    text-decoration: none !important;
}

#itemsList .list-group-item:hover .item-delete-btn {
    opacity: 1;
}

.item-delete-btn:hover,
.item-delete-btn:focus {
    color: #dc3545 !important;
    outline: none;
}

/* ── Spin history ─────────────────────────────────────────────────────────── */
#historyList {
    overflow-y: auto;
    scrollbar-width: thin;
}

#historyList .list-group-item {
    padding: 0.35rem 0.75rem;
    font-size: 0.83rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-result {
    font-weight: 600;
    color: #0d6efd;
}

.history-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

/* ── Wheel selector (lobby) ───────────────────────────────────────────────── */
#wheelSelector .wheel-card {
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.15s, transform 0.15s;
    border: 1px solid #dee2e6;
}

#wheelSelector .wheel-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

#wheelSelector .wheel-card .card-title {
    font-size: clamp(1rem, 1.3vw, 1.6rem);
    font-weight: 600;
    padding-right: 1.6rem;
}

/* Delete-wheel button — top-right corner of the card, hidden until hover ── */
.wheel-delete-btn {
    position: absolute;
    top: 0.45rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 0.85rem;
    padding: 0.2rem 0.35rem;
    line-height: 1;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background-color 0.15s;
}

#wheelSelector .wheel-card:hover .wheel-delete-btn {
    opacity: 1;
}

.wheel-delete-btn:hover,
.wheel-delete-btn:focus {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.08);
    outline: none;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #adb5bd;
}

.empty-state i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* ── Spin button ──────────────────────────────────────────────────────────── */
#spinBtn {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.65rem 2.5rem;
    border-radius: 2rem;
    transition: transform 0.1s;
}

#spinBtn:active:not(:disabled) {
    transform: scale(0.96);
}

/* ── Admin create-wheel form ─────────────────────────────────────────────── */
#adminPanel {
    border-top: 1px dashed #dee2e6;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
/* Small phones: fixed wheel size so it doesn't shrink too far */
@media (max-width: 575.98px) {
    .wheel-container {
        --wheel-size: 290px;
    }
}

/* #resultText clamp() min (1.5rem) already handles mobile — no override needed */
/* Mobile + tablet (stacked layout): cap list heights so scrolling kicks in
   and the lists don't push the wheel way off-screen. */
@media (max-width: 991.98px) {
    #itemsList {
        max-height: 220px;
    }
}

@media (max-width: 991.98px) {
    #historyList {
        max-height: 160px;
    }
}

/* Desktop (≥ lg): right panel fills the wheel column's height.
   Each list section grows to share the available space; scrolling only
   kicks in if the content genuinely overflows the section height. */
/* Host layout sizing: keep the wheel visually dominant on desktop and XL
   screens without letting it overwhelm the right controls column. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .wheel-container {
        --wheel-size: clamp(440px, min(calc(100vw - 400px), calc(100vh - 230px)), 1200px);
    }
}

/* XL host layout tiers: preserve a premium large-wheel feel on 1080p and
   bigger screens, but keep a hard cap so the control layout stays balanced. */
@media (min-width: 1400px) and (max-width: 1919.98px) {
    .wheel-container {
        --wheel-size: clamp(440px, min(calc(100vw - 420px), calc(100vh - 235px)), 1400px);
    }
}

@media (min-width: 1920px) and (max-width: 2559.98px) {
    .wheel-container {
        --wheel-size: clamp(440px, min(calc(100vw - 440px), calc(100vh - 240px)), 1700px);
    }
}

@media (min-width: 2560px) {
    .wheel-container {
        --wheel-size: clamp(440px, min(calc(100vw - 480px), calc(100vh - 240px)), 2000px);
    }
}

/* Right column becomes a flex column so children can flex-fill */
@media (min-width: 992px) {
    .sw-right-col {
        display: flex;
        flex-direction: column;
        width: 300px;
        flex-shrink: 0;
    }
}

@media (min-width: 1920px) {
    .sw-right-col {
        width: 340px;
    }
}

/* Host-controls panel stays at its natural height */
@media (min-width: 992px) {
    .sw-right-col #hostControls {
        flex-shrink: 0;
    }
}

/* Items + history sections share remaining height equally */
@media (min-width: 992px) {
    .sw-list-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 100px;
        min-width: 0;
    }
}

/* Section heading stays compact */
@media (min-width: 992px) {
    .sw-list-section > h6 {
        flex-shrink: 0;
    }
}

/* List itself expands to fill the section; no fixed cap needed */
@media (min-width: 992px) {
    .sw-list-section > ul {
        flex: 1;
        max-height: none;
    }
}

/* Wheel title readability on TV */
#wheelTitle {
    font-size: clamp(1.25rem, 2.6vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    max-width: 100%;
    word-break: break-word;
}

.hero-img {
    background-image: url('../../spinwheelWEBP.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 100vh;
    background-repeat: no-repeat;
}

.header-spin {
    background-color: #fef9ef;
}

/* ===================================================================
   CASINO / GOLD THEME  —  re-skin layer for spin-wheel.html only
   Appended LAST so it overrides the original light-theme rules above.
   Values mirror css/call-numbers.css so the BINGO caller and the Spin
   Wheel read as one product. Re-skin only — no JS hooks renamed.
   ------------------------------------------------------------------
   Phase 1 — foundation: design tokens, felt table, header/nav,
   typography, buttons, base panels. (Wheel face, result "win" moment,
   lobby cards and lists arrive in Phases 2-3.)
   =================================================================== */
:root {
    /* felt table */
    --sw-felt-top:    #0c4a37;
    --sw-felt-bottom: #062318;
    --sw-felt-panel:  #06281d;
    --sw-felt-card:   #072c20;
    --sw-header:      #06251b;
    --sw-line:        #11402f;
    --sw-line-2:      #1c5a43;

    /* gold trim */
    --sw-gold:     #f4cf5a;
    --sw-gold-rim: #c9a83a;
    --sw-gold-1:   #f9d976;
    --sw-gold-2:   #d99e1c;
    --sw-gold-ink: #5a3d05;

    /* ink */
    --sw-cream: #e8dcc0;
    --sw-muted: #9bb3a6;

    /* shape */
    --sw-radius:    18px;
    --sw-radius-sm: 12px;
    --sw-pill:      999px;
}

/* ── Page / felt table ───────────────────────────────────────────── */
html, body { background: var(--sw-felt-bottom); }

body {
    color: var(--sw-cream);
    background: linear-gradient(180deg, var(--sw-felt-top), var(--sw-felt-bottom)) no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Replace the full-bleed hero photo with the felt gradient. Also drop the
   original `display:flex; align-items:center`: that was shrink-wrapping
   .spinwheel-app to its content width (~290px), which collapsed the wheel's
   `width:min(100%,--wheel-size)` to 290px on every screen — worst on a TV.
   Block layout lets the app (max-width:2400 / margin:auto) span full width,
   and avoids the centered-flex-overflow trap when the big wheel exceeds 100vh. */
.hero-img {
    background: linear-gradient(180deg, var(--sw-felt-top), var(--sw-felt-bottom));
    background-repeat: no-repeat;
    display: block;
}

.spinwheel-app { width: 100%; }

/* Trim the shared footer's large top margin on this page so it doesn't add a
   huge blank gap below the (now much larger) wheel. Scoped — spin-wheel.css
   loads only here, so other pages keep the original footer spacing. */
body > footer { margin-top: 2.5rem !important; }

/* ── Header / nav ────────────────────────────────────────────────── */
.header-spin {
    background: var(--sw-header);
    border-bottom: 2px solid var(--sw-gold-rim);
}

.header-spin .navbar-brand,
.header-spin .navbar-brand.text-primary {
    color: var(--sw-gold) !important;  /* beat Bootstrap's .text-primary !important */
    font-weight: 700;
    letter-spacing: 2px;
}

.header-spin hr { border-color: var(--sw-line-2); opacity: .45; }

.header-spin .nav-link {
    color: var(--sw-cream);
    letter-spacing: 1px;
    transition: color .2s ease;
}

.header-spin .nav-link:hover,
.header-spin .nav-link:focus,
.header-spin .nav-link.active {
    color: var(--sw-gold);
}

.header-spin .navbar-toggler { border-color: var(--sw-gold-rim); }

.header-spin .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f4cf5a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-spin .btn-outline-primary {
    color: var(--sw-gold);
    border-color: transparent;
}
.header-spin .btn-outline-primary:hover { color: var(--sw-gold-1); background: transparent; }

.header-spin .dropdown-menu {
    background: var(--sw-felt-card);
    border: 1px solid var(--sw-line-2);
}
.header-spin .dropdown-item { color: var(--sw-cream); letter-spacing: .5px; }
.header-spin .dropdown-item:hover,
.header-spin .dropdown-item:focus {
    background: var(--sw-gold);
    color: var(--sw-gold-ink);
}

.header-spin .text-muted { color: var(--sw-muted) !important; }

.header-spin .btn-logout {
    background: transparent;
    color: var(--sw-gold);
    border: 1.5px solid var(--sw-gold-rim);
    border-radius: var(--sw-pill);
}
.header-spin .btn-logout:hover { background: var(--sw-gold); color: var(--sw-gold-ink); }

/* ── Typography ──────────────────────────────────────────────────── */
.spinwheel-app h4,
.spinwheel-app h5,
.spinwheel-app h6 { color: var(--sw-cream); }

#selectorSection > h4 {
    color: var(--sw-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

#wheelTitle {
    color: var(--sw-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.sw-list-section > h6 { color: var(--sw-gold) !important; }

/* Helper / utility text readable on felt */
.spinwheel-app .text-muted     { color: var(--sw-muted) !important; }
.spinwheel-app .text-secondary { color: var(--sw-cream) !important; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.spinwheel-app .btn-primary {
    background: linear-gradient(180deg, var(--sw-gold-1), var(--sw-gold-2));
    border: none;
    color: var(--sw-gold-ink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--sw-radius-sm);
    box-shadow: 0 4px 0 #8a6410;
    transition: filter .15s ease;
}
.spinwheel-app .btn-primary:hover    { filter: brightness(1.06); color: var(--sw-gold-ink); }
.spinwheel-app .btn-primary:disabled { opacity: .45; box-shadow: none; }

.spinwheel-app .btn-outline-primary {
    color: var(--sw-gold);
    border-color: var(--sw-gold-rim);
}
.spinwheel-app .btn-outline-primary:hover {
    background: var(--sw-gold);
    color: var(--sw-gold-ink);
    border-color: var(--sw-gold-rim);
}

.spinwheel-app .btn-outline-secondary {
    color: var(--sw-cream);
    border-color: var(--sw-line-2);
}
.spinwheel-app .btn-outline-secondary:hover {
    background: var(--sw-line-2);
    color: var(--sw-cream);
}

/* ── Base panels ─────────────────────────────────────────────────── */
.controls-panel {
    background: var(--sw-felt-panel);
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius);
    color: var(--sw-cream);
}
.controls-panel h5 { color: var(--sw-gold); }

#adminPanel { border-top: 1px dashed var(--sw-line-2); }

.empty-state { color: var(--sw-muted); }

#statusMsg      { color: var(--sw-muted); }
#lobbyStatusMsg { color: var(--sw-muted); }

/* ── Phase 2: wheel face — gold rim + pointer ────────────────────── */
/* Metallic gold rim drawn as box-shadow rings (no layout impact; follows
   the canvas's border-radius:50%). Replaces the original soft drop shadow. */
#wheelCanvas {
    box-shadow:
        0 0 0 3px #5a3d05,                 /* dark seat against the segments */
        0 0 0 9px var(--sw-gold-1),        /* bright gold rim band */
        0 0 0 12px #8a6410,                /* dark outer edge on the felt */
        0 16px 36px rgba(0, 0, 0, .55);    /* drop shadow */
}

/* Classic prize-wheel pointer in casino red so it reads against BOTH the
   gold rim beside it and the jewel-tone segments (a gold pointer would
   disappear where it overlaps the gold rim). */
/* Red arrow with a crisp WHITE outline so it stays visible on ANY segment —
   including the red ruby segment that parks under it at 12 o'clock — at any
   size. Size + outline are percent/viewBox based, so they scale on big TVs
   (a fixed-px pointer + fixed drop-shadow vanished against red from couch
   distance). */
.wheel-pointer {
    width:  clamp(38px, 11%, 120px);
    height: clamp(38px, 11%, 120px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .65));
}
.wheel-pointer svg {
    overflow: visible;        /* let the outline draw past the viewBox edges */
    fill: #e3122e;            /* casino red */
    stroke: #ffffff;          /* white halo — contrasts every segment colour */
    stroke-width: 8;          /* viewBox units → scales with the pointer */
    stroke-linejoin: round;
    paint-order: stroke;      /* keep the red fill full-size; white sits behind */
}

/* ── Phase 3: win moment, spin button, lobby cards, lists ────────── */

/* Result banner → gold "winner" card with a reveal + gentle glow loop. */
#resultBanner {
    background: linear-gradient(180deg, var(--sw-felt-card), var(--sw-felt-bottom));
    border: 2px solid var(--sw-gold-rim);
    border-radius: var(--sw-radius);
    box-shadow: 0 0 0 4px rgba(244, 207, 90, .12), 0 12px 30px rgba(0, 0, 0, .45);
}
#resultLabel { color: var(--sw-gold); letter-spacing: .18em; }
#resultText {
    color: var(--sw-gold);
    text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
#resultBanner.show {
    display: block;
    animation: swWinReveal .5s cubic-bezier(.2, .8, .25, 1) forwards,
               swWinGlow 1.8s ease-in-out .5s infinite;
}

@keyframes swWinReveal {
    from { opacity: 0; transform: translateY(-8px) scale(.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes swWinGlow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(244, 207, 90, .12), 0 12px 30px rgba(0, 0, 0, .45); }
    50%      { box-shadow: 0 0 24px 4px rgba(244, 207, 90, .45), 0 12px 30px rgba(0, 0, 0, .45); }
}

/* Spin button → glowing gold pill that invites a click (host/admin only). */
#spinBtn {
    box-shadow: 0 4px 0 #8a6410, 0 0 18px rgba(244, 207, 90, .35);
    animation: swSpinPulse 2.2s ease-in-out infinite;
}
#spinBtn:hover:not(:disabled) {
    box-shadow: 0 4px 0 #8a6410, 0 0 28px rgba(244, 207, 90, .55);
}
#spinBtn:active:not(:disabled) {
    transform: translateY(2px) scale(.98);
    box-shadow: 0 2px 0 #8a6410, 0 0 18px rgba(244, 207, 90, .4);
}
#spinBtn:disabled { animation: none; box-shadow: none; }

@keyframes swSpinPulse {
    0%, 100% { box-shadow: 0 4px 0 #8a6410, 0 0 16px rgba(244, 207, 90, .30); }
    50%      { box-shadow: 0 4px 0 #8a6410, 0 0 26px rgba(244, 207, 90, .50); }
}

/* Lobby wheel cards → felt tiles with gold hover lift. */
#wheelSelector .wheel-card {
    background: linear-gradient(180deg, var(--sw-felt-card), var(--sw-felt-panel));
    border: 1px solid var(--sw-line-2);
    border-radius: var(--sw-radius-sm);
    color: var(--sw-cream);
}
#wheelSelector .wheel-card:hover {
    border-color: var(--sw-gold-rim);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .45), 0 0 0 1px var(--sw-gold-rim);
    transform: translateY(-3px);
}
#wheelSelector .wheel-card .card-title { color: var(--sw-gold); }
#wheelSelector .wheel-card .text-muted  { color: var(--sw-muted) !important; }

/* Item-count badge → gold-trimmed felt chip. */
#itemCountBadge {
    background: var(--sw-felt-panel) !important;
    color: var(--sw-gold) !important;
    border: 1px solid var(--sw-gold-rim);
}

/* Items + history lists on felt. */
#itemsList .list-group-item,
#historyList .list-group-item {
    background-color: transparent;
    border-color: var(--sw-line);
    color: var(--sw-cream);
}
#itemsList .list-group-item:nth-child(even) {
    background-color: rgba(255, 255, 255, .03);
}
.history-result { color: var(--sw-gold); }
.history-time   { color: var(--sw-muted); }
.item-delete-btn { color: var(--sw-muted) !important; }
.item-delete-btn:hover,
.item-delete-btn:focus { color: #ff6b6b !important; }

/* Host-controls form polish (inputs kept light for legibility). */
.controls-panel .form-label,
.controls-panel .form-check-label { color: var(--sw-cream); }
.controls-panel .input-group-text {
    background: var(--sw-felt-card);
    border-color: var(--sw-line-2);
    color: var(--sw-muted);
}

/* Respect reduced-motion: keep a quick reveal, drop the looping glow/pulse. */
@media (prefers-reduced-motion: reduce) {
    #resultBanner.show { animation: swWinReveal .2s ease forwards; }
    #spinBtn { animation: none; }
}

/* ── Phase 4: focus rings (a11y) + dark felt inputs ──────────────── */

/* Gold focus ring for keyboard navigation only (not on mouse clicks). */
.spinwheel-app .btn:focus-visible,
.spinwheel-app .wheel-card:focus-visible,
.spinwheel-app .form-control:focus-visible,
.spinwheel-app .form-check-input:focus-visible,
.spinwheel-app .item-delete-btn:focus-visible,
.spinwheel-app .wheel-delete-btn:focus-visible,
.header-spin .nav-link:focus-visible,
.header-spin .navbar-brand:focus-visible,
.header-spin .btn:focus-visible {
    outline: 2px solid var(--sw-gold);
    outline-offset: 2px;
}

/* Dark felt form inputs — cream text keeps contrast high on the felt. */
.spinwheel-app .form-control {
    background-color: var(--sw-felt-card);
    border: 1px solid var(--sw-line-2);
    color: var(--sw-cream);
}
.spinwheel-app .form-control::placeholder { color: var(--sw-muted); opacity: 1; }
.spinwheel-app .form-control:focus {
    background-color: var(--sw-felt-card);
    border-color: var(--sw-gold-rim);
    color: var(--sw-cream);
    box-shadow: 0 0 0 .2rem rgba(244, 207, 90, .25);
}
/* Stop browser autofill from repainting inputs white. */
.spinwheel-app .form-control:-webkit-autofill,
.spinwheel-app .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--sw-cream);
    -webkit-box-shadow: 0 0 0 1000px var(--sw-felt-card) inset;
}
/* Checkbox picks up the gold accent. */
.spinwheel-app .form-check-input { accent-color: var(--sw-gold-2); }
