/*
 * Insaini Games theme. Design: the approved insaini.com mockup (dusk street, neon trim,
 * amber doorways, asphalt). Tokens first; then layout, components, blocks, pages.
 */
:root {
    --bg-sky-top:    #2a1b4e;
    --bg-sky-bottom: #4a2a78;
    --neon-cyan:     #3ef3ff;
    --neon-magenta:  #ff4fd8;
    --magenta-soft:  #ff8fe6;
    --amber:         #ffb347;
    --amber-soft:    #ffc879;
    --asphalt:       #1b1630;
    --asphalt-2:     #241c43;
    --asphalt-3:     #2f2556;
    --night:         #140f26;
    --text:          #f3eefc;
    --text-2:        #e4dcf5;
    --text-muted:    #b9a9d6;
    --line:          rgba(185, 169, 214, .18);
    --display: "Big Shoulders Display", Impact, sans-serif;
    --sans:    "Inter", system-ui, -apple-system, sans-serif;
    --maxw:    1240px;
    --radius:  18px;

    /* Names the shared blog stylesheet (indinuity-blog.css) reads. */
    --cyan:       var(--neon-cyan);
    --cyan-deep:  #22c7d4;
    --navy:       var(--asphalt);
    --navy-2:     var(--asphalt-2);
    --navy-3:     var(--asphalt-3);
    --line-dark:  var(--line);
    --text-dim:   var(--text-muted);
    --text-faint: #8f80ad;
    --serif:      var(--display);
    --mono:       ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--asphalt); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--neon-cyan); }
a:hover { color: var(--neon-magenta); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 72px; padding-bottom: 24px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }

/* Neon lettering */
.neon-c, .neon-m { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.neon-c { color: rgba(62, 243, 255, .12); -webkit-text-stroke: 2px var(--neon-cyan); text-shadow: 0 0 6px rgba(62, 243, 255, .9), 0 0 22px rgba(62, 243, 255, .6), 0 0 48px rgba(62, 243, 255, .35); }
.neon-m { color: rgba(255, 79, 216, .12); -webkit-text-stroke: 2px #ff6ee0; text-shadow: 0 0 6px rgba(255, 79, 216, .9), 0 0 22px rgba(255, 79, 216, .6), 0 0 48px rgba(255, 79, 216, .35); }
@supports not (-webkit-text-stroke: 2px red) { .neon-c { color: var(--neon-cyan); } .neon-m { color: var(--neon-magenta); } }

/* Buttons, badges, links */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0; transition: box-shadow .2s; }
.btn-primary { background: var(--neon-cyan); color: var(--asphalt); font-weight: 700; }
.btn-primary:hover { color: var(--asphalt); box-shadow: 0 0 24px rgba(62, 243, 255, .7); }
.btn-ghost { border: 2px solid var(--neon-magenta); color: var(--text); background: transparent; }
.btn-ghost:hover { color: var(--text); box-shadow: 0 0 20px rgba(255, 79, 216, .6); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--amber); background: rgba(255, 179, 71, .14); color: var(--amber-soft); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.badge--small { font-size: 12px; padding: 5px 12px; background: none; }
.badge-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--neon-cyan); text-decoration: none; }
.section-title { margin: 0 0 24px; font: 800 clamp(36px, 5vw, 56px)/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }

/* Nav */
nav.top { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(27, 22, 48, .85); backdrop-filter: blur(6px); }
.site-home nav.top { position: absolute; left: 0; right: 0; background: linear-gradient(180deg, rgba(27, 22, 48, .7), transparent); border-bottom: 0; backdrop-filter: none; }
nav.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
nav.top .logo { display: flex; align-items: center; text-decoration: none; }

/* Logo lockup: the horizontal lockup artwork (assets/themes/insaini/brand/lockup-horizontal.svg) */
.logo-lockup { display: block; height: 58px; width: auto; }
.logo-lockup--footer { height: 54px; }
nav.top .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; }
nav.top .nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 2px; }
nav.top .nav-links a:hover, nav.top .nav-links a[aria-current] { color: var(--neon-cyan); text-shadow: 0 0 12px rgba(62, 243, 255, .7); }
nav.top .icon-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(62, 243, 255, .6); color: var(--neon-cyan) !important; padding: 0 !important; }

