/* Reference palette shared by every route and every viewport. */
:root {
  color-scheme: dark;
  --theme-black: #000;
  --theme-bg: #180305;
  --theme-burgundy: #4a080d;
  --theme-red: #ff3038;
  --theme-accent: #ff0000;
  --theme-text: #fff7f7;
  --theme-muted: #d8bfc0;
}
body {
  color: var(--theme-text);
  background-color: var(--theme-bg);
  background-image: url('./images/background.jpg');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body > header { background: var(--theme-black); border-bottom-color: var(--theme-accent); box-shadow: 0 1px 8px #ff000080; }
body > header .menu { color: var(--theme-accent); border-color: var(--theme-accent); background: #050505; box-shadow: 0 0 8px #ff000055; }
.ticker { background: #200b32; border-bottom-color: var(--theme-accent); box-shadow: 0 1px 5px #ff303880; }
.footer { background: linear-gradient(135deg, #180305f5, #30070bf5); border-color: #b5121b66; color: var(--theme-text); }
.footer-links h3, .licenses h3 { color: var(--theme-accent); }
.footer-links, .copyright { border-color: #b5121b44; }
.copyright { color: var(--theme-muted); }
.bottom {
  background: radial-gradient(ellipse at 50% 0%, #ff0000aa, transparent 75%),
    linear-gradient(110deg, #180305, #3a070b 50%, #180305);
  border-top: 2px solid var(--theme-accent);
  box-shadow: 0 -2px 9px #ff000070;
}
.bottom button { color: var(--theme-red); }
.bottom .active { border-color: var(--theme-accent); box-shadow: inset 0 0 15px #ff000040; }
.bottom .nav-art { filter: none; }
.badge { background: var(--theme-red); color: #fff; }
.drawer.site-panel { background: linear-gradient(160deg, #100204, #4a080d 65%, #240608); border-right: 2px solid var(--theme-accent); }
.site-panel .panel-close, .panel-link svg { color: var(--theme-accent); fill: var(--theme-accent); }
.site-panel .panel-link { background: #b5121b26; color: var(--theme-text); }
.site-panel .panel-link.hot { background: var(--theme-accent); color: #000; box-shadow: 0 0 16px #ff000060; }
.panel-link.hot svg { fill: #000; filter: none; }
.panel-card { background: #b5121b20; border-color: #b5121b60; }
.site-panel .partner-row { background: #b5121b26; }
.site-panel .social-link { background: #4a080d; border: 1px solid var(--theme-red); }
.site-panel .social-link.facebook { background: #240608; }
.social-link b, .facebook b { color: #4a080d; }
.panel-footer { border-color: #b5121b60; color: var(--theme-muted); }
.panel-footer a { color: var(--theme-accent); }
.categories button.active, .login-submit, .login-page .login-submit, .modal .submit,
.review-form button, .blog-details summary, .explore {
  background: linear-gradient(#ff0000, #b90000);
  color: #000;
  border-color: var(--theme-accent);
  text-shadow: none;
}
.gold, .register, .login-page .register, .account button {
  background: linear-gradient(#4a080d, #180305);
  color: #fff;
  border-color: var(--theme-red);
  text-shadow: 0 0 5px #ff3038;
  box-shadow: inset 0 0 8px #b5121b40;
}
.home-blog, .player-reviews, .blog-article, .review-card, .reviews-empty, .rating-summary {
  background: #200609; color: var(--theme-text); border-color: #b5121b80;
}
.blog-intro { background: linear-gradient(120deg, #180305, #4a080d); color: var(--theme-text); }
.blog-intro p, .review-card p, .review-form label { color: var(--theme-text); }
.blog-article h2, .blog-article h3, .player-reviews h2, .review-form h3,
.review-card header, .review-stars, .rating-score strong { color: var(--theme-accent); }
.blog-kicker, .blog-intro .blog-kicker { color: var(--theme-red); }
.review-note, .review-card time, .rating-count, .rating-row, .rating-score p { color: var(--theme-muted); }
.reviews-heading > span, .review-toolbar select { background: #30070b; color: var(--theme-text); border-color: #b5121b80; }
.review-avatar, .rating-bar span { background: var(--theme-accent); color: #000; }
.review-form input, .review-form select, .review-form textarea,
.login-page input, .search input, .modal input, .modal select {
  background: #fff7f7; color: #2f1316; border-color: #b5121b80;
}
input::placeholder, textarea::placeholder { color: #77585b; }
.chat-page { color: var(--theme-text); }
body::before { background: #18030540; }
.chat-message, .chat-status { background: #240608cc; color: var(--theme-text); }
.chat-sender { color: var(--theme-accent); }
.welcome { background: linear-gradient(115deg, #240608, #4a080d 55%, #a01620); border-color: var(--theme-red); color: var(--theme-accent); box-shadow: 0 0 12px #b5121b80; }
.welcome-copy { background: #180305a6; color: var(--theme-text); border-color: var(--theme-accent); }
.composer { background: #180305e8; border-top: 1px solid var(--theme-red); }
.composer input::placeholder { color: var(--theme-muted); }
.notice { background: #fff7f7; color: #2f1316; }
.notice .agree { background: var(--theme-accent); color: #000; }
.notice button:not(.agree) { background: #ebe2e2; color: #2f1316; }
.promo-section { background: linear-gradient(110deg, #4a080d, #180305); border-color: var(--theme-accent); }
.promo-section h2 { color: var(--theme-accent); text-shadow: 0 2px 3px #180305; }
.promo-section.compact h2 { color: var(--theme-text); }
.promo-cards { background: linear-gradient(115deg, #30070b, #180305); }
.promo-banner { background: radial-gradient(ellipse at 90% 50%, #ff303860, transparent 45%), linear-gradient(130deg, #180305, #4a080d); }
.claim-word, .banner-brand, .promo-banner strong { color: var(--theme-accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline-color: var(--theme-accent); }
/* Match component-specific rules without changing responsive geometry. */
.panel h2 { background: #000; color: var(--theme-accent); border-bottom: 1px solid var(--theme-red); }
.transactions th { background: #000; color: var(--theme-accent); }
.transactions td { color: var(--theme-accent); border-color: #b5121b; }
.play { background: #000; color: #fff; border: 2px solid var(--theme-accent); }
.play:hover { background: #240608; border-color: var(--theme-red); }
.find { background: linear-gradient(#3a070b, #050505); border-color: var(--theme-accent); }
.find button { color: #fff; background: #050505; border-color: var(--theme-accent); }
.find button.active { background: var(--theme-accent); color: #000; }
.lobby-auth img { filter: none; }
.player-reviews .review-list .review-card {
  background: linear-gradient(145deg, #30070b, #180305);
  border-color: #b5121b;
  border-top-color: var(--theme-accent);
}
.player-reviews .review-list .review-card .review-avatar {
  background: linear-gradient(145deg, #4a080d, #b5121b);
  border-color: var(--theme-accent);
  color: #fff;
}
.player-reviews .review-form { background: #240608; color: var(--theme-text); border-color: #b5121b80; }
.player-reviews .review-toolbar h3, .player-reviews .review-toolbar > span,
.player-reviews .rating-score > span:not(.review-stars), .player-reviews .rating-score small {
  color: var(--theme-muted);
}
.player-reviews .rating-track { background: #4a080d; border-color: #b5121b; }
.player-reviews .rating-track span { background: var(--theme-accent); }
.player-reviews .review-stars, .player-reviews .rating-score .review-stars { text-shadow: 0 0 5px #ff000040; }
.player-reviews .review-note { background: #180305; border-left-color: var(--theme-red); }
/* All page footers share the original promo background artwork. */
.footer, .bottom { background: #210305 url('./images/footer_bg.jpg') center / cover no-repeat; }

/* Original background artwork on every route and screen size. */
body { background-image: url('./images/background.jpg'); background-position: center top; background-size: cover; background-attachment: fixed; background-repeat: no-repeat; }
body::before { background: transparent; }

/* Content footer palette from the supplied reference. */
.footer {
  background: rgba(24, 3, 5, .94);
  border-color: rgba(255, 48, 56, .45);
  color: #f5eaea;
}
.footer .footer-links h3, .footer .licenses h3 { color: #ff6268; }
.footer .footer-links, .footer .copyright { border-color: rgba(181, 18, 27, .25); }
.footer .footer-links a, .footer .intro p, .footer .intro small { color: #f5eaea; }
.footer .license-grid, .footer .copyright { color: #c7a9ab; }
/* Reference placement for verification, licensing, and certification artwork. */
.footer .license-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.footer .license-column { min-width: 0; }
.footer .license-logos { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 12px; }
.footer .license-logos img { display: block; flex: 0 0 50px; width: 50px; height: 50px; margin: 0; object-fit: contain; object-position: left center; filter: none; }
.footer .license-logos .verified-partner { flex-basis: 85px; width: 85px; height: 50px; }
.footer .certification-logos { max-width: 300px; gap: 12px; }
.footer .cert-row-break { flex-basis: 100%; height: 0; }
@media(max-width:760px) {
  .footer .license-grid { gap: 12px; }
  .footer .license-logos { gap: 8px; }
  .footer .license-logos img { flex-basis: 42px; width: 42px; height: 42px; }
  .footer .license-logos .verified-partner { flex-basis: 75px; width: 75px; height: 43px; max-width: 100%; }
}

/* Original homepage artwork and buttons placed on their matching panels. */
.sidebar .referral-card, .sidebar .draw-card { position: relative; margin: 18px 0; }
.sidebar .referral-card > img, .sidebar .draw-card > img { display: block; height: auto; aspect-ratio: auto; object-fit: contain; }
.sidebar .referral-card .gold-actions { position: absolute; left: 4%; right: 4%; bottom: 5%; margin: 0; gap: 5px; }
.sidebar .referral-card .gold-actions button { min-width: 0; }
.sidebar .draw-card .lucky-number-button { position: absolute; left: 5%; bottom: 6%; width: 46%; padding: 0; border: 0; background: transparent; }
.sidebar .lucky-number-button img { display: block; width: 100%; height: auto; }
.sidebar .art.social, .sidebar .promos .art, .sidebar .art.tips { height: auto; aspect-ratio: auto; object-fit: contain; }
.sidebar .recommended img { object-fit: contain; height: auto; aspect-ratio: 1; }
.sidebar .art, .sidebar .image-action img, .sidebar .lucky-number-button img { filter: none; }

/* SawSpin reference: black navigation, burgundy surfaces and red accents.
   Shared by all routes; responsive sizing stays in mobile.css. */
:root {
  --theme-black: #000000;
  --theme-bg: #180305;
  --theme-burgundy: #240608;
  --theme-red: #ff3038;
  --theme-accent: #ff0000;
  --theme-text: #ffffff;
  --theme-muted: #d8bfc0;
}
body, body.promo-reference {
  background-color: var(--theme-bg);
  background-image: url('./images/background.jpg');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body > header { background: #000; border-bottom-color: #ff0000; box-shadow: 0 1px 8px #ff000080; }
.ticker { background: linear-gradient(#ff0000, #980000); color: #fff; border-color: #ff0000; }
.footer { background: #100204 url('./images/footer_bg.jpg') center / cover no-repeat; border-color: #b5121b66; color: #fff; }
.footer .footer-links h3, .footer .licenses h3 { color: #ff6268; }
.footer .footer-links, .footer .copyright { border-color: #b5121b66; }
.footer .footer-links a, .footer .intro p, .footer .intro small { color: #fff; }
.footer .license-grid, .footer .copyright { color: #d8bfc0; }
.bottom, .promo-reference .bottom { background: #000 url('./images/footer_bg.jpg') center / cover no-repeat; border-top-color: #b5121b; box-shadow: 0 -2px 9px #ff000040; }
.bottom button { color: #ff6268; }
.bottom .icon { filter: drop-shadow(0 0 3px #ff0000); }
.drawer.site-panel { background: linear-gradient(160deg, #100204, #4a080d 65%, #240608); border-right: 1px solid #ff0000; }
.panel-head { background: #000; }
.site-panel .panel-link.hot, .site-panel .social-link, .notice .agree,
.categories button.active, .login-submit, .login-page .login-submit,
.modal .submit, .review-form button, .blog-details summary, .explore,
.find button.active { background: linear-gradient(#ff3038, #a00000); color: #fff; border-color: #ff0000; }
.site-panel .panel-link.hot svg { fill: #fff; }
.panel-footer a { color: #ff6268; }
.play, .gold, .register, .login-page .register, .account button {
  background: linear-gradient(#e52b32, #a00000 50%, #e00000);
  color: #fff; border-color: #ff3038; box-shadow: inset 0 0 6px #ff626880;
}
.play:hover, .gold:hover, .register:hover { background: linear-gradient(#ff454d, #b5121b); }
.transactions th { background: #b00000; color: #fff; }
.transactions td { color: #ff454d; border-color: #b5121b; }
.panel h2 { color: #fff; border-bottom-color: #ff0000; }
.find { background: linear-gradient(#30070b, #050505); }
.welcome, .welcome-copy { color: #fff; }
.composer svg { fill: #ff6268; }
.composer svg[stroke] { fill: none; stroke: #ff6268; }
.promo-page .promo-section {
  background: linear-gradient(110deg, #4a080d, #180305);
  border-color: #b5121b; box-shadow: 0 0 8px #ff000040;
}
/* Live referral actions fit the generated banner's lower button area. */
.sidebar .referral-card .gold-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  left: 5%; right: 5%; bottom: 5%; gap: 6px;
}
.sidebar .referral-card .gold-actions .image-action {
  width: 100%; min-width: 0; padding: 0; border: 0;
  background: transparent; box-shadow: none;
}
.sidebar .referral-card .gold-actions .image-action img {
  display: block; width: 100%; height: auto; object-fit: contain;
}