/* =============================================
   PROJECT: debbiemarquez.com (site31-nz)
   CSS ARCHITECTURE: SMACSS (base/layout/module/state/theme layers)
   COLOR PALETTE: Aotearoa Coastline (tasman-surge, pounamu-fern, pohutukawa-glow, lupin-sky, kauri-bark, hokitika-sand, waka-gold)
   VISUAL EFFECT: Tasman Gradient Mesh (animated radial mesh wash)
  TYPOGRAPHY: Sora (headings) + Heebo (body)
   HTML CLASS APPROACH: Feature-based naming with spark- prefix
   JS NAMING CONVENTION: snake_case
   BUTTON STYLE: Split Tide Buttons (split-color hover slide)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
    --tasman-surge: #0c425f;
    --pounamu-fern: #1c7c5e;
    --pohutukawa-glow: #d04b62;
    --lupin-sky: #75a5ff;
    --kauri-bark: #1e272f;
    --hokitika-sand: #f2e9dc;
    --waka-gold: #f5c54b;
    --fjord-mist: #92c7be;
    --kiwi-shadow: rgba(12, 66, 95, 0.75);
    --text-main: #dde7f0;
    --text-muted: rgba(221, 231, 240, 0.72);
    --danger-flare: #f05555;
    --success-surge: #27c399;
    --shell-width: 1180px;
    --header-height-desktop: 104px;
    --header-height-mobile: 68px;
    --transition-core: 0.3s ease;
    --radius-curve: 18px;
    --radius-soft: 24px;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden !important;
}

body {
    font-family: 'Heebo', sans-serif;
    background: var(--kauri-bark);
    color: var(--text-main);
    line-height: 1.7;
    letter-spacing: 0.01rem;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(117, 165, 255, 0.25), transparent 58%),
        radial-gradient(circle at 80% 15%, rgba(32, 170, 138, 0.28), transparent 60%),
        radial-gradient(circle at 30% 82%, rgba(208, 75, 98, 0.22), transparent 64%);
    background-size: 120% 120%;
    animation: spark-mesh 22s ease-in-out infinite;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 66, 95, 0.78), rgba(30, 39, 47, 0.9));
    z-index: -1;
}

img {
    display: block;
    height: auto;
}

a {
    color: var(--lupin-sky);
    text-decoration: none;
    transition: color var(--transition-core);
}

a:hover,
a:focus {
    color: var(--waka-gold);
}

button {
    font-family: inherit;
}

.spark-shell {
    width: min(92%, var(--shell-width));
    margin: 0 auto;
}

.spark-shell--wide {
    width: min(96%, var(--shell-width));
}

.spark-shell--narrow {
    width: min(86%, 760px);
}

.spark-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 999px;
    letter-spacing: 0.12em;
    background: rgba(117, 165, 255, 0.14);
    color: var(--lupin-sky);
}

.spark-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--hokitika-sand);
}

.spark-subheading {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.75rem;
}

.spark-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    overflow: hidden;
    color: var(--hokitika-sand);
    background: linear-gradient(120deg, var(--tasman-surge) 50%, var(--pohutukawa-glow) 50%);
    background-size: 220% 100%;
    transition: background-position var(--transition-core), transform var(--transition-core), box-shadow var(--transition-core);
    box-shadow: 0 12px 24px rgba(12, 66, 95, 0.35);
}

.spark-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.14);
    mix-blend-mode: soft-light;
    transition: opacity var(--transition-core);
    opacity: 0;
}

.spark-button:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 18px 26px rgba(30, 39, 47, 0.45);
}

.spark-button:hover::after {
    opacity: 1;
}

.spark-button--ghost {
    background: rgba(12, 66, 95, 0.15);
    border: 1px solid rgba(117, 165, 255, 0.4);
    color: var(--lupin-sky);
    box-shadow: none;
}

.spark-button--ghost:hover {
    background: rgba(117, 165, 255, 0.15);
}

.spark-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: rgba(39, 195, 153, 0.14);
    color: var(--success-surge);
}

.spark-layout-spacer {
    margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

/* Layout */
.spark-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: linear-gradient(120deg, rgba(12, 66, 95, 0.88), rgba(30, 39, 47, 0.92));
    border-bottom: 1px solid rgba(117, 165, 255, 0.2);
}

.spark-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height-desktop);
}

.spark-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.spark-brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(117, 165, 255, 0.28), rgba(39, 195, 153, 0.35));
    font-size: 1.6rem;
}

