:root {
  --primary-bg: #0d1310; /* Deep pine-tinted dark background */
  --secondary-bg: #24302a;
  --lighter-bg: #17211c;
  --white: #ffffff;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #a7a7a7;
  --gray-600: #818181;
  --gray-700: #444444;

  /* Festive Christmas Red, Green & Gold Palette */
  --purple-300: #f87171; /* Festive Soft Red (Highlights / Active) */
  --purple-400: #dc2626; /* Classic Christmas Crimson (Primary Accents) */
  --xmas-green: #16a34a; /* Holly Green */
  --xmas-gold: #fbbf24;  /* Warm Star Gold */

  --bgcolor-default: #f87171;
  --bgcolor-blue: #80bbff;
  --bgcolor-brown: #d19f64;
  --bgcolor-green: #5ee75d;
  --bgcolor-grey: #bcbcbc;
  --bgcolor-ltblue: #42e8ff;
  --bgcolor-ltgreen: #c6f562;
  --bgcolor-mauve: #cd7d89;
  --bgcolor-olive: #a2b150;
  --bgcolor-orange: #ffb82d;
  --bgcolor-peach: #f48d60;
  --bgcolor-pink: #f490e6;
  --bgcolor-purple: #bd9fe2;
  --bgcolor-red: #ff392e;
  --bgcolor-tan: #c4b97c;
  --bgcolor-teal: #6ec6ab;
  --bgcolor-yellow: #f0ea3a;
}

.bgcolor-highlight {
  background-color: #2c3a33 !important;
}

/* Subtle Static Winter Snowfall Background */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-bg);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px),
    radial-gradient(rgba(220, 240, 255, 0.06) 2px, transparent 2px);
  background-size: 75px 75px, 110px 110px, 160px 160px;
  background-position: 0 0, 35px 45px, 80px 20px;
}

body.transform {
  transform: rotate(180deg);
}

/* Navbar with Candy-Cane Bottom Border */
nav.navbar,
nav.navbar .container {
  overflow: visible !important;
}

nav {
  background-color: var(--lighter-bg);
  color: var(--white);
  border-bottom: 4px solid transparent;
  border-image: repeating-linear-gradient(
    -45deg,
    var(--purple-400) 0px,
    var(--purple-400) 10px,
    var(--white) 10px,
    var(--white) 20px
  ) 1;
}

nav.navbar a.navbar-brand {
  position: relative !important;
  display: inline-block !important;
  color: var(--white);
}

nav.navbar a.navbar-brand:hover {
  color: var(--xmas-gold);
}