/* Hero block */
.hero { position: relative; min-height: 720px; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(180deg, var(--bg-sky-top), var(--asphalt)); }
.hero--compact { min-height: 0; padding-top: 56px; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 22, 48, .55) 0%, rgba(27, 22, 48, 0) 22%, rgba(27, 22, 48, 0) 45%, rgba(27, 22, 48, .88) 80%, var(--asphalt) 100%); }
.hero--compact .hero-art, .hero--compact .hero-shade { display: none; }
.hero-copy { position: relative; width: 100%; padding-top: 140px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.site-page .hero:not(.hero--compact) .hero-copy { padding-top: 96px; }
.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; }
.hero--art-title { min-height: 0; aspect-ratio: 16 / 9; max-height: 860px; }
.hero--art-title .hero-art { object-position: center top; }
.hero--art-title .hero-shade { background: linear-gradient(180deg, rgba(27, 22, 48, 0) 55%, rgba(27, 22, 48, .85) 88%, var(--asphalt) 100%); }
.hero--compact .hero-copy { padding-top: 0; padding-bottom: 24px; }
.hero-title { margin: 0; font-size: clamp(52px, 9vw, 128px); line-height: .92; }
.hero--compact .hero-title { font-size: clamp(44px, 6vw, 84px); }
.hero-title span { display: block; }
.hero--compact .hero-title span { display: inline; }
.hero-lead { margin: 0; max-width: 620px; font-size: 20px; line-height: 1.5; color: var(--text-2); }

/* Intro band (studio line) */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--asphalt-2); }
.band-inner { padding-top: 36px; padding-bottom: 36px; font-size: 21px; }
.band p { margin: 0; max-width: 820px; }

