/* ==========================================================================
   Warhogy247 Giveaway — page-specific styles
   Built on top of /css/styles.css design tokens (gold / tactical / dark).
   ========================================================================== */

.giveaway-page {
    scroll-behavior: smooth;
}

.gw-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* --------------------------------------------------------------------------
   Cover / header
   -------------------------------------------------------------------------- */
.gw-cover {
    position: relative;
    text-align: center;
    padding: clamp(120px, 14vw, 150px) 16px 40px;
    overflow: hidden;
}

.gw-kicker {
    font-family: var(--text-mono);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.72rem;
    color: var(--brand-gold);
    margin-bottom: 16px;
}

.gw-cover h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
}

.gw-cover p.gw-lede {
    font-size: 1rem;
    color: var(--text-1);
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.gw-cover p.gw-lede a {
    color: var(--brand-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(248, 212, 76, 0.4);
}

.gw-cover p.gw-lede a:hover {
    border-bottom-color: var(--brand-gold);
}

/* Snapshot meta bar */
.gw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: center;
    background: var(--border-0);
    border: 1px solid var(--border-0);
    max-width: 820px;
    margin: 0 auto;
}

.gw-meta-cell {
    background: var(--bg-1);
    padding: 16px 22px;
    min-width: 150px;
    flex: 1;
}

.gw-meta-cell .label {
    font-family: var(--text-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.62rem;
    color: var(--text-1);
    opacity: 0.75;
}

.gw-meta-cell .value {
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin-top: 4px;
    line-height: 1.1;
}

.gw-meta-cell select {
    width: 100%;
    margin-top: 4px;
    background: var(--bg-0);
    color: var(--text-0);
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    padding: 6px 8px;
    font-family: var(--text-mono);
    font-size: 0.85rem;
    cursor: pointer;
}

/* When no draw is selected (sentinel is active), dim the select to hint it's clickable */
.gw-meta-cell select:invalid,
.gw-meta-cell select option[value=""][disabled] {
    color: var(--text-1);
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.gw-section {
    margin: 0 auto;
    padding: clamp(36px, 6vw, 60px) 0;
    border-top: 1px solid var(--border-0);
}

.gw-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gw-section-head h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
}

.gw-section-head .step {
    font-family: var(--text-mono);
    color: #000;
    background: var(--brand-gold);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--radius-m);
}

.gw-section-head .hint {
    font-size: 0.85rem;
    color: var(--text-1);
    opacity: 0.85;
}

/* Segmented filter (participants table) */
.gw-filter {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    overflow: hidden;
}

.gw-filter-btn {
    background: var(--bg-1);
    color: var(--text-1);
    border: none;
    border-left: 1px solid var(--border-0);
    padding: 8px 14px;
    font-family: var(--text-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.gw-filter-btn:first-child {
    border-left: none;
}

.gw-filter-btn:hover {
    background: rgba(248, 212, 76, 0.08);
    color: var(--text-0);
}

.gw-filter-btn.is-active {
    background: var(--brand-gold);
    color: #000;
    font-weight: 700;
}

/* Save / clear buttons reuse the segmented look but stand alone */
.gw-save-btn,
.gw-clear-btn {
    margin-left: 10px;
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
}

.gw-save-btn {
    color: var(--brand-gold);
    border-color: var(--border-strong);
}

.gw-save-btn:hover {
    background: var(--brand-gold);
    color: #000;
}

.gw-save-btn i {
    margin-right: 5px;
}

/* --------------------------------------------------------------------------
   Prizes
   -------------------------------------------------------------------------- */
.gw-prizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gw-prize {
    background: var(--bg-glass);
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    padding: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gw-prize:focus-within {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow);
}

.gw-prize label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--text-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: var(--brand-gold);
    margin-bottom: 10px;
}

.gw-prize .medal {
    font-size: 1.1rem;
}

.gw-prize input {
    width: 100%;
    background: var(--bg-0);
    color: var(--text-0);
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.gw-prize input::placeholder {
    color: rgba(224, 224, 224, 0.4);
}

.gw-prize input:focus {
    outline: none;
    border-color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   Draw stage (wheel + controls + winners)
   -------------------------------------------------------------------------- */
.gw-stage {
    display: grid;
    grid-template-columns: minmax(320px, 1.2fr) 1fr;
    gap: 36px;
    align-items: start;
}

.gw-wheel-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.gw-wheel-wrap {
    position: relative;
    width: min(440px, 86vw);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

/* The pointer / needle at the top (12 o'clock) */
.gw-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 44px;
    background: linear-gradient(180deg, #fff7d2 0%, #f8d44c 45%, #c8970d 100%);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 8;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(248, 212, 76, 0.85));
    transition: transform 0.12s ease;
}

/* A small mount cap behind the pointer tip */
.gw-pointer::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff7d2, #c8970d);
    box-shadow: 0 0 8px rgba(248, 212, 76, 0.7);
}

/* Metallic gold rim, built from a conic gradient masked into a ring */
.gw-wheel-ring {
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    background: conic-gradient(from 90deg,
            #7a5e12, #f8d44c, #fff6c8, #e7b41e, #8a6a16,
            #f8d44c, #fff6c8, #d39c0c, #7a5e12);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
    box-shadow: 0 0 46px rgba(248, 212, 76, 0.22);
    pointer-events: none;
    z-index: 5;
}

/* Soft inner vignette ring that sits right on the slice edge */
.gw-wheel-ring::before {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.85);
}

.gw-wheel-wrap.is-spinning .gw-wheel-ring {
    animation: gwRingPulse 0.9s ease-in-out infinite;
}

@keyframes gwRingPulse {
    0%, 100% { box-shadow: 0 0 46px rgba(248, 212, 76, 0.22); }
    50% { box-shadow: 0 0 72px rgba(248, 212, 76, 0.7); }
}

/* "Locked in" flash when the wheel stops on a winner */
.gw-wheel-wrap.is-land .gw-wheel-ring {
    animation: gwLandFlash 0.9s ease-out;
}

.gw-wheel-wrap.is-land .gw-pointer {
    animation: gwPointerTap 0.45s ease-out;
}

@keyframes gwLandFlash {
    0% { box-shadow: 0 0 90px rgba(255, 246, 200, 0.95); }
    100% { box-shadow: 0 0 46px rgba(248, 212, 76, 0.22); }
}

@keyframes gwPointerTap {
    0% { transform: translateX(-50%) translateY(-6px) scale(1.18); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

#gw-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0b0b0b;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
    /* The easing is applied inline by JS for the spin; this is the resting state. */
    transition: transform 0s;
}

/* Center hub */
.gw-hub {
    position: absolute;
    width: 22%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #353535, #050505 70%);
    border: 2px solid transparent;
    background-clip: padding-box;
    display: grid;
    place-items: center;
    z-index: 7;
    box-shadow:
        0 0 0 3px rgba(248, 212, 76, 0.55),
        0 0 0 5px rgba(0, 0, 0, 0.8),
        0 0 22px rgba(0, 0, 0, 0.9),
        0 0 26px rgba(248, 212, 76, 0.25);
}

.gw-hub img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    opacity: 0.97;
    filter: drop-shadow(0 0 4px rgba(248, 212, 76, 0.4));
}

.gw-wheel-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 30px;
    color: var(--text-1);
    font-family: var(--text-mono);
    font-size: 0.85rem;
    z-index: 7;
}

/* Author `display:grid` above otherwise overrides the [hidden] attribute,
   so the overlay would never actually hide. Restore hiding explicitly. */
.gw-wheel-empty[hidden] {
    display: none;
}

/* Draw button + controls */
.gw-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

#gw-primary {
    font-size: 1.25rem;
    padding: 18px 60px;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
}

#gw-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

/* "New Draw" shown as a second gold CTA next to Replay on completed draws */
.gw-new2-cta {
    font-size: 1.25rem;
    padding: 18px 40px;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    background: transparent;
    color: var(--brand-gold);
    border: 2px solid var(--brand-gold);
    border-radius: var(--radius-m);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.gw-new2-cta:hover {
    background: var(--brand-gold);
    color: #000;
    box-shadow: 0 6px 24px rgba(248, 212, 76, 0.35);
}

.gw-control-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gw-danger {
    color: #ff6b6b !important;
    border-color: rgba(255, 107, 107, 0.4) !important;
}

.gw-danger:hover {
    background: rgba(255, 107, 107, 0.12) !important;
    border-color: #ff6b6b !important;
}

.gw-status {
    font-family: var(--text-mono);
    font-size: 0.82rem;
    color: var(--text-1);
    min-height: 1.2em;
    text-align: center;
}

/* LIVE indicator while a draw is active + syncing */
.gw-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--text-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.4);
    border-radius: 999px;
    padding: 5px 12px;
}

.gw-live .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00ff80;
    box-shadow: 0 0 10px #00ff80;
    animation: gwPulse 1.4s infinite;
}