.spark-brand__name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.spark-brand__title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.spark-brand__tag {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    background: rgba(39, 195, 153, 0.18);
    color: var(--success-surge);
}

.spark-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(117, 165, 255, 0.3);
    background: rgba(12, 66, 95, 0.32);
    cursor: pointer;
    gap: 6px;
    transition: border-color var(--transition-core), transform var(--transition-core);
}

.spark-nav__toggle:hover {
    border-color: var(--lupin-sky);
    transform: translateY(-2px);
}

.spark-nav__line {
    width: 20px;
    height: 2px;
    background: var(--hokitika-sand);
    transition: transform var(--transition-core), opacity var(--transition-core);
}

.spark-nav__menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.spark-nav__link {
    position: relative;
    padding: 0.35rem 0.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.spark-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--lupin-sky), var(--pohutukawa-glow));
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity var(--transition-core), transform var(--transition-core);
}

.spark-nav__link:hover,
.spark-nav__link:focus {
    color: var(--hokitika-sand);
}

.spark-nav__link:hover::after,
.spark-nav__link--active::after {
    opacity: 1;
    transform: scaleX(1);
}

.spark-hero {
    padding-top: clamp(8rem, 14vw, 10.5rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
    min-height: calc(100vh - var(--header-height-desktop));
    display: flex;
    align-items: center;
    position: relative;
}

.spark-hero__layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.spark-hero__content h1 {
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    margin-bottom: 1.2rem;
}

.spark-hero__content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.spark-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.spark-hero__card {
    background: rgba(12, 66, 95, 0.45);
    padding: 1.5rem;
    border-radius: var(--radius-soft);
    box-shadow: 0 24px 45px rgba(12, 66, 95, 0.35);
    border: 1px solid rgba(117, 165, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spark-hero__stat {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-curve);
    background: rgba(30, 39, 47, 0.55);
    border: 1px solid rgba(117, 165, 255, 0.12);
}

.spark-hero__stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(117, 165, 255, 0.18);
    font-size: 1.3rem;
}

.spark-hero__stat-copy {
    display: flex;
    flex-direction: column;
}

.spark-hero__stat-copy strong {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--hokitika-sand);
}

.spark-feature-board {
    display: flex;
    gap: 1.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.spark-feature-card {
    flex: 0 0 auto;
    width: clamp(260px, 30vw, 320px);
    padding: 1.8rem;
    border-radius: var(--radius-soft);
    background: rgba(30, 39, 47, 0.58);
    border: 1px solid rgba(117, 165, 255, 0.18);
    box-shadow: 0 18px 40px rgba(12, 66, 95, 0.32);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spark-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(117, 165, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

.spark-feature-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    color: var(--hokitika-sand);
}

.spark-feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.spark-games-section {
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.spark-games-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.spark-game-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 3vw, 2.4rem);
    max-width: 1100px;
    margin: 0 auto;
}

.spark-game-card {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 340px);
    max-width: 340px;
    min-width: 280px;
    border-radius: var(--radius-soft);
    padding: 1.6rem;
    background: rgba(30, 39, 47, 0.62);
    border: 1px solid rgba(117, 165, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform var(--transition-core), box-shadow var(--transition-core);
}

.spark-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 48px rgba(12, 66, 95, 0.35);
}

.spark-game-media {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(117, 165, 255, 0.12);
    padding: 0.8rem;
    border: 1px solid rgba(117, 165, 255, 0.16);
}

.spark-game-media img {
    width: 100%;
    border-radius: 12px;
}

.spark-game-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.spark-game-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    color: var(--hokitika-sand);
}

.spark-game-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--waka-gold);
}

.spark-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.spark-game-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(12, 66, 95, 0.28);
    color: var(--lupin-sky);
}

.spark-leaderboard {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.spark-leaderboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-content: center;
}

