﻿/* =========================================================
   GLOBAL: NO HORIZONTAL SCROLL (EVER)
   ========================================================= */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* =========================================================
   RESPONSIVE CELL SIZE (1 logo + 10 columns = 11)
   Desktop default matches your original 70px
   ========================================================= */
:root {
    --cell: 70px; /* desktop default */
}

/* =========================================================
   BOARD + GRID
   ========================================================= */
#board {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* IMPORTANT: do NOT clip glow */
#gridGlow,
.grid-glow-wrap {
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}
/* Center the board horizontally */
.board-wrap {
    display: flex;
    justify-content: center;
}
/* Each row stays on one line; board scales via --cell */
.row {
    display: flex;
    flex-wrap: nowrap;
}

/* =========================================================
   SQUARES
   ========================================================= */
.square {
    width: var(--cell);
    height: var(--cell);
    min-width: var(--cell);
    min-height: var(--cell);
    border: 1px solid #999;
    position: relative;
    cursor: pointer;
    background: white;
    font-size: calc(var(--cell) * 0.26);
    font-weight: bold;
    /* IMPORTANT: allow glow to render outside the box */
    overflow: visible;
}

    .square:hover:not(.taken) {
        background-color: #cce7ff;
    }

    /* =========================================================
   CLAIMED SQUARE GLOW (your original)
   ========================================================= */
    .square.taken {
        background: rgba(20, 60, 30, 0.85);
        border-color: rgba(60, 180, 90, 0.9);
        box-shadow: 0 0 0 2px rgba(60, 180, 90, 0.85), 0 0 18px rgba(60, 180, 90, 0.65), inset 0 0 14px rgba(0, 0, 0, 0.65);
        cursor: not-allowed;
    }

        .square.taken:hover {
            /* keep hover subtle if you want */
        }

        /* Name text inside claimed square */
        .square.taken .sq-text {
            color: #eaffea;
            font-weight: 900;
            text-shadow: 0 0 6px rgba(60, 180, 90, 0.95), 0 0 14px rgba(60, 180, 90, 0.75);
        }

/* Centered square text; truncate without clipping glow */
.sq-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-weight: bold;
    padding: 0 2px;
    /* truncate text only */
    max-width: 92%;
    overflow: visible;
    /*text-overflow: ellipsis;*/
}

/* =========================================================
   EDGE SQUARES (logo + numbers)
   ========================================================= */
.edge-square {
    width: var(--cell);
    height: var(--cell);
    min-width: var(--cell);
    min-height: var(--cell);
    border: 1px solid #999;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* IMPORTANT: allow edge-hot glow and text glow to render */
    overflow: visible;
}

.red {
    background-color: #f5c8c8;
}

.blue {
    background-color: #c5d8f7;
}

.logo {
    /*background-image: url('/images/superbowl.png');*/
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.edge-square .edge-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.edge-square .edge-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    /* scale with cell */
    font-size: calc(var(--cell) * 0.60);
    font-weight: 900;
    opacity: 0.35;
    color: #000;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35), 0 -1px 0 rgba(255,255,255,0.35), 1px 0 0 rgba(255,255,255,0.35), -1px 0 0 rgba(255,255,255,0.35);
    transition: transform .12s ease, opacity .12s ease, text-shadow .12s ease, font-weight .12s ease;
}

.edge-square.red .edge-text,
.edge-square.blue .edge-text {
    opacity: 0.20;
}

/* EDGE HOT glow (your original idea, preserved) */
.edge-square.edge-hot .edge-text {
    opacity: 1;
    font-weight: 900;
    transform: scale(1.25);
    text-shadow: 0 0 10px rgba(255,215,0,.75);
}

/* =========================================================
   BOARD HEADER (your original styling, preserved)
   ========================================================= */