/* Mode banner under the meta bar (live / completed / replay) */
.gw-banner {
    margin: 18px auto 0;
    max-width: 820px;
    padding: 12px 18px;
    border-radius: var(--radius-m);
    font-family: var(--text-mono);
    font-size: 0.82rem;
    text-align: center;
    border: 1px solid var(--border-0);
    background: var(--bg-1);
    color: var(--text-1);
}

.gw-banner.is-live {
    border-color: rgba(0, 255, 128, 0.4);
    color: #d7ffe9;
}

.gw-banner.is-replay {
    border-color: var(--border-strong);
    color: var(--brand-gold);
}

.gw-banner a {
    color: var(--brand-gold);
}

/* Share box */
.gw-share {
    width: 100%;
    max-width: 460px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-m);
    background: var(--bg-1);
    padding: 14px 16px;
}

.gw-share label {
    display: block;
    font-family: var(--text-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-1);
    margin-bottom: 8px;
}

.gw-share-row {
    display: flex;
    gap: 8px;
}

.gw-share-row input {
    flex: 1;
    min-width: 0;
    background: var(--bg-0);
    color: var(--brand-gold);
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    padding: 8px 10px;
    font-family: var(--text-mono);
    font-size: 0.78rem;
}

.gw-seed {
    margin-top: 8px;
    font-family: var(--text-mono);
    font-size: 0.68rem;
    color: var(--text-1);
    opacity: 0.8;
    word-break: break-all;
}

