/* ==========================================================================
   Casino Felt — green baize inside a gold rail. Results sit on chips drawn
   with conic-gradients; a pending chip shows a card back instead of a number.
   ========================================================================== */

:root {
    --felt: #0d5c3a;
    --felt-2: #084029;
    --wood: #4a2410;
    --gold: #e0b64a;
    --gold-2: #fbe8a6;
    --cream: #fdf8ec;
    --ink: #1a1005;
    --dim: #a9c4b4;
    --red: #c62828;
    --wa: #16a34a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #14100a;
    color: var(--cream);
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); text-decoration: none; }

/* ------------------------------------------------------------------- nav */

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: bold; letter-spacing: 1.5px; color: var(--gold-2); }
.suits i { font-style: normal; font-size: 15px; color: var(--gold); }
.suits i.rd { color: var(--red); }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.links a { padding: 5px 14px; border: 1px solid rgba(224, 182, 74, .45); border-radius: 3px; color: var(--cream); font-size: 13px; }
.links a:hover, .links a.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------------------------------------------------------------- table */

.table { max-width: 1080px; margin: 0 auto; padding: 0 12px 40px; }

/* Rail: the padded wooden edge of the table. */
.rail {
    padding: 12px;
    background: linear-gradient(160deg, #7a4a22, var(--wood) 45%, #2f1608);
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.felt {
    padding: 26px 20px 30px;
    background:
        radial-gradient(80% 55% at 50% 0%, #157a4c 0%, var(--felt) 45%, var(--felt-2) 100%);
    border: 2px solid rgba(224, 182, 74, .5);
    border-radius: 18px;
    box-shadow: inset 0 0 70px rgba(0, 0, 0, .45);
}

/* ----------------------------------------------------------------- head */

.head { text-align: center; }
.head .tagline { display: inline-block; padding: 4px 16px; border: 1px solid var(--gold); border-radius: 3px; color: var(--gold-2); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
.head h1 { margin-top: 10px; font-size: 32px; font-weight: bold; letter-spacing: 2px; color: var(--gold-2); text-shadow: 0 2px 5px rgba(0, 0, 0, .5); word-break: break-word; }
.head .date { color: var(--dim); font-size: 13px; }
.head .hline { margin-top: 6px; font-size: 16px; }

.notice { margin-top: 16px; padding: 11px 16px; background: rgba(0, 0, 0, .3); border-left: 4px solid var(--gold); border-radius: 4px; text-align: center; font-size: 14px; }

/* ---------------------------------------------------------------- chips */

/* A chip: gold outer ring with alternating edge spots, cream face inside. */
.chip, .chip-xl { position: relative; flex: 0 0 auto; }
.chip { width: 104px; height: 104px; }
.chip-xl { width: 152px; height: 152px; }

.chip-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg, var(--cream) 0deg 15deg, var(--red) 15deg 30deg);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
}

.chip-xl .chip-ring { background: repeating-conic-gradient(from 0deg, var(--gold-2) 0deg 15deg, #0b3d26 15deg 30deg); }

.chip-face {
    position: absolute;
    inset: 13%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 25%, #fff, var(--cream) 60%, #e6dcc4);
    border: 3px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
    overflow: hidden;
}

.chip .chip-face b { color: var(--felt-2); font-size: 34px; font-weight: bold; line-height: 1; }
.chip-xl .chip-face b { color: var(--felt-2); font-size: 52px; font-weight: bold; line-height: 1; }

/* Card back stands in for a number that has not been dealt yet. */
.cardback {
    display: block;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(45deg, #b91c1c 0 6px, #7f1d1d 6px 12px);
    background-size: 17px 17px;
    animation: deal 3s ease-in-out infinite;
}

@keyframes deal { 0%, 100% { background-position: 0 0; } 50% { background-position: 17px 0; } }

/* ---------------------------------------------------------------- spot */

.spot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; margin-top: 26px; padding: 22px; background: rgba(0, 0, 0, .22); border: 1px dashed rgba(224, 182, 74, .45); border-radius: 14px; }
.spot-txt { flex: 1 1 260px; min-width: 0; }
.spot-txt .lbl { display: inline-block; padding: 2px 12px; background: var(--gold); border-radius: 3px; color: var(--ink); font-size: 11px; font-weight: bold; letter-spacing: 2px; }

/* Game name is the headline here, not the number. */
.gname-xl { margin-top: 8px; font-size: 32px; font-weight: bold; letter-spacing: 1.5px; color: var(--gold-2); word-break: break-word; }

.spot-txt p { color: var(--dim); font-size: 14px; }
.spot-txt p b { color: var(--cream); }
.spot-txt .soon { margin-top: 4px; color: var(--gold-2); }

.marker { max-width: 520px; margin: 16px auto 0; padding: 9px 16px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(224, 182, 74, .35); border-radius: 30px; text-align: center; font-size: 14px; }
.marker b { color: var(--gold-2); }

/* ---------------------------------------------------------------- seats */

.sec-h { margin: 34px 0 18px; text-align: center; }
.sec-h span { display: inline-block; padding: 5px 22px; border-top: 1px solid rgba(224, 182, 74, .5); border-bottom: 1px solid rgba(224, 182, 74, .5); color: var(--gold-2); font-size: 15px; letter-spacing: 3px; text-transform: uppercase; }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }

.seat {
    position: relative;
    padding: 18px 14px 16px;
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(224, 182, 74, .3);
    border-radius: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(18px) scale(.96);
    animation: toss .45s cubic-bezier(.2, .9, .3, 1) forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes toss { to { opacity: 1; transform: none; } }

.seat:hover { border-color: var(--gold); background: rgba(0, 0, 0, .32); }
.seat .chip { margin: 0 auto; }
.seat-suit { position: absolute; top: 10px; right: 12px; color: rgba(224, 182, 74, .5); font-size: 16px; }

/* Bigger, brighter game name — this is what people scan the grid for. */
.seat-name { margin-top: 12px; font-size: 20px; font-weight: bold; letter-spacing: 1.2px; color: var(--gold-2); word-break: break-word; }

.seat-time { color: var(--dim); font-size: 12px; letter-spacing: 1px; }
.seat-prev { margin-top: 4px; color: var(--dim); font-size: 13px; }
.seat-prev b { color: var(--cream); font-size: 16px; }
.seat-link { display: inline-block; margin-top: 10px; padding: 5px 16px; border: 1px solid rgba(224, 182, 74, .5); border-radius: 20px; font-size: 12px; }
.seat-link:hover { background: var(--gold); color: var(--ink); }
.seat.is-wait { border-style: dashed; }

/* -------------------------------------------------------------- placard */

.placard { position: relative; margin-top: 30px; padding: 26px 20px 22px; background: linear-gradient(180deg, var(--cream), #efe4c9); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); color: var(--ink); text-align: center; }
.placard .pin { position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 55%, #8a6a12); border-radius: 50%; }
.placard h3 { font-size: 21px; letter-spacing: 1.5px; }
.placard .rate { margin-top: 4px; color: var(--red); font-size: 14px; font-weight: bold; }
.placard .note { margin-top: 12px; color: #6a5a3f; font-size: 13px; }

.plist { list-style: none; max-width: 380px; margin: 14px auto 0; }
.plist li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 15px; }
.plist li span { font-weight: bold; }
.plist li i { flex: 1; border-bottom: 1px dotted rgba(0, 0, 0, .3); }
.plist b { color: var(--felt); }

.cta { margin-top: 14px; }
.btn { display: inline-block; margin: 4px; padding: 10px 24px; background: var(--wa); border-radius: 4px; color: #fff; font-size: 14px; font-weight: bold; }
.btn.tg { background: #1d6fa5; }

/* ---------------------------------------------------------- week table */

.rec-wrap { overflow-x: auto; background: rgba(0, 0, 0, .25); border: 1px solid rgba(224, 182, 74, .35); border-radius: 12px; }
.rec { width: 100%; border-collapse: collapse; font-size: 14px; }
.rec th, .rec td { padding: 9px 10px; border-bottom: 1px solid rgba(224, 182, 74, .16); text-align: center; white-space: nowrap; }
.rec thead th { background: rgba(0, 0, 0, .35); color: var(--gold-2); font-size: 12px; letter-spacing: 1px; }
.rec tbody tr:last-child td { border-bottom: 0; }
.rt-date { color: var(--gold-2); font-weight: bold; }
.rt-dash { color: rgba(253, 248, 236, .25); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 26px; }
.step { padding: 18px 14px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(224, 182, 74, .3); border-radius: 12px; text-align: center; }
.step-ico { display: block; font-size: 26px; }
.step b { display: block; margin: 6px 0 2px; color: var(--gold-2); font-size: 15px; }
.step span { color: var(--dim); font-size: 13px; }

/* ------------------------------------------------------------------- faq */

.faq-item { margin-bottom: 8px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(224, 182, 74, .25); border-radius: 8px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 15px; background: none; border: 0; color: var(--cream); font-family: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.faq-ico { color: var(--gold); font-size: 19px; font-style: normal; transition: transform .25s ease; }
.faq-item.open .faq-ico { transform: rotate(135deg); }
.faq-a { display: none; padding: 0 15px 13px; color: var(--dim); font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* --------------------------------------------------------------- article */

.article { margin-top: 14px; padding: 20px 18px; background: rgba(0, 0, 0, .2); border-left: 3px solid var(--gold); border-radius: 8px; }
.article h4 { margin-bottom: 8px; color: var(--gold-2); font-size: 18px; }
.article p { margin-bottom: 10px; color: #d7e6dd; font-size: 14.5px; }
.article p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- footer */

.foot { padding: 26px 16px 34px; text-align: center; }
.foot .fname { color: var(--gold-2); font-size: 19px; letter-spacing: 3px; }
.foot p { max-width: 720px; margin: 8px auto 0; color: #9aa899; font-size: 13px; word-break: break-word; }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--wa); border: 2px solid var(--gold-2); border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); color: #fff; }

/* ------------------------------------------------------------ chart page */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; padding: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(224, 182, 74, .3); border-radius: 12px; }
.filters select, .filters input { padding: 9px 11px; background: var(--cream); border: 1px solid var(--gold); border-radius: 4px; color: var(--ink); font-family: inherit; font-size: 14px; }
.btn-sm { display: inline-block; padding: 9px 18px; background: var(--gold); border: 0; border-radius: 4px; color: var(--ink); font-family: inherit; font-size: 13px; font-weight: bold; cursor: pointer; }
.btn-sm.ghost { background: none; border: 1px solid rgba(224, 182, 74, .5); color: var(--gold-2); }

@media (max-width: 640px) {
    .head h1 { font-size: 25px; }
    .rail { padding: 8px; border-radius: 18px; }
    .felt { padding: 20px 14px 24px; }
    .chip-xl { width: 122px; height: 122px; }
    .chip-xl .chip-face b { font-size: 42px; }
    .gname-xl { font-size: 25px; }
    .chips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .chip { width: 88px; height: 88px; }
    .chip .chip-face b { font-size: 28px; }
    .seat-name { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .seat { opacity: 1; transform: none; }
}