.board-header {
    background: linear-gradient(135deg, #0f1f14, #143322);
    border-radius: 18px;
    padding: 18px 18px 22px;
    border: 2px solid #2bbf6a;
    box-shadow: 0 0 0 2px rgba(43,191,106,.35), 0 0 24px rgba(18,140,70,.55), inset 0 0 30px rgba(0,0,0,.75);
    position: relative;
    text-align: center;
    /* ✅ NEW: make room for your absolute arrows */
    padding-left: 82px; /* 22(left) + 44(btn) + ~16 gap */
    padding-right: 82px; /* 22(right) + 44(btn) + ~16 gap */
    /* ✅ NEW: space under header before the board grid */
    margin-bottom: 12px;
    /* optional: ensure header fills its container width */
    width: 100%;
    box-sizing: border-box;
}

    .board-header div {
        color: #eaffea;
        font-weight: 900;
        font-size: 16px;
        letter-spacing: .4px;
        text-shadow: 0 0 6px rgba(18,140,70,1), 0 0 16px rgba(18,140,70,.85), 0 0 32px rgba(18,140,70,.65);
        /* ✅ NEW: prevent text from sliding under arrows */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Board arrows (your original) */
.board-nav-btn {
    all: unset;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    background: rgba(120, 255, 170, 0.18);
    border: 2px solid #2bbf6a;
    color: #eaffea;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 0 10px rgba(18, 140, 70, 0.65), 0 0 26px rgba(18, 140, 70, 0.45);
}

#boardPrevBtn {
    left: 22px;
}

#boardNextBtn {
    right: 22px;
}

.board-nav-btn:hover {
    box-shadow: 0 0 16px rgba(18, 140, 70, 0.85), 0 0 40px rgba(18, 140, 70, 0.65);
}

.board-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

/* =========================================================
   MAIN LAYOUT: BOARD + SCOREBOARD
   Desktop side-by-side, Mobile stacked (no horizontal scroll)
   ========================================================= */
.squares-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
}