/* Winners panel */
.gw-winners {
    background: var(--bg-glass);
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    padding: 22px;
    min-height: 220px;
}

.gw-winners h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gw-winners h3 .live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #777;
}

.gw-winners.is-active h3 .live-dot {
    background: #00ff80;
    box-shadow: 0 0 10px #00ff80;
    animation: gwPulse 1.4s infinite;
}

@keyframes gwPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.gw-winner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    margin-bottom: 12px;
    background: var(--bg-1);
    opacity: 0;
    transform: translateY(8px);
    animation: gwReveal 0.5s ease forwards;
}

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

.gw-winner-card.win-pop {
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-glow);
}

.gw-winner-card .medal {
    font-size: 1.8rem;
    line-height: 1;
}

.gw-winner-card .w-body {
    flex: 1;
    min-width: 0;
}

.gw-winner-card .w-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-gold);
    word-break: break-word;
}

.gw-winner-card .w-prize {
    font-size: 0.9rem;
    color: var(--text-1);
}

.gw-winner-card .w-meta {
    font-family: var(--text-mono);
    font-size: 0.72rem;
    color: var(--text-1);
    opacity: 0.7;
    margin-top: 2px;
}

.gw-winners-empty {
    color: var(--text-1);
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.6;
}

.gw-winners-note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 212, 76, 0.2);
    border-radius: var(--radius-m);
    background: rgba(248, 212, 76, 0.05);
    font-size: 0.83rem;
    color: var(--text-1);
    line-height: 1.55;
}