.spark-leaderboard-card {
    flex: 0 0 auto;
    width: clamp(240px, 28vw, 300px);
    background: rgba(30, 39, 47, 0.58);
    border-radius: var(--radius-soft);
    border: 1px solid rgba(117, 165, 255, 0.16);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spark-leaderboard-rank {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(117, 165, 255, 0.18);
    font-family: 'Sora', sans-serif;
}

.spark-voices {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.spark-voice-grid {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.spark-voice-card {
    flex: 0 0 auto;
    width: clamp(260px, 32vw, 320px);
    border-radius: var(--radius-soft);
    padding: 1.8rem;
    background: rgba(12, 66, 95, 0.35);
    border: 1px solid rgba(117, 165, 255, 0.18);
    position: relative;
}

.spark-voice-quote {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.spark-voice-user {
    display: flex;
    flex-direction: column;
    margin-top: 1.2rem;
    gap: 0.3rem;
    color: var(--hokitika-sand);
    font-weight: 600;
}

.spark-faq {
    padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.spark-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.spark-faq-item {
    border-radius: var(--radius-curve);
    border: 1px solid rgba(117, 165, 255, 0.18);
    background: rgba(30, 39, 47, 0.6);
    overflow: hidden;
}

.spark-faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    color: var(--hokitika-sand);
    padding: 1.1rem 1.6rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-align: left;
}

.spark-faq-content {
    padding: 0 1.6rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
}

.spark-faq-item.is-open .spark-faq-content {
    display: block;
}

.spark-faq-icon {
    transition: transform var(--transition-core);
}

.spark-faq-item.is-open .spark-faq-icon {
    transform: rotate(45deg);
}

.spark-disclaimer {
    padding: 3rem 0;
    background: linear-gradient(120deg, rgba(12, 66, 95, 0.78), rgba(208, 75, 98, 0.38));
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.spark-disclaimer__panel {
    border-radius: var(--radius-soft);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: clamp(2rem, 4vw, 2.8rem);
    background: rgba(30, 39, 47, 0.85);
    box-shadow: 0 24px 52px rgba(12, 66, 95, 0.38);
}

.spark-disclaimer__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.spark-disclaimer__tag {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.spark-footer {
    background: rgba(8, 18, 24, 0.88);
    padding: clamp(2.4rem, 4vw, 3.4rem) 0;
    border-top: 1px solid rgba(117, 165, 255, 0.12);
}

.spark-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.spark-footer__title {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.9rem;
    color: var(--hokitika-sand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spark-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.spark-footer__link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spark-footer__compliance {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
}

.spark-compliance-logo {
    height: 35px !important;
    width: auto !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 9px;
    border: 1px solid rgba(117, 165, 255, 0.25);
    transition: transform var(--transition-core), box-shadow var(--transition-core);
}

.spark-compliance-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 18px rgba(12, 66, 95, 0.28);
    border-color: var(--lupin-sky);
}

.spark-footer__legal {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(117, 165, 255, 0.16);
    padding-top: 1.6rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modals & overlays */
.spark-gate,
.spark-denied {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 24, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 1.5rem;
}

.spark-gate.is-active,
.spark-denied.is-active {
    display: flex;
}

.spark-gate__card {
    max-width: 420px;
    width: 100%;
    border-radius: var(--radius-soft);
    background: linear-gradient(140deg, rgba(12, 66, 95, 0.92), rgba(30, 39, 47, 0.95));
    border: 1px solid rgba(117, 165, 255, 0.24);
    padding: 2.4rem 2.2rem;
    text-align: center;
    box-shadow: 0 28px 66px rgba(0, 0, 0, 0.4);
}

.spark-cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    max-width: 340px;
    z-index: 1100;
    border-radius: 20px;
    border: 1px solid rgba(117, 165, 255, 0.25);
    padding: 1.6rem;
    background: linear-gradient(135deg, rgba(12, 66, 95, 0.88), rgba(30, 39, 47, 0.95));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
    display: none;
}

.spark-cookie-banner.is-visible {
    display: block;
}

.spark-cookie-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Blog & articles */
.spark-breadcrumbs {
    display: flex;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1rem 0 2rem;
}

.spark-breadcrumbs span {
    color: var(--hokitika-sand);
}

.spark-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 2.2rem;
}

.spark-blog-card {
    padding: 1.8rem;
    border-radius: var(--radius-soft);
    background: rgba(30, 39, 47, 0.6);
    border: 1px solid rgba(117, 165, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 16px 34px rgba(12, 66, 95, 0.28);
}

.spark-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spark-article {
    background: rgba(30, 39, 47, 0.62);
    border-radius: var(--radius-soft);
    border: 1px solid rgba(117, 165, 255, 0.22);
    padding: clamp(2rem, 4vw, 3.2rem);
    box-shadow: 0 28px 64px rgba(12, 66, 95, 0.32);
}

.spark-article h1,
.spark-article h2,
.spark-article h3 {
    font-family: 'Sora', sans-serif;
    color: var(--hokitika-sand);
}

.spark-article p {
    color: var(--text-muted);
    margin-bottom: 1.3rem;
}

.spark-article-list {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0;
    display: grid;
    gap: 0.9rem;
}

.spark-article-list li {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-curve);
    background: rgba(12, 66, 95, 0.32);
    border: 1px solid rgba(117, 165, 255, 0.14);
}

.spark-guide-grid,
.spark-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
    margin-top: 2rem;
}

.spark-guide-card,
.spark-review-card {
    padding: 1.6rem;
    border-radius: var(--radius-soft);
    background: rgba(30, 39, 47, 0.6);
    border: 1px solid rgba(117, 165, 255, 0.18);
    box-shadow: 0 18px 40px rgba(12, 66, 95, 0.3);
}

.spark-review-card strong {
    display: block;
    margin-bottom: 0.6rem;
}

.spark-form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.spark-form-tab {
    padding: 0.65rem 1.2rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(12, 66, 95, 0.3);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition-core), color var(--transition-core);
}

.spark-form-tab.is-selected {
    border-color: rgba(117, 165, 255, 0.45);
    color: var(--hokitika-sand);
}

.spark-form-panel {
    display: none;
}

.spark-form-panel.is-selected {
    display: block;
}

.spark-fieldset {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.spark-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--hokitika-sand);
}

.spark-input,
.spark-textarea,
.spark-select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(117, 165, 255, 0.22);
    background: rgba(12, 66, 95, 0.32);
    color: var(--hokitika-sand);
    font-size: 1rem;
    transition: border-color var(--transition-core), box-shadow var(--transition-core);
}

.spark-input:focus,
.spark-textarea:focus,
.spark-select:focus {
    border-color: var(--lupin-sky);
    box-shadow: 0 0 0 3px rgba(117, 165, 255, 0.2);
    outline: none;
}

.spark-textarea {
    min-height: 140px;
    resize: vertical;
}

.spark-alert {
    border-radius: 14px;
    padding: 1rem 1.2rem;
    background: rgba(39, 195, 153, 0.15);
    border: 1px solid rgba(39, 195, 153, 0.35);
    color: var(--success-surge);
    margin-top: 1rem;
}

.spark-alert--danger {
    background: rgba(240, 85, 85, 0.16);
    border-color: rgba(240, 85, 85, 0.32);
    color: #ff9797;
}

.spark-info-banner {
    border-radius: var(--radius-curve);
    padding: 1.2rem 1.4rem;
    margin: 2rem 0;
    background: rgba(117, 165, 255, 0.12);
    border: 1px solid rgba(117, 165, 255, 0.22);
    color: var(--text-muted);
}

.spark-badge-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.spark-badge-row span {
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(12, 66, 95, 0.3);
    border: 1px solid rgba(117, 165, 255, 0.22);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.spark-card-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(117, 165, 255, 0), rgba(117, 165, 255, 0.32), rgba(117, 165, 255, 0));
    margin: 1.2rem 0;
}

.spark-meta-grid {
    display: grid;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spark-meta-grid span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* State helpers */
.is-hidden {
    display: none !important;
}

.is-blur {
    filter: blur(4px);
}

/* Media queries */
@media (max-width: 1024px) {
    .spark-nav__menu {
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .spark-nav__toggle {
        display: flex;
    }

    .spark-nav__menu {
        position: fixed;
        top: calc(var(--header-height-mobile) - 1px);
        right: 0;
        left: 0;
        flex-direction: column;
        background: rgba(8, 18, 24, 0.96);
        padding: 2.4rem 2rem;
        border-bottom: 1px solid rgba(117, 165, 255, 0.18);
        gap: 1.4rem;
        transform: translateY(-120%);
        transition: transform var(--transition-core);
    }

    .spark-nav__menu.is-open {
        transform: translateY(0);
    }

    .spark-header__inner {
        height: var(--header-height-mobile);
    }
}

@media (max-width: 768px) {
    .spark-game-row,
    .spark-feature-board,
    .spark-voice-grid,
    .spark-leaderboard-grid {
        flex-direction: column;
        align-items: center;
    }

    .spark-cookie-banner {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }

    .spark-form-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .spark-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    :root {
        --shell-width: 100%;
    }

    .spark-shell {
        width: 90%;
    }

    .spark-badge {
        width: 100%;
        justify-content: center;
    }

    .spark-gate__card {
        padding: 2rem 1.4rem;
    }
}

@keyframes spark-mesh {
    0% {
        background-position: 30% 20%, 80% 15%, 25% 80%;
    }
    50% {
        background-position: 60% 40%, 70% 25%, 40% 70%;
    }
    100% {
        background-position: 30% 20%, 80% 15%, 25% 80%;
    }
}