.main-left {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.scores-sidebar {
    flex: 0 0 520px;
    width: 520px;
    max-width: 100%;
}

/* QUARTERS containers (all modes) */
#quarters,
#quartersBasic,
#quartersNesw {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}
#quartersBasic {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}
#quartersNesw {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.quarter-box {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 10px;
    padding: 12px;
    border: 2px solid #333;
    background: #f4f4f4;
}

    .quarter-box.q1 {
        background: #e7f1ff;
        border-color: #1e5fbf;
        box-shadow: 0 0 12px rgba(30,95,191,.15);
    }

    .quarter-box.q2 {
        background: #e9fff2;
        border-color: #1b7f4a;
        box-shadow: 0 0 12px rgba(27,127,74,.15);
    }

    .quarter-box.q3 {
        background: #fff4e0;
        border-color: #c46a00;
        box-shadow: 0 0 12px rgba(196,106,0,.15);
    }

    .quarter-box.q-final {
        background: linear-gradient(135deg, #2a2100, #4a3a00);
        border-color: #f2d36b;
        box-shadow: 0 0 20px rgba(242,211,107,.4);
    }

.quarter-title {
    font-weight: 900;
    font-size: 34px;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1;
}

.quarter-box.q1 .quarter-title {
    color: #1e5fbf;
    text-shadow: 0 0 4px rgba(30,95,191,.35), 0 0 10px rgba(30,95,191,.25);
}

.quarter-box.q2 .quarter-title {
    color: #1b7f4a;
    text-shadow: 0 0 4px rgba(27,127,74,.35), 0 0 10px rgba(27,127,74,.25);
}

.quarter-box.q3 .quarter-title {
    color: #c46a00;
    text-shadow: 0 0 4px rgba(196,106,0,.35), 0 0 10px rgba(196,106,0,.25);
}

.quarter-box.q-final .quarter-title {
    color: #f2d36b;
    text-shadow: 0 0 6px rgba(242,211,107,.6);
}

.quarter-field {
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #aaa;
    cursor: default !important;
    text-align: center;
}

.q-text {
    display: inline-block;
    min-width: 0;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- NESW coloring: match the quarter theme --- */

/* FINAL */
.quarter-box.q-final .adj-dir,
.quarter-box.q-final .adj-name {
    color: rgba(255, 245, 200, 0.95);
}

/* Optional: make Q1/Q2/Q3 match their title colors too */
.quarter-box.q1 .adj-dir, .quarter-box.q1 .adj-name {
    color: #1e5fbf;
}

.quarter-box.q2 .adj-dir, .quarter-box.q2 .adj-name {
    color: #1b7f4a;
}

.quarter-box.q3 .adj-dir, .quarter-box.q3 .adj-name {
    color: #c46a00;
}
.square.winner-flash {
    box-shadow: 0 0 0 3px rgba(255,255,0,.9), 0 0 18px rgba(255,255,0,.9);
    border-color: rgba(255,255,0,.9);
    transition: box-shadow .15s ease, border-color .15s ease;
}
/* WIN FLASH (draw ON TOP of neighbor borders) */
.square.final-yellow-glow,
.square.taken.final-yellow-glow {
    position: relative;
    z-index: 10;
    /* outline draws over neighboring borders */
    outline: 3px solid #f2d36b;
    outline-offset: -2px;
    /* keep your yellow glow */
    box-shadow: 0 0 0 3px rgba(242, 211, 107, .95), 0 0 22px rgba(242, 211, 107, .75), inset 0 0 14px rgba(0,0,0,.65) !important;
}

    /* make NAME text glow yellow too */
    .square.final-yellow-glow .sq-text,
    .square.taken.final-yellow-glow .sq-text {
        color: rgba(255, 245, 200, 0.98) !important;
        text-shadow: 0 0 6px rgba(242, 211, 107, .95), 0 0 14px rgba(242, 211, 107, .75) !important;
    }




/* =========================================================
   SCOREBOARD GRID + TILES (remove hard min widths)
   ========================================================= */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.score-tile {
    border: 1px solid #222;
    background: #111;
    color: #fff;
    padding: 12px 12px 10px;
    border-radius: 12px;
    /* IMPORTANT: do NOT force overflow on mobile */
    min-width: 0;
    width: 100%;
    transition: box-shadow .2s ease, border .2s ease, background .2s ease;
}

    .score-tile.selected {
        border: 1px solid rgba(218,165,32,.85);
        background: linear-gradient(135deg, rgba(218,165,32,.22), rgba(255,215,0,.10)), #111;
        box-shadow: 0 0 0 2px rgba(218,165,32,.35), 0 10px 24px rgba(218,165,32,.35), inset 0 0 18px rgba(255,215,0,.25);
        backdrop-filter: blur(6px);
    }

.score-head,
.score-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) repeat(4, 18px) 22px;
    align-items: center;
    column-gap: 10px;
}

.score-head {
    font-weight: 800;
    opacity: .9;
    margin-bottom: 8px;
}

    .score-head .qh {
        text-align: center;
        font-size: 13px;
    }

.scores-header {
    color: #f2d36b;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(242, 211, 107, 0.9), 0 0 14px rgba(242, 211, 107, 0.7), 0 0 28px rgba(218, 165, 32, 0.6);
}