.gw-winners-note i {
    color: var(--brand-gold);
    margin-right: 6px;
}

.gw-winners-note a {
    color: var(--brand-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(248, 212, 76, 0.4);
}

.gw-winners-note a:hover {
    border-bottom-color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   Participants table
   -------------------------------------------------------------------------- */
.gw-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
}

table.gw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

table.gw-table th,
table.gw-table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(248, 212, 76, 0.08);
    white-space: nowrap;
}

table.gw-table th {
    font-family: var(--text-mono);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.68rem;
    color: var(--brand-gold);
    background: var(--bg-1);
    position: sticky;
    top: 0;
}

table.gw-table td.num,
table.gw-table th.num {
    text-align: right;
    font-family: var(--text-mono);
}

table.gw-table tbody tr:hover {
    background: rgba(248, 212, 76, 0.05);
}

table.gw-table tr.is-ineligible {
    opacity: 0.4;
}

table.gw-table tr.is-winner {
    background: rgba(248, 212, 76, 0.12);
}

table.gw-table .rank {
    color: var(--text-1);
    opacity: 0.6;
    font-family: var(--text-mono);
}

table.gw-table .tickets {
    color: var(--brand-gold);
    font-weight: 700;
}

.gw-pill {
    display: inline-block;
    font-family: var(--text-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid var(--border-0);
    color: var(--text-1);
}

.gw-pill.eligible {
    color: #00ff80;
    border-color: rgba(0, 255, 128, 0.4);
}

.gw-pill.excluded {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.45);
}

/* Excluded row: struck through + dimmed (but still readable to toggle back) */
table.gw-table tr.is-excluded td {
    color: var(--text-1);
}

table.gw-table tr.is-excluded td:nth-child(2) {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Per-row exclude toggle */
.gw-ex-btn {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    padding: 4px 12px;
    font-family: var(--text-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 78px;
}

.gw-ex-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.gw-ex-btn.is-on {
    background: rgba(255, 107, 107, 0.14);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.gw-ex-btn.is-on:hover {
    border-color: #00ff80;
    color: #00ff80;
}

/* --------------------------------------------------------------------------
   Confirm modal
   -------------------------------------------------------------------------- */
.gw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    z-index: 8000;
    padding: 24px;
}

.gw-modal {
    background: var(--bg-1);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-m);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), var(--shadow-glow);
    padding: 32px 28px 24px;
    max-width: 460px;
    width: 100%;
    animation: gwModalIn 0.18s ease;
}

@keyframes gwModalIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

#gw-modal-msg {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-0);
    margin-bottom: 24px;
}

.gw-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.gw-modal-ok {
    padding: 12px 28px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

/* Danger variant — red confirm button */
.gw-modal.is-danger .gw-modal-ok {
    background: #c0392b;
    border-color: #c0392b;
    box-shadow: 0 4px 18px rgba(192, 57, 43, 0.35);
}

.gw-modal.is-danger .gw-modal-ok:hover {
    background: #e74c3c;
    box-shadow: 0 6px 24px rgba(231, 76, 60, 0.5);
}

/* --------------------------------------------------------------------------
   Confetti canvas overlay
   -------------------------------------------------------------------------- */
#gw-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .gw-stage {
        grid-template-columns: 1fr;
    }
    .gw-prizes {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    #gw-wheel {
        transition: transform 0.3s ease !important;
    }
    /* Don't rely on the entrance animation for visibility. */
    .gw-winner-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   UX pass — mode-aware presentation, cleaner controls, prominent results
   ========================================================================== */

/* The [hidden] attribute must always win over our display:flex/grid rules
   (author display would otherwise override the UA [hidden] { display:none }). */
[hidden] { display: none !important; }

/* --- Mode visibility: Prizes setup only while an admin is on a live draw --- */
#prizes { display: none; }
body.gw-admin.gw-active #prizes { display: block; }

/* Exclude column only when an admin can edit a live draw */
body:not(.gw-can-edit) table.gw-table th:nth-child(6),
body:not(.gw-can-edit) table.gw-table td:nth-child(6) { display: none; }

