/* ==========================================================================
   Superheart.co — site styles (no build step)
   Visual language adapted from the Arigo template: dark canvas, Phudu display
   type, pill buttons, {serial} section markers. Accent colors come from
   /padmin → Branding and are injected as --accent / --accent-2.
   ========================================================================== */

:root {
    --accent: #F43B86;
    --btn-gradient: linear-gradient(100deg, #E8243C 0%, #F43B86 50%, #8B3DFF 100%);
    --accent-2: #19C3D6;
    --bg: #03070D;
    --bg-2: #08111C;
    --bg-3: #0E1A28;
    --text: #fff;
    --muted: rgba(255, 255, 255, .66);
    --line: rgba(255, 255, 255, .14);
    --radius: 20px;
    --font-display: "Phudu", system-ui, sans-serif;
    --font-body: "Instrument Sans", system-ui, sans-serif;
    --container: 1320px;
    --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.05; font-weight: 700; }
p { margin: 0; }
button { font: inherit; }
[x-cloak] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; margin-top: 18px; max-width: 520px; }
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); padding: 8px 16px; border-radius: 99px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- display type ---------- */
.display {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -.01em;
    max-width: 1080px;
}
.display.center { margin: 0 auto; }

/* ---------- serial row ({01} ——— • LABEL) ---------- */
.serial-row {
    display: flex; align-items: center; gap: 16px;
    color: var(--muted); font-weight: 500; font-size: 1rem;
    margin-bottom: 36px; text-transform: uppercase;
}
.serial-row .line { flex: 1; height: 1px; background: var(--line); }
.serial-row .dot-label { color: #fff; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.serial-row .dot-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--btn-gradient); background-size: 160% 100%; background-position: 0% 0; color: #fff;
    border: 0; border-radius: 100px; cursor: pointer;
    padding: 8px 8px 8px 24px;
    font: 600 16px/1 var(--font-display); letter-spacing: .5px; text-transform: uppercase;
    white-space: nowrap;
    transition: background-position .5s, transform .3s, box-shadow .3s;
}
.btn-icon {
    width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
    background: #fff; color: #02090F;
    display: grid; place-items: center; overflow: hidden;
}
.btn-icon svg { transition: transform .45s cubic-bezier(.7, 0, .3, 1); }
.btn:hover .btn-icon svg { animation: arrow-loop .5s forwards; }
@keyframes arrow-loop { 49% { transform: translateX(120%); } 50% { transform: translateX(-120%); } 100% { transform: none; } }
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 30px -10px rgba(244, 59, 134, .6); }
.btn-glass { background: rgba(255, 255, 255, .12); backdrop-filter: blur(12px); }
.btn-glass:hover { background: var(--btn-gradient); }
.btn .when-busy, .htmx-request .when-idle, .btn.htmx-request .when-idle { display: none; }
.htmx-request .when-busy, .btn.htmx-request .when-busy { display: inline; }
.btn.htmx-request { opacity: .7; pointer-events: none; }

.pill { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 99px; background: rgba(255,255,255,.12); font: 600 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .5px; }
.pill-outline { background: transparent; border: 1px solid var(--line); }

/* ---------- reveal animation (Alpine x-reveal directive) ---------- */
[x-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0s); }
[x-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [x-reveal] { opacity: 1; transform: none; transition: none; }
    .gradient-bg, .glow-layer::before, .hero-bg::before, .showcase-track, .spin-badge svg, .hero-cover { animation: none !important; }
    .sparkle-canvas { display: none; }
}
/* No JS? Show everything. */
.no-js [x-reveal] { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    height: var(--header-h); display: flex; align-items: center;
    transition: background .35s, height .35s, border-color .35s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(3, 7, 13, .82); backdrop-filter: blur(14px); height: 72px; border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo img { height: 46px; width: auto; transition: height .35s; }
.is-scrolled .header-logo img { height: 40px; }
.main-nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font: 600 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .6px; position: relative; padding: 8px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .3s; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 28px; }
.header-email { color: var(--muted); font-size: 15px; }
.header-email:hover { color: #fff; }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer; font: 600 15px/1 var(--font-display); text-transform: uppercase; }
.menu-toggle .bars { display: grid; gap: 5px; }
.menu-toggle .bars i { display: block; width: 26px; height: 2px; background: currentColor; transition: width .3s; }
.menu-toggle .bars i:nth-child(2) { width: 18px; justify-self: end; }
.menu-toggle:hover .bars i { width: 26px; }

@media (max-width: 991px) {
    .main-nav, .header-email { display: none; }
}

/* ---------- offcanvas ---------- */
.offcanvas-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; backdrop-filter: blur(4px); }
.offcanvas {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
    width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line);
    padding: 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 40px;
}
.oc-enter { transition: transform .45s cubic-bezier(.7, 0, .3, 1); }
.oc-from { transform: translateX(100%); }
.offcanvas-top { display: flex; justify-content: space-between; align-items: center; }
.offcanvas-top img { height: 40px; width: auto; }
.oc-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--btn-gradient); color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.offcanvas nav ul { list-style: none; margin: 0; padding: 0; }
.offcanvas nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 clamp(28px, 6vw, 38px)/1.1 var(--font-display); text-transform: uppercase; transition: color .3s, padding .3s; }
.offcanvas nav a:hover { color: var(--accent); padding-left: 10px; }
.offcanvas nav li { animation: oc-item .6s calc(var(--i) * 60ms + 150ms) both; }
@keyframes oc-item { from { opacity: 0; transform: translateX(40px); } }
.oc-contact h4 { font-size: 22px; margin-bottom: 12px; }
.oc-contact a { color: var(--accent); }
.oc-contact p { color: var(--muted); margin: 6px 0 20px; }