/* Readable "No games found" message (yellow glow, lighter weight) */
.scores-empty {
    color: rgba(242, 211, 107, 0.92);
    font-weight: 600;
    font-style: italic;
    margin: 8px 0 14px;
    text-shadow: 0 0 4px rgba(242, 211, 107, 0.55), 0 0 10px rgba(242, 211, 107, 0.35);
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.team-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.team-abbr {
    font-weight: 900;
    letter-spacing: .5px;
    white-space: nowrap;
}

.q {
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

    .q.current {
        outline: 2px solid rgba(255,255,255,.35);
        border-radius: 6px;
        padding: 4px 0;
    }

    .q.future {
        opacity: .35;
    }

.final {
    text-align: right;
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}

    .final.locked {
        opacity: .75;
    }

.game-meta {
    margin-top: 10px;
    font-size: 12px;
    opacity: .85;
}

/* =========================================================
   BUTTONS + MODALS
   ========================================================= */
.gen-btn {
    border: 1px solid #222;
    background: #111;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

    .gen-btn:hover {
        filter: brightness(1.15);
    }

    .gen-btn.danger {
        background: #8b0000;
    }

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.confirm-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Full-screen start page with background image */
body.start-bg {
    margin: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.35), rgba(0,0,0,0.85)), url('/images/FootballField.jpg') center / cover no-repeat fixed;
}

/* =========================================================
   MOBILE BEHAVIOR:
   - Stack scoreboard under board
   - Scale board to fit width
   - Keep quarters in one row without horizontal scroll
   ========================================================= */
@media (max-width: 992px) {
    .squares-layout {
        flex-direction: column;
        gap: 16px;
    }

    .scores-sidebar {
        width: 100%;
        flex: 1 1 auto;
    }

    .scores-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    /* Fit 11 columns exactly within viewport */
    :root {
        --cell: calc((100vw - 16px) / 11);
    }

    /* Tighten quarter boxes but keep your glow intact */
    .quarter-box {
        padding: 8px;
    }

    .quarter-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .quarter-field {
        padding: 6px;
        font-size: 10px;
    }

        .quarter-field label,
        .q-text {
            font-size: 12px;
        }

    /* Scoreboard grid tighter */
    .score-head,
    .score-row {
        grid-template-columns: minmax(110px, 1fr) repeat(4, 16px) 20px;
        column-gap: 8px;
    }

    .team-logo {
        width: 28px;
        height: 28px;
    }

    .q {
        font-size: 14px;
    }

    .final {
        font-size: 16px;
    }
}

/* Your banner message style (kept) */
#boardGateMessage {
    color: #f2d36b;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(242,211,107,1), 0 0 16px rgba(242,211,107,.8), 0 0 32px rgba(218,165,32,.7);
}
/* On mobile/stacked layout: center the entire board column */
@media (max-width: 992px) {
    .main-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* <-- centers the whole stack */
    }

    .board-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Keep quarters centered under the board */
    #quarters {
        width: 100%;
        max-width: 520px; /* tweak if you want wider/narrower */
        margin-left: auto;
        margin-right: auto;
    }
}
/* ============================
   MOBILE: lock grid + quarters
   header scrolls normally
   ============================ */
