:root {
    --bg: #0f0822;
    --bg-soft: #1c0f38;
    --panel: rgba(16, 8, 34, 0.72);
    --panel-strong: rgba(27, 15, 56, 0.92);
    --line: rgba(255, 255, 255, 0.1);
    --text: #fff8ef;
    --muted: #d6cbe7;
    --gold: #ffd25f;
    --melon: #ff6f61;
    --lime: #c6ff4f;
    --orange: #ff9a3c;
    --teal: #3de4d0;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 154, 60, 0.22), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(61, 228, 208, 0.16), transparent 24%),
        radial-gradient(circle at 60% 80%, rgba(255, 111, 97, 0.18), transparent 30%),
        linear-gradient(180deg, #16092d 0%, #0c061a 58%, #080411 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, 100%);
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
    line-height: 1.02;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(2.7rem, 7vw, 5.7rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.35rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #190e02;
    box-shadow: 0 14px 28px rgba(255, 166, 0, 0.22);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.button-large {
    min-height: 60px;
    padding: 0 28px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(8, 4, 17, 0.55);
    border-bottom: 1px solid var(--line);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-emblem {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-copy strong {
    color: var(--text);
    font-family: "Bahnschrift", "Segoe UI Variable Display", sans-serif;
    font-size: 1.48rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

.brand-copy small {
    display: block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-logo {
    width: 240px;
    max-width: min(44vw, 240px);
    height: auto;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28));
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
    color: var(--muted);
}

.site-nav a:hover,
.footer-links a:hover {
    color: var(--text);
}

.topbar-badges,
.gate-rules,
.hero-disclosures {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.policy-badge,
.gate-pill,
.hero-disclosures span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.88rem;
    color: var(--text);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 40px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% 12% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 255, 79, 0.15), transparent 65%);
    filter: blur(16px);
    pointer-events: none;
}

.hero-grid,
.split-grid,
.contact-grid,
.trust-grid,
.benefit-grid,
.culture-grid,
.footer-grid {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
}

.hero-copy p {
    font-size: 1.1rem;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 24px;
}

.hero-visual,
.story-stack,
.contact-copy {
    position: relative;
}

.photo-frame {
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow);
    background-color: #231142;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-photo-main {
    min-height: 640px;
    background-image:
        linear-gradient(180deg, rgba(11, 4, 25, 0.1), rgba(11, 4, 25, 0.38)),
        url('/assets/images/hero-social-casino-portugal.png'),
        radial-gradient(circle at 20% 20%, rgba(255, 210, 95, 0.36), transparent 35%),
        linear-gradient(140deg, #ff8a3d, #d82663 45%, #31125d);
}

.story-photo-one {
    min-height: 520px;
    background-image:
        linear-gradient(180deg, rgba(11, 4, 25, 0.12), rgba(11, 4, 25, 0.34)),
        url('/assets/images/social-play-friends.png'),
        linear-gradient(145deg, #ffd25f, #f2466f 44%, #291049);
}

.story-photo-two {
    min-height: 520px;
    background-image:
        linear-gradient(180deg, rgba(11, 4, 25, 0.08), rgba(11, 4, 25, 0.28)),
        url('/assets/images/portugal-casino-culture.png'),
        linear-gradient(145deg, #3de4d0, #1f9cd8 30%, #271245 78%);
}

.contact-photo-one {
    min-height: 300px;
    margin-top: 24px;
    background-image:
        linear-gradient(180deg, rgba(11, 4, 25, 0.1), rgba(11, 4, 25, 0.24)),
        url('/assets/images/contact-team-placeholder.png'),
        linear-gradient(145deg, #ff9a3c, #ff5469 40%, #251040);
}

.floating-card,
.story-note,
.info-panel,
.feature-card,
.culture-card,
.benefit-card,
.trust-grid article,
.cta-card,
.faq-item,
.resource-card,
.contact-form-wrap .info-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.floating-card {
    position: absolute;
    max-width: 260px;
    padding: 18px 18px 16px;
}

.floating-card p,
.story-note p,
.info-panel p,
.feature-card p,
.culture-card p,
.benefit-card p,
.trust-grid article p,
.cta-card p,
.resource-card p {
    margin-bottom: 0;
}

.floating-card-a {
    left: -30px;
    bottom: 54px;
}

.floating-card-b {
    right: -24px;
    top: 34px;
}

.trust-strip {
    padding: 18px 0 10px;
}

.trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article,
.feature-card,
.culture-card,
.benefit-card,
.story-note,
.info-panel,
.resource-card,
.faq-item {
    padding: 24px;
}

.content-section,
.page-content {
    padding: 52px 0;
}

.alt-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.split-grid.reverse {
    grid-template-columns: 0.96fr 1.04fr;
}

.feature-list,
.culture-grid,
.benefit-grid,
.resource-list {
    display: grid;
    gap: 18px;
}

.culture-grid,
.benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-stack {
    padding: 24px 0;
}

.story-note {
    position: absolute;
    right: -12px;
    bottom: 0;
    width: min(320px, 90%);
}

.story-note.warm {
    background: rgba(43, 21, 17, 0.78);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 28px;
}

.faq-section {
    padding-top: 34px;
}

.games-section {
    position: relative;
}

.games-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 22%, rgba(255, 210, 95, 0.11), transparent 24%),
        radial-gradient(circle at 92% 12%, rgba(61, 228, 208, 0.1), transparent 22%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.game-card {
    position: relative;
    padding: 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(16, 8, 34, 0.78);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.game-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -50px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 154, 60, 0.18), transparent 66%);
    pointer-events: none;
}

.game-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.game-card-head h3 {
    margin-bottom: 0;
}

.game-card-head span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-frame-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #12081f;
    aspect-ratio: 4 / 3;
}

.game-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: none;
    border: 0;
    color: var(--text);
    font: inherit;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.faq-trigger span:first-child {
    font-family: "Bahnschrift", "Segoe UI Variable Display", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.faq-plus {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--gold);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-panel {
    margin-top: 14px;
    max-height: 220px;
}

.cta-section {
    padding-top: 12px;
    padding-bottom: 72px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
}

.page-hero {
    padding: 58px 0 12px;
}

.inner-page h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.legal-copy h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-top: 26px;
}

.legal-copy p + p {
    margin-top: 12px;
}

.resource-list,
.contact-list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list {
    margin: 24px 0;
}

.resource-card a {
    display: inline-block;
    margin-top: 14px;
    color: var(--gold);
    font-weight: 700;
}

.help-spotlight {
    margin: 34px 0 36px;
    padding: 30px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 210, 95, 0.18), transparent 28%),
        radial-gradient(circle at 100% 10%, rgba(255, 111, 97, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(34, 17, 61, 0.96), rgba(15, 8, 34, 0.94));
    box-shadow: var(--shadow);
}

.help-spotlight-copy {
    max-width: 680px;
}

.help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 24px 0 26px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.help-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.help-card p:last-of-type {
    margin-bottom: 0;
}

.help-card a {
    display: inline-block;
    margin-top: 14px;
    color: var(--gold);
    font-weight: 700;
}

.crisis-callout {
    margin: 0 0 36px;
    padding: 30px;
    border-radius: 32px;
    border: 1px solid rgba(255, 179, 179, 0.22);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 111, 97, 0.2), transparent 26%),
        radial-gradient(circle at 100% 0%, rgba(255, 154, 60, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(57, 12, 22, 0.96), rgba(30, 8, 18, 0.96));
    box-shadow: var(--shadow);
}

.crisis-copy {
    max-width: 700px;
}

.crisis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.crisis-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.crisis-card-emergency {
    background: linear-gradient(180deg, rgba(255, 111, 97, 0.2), rgba(255, 111, 97, 0.08));
    border-color: rgba(255, 179, 179, 0.28);
}

.crisis-card a {
    display: inline-block;
    margin-top: 14px;
    color: #ffe08a;
    font-weight: 700;
}

.contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
}

