/*
 | Default theme. Colors, font, hero layout and background mode come from the hub as CSS variables /
 | body classes (Core\Theme::appearance()); anything else can be overridden from "Custom styles".
 | Casino "bonus" buttons stay green on purpose (not themable).
 */
/*
 | Components shared by every theme (child themes inherit only this file): variables, buttons, notices,
 | page cards, CMS content, promotions, forms, modals, age gate, account, giveaway, gifts, tickets.
 */
/* The JS toggles visibility with the hidden attribute; it must win over any "display" set by a class. */
[hidden] { display: none !important; }
/* Text for screen readers only. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:root {
    --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;

    --bg: #f3f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-soft: #334155;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);

    --header-from: #0b1020;
    --header-to: #1a2140;
    --footer-bg: #0b1020;
    --accent: #16a34a;
    --highlight: #e11d48;
    --button: var(--accent);

    --accent-light: color-mix(in srgb, var(--accent) 82%, #fff);
    --accent-hover: color-mix(in srgb, var(--accent) 82%, #000);
    --accent-shadow: color-mix(in srgb, var(--accent) 35%, transparent);
    --highlight-dark: color-mix(in srgb, var(--highlight) 65%, #000);
    --button-light: color-mix(in srgb, var(--button) 82%, #fff);
    --button-shadow: color-mix(in srgb, var(--button) 35%, transparent);
    /* Casino "bonus" buttons and offer ticks: green unless set in the hub (Appearance settings > Bonus buttons). */
    --cta: #16a34a;
    --cta-light: color-mix(in srgb, var(--cta) 78%, #fff);
    --cta-shadow: color-mix(in srgb, var(--cta) 35%, transparent);
    --gold: #f5b301;
    --danger: #dc2626;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 2px 6px rgba(15, 23, 42, 0.06), 0 14px 32px rgba(15, 23, 42, 0.12);
}