/* Enlarged Pure-CSS Holly Leaves & Red Berries Under Logo */
nav.navbar a.navbar-brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 85%;
  transform: translateX(-50%);
  width: 68px;
  height: 30px;
  pointer-events: none;
  z-index: 1051;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
  background:
    radial-gradient(circle at 34px 11px, #fecaca 0 1.5px, #ef4444 2px 5.5px, #991b1b 6.5px, transparent 7px),
    radial-gradient(circle at 27px 17px, #fecaca 0 1.5px, #dc2626 2px 5.5px, #7f1d1d 6.5px, transparent 7px),
    radial-gradient(circle at 41px 17px, #fecaca 0 1.5px, #dc2626 2px 5.5px, #7f1d1d 6.5px, transparent 7px),
    radial-gradient(ellipse 20px 9px at 16px 15px, #22c55e 25%, #16a34a 75%, #052e16 95%, transparent 100%),
    radial-gradient(ellipse 20px 9px at 52px 15px, #22c55e 25%, #15803d 75%, #052e16 95%, transparent 100%);
}

/* Enlarged Pure-CSS Twin Golden Bells Hanging Below the Holly */
nav.navbar a.navbar-brand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(85% + 12px);
  transform: translateX(-50%);
  width: 82px;
  height: 44px;
  pointer-events: none;
  z-index: 1050;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 8px rgba(250, 204, 21, 0.35));
  background:
    radial-gradient(circle at 23px 35px, #fef08a 0 1.5px, #92400e 2px 5px, transparent 5.5px),
    radial-gradient(circle at 59px 35px, #fef08a 0 1.5px, #92400e 2px 5px, transparent 5.5px),
    radial-gradient(ellipse 17px 7px at 23px 29px, #fef9c3 15%, #facc15 55%, #b45309 92%, transparent 98%),
    radial-gradient(circle 14px at 23px 17px, #fef9c3 10%, #fde047 45%, #eab308 80%, #a16207 96%, transparent 100%),
    radial-gradient(ellipse 17px 7px at 59px 29px, #fef9c3 15%, #facc15 55%, #b45309 92%, transparent 98%),
    radial-gradient(circle 14px at 59px 17px, #fef9c3 10%, #fde047 45%, #eab308 80%, #a16207 96%, transparent 100%);
}

nav.navbar a.navbar-brand:hover::after {
  animation: bell-jingle 0.6s ease-in-out;
}

@keyframes bell-jingle {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(8deg); }
  50% { transform: translateX(-50%) rotate(-7deg); }
  75% { transform: translateX(-50%) rotate(4deg); }
}

nav a.nav-link {
  color: var(--gray-200);
}

nav a.nav-link:hover {
  color: var(--purple-300);
}

nav a.active {
  color: var(--xmas-gold) !important;
}

nav a.active:hover {
  color: var(--gray-200) !important;
}

nav a.nav-link:active,
nav a.nav-link:focus {
  color: var(--purple-300) !important;
}

nav .dropdown-menu {
  background-color: var(--lighter-bg);
  border: 1px solid var(--secondary-bg);
}

nav .dropdown-menu a.dropdown-item {
  color: var(--gray-200);
}

nav a.dropdown-item:hover {
  color: var(--white);
  background-color: var(--purple-400);
}

nav hr.dropdown-divider {
  color: var(--purple-300);
  background-color: var(--purple-400);
}

/* About Cards with Red, Green & Gold Holiday Border */
.about .card {
  background-color: var(--lighter-bg);
  border: solid 1px transparent;
  border-radius: 1em;
  background-clip: padding-box;
  position: relative;
  min-height: 10rem;
  color: var(--white);
}

.about .card i {
  color: var(--xmas-gold);
  aspect-ratio: 1 / 1;
  font-size: 2.5rem;
}

.about .card p {
  font-weight: bold;
}

.about .card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: linear-gradient(to right, #dc2626, #16a34a, #fbbf24);
}

.contact .card {
  background-color: var(--lighter-bg);
  padding: 3em;
}

.contact form label {
  color: var(--white);
}

.contact form .form-field {
  margin-top: 1.5em;
}

.contact form .form-text {
  color: rgb(141, 141, 141);
}

.contact form .form-control,
.sign-up .form-control,
.sign-in .form-control,
.change-password .form-control,
.admin-form {
  background-color: var(--primary-bg);
  border: 1px solid var(--secondary-bg);
  color: var(--white);
}

.sign-up .field,
.sign-in .field,
.change-password .field,
.admin-form .field {
  margin-bottom: 1.3em;
}

.sign-up h2,
.sign-in h2,
.change-password h2,
.admin-form h2 {
  padding-bottom: 0.7em;
}

.sign-up .form-label,
.sign-in .form-label,
.change-password .form-label,
.admin-form .form-label {
  color: var(--gray-300);
}

.sign-up .container,
.sign-in .container,
.change-password .container {
  width: 30%;
  margin: auto;
  background-color: var(--lighter-bg);
  padding: 0 2.5rem 0 2.5rem;
  border-radius: 10px;
}

.admin-form {
  margin: auto;
  background-color: var(--lighter-bg);
  padding: 2.5rem;
  border-radius: 10px;
}

.ui.dropdown .item:hover,
.ui.dropdown .item-active:hover {
  background-color: var(--purple-400) !important;
  color: var(--white) !important;
}

/* Candy-Cane Border Around Bingo Cards */
table.bingo-card {
  width: 100%;
  table-layout: fixed;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;

  border-collapse: separate;
  border-spacing: 0;
  border: 5px solid transparent;
  border-radius: 12px;
  background: 
    linear-gradient(var(--lighter-bg), var(--lighter-bg)) padding-box,
    repeating-linear-gradient(
      -45deg,
      var(--purple-400) 0px,
      var(--purple-400) 10px,
      var(--white) 10px,
      var(--white) 20px
    ) border-box;
  overflow: hidden;
}

table.bingo-card th {
  text-align: center;
  vertical-align: middle;
  padding: 0.8rem;
  background-color: var(--primary-bg);
  color: var(--xmas-gold);
}

/* Bingo Squares with Subtle Ice-Crystal Shimmer on Hover & Click */
table.bingo-card td {
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
  color: var(--gray-200);
  font-family: 'Arial', 'sans-serif';
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

table.bingo-card td::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 90%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(186, 230, 253, 0.35) 50%,
    rgba(255, 255, 255, 0.14) 55%,
    transparent 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

table.bingo-card td:hover {
  background-color: rgba(186, 230, 253, 0.12);
  color: var(--white);
  box-shadow: inset 0 0 12px rgba(186, 230, 253, 0.25);
}

table.bingo-card td:hover::after {
  left: 140%;
}

table.bingo-card td:active {
  background-color: rgba(186, 230, 253, 0.3) !important;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.65);
  color: var(--white) !important;
  transition: background-color 0.05s ease, box-shadow 0.05s ease;
}

table.bingo-card tr {
  height: 64px;
}

/* Called Numbers Table */
table.called-numbers {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

table.called-numbers td {
  text-align: center;
  justify-content: center;
  border-right: 1px solid #44554c;
}

table.called-numbers tr:last-child {
  border-bottom: transparent;
}

table.called-numbers tr td:last-child {
  border-right: none;
}

table.called-numbers tr td:first-child {
  background-color: #131c18;
  color: var(--xmas-gold) !important;
  font-weight: bold;
}

table.called-numbers tr:first-child td:first-child {
  border-top-left-radius: 10px;
}

table.called-numbers tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

table.called-numbers tr:first-child td:last-child {
  border-top-right-radius: 10px;
}

table.called-numbers tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

table.called-numbers td.called {
  background-color: var(--xmas-green);
color: var(--white) !important;
font-weight: bold;
}
.marker-label,
.caller-voice-label {
vertical-align: middle;
}
/* Leaderboards & Tables */
.leaderboard {
margin-top: 15px;
}
.events-list table td,
.leaderboard td,
.game-history td,
.event-games td {
padding: 0.8em;
}
.events-list table th,
.leaderboard th,
.game-history th,
.event-games th {
padding: 0.8em;
color: var(--white);
background-color: var(--purple-400);
}
.events-list table thead tr th:first-child,
.leaderboard thead tr th:first-child,
.game-history thead tr th:first-child,
.event-games thead tr th:first-child {
border-top-left-radius: 10px;
}
.events-list table thead tr th:last-child,
.leaderboard thead tr th:last-child,
.game-history thead tr th:last-child,
.event-games thead tr th:last-child {
border-top-right-radius: 10px;
}
.events-list table tbody tr:last-child td,
.leaderboard tbody tr:last-child,
.game-history tbody tr:last-child,
.event-games tbody tr:last-child {
border-bottom: none;
}
.events-list table tbody tr:last-child td:first-child {
border-bottom-left-radius: 10px;
}
.events-list table tbody tr:last-child td:last-child {
border-bottom-right-radius: 10px;
}
.leaderboard td,
.leaderboard th,
.game-history th,
.event-games th {
border: none !important;
}
.leaderboard tbody tr:nth-child(odd),
.game-history tbody tr:nth-child(odd),
.event-games tbody tr:nth-child(odd) {
background-color: #151e1a !important;
}
.leaderboard tbody tr:nth-child(even),
.game-history tbody tr:nth-child(even),
.event-games tbody tr:nth-child(even) {
background-color: #1f2b25 !important;
}
.leaderboard td a {
color: #ffffff;
}
.leaderboard td a:hover {
color: var(--xmas-gold);
}
.stats label,
.game-history label,
.event-games label {
color: var(--xmas-gold) !important;
margin-bottom: 7px;
}
.stats .paginate_button,
.game-history .paginate_button,
.event-games .paginate_button {
background-color: var(--purple-400) !important;
color: #fff !important;
margin-top: 7px;
}
.stats .dataTables_info,
.game-history .dataTables_info,
.event-games .dataTables_info {
margin-top: 7px;
color: #fff !important;
}
.contact form textarea {
height: 150px;
}
/* Piled Snow & Twinkling Christmas Lights on Card Headers */
.pattern-info .card-header,
.sponsor-details .card-header,
.snow-cap {
position: relative;
border-top: 3px solid #f0f9ff;
box-shadow: inset 0 4px 8px -2px rgba(186, 230, 253, 0.3);
}
.pattern-info .card-header::before,
.sponsor-details .card-header::before,
.snow-cap::before {
content: '';
position: absolute;
top: -7px;
left: 4px;
right: 4px;
height: 12px;
pointer-events: none;
z-index: 2;
background:
radial-gradient(circle at 12px 10px, #ffffff 8px, transparent 8.5px),
radial-gradient(circle at 28px 11px, #f0f9ff 10px, transparent 10.5px),
radial-gradient(circle at 46px 10px, #ffffff 7px, transparent 7.5px),
radial-gradient(circle at 62px 11px, #e0f2fe 9px, transparent 9.5px);
background-size: 72px 14px;
background-repeat: repeat-x;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
.pattern-info .card-header::after,
.sponsor-details .card-header::after,
.snow-cap::after {
content: '';
position: absolute;
top: -6px;
left: 8px;
right: 8px;
height: 18px;
pointer-events: none;
z-index: 3;
background:
radial-gradient(circle at 14px 9px, #ffffff 1.5px, #38bdf8 3.5px, rgba(56, 189, 248, 0.45) 6px, transparent 9px),
radial-gradient(circle at 38px 11px, #ffffff 1.5px, #fbbf24 3.5px, rgba(251, 191, 36, 0.45) 6px, transparent 9px),
radial-gradient(circle at 62px 8px, #ffffff 1.5px, #f43f5e 3.5px, rgba(244, 63, 94, 0.45) 6px, transparent 9px),
radial-gradient(circle at 86px 11px, #ffffff 1.5px, #34d399 3.5px, rgba(52, 211, 153, 0.45) 6px, transparent 9px);
background-size: 96px 18px;
background-repeat: repeat-x;
animation: xmas-twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes xmas-twinkle {
0% {
opacity: 0.78;
filter: brightness(0.95);
}
100% {
opacity: 1;
filter: brightness(1.25);
}
}
/* Pattern Cards */
.pattern-info {
border: none;
background-color: var(--lighter-bg);
color: #ffffff;
}
.pattern-info .card-header {
background-color: var(--secondary-bg);
color: var(--xmas-gold);
border-bottom: 1px solid #35473e;
padding: 1rem;
}
.pattern-info p.pattern-name {
color: var(--purple-300);
font-weight: bold;
}
.pattern-info p {
text-align: center;
}
.pattern-info ul {
list-style-type: none;
padding-left: 0;
}
table.pattern-card,
table.admin-pattern-card {
text-align: center;
width: 80%;
table-layout: fixed;
margin: auto;
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
table.pattern-card th,
table.admin-pattern-card th {
background-color: var(--primary-bg);
color: var(--xmas-gold);
vertical-align: middle;
}
table.pattern-card td,
table.admin-pattern-card td {
vertical-align: middle;
}
table.pattern-card tr,
table.admin-pattern-card tr {
height: 48px;
}
table.pattern-card thead tr,
table.admin-pattern-card thead tr {
height: 32px;
}
table.pattern-card td.selected,
table.admin-pattern-card td.selected {
background-color: var(--xmas-green);
color: var(--white);
}
.bingo-game {
padding-bottom: 2rem;
}
.sponsor-details .card {
background-color: var(--lighter-bg);
color: var(--gray-300);
}
.sponsor-details .card-body {
padding: 1rem;
}
.sponsor-details .card-header {
color: var(--xmas-gold);
background-color: var(--secondary-bg);
padding: 1rem;
}
table.shop-card th {
background-color: var(--purple-400) !important;
color: var(--white) !important;
}
.profile-user-details {
background-color: var(--lighter-bg);
}
.nav-tabs button.nav-link {
background-color: #ffffff;
color: var(--primary-bg);
}
.nav-tabs button.nav-link.active {
background-color: var(--purple-400);
color: var(--white);
border-color: var(--purple-400);
}
.tab-content {
background-color: var(--lighter-bg);
color: #ffffff;
padding: 2rem;
}
.footer {
min-height: 4rem;
background-color: var(--lighter-bg);
border-top: 1px solid var(--secondary-bg);
padding-bottom: 0.5rem;
}
.footer p {
padding: 2rem 0 0;
}
.footer p a {
text-decoration: none;
}
.footer p a:hover {
color: var(--xmas-gold);
text-decoration: underline;
}
/* Make footer relative so the tree & gingerbread man sit along its top border */
.footer {
  position: relative;
  overflow: visible !important;
  min-height: 4rem;
  background-color: var(--lighter-bg);
  border-top: 2px solid var(--secondary-bg);
  padding-bottom: 0.5rem;
}

/* Pure-CSS Decorated Christmas Tree (Bottom-Left of Footer) */
.footer::before {
  content: "";
  position: absolute;
  left: 3%;
  bottom: 100%;
  width: 76px;
  height: 98px;
  pointer-events: none;
  z-index: 20;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
  background:
    /* Glowing Gold Star on Top */
    radial-gradient(circle at 38px 11px, #fef9c3 0 2.5px, #fbbf24 3px 6.5px, rgba(251, 191, 36, 0.35) 7px 11px, transparent 11.5px),
    /* Colorful Tree Ornaments */
    radial-gradient(circle at 33px 31px, #fef2f2 0 1px, #ef4444 1.5px 3.5px, transparent 4px),
    radial-gradient(circle at 44px 37px, #eff6ff 0 1px, #38bdf8 1.5px 3.5px, transparent 4px),
    radial-gradient(circle at 28px 51px, #fefce8 0 1px, #facc15 1.5px 4px, transparent 4.5px),
    radial-gradient(circle at 47px 54px, #fef2f2 0 1px, #ef4444 1.5px 4px, transparent 4.5px),
    radial-gradient(circle at 23px 72px, #eff6ff 0 1px, #38bdf8 1.5px 4px, transparent 4.5px),
    radial-gradient(circle at 39px 69px, #fef2f2 0 1px, #f43f5e 1.5px 4px, transparent 4.5px),
    radial-gradient(circle at 53px 73px, #fefce8 0 1px, #fbbf24 1.5px 4px, transparent 4.5px),
    /* Three Layered Pine Tiers */
    conic-gradient(from 152deg at 38px 14px, #22c55e 0deg 28deg, #15803d 28deg 56deg, transparent 56deg) 0 0 / 100% 42px no-repeat,
    conic-gradient(from 148deg at 38px 32px, #22c55e 0deg 32deg, #166534 32deg 64deg, transparent 64deg) 0 0 / 100% 62px no-repeat,
    conic-gradient(from 145deg at 38px 50px, #16a34a 0deg 35deg, #14532d 35deg 70deg, transparent 70deg) 0 0 / 100% 82px no-repeat,
    /* Wooden Trunk */
    linear-gradient(#92400e, #78350f) 31px 82px / 14px 16px no-repeat;
}

/* Pure-CSS Gingerbread Man (Bottom-Right of Footer) */
.footer::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 100%;
  width: 66px;
  height: 78px;
  pointer-events: none;
  z-index: 20;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
  background:
    /* White Icing Eyes */
    radial-gradient(circle at 28px 17px, #ffffff 0 2.2px, transparent 2.6px),
    radial-gradient(circle at 38px 17px, #ffffff 0 2.2px, transparent 2.6px),
    /* Red Gumdrop Smile & Vest Buttons */
    radial-gradient(circle at 33px 23px, #ef4444 0 2px, transparent 2.4px),
    radial-gradient(circle at 33px 37px, #22c55e 0 3px, transparent 3.4px),
    radial-gradient(circle at 33px 47px, #ef4444 0 3px, transparent 3.4px),
    /* White Frosting Cuffs on Wrists & Ankles */
    radial-gradient(ellipse 3px 5px at 14px 36px, #ffffff 80%, transparent 90%),
    radial-gradient(ellipse 3px 5px at 52px 36px, #ffffff 80%, transparent 90%),
    radial-gradient(ellipse 5px 3px at 24px 68px, #ffffff 80%, transparent 90%),
    radial-gradient(ellipse 5px 3px at 42px 68px, #ffffff 80%, transparent 90%),
    /* Gingerbread Head */
    radial-gradient(circle 13px at 33px 19px, #d97706 70%, #b45309 96%, transparent 100%),
    /* Outstretched Arms */
    radial-gradient(ellipse 24px 6.5px at 33px 36px, #d97706 75%, #b45309 96%, transparent 100%),
    /* Torso */
    radial-gradient(ellipse 11px 16px at 33px 43px, #d97706 75%, #b45309 96%, transparent 100%),
    /* Left & Right Legs */
    radial-gradient(ellipse 6.5px 15px at 25px 59px, #d97706 75%, #b45309 96%, transparent 100%),
    radial-gradient(ellipse 6.5px 15px at 41px 59px, #d97706 75%, #b45309 96%, transparent 100%);
  transition: transform 0.25s ease;
}

/* Fun little wave/wiggle when hovering over the gingerbread man */
.footer:hover::after {
  animation: ginger-wiggle 0.7s ease-in-out;
}

@keyframes ginger-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}
/* Festive Buttons */
.btn-primary {
background-color: var(--purple-400);
color: var(--white);
border: none;
}
.btn-secondary {
background-color: var(--xmas-green);
color: var(--white);
font-weight: bold;
border: none;
}
.btn-outline-secondary {
border-color: var(--xmas-gold);
color: var(--xmas-gold);
}
.btn-primary:hover {
background-color: #b91c1c;
color: var(--white);
}
.btn-secondary:hover {
background-color: #15803d;
color: var(--white);
}
.btn-outline-secondary:hover {
background-color: var(--xmas-gold);
color: var(--primary-bg);
}
.btn-primary:active {
background-color: #991b1b !important;
color: var(--white) !important;
transform: scale(95%);
}
.btn-secondary:active {
background-color: #166534 !important;
color: var(--white) !important;
transform: scale(95%);
}
.btn-outline-secondary:active {
background-color: var(--xmas-gold) !important;
color: var(--primary-bg) !important;
transform: scale(95%);
}
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 1.1rem; }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-500 { color: var(--gray-500); }
.text-dark { color: var(--primary-bg) !important; }
.text-gray-700 { color: var(--gray-700); }
.text-purple { color: var(--purple-400); }
.text-purple-300 { color: var(--xmas-gold); }
.hidden { display: none; }
/* Toasts */
.ubtoast-container {
position: fixed;
top: 6rem;
right: 1.5rem;
display: grid;
justify-items: end;
gap: 0.5rem;
}
.ubtoast {
font-size: 1.3rem;
line-height: 1;
padding: 0.5em 1.5em;
animation: toastIt 3000ms cubic-bezier(0.785, 0.135, 0.15, 0.86) forwards;
border-radius: 10px;
}
.ubtoast.ubsuccess { border-left: 20px solid var(--xmas-green); }
.ubtoast.uberror { border-left: 20px solid #E54D2B; }
.ubtoast.ubinfo { border-left: 20px solid #2277E5; }
.ubtoast.ubachievement { border-left: 20px solid var(--xmas-gold); }
@keyframes toastIt {
0%, 100% {
transform: translateY(-150%);
opacity: 0;
}
10%, 90% {
transform: translateY(0);
opacity: 1;
}
}
/* Marker / Theme Colors */
.bgcolor-gold { background-color: #FFD700 !important; }
.color-gold { color: #FFD700 !important; }
.bgcolor-default { background-color: var(--purple-400) !important; color: var(--white) !important; }
.contrasting-color { color: color-contrast(#c6f562 vs #fff, #000) !important; }
.bgcolor-custom { background-size: 100% 100% !important; }
.bgcolor-blue { background-color: #80bbff !important; color: var(--primary-bg) !important; }
.color-blue { color: #80bbff !important; }
.bgcolor-brown { background-color: #d19f64 !important; color: var(--primary-bg) !important; }
.color-brown { color: #d19f64 !important; }
.bgcolor-green { background-color: #5ee75d !important; color: var(--primary-bg) !important; }
.color-green { color: #5ee75d !important; }
.bgcolor-grey { background-color: #bcbcbc !important; color: var(--primary-bg) !important; }
.color-grey { color: #bcbcbc !important; }
.bgcolor-ltblue { background-color: #42e8ff !important; color: var(--primary-bg) !important; }
.color-ltblue { color: #42e8ff !important; }
.bgcolor-ltgreen { background-color: #c6f562 !important; color: var(--primary-bg) !important; }
.color-ltgreen { color: #c6f562 !important; }
.bgcolor-mauve { background-color: #cd7d89 !important; color: var(--primary-bg) !important; }
.color-mauve { color: #cd7d89 !important; }
.bgcolor-olive { background-color: #a2b150 !important; color: var(--primary-bg) !important; }
.color-olive { color: #a2b150 !important; }
.bgcolor-orange { background-color: #ffb82d !important; color: var(--primary-bg) !important; }
.color-orange { color: #ffb82d !important; }
.bgcolor-peach { background-color: #f48d60 !important; color: var(--primary-bg) !important; }
.color-peach { color: #f48d60 !important; }
.bgcolor-pink { background-color: #f490e6 !important; color: var(--primary-bg) !important; }
.color-pink { color: #f490e6 !important; }
.bgcolor-purple { background-color: #bd9fe2 !important; color: var(--primary-bg) !important; }
.color-purple { color: #bd9fe2 !important; }
.bgcolor-red { background-color: #ff392e !important; color: var(--primary-bg) !important; }
.color-red { color: #ff392e !important; }
.bgcolor-tan { background-color: #c4b97c !important; color: var(--primary-bg) !important; }
.color-tan { color: #c4b97c !important; }
.bgcolor-teal { background-color: #6ec6ab !important; color: var(--primary-bg) !important; }
.color-teal { color: #6ec6ab !important; }
.bgcolor-yellow { background-color: #f0ea3a !important; color: var(--primary-bg) !important; }
.color-yellow { color: #f0ea3a !important; }
.bgcolor-secondary { background-color: var(--secondary-bg); }


/* Santa Hat on the Center FREE Space (Row 3, Column 3) */
table.bingo-card tbody tr:nth-child(3) td:nth-child(3) {
  overflow: visible !important;
  font-weight: bold;
  color: var(--xmas-gold) !important;
}

table.bingo-card tbody tr:nth-child(3) td:nth-child(3)::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -8px;
  width: 34px;
  height: 26px;
  pointer-events: none;
  z-index: 15;
  transform: rotate(18deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
  background:
    /* Fluffy White Pom-Pom */
    radial-gradient(circle at 29px 11px, #ffffff 0 3.5px, #e2e8f0 4px, transparent 4.5px),
    /* White Fur Brim */
    radial-gradient(ellipse 13px 3.5px at 15px 21px, #ffffff 75%, #cbd5e1 95%, transparent 100%),
    /* Red Hat Cone */
    conic-gradient(from 155deg at 17px 4px, #ef4444 0deg 25deg, #dc2626 25deg 52deg, transparent 52deg) 0 0 / 32px 21px no-repeat;
}


.ubtoast.ubachievement {
  position: relative;
  overflow: visible !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-left: 20px solid var(--xmas-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(251, 191, 36, 0.25);
}

/* Santa's Sleigh & Reindeer Silhouette Gliding Above Achievement Toasts */
.ubtoast.ubachievement::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 100%;
  width: 130px;
  height: 34px;
  pointer-events: none;
  z-index: 25;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65));
  background:
    /* Glowing Full Moon Behind the Lead Reindeer */
    radial-gradient(circle at 108px 14px, #fef9c3 0 9px, rgba(251, 191, 36, 0.3) 10px 14px, transparent 15px),
    /* Lead Reindeer (Antlers, Head, Body, Legs) */
    radial-gradient(circle at 113px 11px, #0f172a 0 2.5px, transparent 3px),
    radial-gradient(ellipse 7px 3.5px at 106px 17px, #0f172a 85%, transparent 95%),
    linear-gradient(125deg, transparent 40%, #0f172a 42% 58%, transparent 60%) 109px 18px / 7px 8px no-repeat,
    linear-gradient(55deg, transparent 40%, #0f172a 42% 58%, transparent 60%) 98px 18px / 7px 8px no-repeat,
    /* Second Reindeer */
    radial-gradient(circle at 87px 13px, #0f172a 0 2.5px, transparent 3px),
    radial-gradient(ellipse 7px 3.5px at 80px 19px, #0f172a 85%, transparent 95%),
    linear-gradient(125deg, transparent 40%, #0f172a 42% 58%, transparent 60%) 83px 20px / 7px 8px no-repeat,
    linear-gradient(55deg, transparent 40%, #0f172a 42% 58%, transparent 60%) 72px 20px / 7px 8px no-repeat,
    /* Golden Reins Connecting Sleigh & Reindeer */
    linear-gradient(-6deg, transparent 46%, #fbbf24 48% 52%, transparent 54%) 46px 14px / 62px 8px no-repeat,
    /* Santa's Hat & Silhouette in Sleigh */
    radial-gradient(circle at 31px 13px, #dc2626 0 3.5px, transparent 4px),
    radial-gradient(ellipse 5px 6px at 31px 19px, #0f172a 85%, transparent 95%),
    /* Sleigh Body & Curved Gold Runner */
    radial-gradient(ellipse 15px 6px at 31px 23px, #7f1d1d 85%, transparent 95%),
    linear-gradient(#fbbf24, #f59e0b) 14px 29px / 34px 2.5px no-repeat;
}


/* Peppermint Swirl Dauber for Default Marked Squares */
table.bingo-card td.bgcolor-default {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0 38%, rgba(255, 255, 255, 0.75) 54%, transparent 56%),
    repeating-conic-gradient(
      from 0deg,
      #dc2626 0deg 30deg,
      #ffffff 30deg 60deg
    ) !important;
  color: #7f1d1d !important;
  font-weight: 800;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -3px 5px rgba(153, 27, 27, 0.5),
    0 0 0 3px #15803d; /* Subtle holly-green wreath outer ring */
}

/* Glossy Ornament Shine & Pine Wreath Ring on All Custom Marker Colors */
table.bingo-card td[class*="bgcolor-"]:not(.bgcolor-highlight):not(.bgcolor-secondary):not(.bgcolor-default) {
  border-radius: 50%;
  font-weight: bold;
  background-image:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 28%, transparent 55%),
    radial-gradient(circle at center, transparent 58%, rgba(0, 0, 0, 0.25) 100%) !important;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    0 0 0 2.5px #16a34a,
    0 2px 5px rgba(0, 0, 0, 0.45);
}


table.bingo-card td {
  position: relative;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
  color: var(--gray-200);
  font-family: 'Arial', 'sans-serif';
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

table.bingo-card td:hover {
  background-color: rgba(186, 230, 253, 0.12);
  color: var(--white);
  box-shadow: inset 0 0 12px rgba(186, 230, 253, 0.25);
}

table.bingo-card td:active {
  background-color: rgba(186, 230, 253, 0.3) !important;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.65);
  color: var(--white) !important;
  transition: background-color 0.05s ease, box-shadow 0.05s ease;
}

table.bingo-card tbody tr:nth-child(3) td:nth-child(3)::after {
  display: none !important;
}