/* --- Ghost buttons (secondary actions) ------------------------------------ */
.gw-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-0);
    border-radius: var(--radius-m);
    padding: 9px 15px;
    font-family: var(--text-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.gw-ghost-btn:hover { border-color: var(--border-strong); color: var(--brand-gold); }
.gw-ghost-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.gw-ghost-btn.gw-danger { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.4); }
.gw-ghost-btn.gw-danger:hover { background: rgba(255, 107, 107, 0.12); border-color: #ff6b6b; color: #ff6b6b; }
.gw-section-head .gw-save-btn { margin-left: auto; }

/* --- Section heads: drop the rigid step chips, tidy spacing ---------------- */
.gw-section-head .step { display: none; }
.gw-section { padding-block: clamp(32px, 5vw, 52px); }

/* --- Controls column: tighter, clearer ------------------------------------ */
.gw-controls { gap: 14px; }
#gw-primary { box-shadow: 0 6px 24px rgba(248, 212, 76, 0.25); }

/* When admin has a completed draw, Replay + New Draw sit side by side */
body.gw-admin.gw-completed .gw-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

body.gw-admin.gw-completed .gw-controls #gw-primary,
body.gw-admin.gw-completed .gw-controls #gw-new2 {
    flex: 0 0 auto;
}
.gw-status {
    font-size: 0.84rem;
    min-height: 1.4em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
body.gw-busy .gw-status::before {
    content: '';
    width: 13px; height: 13px;
    border: 2px solid var(--border-0);
    border-top-color: var(--brand-gold);
    border-radius: 50%;
    animation: gwSpin 0.7s linear infinite;
}
@keyframes gwSpin { to { transform: rotate(360deg); } }

/* --- Nav: discreet admin login -------------------------------------------- */
.gw-admin-link {
    background: transparent;
    border: 1px solid var(--border-0);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--text-1);
    font-family: var(--text-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
}
.gw-admin-link:hover { color: var(--brand-gold); border-color: var(--border-strong); }
.gw-admin-link i { margin-right: 5px; }

/* --- Winners: make the result feel like a result -------------------------- */
.gw-winners h3 { font-size: 1.25rem; }
body.gw-completed .gw-winners {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow);
}
body.gw-completed .gw-winners h3 .live-dot { display: none; }
body.gw-completed #gw-winners-title::before { content: '🏆 '; }
body.gw-completed .gw-winner-card { padding: 16px 18px; }
body.gw-completed .gw-winner-card .medal { font-size: 2.1rem; }
body.gw-completed .gw-winner-card .w-name { font-size: 1.35rem; }

/* --- Share card: the payoff, full-width + prominent ----------------------- */
.gw-share {
    max-width: 720px;
    margin: 30px auto 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-m);
    background: linear-gradient(180deg, rgba(248, 212, 76, 0.07), rgba(10, 10, 10, 0.5));
    box-shadow: var(--shadow-glow);
    padding: 24px;
    text-align: center;
}
.gw-share-head {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--brand-gold);
    display: flex; align-items: center; justify-content: center; gap: 9px;
}
.gw-share-sub { color: var(--text-1); font-size: 0.9rem; margin: 8px 0 18px; }
.gw-share .gw-share-row { max-width: 600px; margin: 0 auto; gap: 10px; }
.gw-share .gw-share-row input { font-size: 0.85rem; padding: 13px 14px; }
.gw-copy-btn { padding: 13px 22px; font-size: 0.95rem; white-space: nowrap; border: none; cursor: pointer; }
.gw-share .gw-seed { margin-top: 14px; text-align: center; }

/* --- Meta bar: a touch more polish ---------------------------------------- */
.gw-meta-cell .value { letter-spacing: 0.5px; }

@media (max-width: 600px) {
    .gw-share .gw-share-row { flex-direction: column; }
    .gw-copy-btn { width: 100%; }
    .gw-control-row { width: 100%; }
}