.office-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.time-badge {
    min-width: 190px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 210, 95, 0.16), rgba(255, 111, 97, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: right;
}

.time-badge strong,
.time-badge span,
.time-badge small {
    display: block;
}

.time-badge span {
    margin: 8px 0 2px;
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 800;
}

.contact-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.contact-form label {
    display: grid;
    gap: 10px;
}

.contact-form span {
    color: var(--text);
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

.contact-form option {
    color: #161616;
}

.form-error {
    color: #ffb3b3;
}

.form-success {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(111, 255, 169, 0.14);
    border: 1px solid rgba(111, 255, 169, 0.26);
    color: #dffff0;
}

.site-footer {
    padding: 24px 0 100px;
    border-top: 1px solid var(--line);
    background: rgba(6, 4, 15, 0.48);
}

.footer-help-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 24px 26px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 210, 95, 0.16), transparent 26%),
        radial-gradient(circle at 100% 0%, rgba(255, 111, 97, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(29, 14, 54, 0.92), rgba(12, 7, 23, 0.96));
    box-shadow: var(--shadow);
}

.footer-help-copy {
    max-width: 620px;
}

.footer-help-copy h3 {
    margin-bottom: 10px;
}

.footer-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-help-link:hover,
.footer-help-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
}

.footer-help-link-hot {
    background: linear-gradient(135deg, var(--melon), var(--orange));
    border-color: transparent;
    color: #220a06;
}

.footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-links li + li {
    margin-top: 10px;
}

.footer-note {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.gate-page {
    overflow: hidden;
}

.gate-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.gate-card {
    width: min(760px, 100%);
    padding: 36px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 210, 95, 0.18), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(255, 111, 97, 0.15), transparent 30%),
        rgba(16, 8, 34, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: var(--shadow);
}

.gate-copy {
    margin-bottom: 24px;
}

.gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.gate-legal {
    margin-top: 20px;
    font-size: 0.95rem;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(14, 8, 29, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.cookie-banner p {
    margin: 6px 0 0;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 980px) {
    .hero-grid,
    .split-grid,
    .split-grid.reverse,
    .contact-grid,
    .trust-grid,
    .games-grid,
    .help-grid,
    .crisis-grid,
    .culture-grid,
    .benefit-grid,
    .footer-grid,
    .footer-note {
        grid-template-columns: 1fr;
    }

    .topbar,
    .cta-card,
    .footer-help-strip,
    .office-heading,
    .footer-note,
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav,
    .topbar-badges {
        width: 100%;
    }

    .hero-photo-main {
        min-height: 480px;
    }

    .story-note {
        position: static;
        width: 100%;
        margin-top: 18px;
    }

    .floating-card {
        position: static;
        max-width: 100%;
        margin-top: 18px;
    }

    .time-badge {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 36px;
    }

    .gate-card,
    .help-spotlight,
    .crisis-callout,
    .trust-grid article,
    .feature-card,
    .culture-card,
    .benefit-card,
    .story-note,
    .info-panel,
    .faq-item,
    .resource-card {
        padding: 20px;
    }

    .button,
    .button-large {
        width: 100%;
    }

    .site-nav {
        gap: 14px;
    }

    .brand-emblem {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .brand-copy strong {
        font-size: 1.26rem;
    }

    .brand-copy small {
        letter-spacing: 0.14em;
    }

    .game-card {
        padding: 16px;
    }

    .game-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .help-actions {
        flex-direction: column;
    }

    .footer-help-links,
    .footer-help-link {
        width: 100%;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
}