/* ---------- social ---------- */
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.social-icon:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 70px) 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #020108; }
.hero-bg::before {
    content: ""; position: absolute; inset: -6%; z-index: -2;
    background: url("../img/bg/hero-bg-one.jpg") center / cover no-repeat;
    animation: hero-drift 26s ease-in-out infinite alternate;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
@keyframes hero-drift {
    0% { transform: scale(1) translate(0, 0); filter: hue-rotate(0deg); }
    50% { transform: scale(1.08) translate(-2%, 2%); filter: hue-rotate(-12deg); }
    100% { transform: scale(1.04) translate(2%, -1%); filter: hue-rotate(8deg); }
}
/* Admin-selectable image (Homepage → Hero background blend), blended over the glow */
.hero-cover {
    position: absolute; inset: 0; z-index: -2;
    background: center 40% / cover no-repeat;
    mix-blend-mode: soft-light; opacity: .85;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    animation: cover-breathe 20s ease-in-out infinite alternate;
}
@keyframes cover-breathe { from { scale: 1; } to { scale: 1.06; } }
.nebula { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; mix-blend-mode: screen; }
.nebula.is-live { opacity: 1; }
.hero-inner { position: relative; z-index: 1; }
.hero-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-eyebrow { font: 500 clamp(20px, 2.4vw, 32px)/1.2 var(--font-display); display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.emoji-pill { display: inline-flex; gap: 6px; padding: 4px 14px; border-radius: 99px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); font-size: .85em; line-height: 1.3; }
.hero-title { font-size: clamp(3.2rem, 11.5vw, 10.5rem); line-height: .92; letter-spacing: -.02em; }
.hero-title .line { display: flex; align-items: center; gap: .15em; }
.hero-title .line:nth-child(2) { --reveal-delay: .12s; }
.spin-badge { position: relative; width: .9em; height: .9em; flex: none; }
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-badge text { font: 700 10.5px var(--font-display); fill: #fff; }
.spin-badge img { position: absolute; inset: 24%; width: 52%; height: 52%; border-radius: 50%; animation: beat 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-cta { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-cta p { max-width: 430px; color: var(--muted); }

.showcase { position: relative; z-index: 1; overflow: hidden; padding: 0; margin: 70px calc(50% - 50vw) 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.showcase-track { display: flex; gap: 24px; width: max-content; animation: marquee 40s linear infinite; }
.showcase-slide { position: relative; width: clamp(280px, 30vw, 460px); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; flex: none; margin: 0; }
.showcase-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.showcase-slide:hover img { transform: scale(1.05); }
.showcase-slide span { position: absolute; left: 18px; bottom: 18px; padding: 10px 18px; border-radius: 99px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); font: 600 15px/1 var(--font-display); text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }

/* ---------- about / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--line); }
.stat { padding: 40px 24px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat p { color: var(--muted); margin-bottom: 6px; }
.stat-value { font: 700 clamp(48px, 6vw, 88px)/1 var(--font-display); }
.stat-value span { color: #fff; }
.stat-value { color: var(--accent); }
@media (max-width: 767px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- games (sticky stack) ---------- */
.game-stack { display: grid; gap: 28px; }
.game-row {
    position: sticky; top: var(--top);
    display: flex; align-items: center; justify-content: center; gap: 24px;
    background: var(--bg); padding: 12px 0;
}
.game-card {
    flex: 1; max-width: 1240px;
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 0;
    background: var(--bg-3); border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
    box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--game) 55%, transparent);
}
.game-thumb { display: block; overflow: hidden; min-height: clamp(320px, 38vw, 540px); background: #041224; }
.game-thumb img, .game-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.game-card:hover .game-thumb img, .game-card:hover .game-thumb video { transform: scale(1.04); }
.game-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.game-body h3 { font-size: clamp(28px, 3vw, 42px); text-transform: uppercase; margin-bottom: 10px; }
.meta { margin: 0; display: grid; gap: 8px; }
.meta div { display: flex; gap: 8px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 700; text-transform: uppercase; }
.game-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.game-actions .num { font: 700 34px/1 var(--font-display); color: var(--game); }
@media (max-width: 991px) {
    .game-card { grid-template-columns: 1fr; }
    .game-thumb { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- quote band (top of pillars): photo fades in/out, liquid-glass card ---------- */
.quote-band {
    position: relative; min-height: 76vh; display: grid; place-items: center; justify-items: end;
    padding: 120px 24px; margin: calc(-1 * clamp(80px, 10vw, 130px)) 0 clamp(60px, 8vw, 100px);
    isolation: isolate;
}
.quote-band::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: url("../img/playgames-bg.jpg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.quote-card {
    position: relative; max-width: 560px; margin-right: min(8vw, 120px); padding: 26px 28px 22px;
    border-radius: 28px; overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 45%, rgba(244,59,134,.10));
    backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 40px rgba(255,255,255,.05), 0 30px 70px -20px rgba(0,0,0,.6);
}
.quote-card::before {
    content: ""; position: absolute; inset: -40% -20% auto; height: 80%; pointer-events: none;
    background: radial-gradient(60% 60% at 30% 50%, rgba(255,255,255,.28), transparent 70%);
    transform: rotate(-8deg); opacity: 0; transition: opacity 1.2s .3s;
}
.quote-card.is-in::before { opacity: 1; animation: glass-sheen 9s ease-in-out infinite alternate; }
@keyframes glass-sheen { to { transform: translateX(25%) rotate(-4deg); } }
.quote-card > p { position: relative; color: #fff; font: 500 19px/1.55 var(--font-body); margin-bottom: 18px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.quote-author { position: relative; display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.quote-author img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.quote-author strong { display: block; font: 700 20px/1.1 var(--font-display); text-transform: uppercase; }
.quote-author span { color: rgba(255,255,255,.72); font-size: 14px; }
@media (max-width: 767px) { .quote-band { justify-items: center; } .quote-card { margin: 0; } }

/* ---------- pillars ---------- */
.pillars .display { margin-bottom: 60px; }
.pillar-list { display: grid; gap: 28px; }
.pillar { display: flex; align-items: center; gap: 28px; }
.pillar h3 { font-size: clamp(56px, 10vw, 150px); text-transform: uppercase; line-height: .9; }
.pillar h4 { font: 600 18px/1.3 var(--font-display); text-transform: uppercase; color: var(--muted); }
.pillar-thumb { width: clamp(120px, 16vw, 220px); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; transform: rotate(-4deg); transition: transform .5s; }
.pillar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pillar:hover .pillar-thumb { transform: rotate(3deg) scale(1.05); }
.pillar:hover h3 { color: var(--accent); }
.pillar h3 { transition: color .4s; }
.pillar-0 { justify-content: center; }
.pillar-1 { flex-direction: row-reverse; justify-content: flex-start; }
.pillar-2 { justify-content: flex-end; }
.pillar-3 { flex-direction: row-reverse; justify-content: flex-end; }
@media (max-width: 767px) { .pillar { justify-content: flex-start !important; flex-direction: row !important; flex-wrap: wrap; } .pillar-thumb { display: none; } }

/* ---------- news ---------- */
.title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid-home { grid-template-columns: 2fr 1fr 1fr; }
.post-card { background: var(--bg-3); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-body h3 { font-size: 24px; text-transform: uppercase; flex: 1; }
.post-body h3 a:hover { color: var(--accent); }
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.tag { padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: #fff; font-size: 13px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-display); text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.post-card-big { position: relative; }
.post-card-big .post-thumb { aspect-ratio: auto; height: 100%; min-height: 440px; }
.post-card-big .post-body { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(3,7,13,.72); backdrop-filter: blur(12px); border-radius: 16px; }
.post-card-big h3 { font-size: clamp(24px, 2.6vw, 34px); }
.load-more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 24px; }
@media (max-width: 991px) {
    .news-grid, .news-grid-home { grid-template-columns: 1fr 1fr; }
    .post-card-big { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .news-grid, .news-grid-home { grid-template-columns: 1fr; } .post-card-big .post-thumb { min-height: 360px; } }

/* ---------- contact ---------- */
.contact { background: #03070D !important; overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; background: url("../img/bg/together-bg.jpg") right center / cover no-repeat; opacity: .5; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #03070D 30%, rgba(3,7,13,.75) 60%, rgba(3,7,13,.35)), linear-gradient(#03070D, transparent 25%, transparent 75%, #03070D); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.big-mail { display: inline-block; margin-top: 30px; font: 700 clamp(22px, 2.6vw, 34px)/1.1 var(--font-display); color: var(--accent); border-bottom: 2px solid currentColor; }
.contact-form { background: var(--bg-3); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font: 600 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; background: rgba(255,255,255,.05); color: #fff;
    border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit;
    transition: border-color .3s, background .3s;
}
.field select option { background: var(--bg-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-2); background: rgba(255,255,255,.08); }
.field-error { color: #FF8A78; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }
.contact-success { text-align: center; justify-items: center; padding: 60px 30px; }
.contact-success img { animation: beat 1.6s infinite; border-radius: 16px; }
.contact-success h3 { font-size: 36px; text-transform: uppercase; }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + 90px) 0 90px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-title { font-size: clamp(2.6rem, 7vw, 6rem); text-transform: uppercase; letter-spacing: -.01em; }
.page-sub { color: var(--muted); font-size: 1.2rem; margin-top: 16px; max-width: 640px; --reveal-delay: .12s; }
.center .page-sub { margin-left: auto; margin-right: auto; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .6px; }
.crumbs a:hover { color: #fff; }
.draft-note { background: #FFB020; color: #111; padding: 10px 16px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 40px; }
.article-foot { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.error-hero { min-height: 100vh; display: grid; place-items: center; }
.error-code { font: 700 clamp(100px, 22vw, 240px)/1 var(--font-display); display: flex; align-items: center; justify-content: center; gap: .05em; }
.error-code img { width: .75em; border-radius: .15em; animation: beat 1.6s infinite; }
.error-hero .btn { margin-top: 32px; }

.prose { font-size: 1.1rem; color: rgba(255,255,255,.86); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: #fff; text-transform: uppercase; margin-top: 1.8em; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 16px; height: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-style: italic; color: #fff; }
.prose code { background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose pre { background: var(--bg-3); padding: 18px; border-radius: 12px; overflow-x: auto; }

/* ---------- game detail ---------- */
.game-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + 70px) 0 90px;
}
.game-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.game-icon { border-radius: 22px; margin-bottom: 24px; box-shadow: 0 20px 50px -10px color-mix(in srgb, var(--game) 60%, transparent); }
.game-hero .page-title { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.game-hero-art img, .game-hero-art video { width: 100%; border-radius: 28px; box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--game) 70%, transparent); transform: rotate(2deg); }
.game-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.feature-box { position: sticky; top: 100px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; gap: 20px; }
.feature-box h3 { font-size: 28px; text-transform: uppercase; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { padding-left: 32px; position: relative; }
.feature-list li::before { content: "♥"; position: absolute; left: 0; color: var(--accent); }
.more-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.more-game { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; background: var(--bg-3); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: border-color .3s; }
.more-game:hover { border-color: var(--game); }
.more-game img { height: 100%; object-fit: cover; }
.more-game h3 { text-transform: uppercase; font-size: 24px; margin-bottom: 8px; }
.more-game > div { padding: 20px 20px 20px 0; }
@media (max-width: 991px) {
    .game-hero-grid, .game-detail-grid { grid-template-columns: 1fr; }
    .feature-box { position: static; }
}

/* ---------- footer ---------- */
.site-footer { background: #000 url("../img/bg/footer-bg1.jpg") left top / cover no-repeat; padding-top: 110px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding-bottom: 70px; }
.footer-logo img { height: clamp(56px, 7vw, 84px); width: auto; }
.footer-tagline { font-size: clamp(2rem, 4.4vw, 3.8rem); text-transform: uppercase; margin-top: 26px; }
.footer-about { color: var(--muted); max-width: 520px; margin: 24px 0 40px; }
.footer-info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.footer-info .label { color: var(--muted); text-transform: uppercase; font-size: 14px; margin-bottom: 8px; letter-spacing: .6px; }
.footer-info .value { font: 600 20px/1.35 var(--font-display); }
.footer-info a:hover { color: var(--accent); }
.footer-right h3 { font-size: 28px; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 40px; }
.footer-links a { display: inline-block; padding: 7px 0; color: var(--muted); transition: color .3s, transform .3s; }
.footer-links a:hover { color: #fff; transform: translateX(6px); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 15px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal { display: flex; gap: 10px; }
.legal a:hover { color: #fff; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .footer-info { grid-template-columns: 1fr; } .hero-cta { gap: 20px; } }

/* ---------- animated gradient backgrounds ---------- */
.gradient-bg {
    background: linear-gradient(125deg, #0A0620, #2A0B45, #7A1452, #0E2F5E, #0A3F4F, #1A0A33, #0A0620);
    background-size: 400% 400%;
    animation: gradient-shift 22s ease infinite;
}
.gradient-bg::before, .glow-layer::before {
    content: ""; position: absolute; inset: -20%; pointer-events: none;
    background:
        radial-gradient(40% 35% at 20% 30%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
        radial-gradient(35% 30% at 80% 20%, rgba(255, 110, 199, .35), transparent 70%),
        radial-gradient(40% 40% at 70% 80%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%);
    filter: blur(20px); animation: glow-drift 18s ease-in-out infinite alternate;
}
.gradient-bg::after, .glow-layer::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.gradient-bg > *, .glow-layer > * { position: relative; z-index: 1; }
.glow-layer { background: #04030C url("../img/bg/breadcrumb-bg.jpg") center / cover no-repeat; }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes glow-drift { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(4%, -3%) rotate(8deg); } 100% { transform: translate(-4%, 3%) rotate(-6deg); } }

/* ---------- gold sparkle mouse trail ---------- */
.sparkle-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

/* ---------- about us + team ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: end; margin-bottom: 60px; }
.about-copy .lead { margin-top: 0; max-width: none; color: rgba(255,255,255,.8); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card { position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-3); }
.team-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s; filter: grayscale(.25); }
.team-card:hover img { transform: scale(1.06); filter: none; }
.team-info { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; border-radius: 20px; background: rgba(3,7,13,.7); backdrop-filter: blur(12px); }
.team-info h3 { font-size: 24px; text-transform: uppercase; }
.team-info span { color: var(--muted); font-size: 15px; }
.team-link { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; background: var(--btn-gradient); display: grid; place-items: center; }
@media (max-width: 991px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- simple footer ---------- */
.site-footer { padding-top: 80px; }
.footer-simple { display: grid; justify-items: center; text-align: center; gap: 22px; padding-bottom: 50px; }
.footer-simple .footer-tagline { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.footer-simple .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0; }
.footer-simple .footer-links a { color: var(--muted); transition: color .3s; }
.footer-simple .footer-links a:hover { color: #fff; }
.footer-bottom a:hover { color: #fff; }

/* ---------- cookie notice ---------- */
.cookie-notice {
    position: fixed; right: 20px; bottom: 20px; z-index: 200;
    width: min(360px, calc(100% - 40px));
    display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center;
    padding: 18px 18px 16px; border-radius: 22px;
    background: rgba(14, 12, 30, .88); backdrop-filter: blur(16px);
    border: 1px solid rgba(244, 59, 134, .35);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .6), 0 0 0 4px rgba(244, 59, 134, .08);
}
.cookie-emoji { font-size: 40px; line-height: 1; grid-row: span 2; animation: cookie-wobble 2.4s ease-in-out infinite; }
@keyframes cookie-wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg) scale(1.06); } }
.cookie-notice p { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.85); }
.cookie-notice p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cookie-ok {
    justify-self: end; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border: 0; border-radius: 99px; cursor: pointer;
    background: var(--btn-gradient); background-size: 160% 100%; color: #fff;
    font: 700 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .5px;
    transition: background-position .4s, transform .2s;
}
.cookie-ok:hover { background-position: 100% 0; transform: translateY(-2px) scale(1.04); }
.cookie-in { transition: transform .5s cubic-bezier(.2, .9, .3, 1.2), opacity .4s; }
.cookie-from { transform: translateY(30px) scale(.95); opacity: 0; }

/* ---------- hero trailer ---------- */
.trailer-card {
    position: relative; width: clamp(260px, 30vw, 440px); aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
    border-radius: 24px; overflow: hidden; background: #000; color: #fff; --reveal-delay: .25s;
    box-shadow: 0 30px 80px -25px rgba(244, 59, 134, .6), 0 0 0 1px rgba(255,255,255,.15);
}
.trailer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s, filter .4s; filter: brightness(.8); }
.trailer-card:hover img { transform: scale(1.05); filter: brightness(1); }
.trailer-card .play {
    position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
    display: grid; place-items: center; background: var(--btn-gradient); padding-left: 4px;
    box-shadow: 0 0 0 0 rgba(244, 59, 134, .6); animation: play-pulse 2s infinite;
}
@keyframes play-pulse { 70% { box-shadow: 0 0 0 22px rgba(244, 59, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 59, 134, 0); } }
.trailer-label { position: absolute; left: 14px; bottom: 12px; padding: 8px 14px; border-radius: 99px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); font: 600 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .5px; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.lightbox-scrim { position: absolute; inset: 0; background: rgba(2, 1, 8, .88); backdrop-filter: blur(6px); }
.lightbox-box { position: relative; width: min(1200px, 100%); }
.lightbox-box video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; display: block; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--btn-gradient); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 767px) { .trailer-card { width: 100%; } }
.team-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
@media (min-width: 1100px) {
    .hero-head { flex-wrap: nowrap; }
    .hero-head > div:first-child { min-width: 0; }
    .hero-title { font-size: clamp(3.2rem, 9.6vw, 9.5rem); }
    .trailer-card { width: clamp(280px, 26vw, 400px); flex: none; }
}

/* ---------- pointer on everything clickable ---------- */
a, button, [role="button"], summary, select, label[for], input[type="checkbox"], input[type="submit"], .showcase-slide, .trailer-card { cursor: pointer; }
.showcase-slide { padding: 0; border: 0; background: none; display: block; }

/* ---------- screenshot gallery ---------- */
.gallery-img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 18px; display: block; background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.gallery-nav {
    position: absolute; top: 50%; translate: 0 -50%; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12); backdrop-filter: blur(10px); color: #fff; font-size: 34px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px;
    transition: background .3s, transform .2s;
}
.gallery-nav:hover { background: var(--btn-gradient); transform: scale(1.08); }
.gallery-nav.prev { left: -70px; } .gallery-nav.next { right: -70px; }
@media (max-width: 1340px) { .gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; } }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.gallery-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.35); transition: width .3s, background .3s; }
.gallery-dots button.on { width: 28px; background: var(--btn-gradient); }

/* ---------- hero demo button ---------- */
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-demo .btn-icon { font-size: 13px; padding-left: 2px; background: var(--btn-gradient); color: #fff; }

/* ---------- game card icon + store badges ---------- */
.game-title-row { display: flex; gap: 18px; align-items: flex-start; }
.game-card-icon { width: 72px; height: 72px; flex: none; border-radius: 18px; box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--game) 70%, transparent), 0 0 0 1px rgba(255,255,255,.12); }
.store-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
    border-radius: 11px; background: #000; border: 1px solid rgba(255,255,255,.3); color: #fff;
    transition: border-color .3s, transform .2s;
}
a.store-badge:hover { border-color: var(--accent); transform: translateY(-2px); }
.store-badge span { display: grid; line-height: 1.05; }
.store-badge small { font-size: 9.5px; letter-spacing: .3px; opacity: .8; }
.store-badge strong { font: 600 15px/1.1 var(--font-body); }
.store-badge.is-soon { opacity: .5; cursor: default; }

a, button, [role="button"], .btn, .store-badge[href], .showcase-slide, .trailer-card { cursor: pointer !important; }
.franchise-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: -12px 0 32px; color: var(--muted); }
.franchise-row strong { color: #fff; }
.status-bar { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 150; padding: 10px 18px; border-radius: 99px; background: #FFB020; color: #111; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; }
@media (max-width: 700px) { .status-bar { white-space: normal; width: calc(100% - 32px); text-align: center; } }

/* logged-in admin: logo links to /padmin with a badge */
.header-logo { position: relative; display: inline-block; }
.admin-badge {
    position: absolute; top: -8px; right: -14px; padding: 3px 8px; border-radius: 99px;
    background: var(--btn-gradient); color: #fff; font: 700 10px/1.2 var(--font-display);
    letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 4px 12px rgba(244, 59, 134, .5);
    transform: rotate(6deg); pointer-events: none;
}
.header-logo.is-admin:hover .admin-badge { transform: rotate(0) scale(1.08); }
.sparkle-canvas[hidden] { display: none !important; }

/* ?fx=off: no WebGL, no trail, no CSS animation (diagnostics / low-power) */
.fx-off *, .fx-off *::before, .fx-off *::after { animation: none !important; }
.fx-off .sparkle-canvas, .fx-off .nebula { display: none !important; }

/* ---------- header: black → midnight blue glass ---------- */
.site-header {
    background: linear-gradient(100deg, rgba(2, 3, 10, .82) 0%, rgba(6, 12, 34, .78) 45%, rgba(14, 26, 70, .72) 100%);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(120, 150, 255, .12);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}
.site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(244, 59, 134, .45) 30%, rgba(110, 140, 255, .5) 70%, transparent);
    opacity: .6;
}
.site-header.is-scrolled { background: linear-gradient(100deg, rgba(2, 3, 10, .92), rgba(8, 15, 42, .9) 45%, rgba(16, 28, 76, .86)); }

/* logo backlight on hover */
.header-logo::before {
    content: ""; position: absolute; inset: -60% -25%; z-index: -1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(244, 59, 134, .55), rgba(139, 61, 255, .25) 55%, transparent 75%);
    filter: blur(8px); opacity: 0; transform: scale(.7); transition: opacity .45s ease, transform .45s ease;
}
.header-logo img { transition: filter .45s ease, transform .45s ease, height .35s; }
.header-logo:hover::before, .header-logo:focus-visible::before { opacity: 1; transform: scale(1); }
.header-logo:hover img, .header-logo:focus-visible img { filter: drop-shadow(0 0 10px rgba(255, 120, 190, .75)) brightness(1.08); transform: scale(1.03); }

/* ---------- starfield + shooting streaks behind the page ---------- */
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.stars { position: absolute; left: 0; top: 0; border-radius: 50%; background: transparent; }
.stars.s1 { width: 1px; height: 1px; opacity: .55; animation: twinkle 7s ease-in-out infinite alternate; }
.stars.s2 { width: 1.5px; height: 1.5px; opacity: .7; animation: twinkle 9s ease-in-out -3s infinite alternate; }
.stars.s3 { width: 2px; height: 2px; opacity: .85; animation: twinkle 5s ease-in-out -1s infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .9; } }
.streak {
    position: absolute; left: var(--x); top: var(--y); width: 140px; height: 1.5px; border-radius: 2px; opacity: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(160, 190, 255, .4) 40%, transparent);
    transform: rotate(-32deg) translateX(0); transform-origin: left center;
    animation: shoot var(--d) linear var(--delay) infinite;
}
@keyframes shoot {
    0%, 92% { opacity: 0; transform: rotate(-32deg) translateX(0) scaleX(.3); }
    93% { opacity: 1; }
    100% { opacity: 0; transform: rotate(-32deg) translateX(-420px) scaleX(1); }
}
.game-row { background: transparent; }
@media (prefers-reduced-motion: reduce) { .stars, .streak { animation: none !important; } .streak { display: none; } }
.fx-off .streak { display: none; }

/* ---------- hero title effects ---------- */
/* TINY TAPS: every 4s the letters glow and an outlined echo of the text ripples out (radar ping) */
.tap-radar { position: relative; display: inline-block; animation: tap-glow 4s ease-out infinite; }
.tap-radar::before, .tap-radar::after {
    content: attr(data-text); position: absolute; inset: 0; pointer-events: none; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 2px var(--accent); opacity: 0;
    animation: tap-echo 4s ease-out infinite;
}
.tap-radar::after { animation-delay: .22s; -webkit-text-stroke-width: 1px; }
@keyframes tap-glow {
    0%, 100% { text-shadow: 0 0 0 rgba(244, 59, 134, 0); }
    6% { text-shadow: 0 0 18px rgba(244, 59, 134, .9), 0 0 42px rgba(244, 59, 134, .55); color: #fff0f7; }
    22% { text-shadow: 0 0 6px rgba(244, 59, 134, .25); }
    40% { text-shadow: 0 0 0 rgba(244, 59, 134, 0); }
}
@keyframes tap-echo {
    0% { opacity: .85; transform: scale(1); filter: blur(0); }
    35% { opacity: 0; transform: scale(1.14, 1.3); filter: blur(1.5px); }
    100% { opacity: 0; }
}
.wave-text { display: inline-flex; }
.wave-text span { display: inline-block; animation: letter-wave 3.2s ease-in-out infinite; animation-delay: calc(var(--n) * .09s); }
@keyframes letter-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.08em); color: #ffd5e8; } }

/* ---------- quote card follows the mouse ---------- */
.quote-band { perspective: 1200px; }
.quote-tilt { transition: transform .6s cubic-bezier(.2, .8, .2, 1); will-change: transform; justify-self: end; }
@media (max-width: 767px) { .quote-tilt { justify-self: center; } }

/* ---------- team: bigger names, blurb accordion, internship CTA ---------- */
.team-info h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1; }
.team-role { display: block; margin-top: 4px; color: var(--accent) !important; font-weight: 600; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.team-blurb { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.team-blurb p { overflow: hidden; margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.team-card:hover .team-blurb, .team-card:focus-within .team-blurb, .team-card:focus .team-blurb { grid-template-rows: 1fr; }
.team-card:hover .team-blurb p, .team-card:focus .team-blurb p { padding-top: 8px; }
.team-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 26px; }
.about-actions .big-mail { margin-top: 0; }

/* ---------- blog cards: bigger titles ---------- */
.post-body h3 { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.05; }
.post-card-big h3 { font-size: clamp(30px, 3.2vw, 46px); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.notfound-mascot { margin: 0 auto 10px; border-radius: 26px; box-shadow: 0 20px 50px -12px rgba(244, 59, 134, .6); animation: beat 1.6s ease-in-out infinite; }
.notfound-code {
    font: 800 clamp(96px, 18vw, 200px)/1 var(--font-display); letter-spacing: -.02em;
    background: var(--btn-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound-title { font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; margin: 6px 0 12px; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* hero + header tidy-up */
.eyebrow-text { opacity: .5; }
.hero-foot { justify-content: flex-start; }
.about-lead { max-width: 640px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 1.15rem; }
.header-social .social { gap: 6px; flex-wrap: nowrap; }
.header-social .social-icon { width: 34px; height: 34px; border-color: rgba(255,255,255,.14); }
.header-social .social-icon svg { width: 15px; height: 15px; }
@media (max-width: 1199px) { .header-social { display: none; } }

/* 3D dolphin swims between the nebula and the headline */
.dolphin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.dolphin-canvas.is-live { opacity: 1; }
.fx-off .dolphin-canvas { display: none; }

.hero-cover { inset: -8% 0 0; will-change: translate; }
/* the dolphin's canvas may extend below the hero (height set in JS) */
.dolphin-canvas { bottom: auto; height: 100%; }

/* =====================================================================
   Hero v3: moving background, big flowing buttons, docking trailer, intro
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1); }

/* ---- hero-bg-one: two copies drifting on different paths = moving light ---- */
.hero-bg::before {
    inset: -18%; animation: bg-drift-a 28s ease-in-out infinite alternate;
    background-size: cover; will-change: transform;
}
.hero-bg::after {
    content: ""; position: absolute; inset: -18%; z-index: -2; pointer-events: none;
    background: url("../img/bg/hero-bg-one.jpg") center / cover no-repeat;
    mix-blend-mode: screen; opacity: .55; will-change: transform;
    animation: bg-drift-b 36s ease-in-out infinite alternate;
}
@keyframes bg-drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-7%, 4%) scale(1.14); }
    50%  { transform: translate(5%, 7%) scale(1.05); }
    75%  { transform: translate(8%, -5%) scale(1.18); }
    100% { transform: translate(-4%, -3%) scale(1.08); }
}
@keyframes bg-drift-b {
    0%   { transform: scaleX(-1) translate(6%, -4%) scale(1.2) rotate(0deg); }
    33%  { transform: scaleX(-1) translate(-5%, 6%) scale(1.05) rotate(6deg); }
    66%  { transform: scaleX(-1) translate(-8%, -6%) scale(1.25) rotate(-4deg); }
    100% { transform: scaleX(-1) translate(4%, 3%) scale(1.1) rotate(3deg); }
}

/* ---- bigger hero buttons + flowing gradient on the primary ---- */
.hero-buttons { gap: 16px; }
.hero-buttons .btn { font-size: 18px; padding: 10px 10px 10px 32px; gap: 16px; letter-spacing: .8px; }
.hero-buttons .btn-icon { width: 52px; height: 52px; min-width: 52px; }
.hero-buttons .btn-icon svg { width: 20px; height: 20px; }
.btn-flow {
    position: relative; overflow: hidden;
    background: linear-gradient(100deg, #E8243C, #F43B86, #8B3DFF, #F43B86, #E8243C);
    background-size: 300% 100%;
    animation: btn-flow 6s linear infinite;
    box-shadow: 0 14px 40px -14px rgba(244, 59, 134, .75);
}
.btn-flow::after { /* glossy sweep on hover */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-flow:hover::after { transform: translateX(120%); }
.btn-flow:hover { box-shadow: 0 18px 50px -12px rgba(244, 59, 134, .95); }
@keyframes btn-flow { to { background-position: 300% 0; } }

/* ---- trailer slot + docking mini player (desktop) ---- */
.trailer-slot { position: relative; width: clamp(260px, 30vw, 440px); aspect-ratio: 16 / 9; flex: none; }
.trailer-dock { position: absolute; inset: 0; }
.trailer-card { width: 100%; height: 100%; }
.trailer-card video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out), filter .4s; filter: brightness(.85); }
.trailer-card:hover video { transform: scale(1.05); filter: brightness(1); }
.trailer-dock.is-docked {
    position: fixed; inset: auto auto 24px 24px; width: 340px; height: auto; aspect-ratio: 16 / 9; z-index: 140;
    animation: dock-in .6s var(--ease-out) both;
}
.trailer-dock.is-docked .trailer-card { box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.18), 0 0 40px -10px rgba(244,59,134,.5); }
.trailer-dock.is-docked .play { width: 56px; height: 56px; }
.trailer-dock.is-docked .trailer-label { font-size: 12px; padding: 6px 11px; }
.dock-close {
    position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: #0B1122; color: #fff; font-size: 20px; line-height: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 6px 16px rgba(0,0,0,.5);
}
.dock-close:hover { background: var(--btn-gradient); }
@keyframes dock-in { from { opacity: 0; transform: translateY(40px) scale(.85); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (min-width: 1100px) { .trailer-slot { width: clamp(280px, 26vw, 400px); } }
@media (max-width: 767px) { .trailer-slot { width: 100%; } }

/* ---- hero intro: staggered entrance, ~1.8s total, pure CSS (no JS needed) ---- */
.intro { animation-fill-mode: both; animation-timing-function: var(--ease-out); }
.intro-bg { animation: intro-bg 1.8s var(--ease-out) both; }
.tpl-home .site-header { animation: intro-header .9s var(--ease-out) .1s both; }
.intro-eyebrow { animation: intro-blur-up .8s var(--ease-out) .2s both; }
.intro-pop { display: inline-flex; animation: intro-pop .7s var(--ease-back) .45s both; }
.intro-mask { animation: intro-mask 1s var(--ease-out) .3s both; }
.intro-letter { animation: intro-letter .8s var(--ease-out) calc(.5s + var(--n) * .045s) both, letter-wave 3.2s ease-in-out calc(2s + var(--n) * .09s) infinite; }
.intro-badge { animation: intro-badge 1s var(--ease-back) .55s both; }
.intro-wipe { animation: intro-wipe 1.1s var(--ease-out) .7s both; }
.intro-rise { animation: intro-rise .8s var(--ease-out) var(--d, 1s) both; }
.wave-text span.intro-letter { /* entrance, then the looping wave */
    animation: intro-letter .8s var(--ease-out) calc(.5s + var(--n) * .045s) both, letter-wave 3.2s ease-in-out calc(2s + var(--n) * .09s) infinite;
}

@keyframes intro-bg { from { opacity: 0; scale: 1.15; filter: saturate(.4) brightness(.6); } to { opacity: 1; scale: 1; filter: none; } }
@keyframes intro-header { from { opacity: 0; translate: 0 -100%; } to { opacity: 1; translate: none; } }
@keyframes intro-blur-up { from { opacity: 0; translate: 0 24px; filter: blur(10px); letter-spacing: .25em; } to { opacity: 1; translate: none; filter: none; } }
@keyframes intro-pop { 0% { opacity: 0; scale: .4; rotate: -12deg; } 100% { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes intro-mask {
    from { opacity: 0; translate: 0 55%; clip-path: inset(0 0 100% 0); }
    40% { opacity: 1; }
    to { opacity: 1; translate: none; clip-path: inset(-60% -30% -60% -30%); }
}
@keyframes intro-letter { from { opacity: 0; translate: 0 90%; rotate: 10deg; filter: blur(8px); } to { opacity: 1; translate: none; rotate: 0deg; filter: none; } }
@keyframes intro-badge { from { opacity: 0; scale: 0; rotate: -200deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes intro-wipe {
    from { opacity: 0; clip-path: inset(0 0 0 100% round 24px); translate: 40px 0; scale: 1.06; }
    30% { opacity: 1; }
    to { opacity: 1; clip-path: inset(0 0 0 0 round 24px); translate: none; scale: 1; }
}
@keyframes intro-rise { from { opacity: 0; translate: 0 30px; scale: .96; filter: blur(4px); } to { opacity: 1; translate: none; scale: 1; filter: none; } }

@media (prefers-reduced-motion: reduce) {
    .intro, .intro-bg, .intro-letter, .wave-text span.intro-letter, .tpl-home .site-header, .hero-bg::after, .btn-flow { animation: none !important; }
}

/* soften the drifting hero light: blur hides the film grain and makes the gradient buttery */
.hero-bg::before, .hero-bg::after { filter: blur(28px) saturate(1.15); }

.article-cover { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; }

/* ---------- support + privacy request forms ---------- */
.request-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: start; }
.request-aside { position: sticky; top: 110px; }
.request-aside h2 { font-size: 30px; text-transform: uppercase; margin-bottom: 12px; }
.request-points { padding-left: 1.2em; margin: 18px 0; display: grid; gap: 10px; color: rgba(255,255,255,.85); }
.request-aside a { color: var(--accent); }
.request-form { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.request-form .field-wide, .request-form .field-check, .request-form .btn, .request-form .field:has(textarea) { grid-column: 1 / -1; }
.field-check { display: flex !important; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.85); cursor: pointer; }
.field-check input { width: 20px !important; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.field-check .field-error { display: block; }
.ref-pill { display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(244,59,134,.18); color: #fff; font-weight: 600; letter-spacing: .5px; }
@media (max-width: 900px) { .request-grid, .request-form { grid-template-columns: 1fr; } .request-aside { position: static; } }

/* ---------- header: Games dropdown ---------- */
.main-nav li { position: relative; }
.main-nav .caret { font-size: 10px; opacity: .7; margin-left: 2px; }
.main-nav .submenu {
    position: absolute; top: 100%; left: 50%; translate: -50% 8px; min-width: 190px; padding: 8px; margin: 0; list-style: none;
    border-radius: 14px; background: rgba(8, 12, 32, .96); border: 1px solid rgba(120, 150, 255, .18); backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transition: opacity .2s, translate .25s var(--ease-out), visibility .2s; display: block;
}
.main-nav .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.main-nav .has-sub:hover .submenu, .main-nav .has-sub:focus-within .submenu { opacity: 1; visibility: visible; translate: -50% 0; }
.main-nav .submenu a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; white-space: nowrap; text-transform: none; font-size: 15px; }
.main-nav .submenu a::after { display: none; }
.main-nav .submenu a:hover { background: rgba(244, 59, 134, .16); color: #fff; }
.oc-sub a { font-size: 22px !important; color: var(--accent) !important; }

/* ---------- selects: caret 10px in from the edge ---------- */
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' opacity='.75'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}

/* ---------- blog: 12 per page, tighter gap under the title ---------- */
.tpl-blog .page-hero { padding-bottom: 40px; }
.tpl-blog .page-hero + .section { padding-top: 24px; }

/* ---------- legal index ---------- */
.legal-list { display: grid; gap: 12px; }
.legal-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 20px 24px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.legal-item strong { font: 700 22px/1.2 var(--font-display); text-transform: uppercase; }
.legal-item span { grid-column: 1; }
.legal-item svg { grid-row: 1 / 3; grid-column: 2; color: var(--accent); }
.legal-item:hover { border-color: var(--accent); background: rgba(244,59,134,.08); }

/* ---------- smaller, starry footer ---------- */
.site-footer { background: transparent !important; padding-top: 56px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-simple { gap: 14px; padding-bottom: 36px; }
.footer-simple .footer-logo img { height: 44px; }
.footer-simple .footer-tagline { font-size: clamp(1.1rem, 1.8vw, 1.4rem); letter-spacing: .5px; }
.footer-simple .footer-links { gap: 6px 22px; font-size: 14px; }
.footer-simple .social-icon { width: 36px; height: 36px; }
.footer-simple .social-icon svg { width: 15px; height: 15px; }
.footer-bottom { padding: 16px 0; font-size: 13px; border-top-color: rgba(255,255,255,.06); }

/* Games dropdown: a touch lower, fully opaque */
.main-nav .submenu { background: #0a0f26; backdrop-filter: none; translate: -50% 18px; }
.main-nav .has-sub:hover .submenu, .main-nav .has-sub:focus-within .submenu { translate: -50% 10px; opacity: 1; }
.main-nav .submenu::before { top: -20px; height: 20px; }

/* Side menu: dark liquid glass */
.offcanvas {
    background: linear-gradient(160deg, rgba(20, 26, 58, .72), rgba(6, 8, 22, .82) 55%, rgba(30, 10, 40, .78));
    backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
    border-left: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .08), -30px 0 80px rgba(0, 0, 0, .55);
    isolation: isolate;
}
.offcanvas::before { /* soft sheen */
    content: ""; position: absolute; inset: -20% -40% auto; height: 60%; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 50% at 30% 40%, rgba(244, 59, 134, .18), transparent 70%), radial-gradient(50% 40% at 80% 20%, rgba(110, 140, 255, .16), transparent 70%);
}
.offcanvas-overlay { background: rgba(2, 3, 12, .45); backdrop-filter: blur(6px); }
.offcanvas nav a { border-bottom-color: rgba(255, 255, 255, .08); }
.wave-hand { display: inline-block; transform-origin: 70% 70%; animation: wave-hand 2.4s ease-in-out 1s infinite; }
@keyframes wave-hand { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(10deg); } }

/* /padmin → Branding → "Disable text selection": no highlight cursor on the public site (form fields still work) */
.no-select { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.no-select input, .no-select textarea, .no-select select, .no-select [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.no-select, .no-select p, .no-select h1, .no-select h2, .no-select h3, .no-select h4, .no-select li, .no-select span, .no-select div { cursor: default; }
.no-select a, .no-select button, .no-select a *, .no-select button *, .no-select label, .no-select summary, .no-select select, .no-select .showcase-slide, .no-select .trailer-card { cursor: pointer; }
.no-select input, .no-select textarea { cursor: text; }
