/* Themes, table felts, card backs and avatars (developer checklist F10). Cosmetic only.
   Loaded on every page; the default choices (dark, green, gold) add no rules at all. */

/* ---- table felts */
.cr-felt-midnight .table-felt { background: radial-gradient(circle at 50% 40%, #1f3a63 0%, #12264a 55%, #0a1730 100%); }
.cr-felt-crimson .table-felt { background: radial-gradient(circle at 50% 40%, #6d1f2a 0%, #4a121b 55%, #2c0a10 100%); }
.cr-felt-slate .table-felt { background: radial-gradient(circle at 50% 40%, #3f4a54 0%, #2a333b 55%, #171d22 100%); }

/* ---- card backs: the rim and stripe of clue cards and face-down cards; the text area is untouched */
.cr-back-pinstripe .game-card, .cr-back-pinstripe .loading-playing-card { border: 3px double #d9dee6; }
.cr-back-diamond .game-card, .cr-back-diamond .loading-playing-card { border: 3px solid #7fd1ff; box-shadow: 0 0 0 2px #0c1b15, 0 0 0 4px #7fd1ff; }
.cr-back-laurel .game-card, .cr-back-laurel .loading-playing-card { border: 3px solid #9be29b; border-radius: 1.1rem; }

/* ---- avatar */
.my-avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; color: #10201a; background: #efbf3a; border-radius: 50%; }

/* ---- the chooser */
.cosmetic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: .75rem; }
.cosmetic-item { padding: .6rem; border: 1px solid rgba(128, 128, 128, .5); border-radius: .6rem; }
.cosmetic-item.is-equipped { border: 2px solid #efbf3a; }
.cosmetic-swatch { display: flex; align-items: center; justify-content: center; height: 3rem; margin-bottom: .5rem; font-size: 1.6rem; border-radius: .4rem; background: #1b3a2f; color: #fff4d6; }
.cosmetic-felt-midnight { background: #12264a; } .cosmetic-felt-crimson { background: #4a121b; } .cosmetic-felt-slate { background: #2a333b; }
.cosmetic-back-gold { border: 3px solid #efbf3a; } .cosmetic-back-pinstripe { border: 3px double #d9dee6; }
.cosmetic-back-diamond { border: 3px solid #7fd1ff; } .cosmetic-back-laurel { border: 3px solid #9be29b; border-radius: 1.1rem; }

/* ---- light site theme: pages outside the game table read dark on light. The table itself keeps its felt. */
body.cr-site-light { color: #1b1b1b; background: #f4f5f7; }
.cr-site-light .casino-page { color: #1b1b1b; background: #f4f5f7; }
.cr-site-light .casino-modal, .cr-site-light .landing-card { color: #1b1b1b; background: #ffffff; border-color: #c9ced6; box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .08); }
.cr-site-light .casino-modal h1, .cr-site-light .casino-modal h2, .cr-site-light .casino-modal h3,
.cr-site-light .display-title, .cr-site-light .text-warning, .cr-site-light .landing-card h2, .cr-site-light .landing-card h3 { color: #14213d !important; }
.cr-site-light .text-felt-muted, .cr-site-light .eyebrow, .cr-site-light .casino-modal .small { color: #4a4a4a !important; }
.cr-site-light .casino-modal a:not(.btn), .cr-site-light .landing-card a:not(.btn) { color: #0b4f9c; }
.cr-site-light .btn.casino-btn-outline { color: #0b4f9c; border-color: #0b4f9c; background: transparent; }
.cr-site-light .btn.casino-btn-outline:hover, .cr-site-light .btn.casino-btn-outline:focus-visible { color: #ffffff; background: #0b4f9c; }
.cr-site-light .btn.btn-bet { color: #ffffff; background: #0b4f9c; border-color: #0b4f9c; }
.cr-site-light .form-control, .cr-site-light .form-select { color: #1b1b1b; background-color: #ffffff; border-color: #6b7280; }
.cr-site-light .table-dark { --bs-table-color: #1b1b1b; --bs-table-bg: #ffffff; --bs-table-border-color: #c9ced6; --bs-table-striped-bg: #f3f4f6; --bs-table-active-bg: #e6eefb; }
.cr-site-light .practice-card, .cr-site-light .mastery-key-item { color: #1b1b1b; background: #f3f4f6; border-color: #6b7280; }
.cr-site-light .player-stat-number { color: #6b3a00; }
.cr-site-light .topic-ring { color: #1b1b1b; }
.cr-site-light .topic-ring svg text { fill: #1b1b1b; }
/* The game tables stay as they are in either theme. */
.cr-site-light .table-felt, .cr-site-light .table-felt .casino-modal { color: inherit; }