@media (max-width: 992px) {

    /* normal page scrolling */
    html, body {
        overflow-x: hidden;
    }

    .squares-layout {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .main-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .board-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* ONLY grid + quarters stick */
    .board-sticky {
        position: sticky;
        top: 0;                 /* adjust if navbar overlaps */
        z-index: 50;

        display: flex;
        flex-direction: column;
        align-items: center;

        background: rgba(0,0,0,0.65);
        backdrop-filter: blur(6px);

        padding: 10px 0 12px;
    }

    /* ensure tiles can fully scroll into view */
    .scores-sidebar {
        padding-bottom: 180px;
    }

    /* mobile tiles layout */
    .scores-grid {
        grid-template-columns: 1fr !important;
    }

    .score-tile {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}
.privacy-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.privacy-box {
    max-width: 900px;
    width: 100%;
    background: linear-gradient(135deg, #1a1400, #2a2100);
    border: 2px solid #f2d36b;
    border-radius: 16px;
    padding: 24px;
    color: #fff5cc;
    box-shadow: 0 0 0 2px rgba(242,211,107,.35), 0 0 24px rgba(242,211,107,.45), inset 0 0 30px rgba(0,0,0,.75);
}

.privacy-title {
    text-align: center;
    color: #f2d36b;
    text-shadow: 0 0 10px rgba(242,211,107,.9);
    margin-bottom: 10px;
}

.privacy-meta {
    text-align: center;
    opacity: .85;
    margin-bottom: 20px;
}

.privacy-section {
    margin-bottom: 22px;
}

    .privacy-section h2 {
        color: #f2d36b;
        text-shadow: 0 0 6px rgba(242,211,107,.75);
        margin-bottom: 8px;
    }

    .privacy-section h3 {
        margin-top: 10px;
        color: #ffeaa0;
    }

    .privacy-section ul {
        margin-left: 20px;
    }

    .privacy-section li {
        margin-bottom: 6px;
    }

    .privacy-section a {
        color: #ff8c2a;
    }
#joinGroupModal #joinGroupBody {
    text-align: center;
    font-style: italic;
    color: #f2d36b;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(242,211,107,1), 0 0 16px rgba(242,211,107,.8), 0 0 32px rgba(218,165,32,.7);
    /* match the success box feel */
    background: rgba(0,0,0,.30);
    border: 1px solid rgba(242,211,107,.55);
    box-shadow: 0 0 22px rgba(242,211,107,.15);
    border-radius: 12px;
    padding: 18px 16px;
}

    #joinGroupModal #joinGroupBody label {
        display: block;
        margin-bottom: 10px;
        color: #f2d36b;
        font-weight: 800;
        text-shadow: 0 0 6px rgba(242,211,107,1), 0 0 16px rgba(242,211,107,.8), 0 0 32px rgba(218,165,32,.7);
    }

#joinGroupModal #groupNumberInput {
    width: min(340px, 90%);
    margin: 0 auto;
    text-align: center;
    background: rgba(0,0,0,.15);
    border: 1px solid rgba(242,211,107,.55);
    color: #f2d36b;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(242,211,107,.12);
    border-radius: 10px;
    padding: 10px 12px;
}
.join-group-actions {
    display: flex;
    justify-content: center; /* ⬅ centers horizontally */
    gap: 14px; /* space between buttons */
    margin-top: 16px;
}
.join-group-box {
    display: flex;
    flex-direction: column;
    align-items: center; /* ⬅ centers title, input, buttons */
    text-align: center; /* ⬅ centers text like JOIN GROUP */
}
#groupInputLabel {
    color: #f2d36b; /* same as input text */
    font-style: italic;
    font-weight: 500;
    margin-bottom: 6px;
    text-align: center;
    display: block;
    text-shadow: none; /* explicitly kill glow */
}
#paymentBox {
    width: 100%;
    display: block;
}

/* These are the wrappers Stripe mounts into */
#paymentRequestButton,
#cardElement,
#stripePaymentElement {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* If quarter-field is flex, it can collapse children. Make sure it allows width. */
#paymentBox.quarter-field {
    display: block; /* override any flex on .quarter-field */
}