/* Game card */
.game-card { display: flex; flex-wrap: wrap; border-radius: 20px; overflow: hidden; background: var(--asphalt-2); border: 1px solid rgba(62, 243, 255, .28); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); color: inherit; text-decoration: none; }
.game-card:hover { color: inherit; }
.game-card:hover h3 { color: var(--neon-cyan); }
.game-card-art { flex: 1 1 560px; min-width: 0; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-card-body { flex: 1 1 340px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.game-card-body h3 { margin: 0; font: 800 42px/1 var(--display); text-transform: uppercase; transition: color .2s; }
.game-card-body p { margin: 0; color: #cfc2e8; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; background: var(--asphalt-2); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.news-card:hover { border-color: rgba(62, 243, 255, .5); color: inherit; }
.news-card h3 { margin: 0; font-size: 21px; }
.news-card p { margin: 0; }
.news-meta { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta-soft); }

/* Signup and forms */
.signup { margin-top: 72px; background: linear-gradient(180deg, var(--bg-sky-top), var(--bg-sky-bottom)); border-top: 1px solid rgba(255, 79, 216, .35); }
.signup-inner { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.signup-copy { flex: 1 1 420px; min-width: 0; }
.signup-title { margin: 0 0 14px; font: 900 clamp(44px, 6vw, 60px)/.95 var(--display); text-transform: uppercase; }
.signup-copy p { margin: 0; max-width: 520px; font-size: 18px; color: var(--text-2); }
.signup-form, .contact-form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: rgba(27, 22, 48, .7); border: 1px solid rgba(62, 243, 255, .35); }
.signup-form label, .contact-form label { font-size: 14px; font-weight: 600; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
input[type=email], input[type=text], textarea { flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 12px 18px; border-radius: 14px; border: 1.5px solid rgba(185, 169, 214, .5); background: var(--asphalt); color: var(--text); font: 16px var(--sans); }
.signup-row input { border-radius: 999px; }
input:focus, textarea:focus { border-color: var(--neon-cyan); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; line-height: 1.5; color: #cfc2e8; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--neon-cyan); flex: none; }
.form-result { margin: 0; min-height: 1.4em; font-size: 14px; }
.form-result.ok { color: var(--neon-cyan); }
.form-result.err { color: #ff9ad0; }
.contact { margin-top: 24px; }
.contact-form { max-width: 640px; }

/* Contact popup (themes/insaini/_body_end.html.twig) and the About-page call to action */
.contact-cta { margin-top: 48px; padding: 32px; border-radius: var(--radius); background: var(--asphalt-2); border: 1px solid rgba(62, 243, 255, .28); }
.contact-cta .section-title { margin-bottom: 8px; }
.contact-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 5vw, 56px); }
.contact-modal[hidden] { display: none; }
.contact-overlay { position: absolute; inset: 0; background: rgba(12, 8, 26, .78); backdrop-filter: blur(4px); }
.contact-dialog { position: relative; width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; padding: 34px 32px 26px; border-radius: 18px; background: var(--asphalt-2); border: 1px solid rgba(62, 243, 255, .35); box-shadow: 0 0 0 1px rgba(255, 79, 216, .1), 0 30px 90px -20px rgba(0, 0, 0, .7), 0 0 60px rgba(62, 243, 255, .12); animation: contact-in .25s ease both; }
@keyframes contact-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.contact-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.contact-close:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.contact-title { margin: 0 0 6px; font: 900 40px/1 var(--display); text-transform: uppercase; }
.contact-title .neon-c { -webkit-text-stroke-width: 1.5px; }
.contact-sub { margin: 0 0 20px; font-size: 15px; color: var(--text-muted); }
.contact-modal-form { display: flex; flex-direction: column; gap: 12px; }
.contact-modal-form input, .contact-modal-form textarea { flex: none; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; font-size: 15px; background: var(--asphalt); }
.contact-modal-form textarea { min-height: 120px; resize: vertical; }
.contact-modal-form .btn { width: 100%; justify-content: center; }
.contact-legal { margin: 0; font-size: 12px; color: var(--text-muted); }
.contact-legal a { color: var(--text-muted); }
body.modal-open { overflow: hidden; }

/* Facts, media */
.facts { padding: 28px; border-radius: var(--radius); background: var(--asphalt-2); border: 1px solid var(--line); }
.facts-title { margin: 0 0 16px; font: 800 26px/1 var(--display); text-transform: uppercase; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; font-size: 15px; }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 600; }
.media-grid { margin-top: 48px; }
.media-grid-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.media-grid figure { margin: 0; }
.media-grid figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(62, 243, 255, .25); background: var(--asphalt-2); }
.shot:hover { box-shadow: 0 0 0 2px var(--neon-cyan), 0 0 30px rgba(62, 243, 255, .35); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Inner pages */
.page-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.page-main { flex: 999 1 560px; min-width: 0; }
.page-aside { flex: 1 1 300px; min-width: 0; }
.page-aside:empty { display: none; }
.page-main .cms-block-element > h2, .page-main h2 { font: 800 clamp(30px, 4vw, 44px)/1 var(--display); text-transform: uppercase; margin: 40px 0 16px; }
.page-main .cms-block-element:first-child > h2:first-child { margin-top: 0; }
.page-main p, .page-main li { color: #d8cdef; }
.page-main .game-card + .game-card { margin-top: 24px; }
.lead { font-size: 21px; color: var(--text) !important; }

/* Legal pages (themes/insaini/legal) */
main.legal { padding: 56px 0 80px; }
main.legal h1 { font: 900 clamp(40px, 6vw, 72px)/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
main.legal h2 { font: 800 28px/1.1 var(--display); text-transform: uppercase; margin: 40px 0 12px; }
main.legal p, main.legal li { color: #d8cdef; max-width: 820px; }

/* Footer */
body > footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--night); color: var(--text-muted); font-size: 14px; }
.footer-main { display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; padding-top: 48px; padding-bottom: 32px; }
.footer-brand .neon-c { font-size: 28px; letter-spacing: .08em; -webkit-text-stroke-width: 1.2px; }
.footer-brand p { margin: 10px 0 0; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-links h2 { margin: 0 0 8px; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--neon-cyan); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(185, 169, 214, .12); }
.footer-legal a { color: var(--text-muted); }

/* Blog (shared indinuity-blog.css, retinted) */
.blog-page .blog-hero { background: linear-gradient(180deg, var(--bg-sky-top), var(--asphalt)); }

/* Cookie notice (markup: _partials/_cookie_notice.html.twig) */
.cookie-notice { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 200%); z-index: 1100; max-width: 680px; width: calc(100% - 32px); display: flex; align-items: center; gap: 16px; background: var(--asphalt-2); border: 1px solid rgba(62, 243, 255, .35); border-radius: 14px; padding: 14px 18px; box-shadow: 0 20px 60px -15px rgba(0, 0, 0, .6); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.cookie-notice.visible { transform: translate(-50%, 0); opacity: 1; }
.cookie-notice p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.cookie-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.cookie-btn { font: 600 13px var(--sans); padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.cookie-accept { background: var(--neon-cyan); color: var(--asphalt); }
.cookie-decline { background: transparent; color: var(--text-muted); border-color: var(--line); }
.cookie-decline:hover { color: var(--text); }
.grecaptcha-badge { display: none !important; }

@media (max-width: 720px) {
    body { font-size: 16px; }
    .hero { min-height: 0; }
    .hero-copy { padding-top: 48px; padding-bottom: 48px; }
    .site-home nav.top { position: relative; background: var(--asphalt); border-bottom: 1px solid var(--line); }
    nav.top .inner { gap: 6px 16px; }
    nav.top .nav-links { gap: 0 16px; }
    nav.top .icon-link { width: 40px; height: 40px; }
    .logo-lockup { height: 46px; }
    .hero--art-title { aspect-ratio: auto; }
    .hero--art-title .hero-art { position: relative; height: auto; aspect-ratio: 16 / 9; }
    .hero--art-title .hero-copy { padding-top: 16px; }
    .cookie-notice { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; }
    .cookie-btn { flex: 1; }
    .game-card-body { padding: 24px; }
    .signup-inner { padding-top: 56px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
