/*
 | InfoCasino theme: glue between the original stylesheet (style.css, copied from the old site) and
 | the markup it shares with the regii theme (layout, home, casino cards) plus the default theme's
 | components (pages, forms, giveaway, tickets, gifts, account).
 */

/* The old sheet styles .dialog / .modal with inline display toggles; the shared JS uses [hidden] and .show. */
.dialog[hidden], .dialog-content[hidden], .modal:not(.show) { display: none !important; }
.modal.show { display: flex !important; }
body.modal-open { overflow: hidden; }

/* Klavika everywhere (Typekit, imported by style.css). Shared components take the InfoCasino palette:
   gold accents, the red of the Giveaway buttons, the dark navy of the header. */
:root { --font: "klavika-web", system-ui, sans-serif; --accent: #b8862b; --highlight: #e73616;
    --header-from: #101316; --header-to: #202a3c; --gold: #efc92c; --navy: #191f2b; --navy-light: #202a3c; }
body { font-family: var(--font); }

/* The old site had no crowns next to the title (the regii home view renders them). */
.title_wrapper .crown { display: none; }
.top_content h1 { color: #c5cdda; }

/* Header buttons: Giveaway (and ticket / gift) on the left, Newsletter and account on the right. */
.header_actions { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; }
.header_actions .Header_toggle__n_GL9 { position: relative; top: auto; right: auto; left: auto; transform: none; min-width: 36px; justify-content: center; font-family: inherit; }
.header_actions_left { right: auto; left: 25px; }
.header_actions .Header_toggle__n_GL9 svg { height: 16px; }
.header_actions .Header_toggle__n_GL9 span { margin-right: 8px; }
.header_keywords_button { background: var(--navy-light) !important; border: 1px solid rgba(239, 201, 44, .45); }
.header_auth_button { background: var(--navy-light) !important; border: 1px solid rgba(255, 255, 255, .18); }
.header_menu { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 6px 12px 10px; position: relative; z-index: 2; }
.header_menu a { color: #c5cdda; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.header_menu a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.logo-text { color: #fff; font-weight: 800; font-size: 1.4rem; }
@media only screen and (max-width: 1024px) {
    .header_auth_button span, .header_keywords_button span { display: none; }
}
@media only screen and (max-width: 768px) {
    .header_actions { top: 50px; right: 15px; transform: none; gap: 6px; }
    .header_actions_left { right: auto; left: 15px; }
}

/* Pages other than home (account, giveaway, tickets, gifts, CMS pages) sit on the default theme's cards. */
.page-section, .account-section, .giveaway-section, .tickets-section { padding: 24px 0 40px; }
.page-card { background: #fff; border-radius: 18px; }
.page-title, .section-title { font-family: inherit; }

/* Buttons of the default theme in the InfoCasino palette. */
.btn-accent { background: var(--goldGradient); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); box-shadow: 0 6px 16px rgba(184, 134, 43, .35); }
.btn-cta { background: linear-gradient(180deg, #2f9e2f, #1f7a1f); box-shadow: 0 6px 16px rgba(31, 122, 31, .35); }
.btn-gold { background: var(--goldGradient); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }

/* Old-site modal skin for the shared newsletter / auth popups. */
.modal-content { max-width: 640px; margin: auto; }
.modal-sm { max-width: 460px; }
/* X on the card's corner (the old sheet puts it inside, over the auth tabs). */
.modal-close { top: -14px; right: -14px; width: 38px; height: 38px; background: #fff; color: var(--black); border: 1px solid #0001; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); z-index: 1; }
@media (max-width: 600px) {
    .modal-close { top: -12px; right: -6px; width: 36px; height: 36px; }
}

/* Giveaway and ticket pages: the hero slides under the header like the home page's first section
   (same near-black background and pattern), gold frames. */
.gw-hero, .gifts-section {
    margin-top: -300px;
    padding: 330px 0 70px;
    background: #101316 url(../svg/pattern_2.svg) repeat;
    background-size: 100px;
}
.gw-hero-glow { opacity: .3; }
.gw-hero::after { background: var(--goldGradient); height: 3px; }
.gw-title { color: #e2e8f0; text-transform: uppercase; letter-spacing: -0.01em; text-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
.gw-lead { color: #8c98aa; }
.gw-stat, .gw-countdown > div, .gw-status { background: rgba(32, 42, 60, .85); border-color: rgba(255, 255, 255, .1); }
.gw-stat span, .gw-countdown span { color: #7d899f; }
.gw-hero-frame, .tk-frame { background: var(--goldGradient); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(239, 201, 44, .25); }
.gw-eyebrow { color: var(--highlight); }
.gw-entry::before, .tk-analysis::before { background: var(--goldGradient); }
.gw-entry-icon { background: linear-gradient(135deg, var(--navy-light), var(--navy)); }
.gw-podium-prize { color: var(--highlight); }
.gw-tier-gold .gw-prize-media, .gw-podium-place.gw-tier-gold .gw-podium-avatar, .gw-podium-place.gw-tier-gold .gw-podium-step, .gw-winner.gw-tier-gold .gw-winner-pos, .gw-tier-gold .gw-prize-rank { background: var(--goldGradient); }
.tk-stat-odds strong { color: var(--gold); }
.tk-chip-odds { background: var(--goldGradient); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
@media (max-width: 860px) {
    .gw-hero, .gifts-section { padding-top: 300px; }
}

/* Other accents. */
.giveaway-stat i, .section-title i { color: var(--highlight); }
.keywords-bar span { background: var(--goldGradient); }

/* Hero texts sit on the dark background. */
.top_content .cms, .top_content .cms p, .top_content .cms li { color: #c5cdda; }
.top_content .cms a { color: var(--gold); }

/* The characters area of the first section only belongs to the home page. */
body:not(.page-home) .people { display: none; }