/* Nice: make the Stripe UI not look cramped */
#cardElement,
#stripePaymentElement {
    padding: 10px 12px;
    border: 1px solid rgba(242, 211, 107, 0.45);
    border-radius: 10px;
    box-sizing: border-box;
}
.score-tile {
    position: relative;
}

    /* Lower-right panel */
    .score-tile .group-nav {
        position: absolute;
        right: 8px;
        bottom: 8px;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 6px 8px;
        border-radius: 10px;
        background: rgba(120, 255, 170, 0.12);
        border: 2px solid #2bbf6a;
        box-shadow: 0 0 10px rgba(18, 140, 70, 0.65), 0 0 22px rgba(18, 140, 70, 0.45);
        backdrop-filter: blur(2px);
    }

    /* Small header */
    .score-tile .group-nav-label {
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: #eaffea;
        text-shadow: 0 0 8px rgba(120, 255, 170, 0.85);
        margin-right: 6px;
        white-space: nowrap;
    }

    /* Smaller buttons, closer together */
    .score-tile .group-nav-btn {
        all: unset;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        user-select: none;
        background: rgba(120, 255, 170, 0.18);
        border: 2px solid #2bbf6a;
        color: #eaffea;
        font-weight: 900;
        font-size: 14px;
        line-height: 1;
        box-shadow: 0 0 8px rgba(18, 140, 70, 0.65), 0 0 18px rgba(18, 140, 70, 0.45);
    }

        .score-tile .group-nav-btn:hover {
            background: rgba(120, 255, 170, 0.28);
        }

        .score-tile .group-nav-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            box-shadow: none;
        }
    /* Top-left group name badge – styled to MATCH Group Navigation */
    .score-tile .tile-group-name {
        position: absolute;
        top: 5px; /* ⬅ more padding from top */
        left: 5px;
        padding: 6px 14px; /* ⬅ thicker vertical padding */
        border-radius: 14px;
        /* ✅ fuzzy green glow like Group Navigation */
        background: radial-gradient( circle at 30% 30%, rgba(120, 255, 170, 0.35), rgba(0, 0, 0, 0.55) 65% );
        border: 2px solid #2bbf6a;
        box-shadow: 0 0 10px rgba(18, 140, 70, 0.75), 0 0 22px rgba(18, 140, 70, 0.55), inset 0 0 10px rgba(120, 255, 170, 0.25);
        color: #eaffea;
        font-weight: 900;
        font-size: 12px;
        letter-spacing: 0.4px;
        white-space: nowrap;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none; /* never blocks tile click */
        z-index: 6;
    }
    /* Push team logos down so they don't collide with group badge */
    .score-tile .score-row,
    .score-tile .teams {
        margin-top: 10px;
    }
.board-nav-style {
    all: unset;
    min-width: 28px;
    height: 28px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(120, 255, 170, 0.18);
    border: 2px solid #2bbf6a;
    color: #eaffea;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 8px rgba(18, 140, 70, 0.6), 0 0 18px rgba(18, 140, 70, 0.45);
}

    .board-nav-style:hover {
        background: rgba(120, 255, 170, 0.32);
    }
.payment-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: space-between;
}

.cancel-btn {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 120, 120, 0.6);
    color: #ffd6d6;
}

    .cancel-btn:hover {
        background: rgba(255, 80, 80, 0.35);
    }
.edge-square.logo {
    position: relative; /* REQUIRED for absolute children */
}

.corner-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: #00ff7f;
    text-shadow: 0 0 6px rgba(0,255,127,.9);
    pointer-events: none;
}
.corner-value-25 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: 700;
    color: #00ff7f;
    text-shadow: 0 0 6px rgba(0,255,127,.9);
    pointer-events: none;
}
/* ===============================
   Yellow Glow Select (Amount Picker)
   =============================== */

.amount-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    color: #ffd966;
    border: 2px solid rgba(255, 217, 102, 0.7);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 217, 102, 0.6), inset 0 0 10px rgba(255, 217, 102, 0.25);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    /* Focus / Active glow */
    .amount-select:focus {
        border-color: #ffe699;
        box-shadow: 0 0 14px rgba(255, 217, 102, 0.9), inset 0 0 12px rgba(255, 217, 102, 0.35);
    }

    /* Dropdown options */
    .amount-select option {
        background: #0d0d0d;
        color: #ffd966;
        font-weight: 600;
    }

        /* Disabled / placeholder option */
        .amount-select option:disabled {
            color: #999;
        }

/* Optional arrow styling */
.amount-select-wrap {
    position: relative;
}

    .amount-select-wrap::after {
        content: "▼";
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #ffd966;
        text-shadow: 0 0 6px rgba(255, 217, 102, 0.8);
    }
.text-danger {
    color: #ff4d4f; /* or Bootstrap red */
}
.adj-grid {
    display: grid;
    gap: 4px;
}

.adj-row {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: center;
}

.adj-dir {
    text-align: left;
    font-weight: 700;
}

.adj-name {
    text-align: left;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