*, *::before, *::after { box-sizing: border-box; }
.container-narrow { max-width: 860px; }
.section { padding: 8px 0 24px; }
.section-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-sm); border: none; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
    transition: transform .15s ease, filter .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-accent { background: linear-gradient(180deg, var(--button-light), var(--button)); color: #fff; box-shadow: 0 6px 16px var(--button-shadow); }
.btn-cta { background: linear-gradient(180deg, var(--cta-light), var(--cta)); color: #fff; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 6px 16px var(--cta-shadow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-secondary { background: #e2e8f0; color: var(--text-soft); }
.btn-secondary:hover { background: #cbd5e1; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); background: #f1f5f9; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-hover); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #e2e8f0; color: var(--text-soft); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-muted { background: #f1f5f9; color: var(--muted); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-size: .95rem; }
.notice i { font-size: 1.2rem; margin-top: 2px; }
.notice-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.notice-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.notice-muted { background: #f1f5f9; color: var(--text-soft); border: 1px solid var(--border); }


/* ===== CMS CONTENT ===== */
.cms { color: var(--text-soft); line-height: 1.75; overflow-wrap: break-word; }
.cms p, .cms span, .cms li, .cms font, .cms td { font-family: inherit !important; }
.cms h1, .cms h2, .cms h3, .cms h4 { color: var(--text); }
.cms a { color: var(--accent-hover); text-underline-offset: 2px; }
.cms img, .cms iframe, .cms video { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.cms table { max-width: 100%; border-collapse: collapse; }
/* Phones: CMS text pasted from Word comes with inline sizes (e.g. 13pt) and justified alignment,
   which leaves wide gaps between words on a narrow column. Headings keep their own size. */
@media (max-width: 600px) {
    .cms { font-size: .95rem; line-height: 1.7; }
    .cms :not(h1, h2, h3, h4, h5, h6)[style*="font-size"] { font-size: inherit !important; }
    .cms h1 { font-size: 1.35rem; }
    .cms h2 { font-size: 1.2rem; }
    .cms h3 { font-size: 1.1rem; }
    .cms [style*="justify"], .cms [align="justify"] { text-align: left !important; }
}

.page-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px 32px; margin: 20px 0; }
.page-title { font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.page-subtitle { color: var(--muted); margin: 0 0 16px; }


/* ===== PROMOTIONS ===== */
.promotions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.promotion { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.promotion:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.promotion-image img { width: 100%; height: 150px; object-fit: cover; display: block; }
.promotion-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.promotion-title { font-weight: 700; }
.promotion-subtitle { color: var(--muted); font-size: .9rem; }


/* ===== FORMS ===== */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text-soft); }
.form-group input[type=text], .form-group input[type=email], .form-group input[type=password], .form-group input[type=tel], .form-inline-row input[type=text] {
    height: 44px; width: 100%; border-radius: var(--radius-sm); border: 1px solid #cbd5e1; padding: 0 12px;
    font: inherit; font-size: .95rem; color: var(--text); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-inline-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-shadow); }
.form-group input.is-invalid, .form-inline-row input.is-invalid { border-color: var(--danger); }
.form-inline-row { display: flex; gap: 8px; }
.form-inline-row input { flex: 1; min-width: 0; }
.form-inline-row .btn { flex-shrink: 0; }
.form-hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form-error { font-size: .8rem; color: var(--danger); min-height: 0; }
.form-error:empty { display: none; }
.form-checkboxes { display: flex; flex-direction: column; gap: 8px; }
.form-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--text-soft); cursor: pointer; }
.form-checkbox input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form-message { display: none; border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; }
.form-message.show { display: block; }
.form-message.is-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.form-message.is-success { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.form-success { display: flex; align-items: center; gap: 10px; padding: 20px; color: var(--accent-hover); font-weight: 600; }
.form-success i { font-size: 2rem; }

/* ===== MODALS ===== */
/* The backdrop scrolls (a long popup on a phone), not the card: the X can sit on the card's corner. */
.modal { position: fixed; inset: 0; display: none; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; overscroll-behavior: contain; background: rgba(2,6,23,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 100; }
.modal.show { display: flex; }
.modal-content { position: relative; width: 100%; max-width: 640px; margin: auto; background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: 0 24px 60px rgba(2,6,23,.35); animation: dialogIn .25s ease-out; }
.modal-sm { max-width: 460px; }
/* X on the card's top-right corner: never over the content (tabs, titles). */
.modal-close { position: absolute; z-index: 1; top: -14px; right: -14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1rem; box-shadow: 0 6px 18px rgba(2,6,23,.25); transition: transform .15s ease, background .15s ease; }
.modal-close:hover, .modal-close:focus-visible { background: #f1f5f9; transform: rotate(90deg); outline: none; }
/* Image popup ([data-lightbox] links, assets/app.js): above the modals, under the age gate. */
/* touch-action: none = the popup handles pinch / double tap itself (zoom on the image, not on the page). */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 64px 16px 80px; background: rgba(2,6,23,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; animation: lightboxIn .2s ease;
    overflow: hidden; touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
.lightbox-img { display: block; max-width: min(100%, 1000px); max-height: 100%; width: auto; height: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); cursor: zoom-in; transform-origin: center; will-change: transform; -webkit-user-drag: none; animation: lightboxZoom .25s ease; }
.lightbox.is-zoomed .lightbox-img { cursor: grab; }
.lightbox.is-dragging .lightbox-img { cursor: grabbing; }
.lightbox-close { position: absolute; z-index: 1; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(15,23,42,.55); color: #fff; font-size: 1.2rem; display: grid; place-items: center; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255,255,255,.22); transform: rotate(90deg); outline: none; }
.lightbox-tools { position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(15,23,42,.72); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: default; }
.lightbox-tools button { min-width: 42px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s ease; }
.lightbox-tools button:hover, .lightbox-tools button:focus-visible { background: rgba(255,255,255,.16); outline: none; }
.lightbox-tools [data-lb-level] { min-width: 64px; }
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightboxZoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal-title { font-weight: 800; font-size: 1.25rem; margin-bottom: 18px; padding-right: 36px; }
.auth-tabs { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-note { background: #eff6ff; color: #1d4ed8; border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; margin: 0 0 14px; }
.auth-switch { text-align: center; font-size: .875rem; color: var(--muted); margin: 16px 0 0; }
.auth-sep { margin: 0 6px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid rgba(127, 127, 127, .3); }
/* Google's sign-in button guidelines: white, grey outline, the original logo. */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; text-decoration: none; }
.btn-google:hover { background: #f2f2f2; color: #1f1f1f; }

/* ===== AGE DIALOG ===== */
.dialog { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 999; }
.dialog[hidden] { display: none; }
.dialog.is-restricted { background: #0a0a0a; }
.dialog-content { background: var(--surface); max-width: 440px; width: 100%; padding: 32px 28px; border-radius: 20px; text-align: center; box-shadow: 0 24px 60px rgba(2,6,23,.35); animation: dialogIn .25s ease-out; }
.dialog-content[hidden] { display: none; }
.dialog-title h2 { margin: 0; font-weight: 800; font-size: 1.4rem; }
.dialog-title-danger { color: var(--danger); }
.dialog-content p { color: var(--muted); font-size: .95rem; }
.dialog-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.dialog-action { font: inherit; font-size: .9rem; padding: 12px 18px; border-radius: var(--radius-sm); border: 0; font-weight: 700; cursor: pointer; }
.dialog-action-yes { background: linear-gradient(180deg, var(--accent-light), var(--accent)); color: #fff; box-shadow: 0 6px 16px var(--accent-shadow); }
.dialog-action-no { background: #f1f5f9; color: var(--text-soft); }

/* ===== ACCOUNT ===== */
.account-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: #fff; font-size: 1.4rem; flex-shrink: 0; }
.account-logout { margin-left: auto; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }
.account-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; background: #fafbfc; }
/* A verified contact stays neutral: only the small check is green (no wall of green). */
.account-block.is-done { background: var(--surface); }
.account-block-head { display: flex; align-items: center; gap: 12px; }
.account-block-head > div { flex: 1; min-width: 0; }
.account-step { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; color: var(--text-soft); flex-shrink: 0; }
.is-done .account-step { background: #f0fdf4; color: #16a34a; box-shadow: inset 0 0 0 1px #bbf7d0; }
.account-status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.account-status.is-ok { color: #15803d; }
.account-status.is-pending { color: #b45309; }
.account-block-title { font-weight: 700; }
.account-block-value { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.account-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.account-details dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.account-details dd { margin: 2px 0 0; font-weight: 600; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border); }
.participations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.participation { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.participation-title { font-weight: 700; }
.participation-meta { font-size: .85rem; color: var(--muted); }
.participation-prizes { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== GIVEAWAY ===== */
/* Icon wrapper: sized by font-size, whether Font Awesome renders <i> (CSS) or <svg> (JS). */
.gw-icon { display: inline-grid; place-items: center; line-height: 1; }
.gw-icon > svg, .gw-icon > i { width: 1em; height: 1em; }
/* Hero: dark stage in the header colors, the giveaway image framed on the right. */
.gw-hero { position: relative; overflow: hidden; color: #fff; padding: 56px 0 64px;
    background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
                radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%),
                linear-gradient(135deg, var(--header-from), var(--header-to)); }
.gw-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 70%, transparent), transparent); }
/* With a background image (Giveaway settings > Background image): the photo, under an overlay in the
   header colors, darker on the text side. .gw-hero.gw-hero-photo wins over the themes' .gw-hero pattern. */
.gw-hero.gw-hero-photo { background-color: var(--header-from); background-size: cover; background-position: center; background-repeat: no-repeat; }
.gw-hero-photo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, color-mix(in srgb, var(--header-from) 88%, transparent) 0%, color-mix(in srgb, var(--header-from) 62%, transparent) 50%, color-mix(in srgb, var(--header-to) 35%, transparent) 100%); }
.gw-hero-photo.gw-hero-empty::before { background: color-mix(in srgb, var(--header-from) 68%, transparent); }
.gw-hero-photo .gw-hero-glow { opacity: .2; }
.gw-hero-glow { position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 1px, transparent 2px), radial-gradient(circle at 70% 70%, rgba(255,255,255,.25) 0 1px, transparent 2px), radial-gradient(circle at 40% 80%, rgba(245,179,1,.5) 0 1px, transparent 2px);
    background-size: 120px 120px, 170px 170px, 210px 210px; }
.gw-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.gw-brand { display: block; max-height: 64px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.gw-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gw-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.gw-status.is-live .gw-status-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: gwPulse 1.8s infinite; }
.gw-status.is-soon .gw-status-dot { background: var(--gold); }
.gw-status.is-ended .gw-status-dot { background: #f87171; }
.gw-title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; margin: 16px 0 12px; color: #fff; text-wrap: balance; }
.gw-lead { font-size: 1.08rem; color: rgba(255,255,255,.75); margin: 0 0 22px; max-width: 560px; }
.gw-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.gw-stat { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); min-width: 120px; }
.gw-stat strong { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.gw-stat span { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.gw-countdown { display: flex; gap: 10px; margin-bottom: 26px; }
.gw-countdown > div { width: 76px; padding: 12px 0 10px; text-align: center; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.gw-countdown strong { display: block; font-size: 1.9rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.gw-countdown span { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; }
.gw-countdown.is-over { display: none; }
.gw-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.gw-link { color: rgba(255,255,255,.8); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.gw-link:hover { color: #fff; }
.gw-link i { font-size: .8em; }
.gw-joined { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.4); color: #bbf7d0; font-weight: 700; }
.gw-hero-visual { display: flex; justify-content: center; }
.gw-hero-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 28px; padding: 6px; transform: rotate(2deg);
    background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 40%, #fff) 40%, var(--accent)); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 80px color-mix(in srgb, var(--gold) 25%, transparent); }
.gw-hero-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; background: #0b1020; }
.gw-hero-frame-icon { display: grid; place-items: center; }
.gw-hero-frame-icon .gw-icon { font-size: 7rem; color: #fff; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.gw-hero-empty { padding: 72px 0; text-align: center; }
.gw-empty { position: relative; max-width: 640px; }
.gw-empty-icon { width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: var(--gold); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.gw-empty .gw-lead { margin-left: auto; margin-right: auto; }
.gw-empty .gw-brand { margin-left: auto; margin-right: auto; }

.btn-gold { color: #2b1d00; background: linear-gradient(180deg, #ffe08a, var(--gold) 55%, #d99400); box-shadow: 0 10px 24px rgba(245,179,1,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-gold:hover { filter: brightness(1.06); }

/* Body sections */
.gw-body { padding-top: 8px; padding-bottom: 24px; }
.gw-section { margin: 48px 0; scroll-margin-top: 24px; }
.gw-section-head { text-align: center; margin-bottom: 26px; }
.gw-section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 900; letter-spacing: -0.02em; margin: 4px 0 0; }
.gw-eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.gw-muted { color: var(--muted); margin: 0 0 18px; }

/* Prizes */
/* Centered rows: one prize (or an incomplete last row) sits in the middle, not on the left. */
.gw-prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.gw-prizes > .gw-prize { flex: 1 1 230px; max-width: 300px; }
.gw-prize { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.gw-prize:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gw-prize-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(80% 80% at 50% 30%, rgba(255,255,255,.9), transparent 70%), linear-gradient(160deg, #eef2f7, #dfe6ef); }
.gw-prize-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gw-prize:hover .gw-prize-media img { transform: scale(1.05); }
.gw-prize-media > .gw-icon { font-size: 3.2rem; color: #94a3b8; }
.gw-prize-rank { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: rgba(15,23,42,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gw-prize-body { padding: 16px 18px 20px; }
.gw-prize-body h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px; }
.gw-prize-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.gw-tier-gold.gw-prize { border-color: color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: 0 10px 30px rgba(245,179,1,.18); }
.gw-tier-gold .gw-prize-media { background: radial-gradient(80% 80% at 50% 30%, #fff7d6, transparent 70%), linear-gradient(160deg, #fde68a, #f5b301); }
.gw-tier-gold .gw-prize-media > .gw-icon { color: #b45309; }
.gw-tier-gold .gw-prize-rank { background: linear-gradient(135deg, #ffe08a, #f5b301); color: #3b2600; }
.gw-tier-silver .gw-prize-media { background: radial-gradient(80% 80% at 50% 30%, #fff, transparent 70%), linear-gradient(160deg, #e5e7eb, #9ca3af); }
.gw-tier-silver .gw-prize-media > .gw-icon { color: #475569; }
.gw-tier-silver .gw-prize-rank { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #1e293b; }
.gw-tier-bronze .gw-prize-media { background: radial-gradient(80% 80% at 50% 30%, #ffedd5, transparent 70%), linear-gradient(160deg, #fdba74, #c2410c); }
.gw-tier-bronze .gw-prize-media > .gw-icon { color: #7c2d12; }
.gw-tier-bronze .gw-prize-rank { background: linear-gradient(135deg, #fdba74, #c2410c); color: #fff; }

/* Entry */
.gw-entry { max-width: 880px; margin: 0 auto; display: flex; gap: 22px; align-items: flex-start; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(15,23,42,.08); position: relative; overflow: hidden; }
.gw-entry::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--highlight)); }
.gw-entry-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); box-shadow: 0 10px 20px var(--accent-shadow); }
.gw-entry-content { flex: 1; min-width: 0; }
.gw-entry-content > h2 { font-size: 1.45rem; font-weight: 900; margin: 4px 0 6px; }
.gw-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gw-entry .sms-entry .form { max-width: 640px; }

/* Winners: podium (2 - 1 - 3) + list */
/* Centered: 1 or 2 places drawn so far sit in the middle (the markup keeps the 2 - 1 - 3 order). */
.gw-podium { display: flex; justify-content: center; gap: 16px; align-items: flex-end; max-width: 820px; margin: 0 auto 28px; }
.gw-podium-place { flex: 0 1 262px; min-width: 0; text-align: center; }
.gw-podium-avatar { position: relative; width: 104px; height: 104px; margin: 0 auto 12px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, #e5e7eb, #9ca3af); box-shadow: 0 12px 26px rgba(15,23,42,.18); }
.gw-podium-avatar img, .gw-podium-avatar > .gw-icon { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface); display: grid; place-items: center; font-size: 2.2rem; color: #64748b; }
.gw-podium-pos { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: #0f172a; border: 3px solid var(--surface); }
.gw-place-1 .gw-podium-avatar { width: 128px; height: 128px; }
.gw-podium-name { font-weight: 800; font-size: 1.05rem; }
.gw-podium-prize { color: var(--accent-hover); font-weight: 700; font-size: .9rem; }
.gw-podium-contact { color: var(--muted); font-size: .8rem; margin-bottom: 12px; }
.gw-podium-step { height: 70px; border-radius: 16px 16px 6px 6px; background: linear-gradient(180deg, #e2e8f0, #cbd5e1); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.gw-place-1 .gw-podium-step { height: 110px; }
.gw-place-3 .gw-podium-step { height: 50px; }
.gw-podium-place.gw-tier-gold .gw-podium-avatar, .gw-podium-place.gw-tier-gold .gw-podium-step { background: linear-gradient(135deg, #ffe08a, #f5b301 60%, #d99400); }
.gw-podium-place.gw-tier-silver .gw-podium-avatar, .gw-podium-place.gw-tier-silver .gw-podium-step { background: linear-gradient(135deg, #f8fafc, #94a3b8); }
.gw-podium-place.gw-tier-bronze .gw-podium-avatar, .gw-podium-place.gw-tier-bronze .gw-podium-step { background: linear-gradient(135deg, #fdba74, #c2410c); }
.gw-winners { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 10px; }
.gw-winner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.gw-winner-pos { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: #f1f5f9; color: var(--text-soft); }
.gw-winner.gw-tier-gold .gw-winner-pos { background: linear-gradient(135deg, #ffe08a, #f5b301); color: #3b2600; }
.gw-winner.gw-tier-silver .gw-winner-pos { background: linear-gradient(135deg, #f8fafc, #94a3b8); color: #1e293b; }
.gw-winner.gw-tier-bronze .gw-winner-pos { background: linear-gradient(135deg, #fdba74, #c2410c); color: #fff; }
.gw-winner-body { flex: 1; min-width: 0; }
.gw-winner-name { font-weight: 800; }
.gw-winner-contact { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.gw-winner-prize { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--text-soft); text-align: right; }
.gw-winner-prize img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

/* Details + legal */
.gw-details { padding: 28px 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.gw-details h2 { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.gw-details h2 i { color: var(--accent); }
.gw-details .cms + .cms { margin-top: 12px; }
.gw-legal { text-align: center; font-size: .85rem; color: var(--muted); display: flex; justify-content: center; gap: 8px; }
.gw-legal a { color: var(--muted); }
@keyframes gwPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.keywords { margin-top: 20px; padding: 18px; border-radius: var(--radius); background: #fafbfc; border: 1px solid var(--border); }
.keywords-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.keywords-hint { font-size: .9rem; color: var(--muted); margin: 0; }
.keywords-progress { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.keywords-progress strong { font-size: 1.3rem; color: var(--text); }
.keywords-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keywords-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 600; font-size: .875rem; }
.keywords-list li.is-new { animation: intro .35s ease-out; }

/* ===== GIFTS / TICKETS ===== */
/* Gift of the day: full-height stage. With a background image (body.has-bg) only a translucent overlay
   in the header colors sits over it; without one, the giveaway hero's dark gradient. The form lives in
   a frosted-glass card, so the background stays visible around and through it. */
.gifts-section { position: relative; display: flex; align-items: center; min-height: calc(100svh - 72px); padding: 56px 0 72px; color: #fff;
    background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
                radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%),
                linear-gradient(135deg, var(--header-from), var(--header-to)); }
body.has-bg .gifts-section { background: radial-gradient(90% 70% at 50% 45%, color-mix(in srgb, var(--header-from) 35%, transparent), color-mix(in srgb, var(--header-to) 78%, transparent)); }
.gifts-section .container-narrow { max-width: 580px; }
.gifts-card { position: relative; overflow: hidden; margin: 0; padding: 36px 36px 32px; text-align: center; color: #fff; border-radius: 24px;
    background: color-mix(in srgb, var(--header-from) 58%, transparent); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 30px 70px rgba(2,6,23,.45), inset 0 1px 0 rgba(255,255,255,.08); animation: intro .4s ease-out; }
.gifts-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--highlight)); }
.gifts-card .page-title { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; text-shadow: 0 3px 12px rgba(0,0,0,.35); }
.gifts-card .page-subtitle { color: rgba(255,255,255,.75); }
.gifts-card .form { text-align: left; margin: 22px auto 0; }
.gifts-card .form-group label { color: rgba(255,255,255,.85); }
.gifts-card .form-group input[type] { background: rgba(255,255,255,.96); border-color: transparent; }
.gifts-card .form-checkbox { color: rgba(255,255,255,.8); }
.gifts-card .form-hint { color: rgba(255,255,255,.72); text-align: center; }
.gifts-card a:not(.btn), .gifts-card .link-button { color: var(--gold); }
.gifts-card .link-button { align-self: center; }
.gifts-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: linear-gradient(135deg, var(--highlight), var(--highlight-dark)); color: #fff; font-size: 2rem; box-shadow: 0 12px 30px color-mix(in srgb, var(--highlight) 45%, transparent); }
.gifts-image { display: block; max-width: 100%; max-height: 220px; margin: 0 auto 18px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px rgba(2,6,23,.4); }
.gifts-done { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
@media (max-width: 600px) {
    .gifts-section { align-items: flex-start; padding: 24px 0 40px; }
    .gifts-card { padding: 26px 18px 22px; border-radius: 20px; }
    .gifts-image { max-height: 170px; }
}
/* ===== TICKET OF THE DAY: hero, section heads and stats of the giveaway page (gw-*), plus: ===== */
.tk-stat-odds strong { color: var(--gold); font-size: 1.7rem; }
.gw-stat .tk-date-long, .gw-stat .tk-date-short { font-size: inherit; color: inherit; text-transform: none; letter-spacing: normal; margin: 0; }
.tk-date-short { display: none; }
/* Ticket images are portrait (hub formats): a tilted frame like the giveaway's, never taller than the screen. */
.tk-frame { position: relative; display: block; width: 100%; max-width: 340px; border-radius: 28px; padding: 6px; transform: rotate(-2deg); transition: transform .3s ease;
    background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 40%, #fff) 40%, var(--accent)); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 80px color-mix(in srgb, var(--gold) 25%, transparent); }
a.tk-frame { cursor: zoom-in; }
a.tk-frame:hover { transform: rotate(0deg) scale(1.02); }
.tk-frame img { display: block; width: 100%; max-height: 72vh; object-fit: cover; border-radius: 22px; background: #0b1020; }
.tk-frame-zoom { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(15,23,42,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.tk-frame:hover .tk-frame-zoom, .tk-frame:focus-visible .tk-frame-zoom { opacity: 1; }
.tk-frame-icon { aspect-ratio: 3 / 4; display: grid; place-items: center; }
.tk-frame-icon .gw-icon { font-size: 6rem; color: #fff; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }

.tk-analysis { position: relative; max-width: 820px; margin: 0 auto; padding: 32px 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden; }
.tk-analysis::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--highlight)); }
.tk-analysis-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed color-mix(in srgb, var(--text) 15%, transparent); }
.tk-odds-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--text-soft); font-weight: 600; }
.tk-odds-pill strong { color: var(--text); font-size: 1.2rem; font-weight: 900; }
.tk-odds-pill i { color: color-mix(in srgb, var(--gold) 75%, #000); }

.tk-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; align-items: start; }
.tk-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.tk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tk-card-media { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; background: radial-gradient(80% 80% at 50% 30%, #fff, transparent 70%), linear-gradient(160deg, #e2e8f0, #cbd5e1); }
.tk-card-img { position: absolute; inset: 0; cursor: zoom-in; }
.tk-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tk-card:hover .tk-card-media img { transform: scale(1.05); }
.tk-card-media > .gw-icon { font-size: 3rem; color: #94a3b8; }
.tk-chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(15,23,42,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tk-chip-odds { top: auto; bottom: 12px; color: #2b1d00; background: linear-gradient(135deg, #ffe08a, var(--gold)); }
.tk-card-body { padding: 16px 18px 18px; }
.tk-card-body h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; margin: 0 0 6px; }
.tk-card-excerpt { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.tk-card-body:has(.tk-card-more[open]) .tk-card-excerpt { display: none; }
.tk-card-more { margin-top: 10px; }
.tk-card-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--accent-hover); }
.tk-card-more summary::-webkit-details-marker { display: none; }
.tk-card-more summary i { font-size: .75em; transition: transform .2s ease; }
.tk-card-more[open] summary i { transform: rotate(180deg); }
.tk-card-more .cms { margin-top: 10px; font-size: .95rem; }

.tk-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tk-page-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); font-size: .92rem; font-weight: 700; text-decoration: none; transition: transform .15s ease, border-color .15s ease, color .15s ease; }
.tk-page-btn:hover { border-color: var(--accent); color: var(--accent-hover); transform: translateY(-1px); }
.tk-page-btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.tk-page-info { color: var(--muted); font-size: .92rem; }
.tk-page-info strong { color: var(--text); }
.notfound { text-align: center; padding: 48px 24px; }
.notfound-code { font-size: 4rem; font-weight: 900; color: #e2e8f0; line-height: 1; }


/* ===== ANIMATIONS ===== */
@keyframes intro { from { transform: translateY(15px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }


/* ===== RESPONSIVE (components) ===== */
@media (max-width: 860px) {
    .gw-hero { padding: 36px 0 44px; }
    .gw-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .gw-hero-photo::before { background: color-mix(in srgb, var(--header-from) 72%, transparent); }
    .gw-hero-visual { order: -1; }
    .gw-hero-frame { max-width: 300px; }
    .gw-entry { flex-direction: column; padding: 24px 20px; }
    .tk-frame { max-width: 260px; }
    .tk-frame img { max-height: 60vh; }
}
@media (max-width: 560px) {
    .gw-countdown > div { width: auto; flex: 1; }
    .gw-countdown strong { font-size: 1.5rem; }
    .gw-stat { min-width: 0; flex: 1; padding: 10px 12px; }
    .gw-prizes { gap: 12px; }
    .gw-prizes > .gw-prize { flex: 0 1 calc(50% - 6px); max-width: none; }
    .gw-prizes > .gw-prize:only-child { flex-basis: 100%; max-width: 340px; }
    .gw-prize-body { padding: 12px; }
    .gw-podium { gap: 8px; }
    .gw-podium-avatar { width: 72px; height: 72px; }
    .gw-place-1 .gw-podium-avatar { width: 88px; height: 88px; }
    .gw-podium-name { font-size: .9rem; }
    .gw-podium-contact { display: none; }
    .gw-winner { flex-wrap: wrap; }
    .gw-winner-prize { width: 100%; justify-content: flex-start; padding-left: 52px; }
    .gw-details { padding: 20px; }
    .tk-date-long { display: none; }
    .tk-date-short { display: inline; }
    .tk-analysis { padding: 24px 18px; }
    .tk-analysis-cta .btn { width: 100%; }
    .tk-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tk-card-body { padding: 12px; }
    .tk-chip { top: 8px; left: 8px; padding: 4px 8px; font-size: .68rem; }
    .tk-chip-odds { top: auto; bottom: 8px; }
}
@media (max-width: 600px) {
    .page-card { padding: 18px 16px; }
    .form-row { flex-direction: column; }
    .modal-content { padding: 22px 18px; }
    /* Phones: the X stays on the corner but inside the screen. */
    .modal-close { top: -12px; right: -6px; width: 36px; height: 36px; }
}

/* ===== COOKIE CONSENT (core/views/cookie-consent.php) ===== */
/* Above the age gate (z-index 999): the visitor can answer both. */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1001; display: flex; justify-content: center; pointer-events: none; animation: cookieIn .3s ease-out; }
.cookie-banner-inner { pointer-events: auto; width: 100%; max-width: 980px; display: flex; align-items: center; gap: 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(2,6,23,.28); padding: 18px 22px; font-family: var(--font); }
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; color: var(--text); }
.cookie-banner-title svg, .cookie-banner-title i { color: var(--accent); }
.cookie-banner-text p { margin: 6px 0 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.cookie-banner a, .cookie-settings a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.cookie-btn { font: inherit; font-family: var(--font); font-size: .875rem; font-weight: 700; line-height: 1.2; padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.cookie-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Accept and Refuse look equally prominent (no "dark pattern"). */
.cookie-btn-primary { background: var(--accent); color: #fff; }
.cookie-btn-primary:hover { background: var(--accent-hover); }
.cookie-btn-secondary { background: var(--surface); color: var(--text); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.cookie-btn-secondary:hover { background: color-mix(in srgb, var(--text) 6%, var(--surface)); }
.cookie-btn-link { background: transparent; color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; padding-left: 8px; padding-right: 8px; }
.cookie-btn-link:hover { color: var(--text); }

.cookie-settings { position: fixed; inset: 0; z-index: 1002; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.cookie-settings-content { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; margin: auto; background: var(--surface); color: var(--text); border-radius: 20px; padding: 26px; box-shadow: 0 24px 60px rgba(2,6,23,.35); font-family: var(--font); animation: dialogIn .25s ease-out; text-align: left; }
.cookie-settings-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-settings-header h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.cookie-settings-close { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 6%, var(--surface)); color: var(--text-soft); cursor: pointer; font-size: 1rem; }
.cookie-settings-close:hover { color: var(--text); }
.cookie-settings-intro { margin: 10px 0 16px; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
div.cookie-category { cursor: default; }
.cookie-category-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cookie-category-text strong { font-size: .95rem; color: var(--text); }
.cookie-category-text span { font-size: .82rem; line-height: 1.45; color: var(--muted); }
.cookie-category-always { flex-shrink: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.cookie-switch { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cookie-switch-track { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 20%, var(--surface)); transition: background-color .15s ease; }
.cookie-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(2,6,23,.3); transition: transform .15s ease; }
.cookie-switch input:checked + .cookie-switch-track { background: var(--accent); }
.cookie-switch input:checked + .cookie-switch-track::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-settings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }

@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
    .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-banner-actions .cookie-btn-link { grid-column: 1 / -1; order: 3; }
    .cookie-settings-content { padding: 20px 16px; }
    .cookie-settings-actions { display: grid; grid-template-columns: 1fr; }
    .cookie-settings-actions .cookie-btn-primary { order: -1; }
}
