/* ============================================================
   PlayFallsview — landing page · cyberpunk HUD interface
   Mirrors the main-site palette (G142/casino/assets/css/main.css)
   ============================================================ */

:root {
    --bg:        #050810;
    --bg-2:      #0a1220;
    --surface:   #101a2c;
    --surface-2: #16243a;
    --border:    #2a3d5c;
    --text:      #eaf2ff;
    --text-muted:#9fb3d1;
    --text-dim:  #62748f;
    --acid:      #f7e600;
    --acid-2:    #fff75e;
    --acid-ink:  #1a1700;
    --cyan:      #00f0ff;
    --pink:      #ff2a6d;

    --radius:    4px;
    --radius-sm: 2px;
    --maxw:      1180px;
    --gap:       clamp(1rem, 2.4vw, 1.6rem);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, "Courier New", monospace;
    --notch: 18px;
    --cut: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch),
                   100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
    color: var(--text); -webkit-font-smoothing: antialiased;
    background:
        linear-gradient(90deg, rgba(0,240,255,.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0,240,255,.025) 1px, transparent 1px),
        radial-gradient(900px 520px at 80% -10%, rgba(0,240,255,.10), transparent 60%),
        linear-gradient(180deg, #03060c 0%, var(--bg) 40%, #070d18 100%);
    background-size: 44px 44px, 44px 44px, auto, auto;
    background-attachment: fixed;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--acid-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.12; color: #fff; font-weight: 800; }
p { margin: 0 0 1rem; }
ul { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.narrow { max-width: 820px; }

.skip-link {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto;
    z-index: 1000; padding: .6rem 1rem; background: var(--acid); color: var(--acid-ink);
    font-weight: 700;
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.eyebrow {
    margin: 0 0 .9rem; color: var(--cyan); font-size: .76rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    gap: .55rem; padding: .72rem 1.4rem; font: inherit; font-weight: 800; cursor: pointer;
    white-space: nowrap; border: 1px solid transparent; border-radius: var(--radius-sm);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, opacity .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--acid {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    background: linear-gradient(165deg, var(--acid-2), var(--acid) 64%);
    color: var(--acid-ink); border-radius: 0;
    box-shadow: 0 8px 26px rgba(247,230,0,.22);
}
.btn--acid:hover { box-shadow: 0 10px 32px rgba(247,230,0,.38); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 18px rgba(0,240,255,.18); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.04rem; }
.btn__tag { font-size: .8em; opacity: .75; }

@keyframes glitch-flicker {
    0%, 100% { transform: translate(0, -1px); opacity: 1; }
    20% { transform: translate(-1.5px, -1px); opacity: .86; }
    40% { transform: translate(1.5px, -1px); }
    60% { transform: translate(-1px, 0); opacity: .92; }
    80% { transform: translate(1px, -2px); }
}
.btn--glitch:hover, .btn--glitch:focus-visible { animation: glitch-flicker .32s steps(2) 2; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.6rem, 7vw, 4.6rem); }
.section--alt { background: linear-gradient(90deg, rgba(0,240,255,.05), transparent 55%), var(--bg-2); border-block: 1px solid var(--border); }
.section__head { max-width: 62ch; margin-bottom: 2rem; }
.section__title { font-size: clamp(1.55rem, 3.6vw, 2.25rem); letter-spacing: -.01em; }
.section__lead { color: var(--text-muted); }

/* ---------- HUD corner brackets ---------- */
.brackets { position: relative; }
.brackets::before, .brackets::after {
    content: ""; position: absolute; width: 34px; height: 34px; pointer-events: none;
    border: 2px solid var(--cyan); opacity: .85;
}
.brackets::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.brackets::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
@keyframes bracket-draw-tl { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bracket-draw-br { from { transform: scale(0); } to { transform: scale(1); } }
.brackets--draw::before { transform-origin: top left; animation: bracket-draw-tl .8s .35s cubic-bezier(.2,.9,.3,1) backwards; }
.brackets--draw::after { transform-origin: bottom right; animation: bracket-draw-br .8s .55s cubic-bezier(.2,.9,.3,1) backwards; }

/* ============================================================
   1 · HUD status bar (header)
   ============================================================ */
.hud-bar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5,8,16,.88);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,240,255,.28);
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.hud-bar__inner {
    max-width: var(--maxw); margin-inline: auto; padding: .6rem var(--gap);
    display: flex; align-items: center; gap: 1rem;
}
.hud-bar__brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; }
.hud-bar__brand:hover { text-decoration: none; }
.hud-bar__brand img { filter: drop-shadow(0 0 14px rgba(0,240,255,.4)); }
.hud-bar__name { font-weight: 800; letter-spacing: .1em; font-size: 1.06rem; }
.hud-bar__name b { color: var(--acid); }
.hud-bar__readout {
    margin: 0 0 0 auto; font-size: .74rem; letter-spacing: .14em; color: var(--cyan);
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .34rem .7rem; border: 1px solid rgba(0,240,255,.3);
    background: rgba(0,240,255,.05);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.hud-bar__dot { width: 7px; height: 7px; background: var(--acid); flex: 0 0 auto; animation: dot-pulse 1.8s steps(2) infinite; }
@keyframes dot-pulse { 50% { opacity: .25; } }
.hud-bar__cta { font-size: .92rem; padding: .55rem 1.1rem; }

/* ============================================================
   2 · Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); min-height: min(88vh, 760px); display: grid; }
.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }
.hero__bg {
    position: absolute; inset: 0; z-index: 1;
    background: url("../img/hero-main.jpg") center 30% / cover no-repeat;
}
.hero__scrim {
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(90deg, rgba(5,8,16,.92) 0%, rgba(5,8,16,.78) 46%, rgba(5,8,16,.45) 100%),
        linear-gradient(180deg, rgba(5,8,16,.35), rgba(5,8,16,.9));
}
.hero__scanlines, .live__frame::after {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
    mix-blend-mode: multiply;
}
.hero__inner {
    position: relative; z-index: 4; align-self: center; width: 100%;
    padding-block: clamp(3.4rem, 9vw, 6rem); padding-inline: calc(var(--gap) + 1.4rem);
}
.hero__title {
    font-size: clamp(1.75rem, 5.6vw, 3.7rem); letter-spacing: .015em; line-height: 1.08;
    text-shadow: 0 4px 30px rgba(0,0,0,.7); margin-bottom: 1rem;
    font-family: var(--mono); font-weight: 700;
}
.decode { display: inline-block; min-height: 1em; }
.decode--accent { color: var(--acid); text-shadow: 0 0 32px rgba(247,230,0,.35); }
.hero__lead { max-width: 56ch; color: var(--text-muted); font-size: clamp(1rem, 1.7vw, 1.14rem); }
.hero__lead strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1.6rem; }
.hero__stats {
    display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.2rem; padding: 0;
}
.stat {
    display: flex; flex-direction: column; gap: .1rem; min-width: 108px;
    padding: .55rem .85rem; border: 1px solid rgba(0,240,255,.25);
    background: rgba(5,8,16,.6);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.stat dt { font-size: .64rem; letter-spacing: .18em; color: var(--text-dim); }
.stat dd { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--cyan); }
.hero__note { color: var(--text-dim); font-size: .74rem; letter-spacing: .12em; margin: 0; }

/* ============================================================
   3 · System modules
   ============================================================ */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.module {
    position: relative; padding: 1.4rem 1.3rem 1.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)), var(--surface);
    border: 1px solid var(--border); clip-path: var(--cut);
}
.module::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent 70%);
}
.module__label { margin: 0 0 .65rem; font-size: .7rem; letter-spacing: .2em; color: var(--acid); }
.module__title { font-size: 1.1rem; }
.module__text { margin: 0; color: var(--text-muted); font-size: .93rem; }

/* boot-up scroll reveal (hidden state only when JS is available) */
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-on { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.9,.3,1); }
.reveal.is-on::before { transform-origin: left; animation: mod-border .6s ease backwards; }
@keyframes mod-border { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reveal.is-on:nth-child(2) { transition-delay: .12s; }
.reveal.is-on:nth-child(2)::before { animation-delay: .12s; }
.reveal.is-on:nth-child(3) { transition-delay: .24s; }
.reveal.is-on:nth-child(3)::before { animation-delay: .24s; }
.reveal.is-on:nth-child(4) { transition-delay: .36s; }
.reveal.is-on:nth-child(4)::before { animation-delay: .36s; }

/* ============================================================
   4 · Game grid + scanner sweep
   ============================================================ */
.scanner { position: relative; overflow: hidden; }
.scanner__line {
    position: absolute; top: 0; bottom: 0; left: 0; width: 3px; z-index: 5; pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 24px 6px rgba(0,240,255,.35);
    opacity: 0; transform: translateX(-10px);
}
.scanner.is-scanned .scanner__line { animation: scan-sweep 1.6s cubic-bezier(.4,0,.2,1) 1 forwards; }
@keyframes scan-sweep {
    0% { opacity: 0; transform: translateX(0); }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { opacity: 0; transform: translateX(min(100vw, 1400px)); }
}
.games {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: clamp(.7rem, 1.6vw, 1.1rem);
}
.game a { display: flex; flex-direction: column; color: var(--text); }
.game a:hover, .game a:focus-visible { text-decoration: none; }
.game img {
    display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.game a:hover img, .game a:focus-visible img {
    transform: translateY(-3px); border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan), 0 10px 32px rgba(0,240,255,.22);
}
.game__meta { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .45rem .15rem 0; }
.game__name { font-weight: 700; font-size: .88rem; line-height: 1.25; }
.game__prov { font-size: .62rem; letter-spacing: .16em; color: var(--text-dim); flex: 0 0 auto; }
.game a:hover .game__prov { color: var(--cyan); }
.games__note { margin: 1.6rem 0 0; color: var(--text-dim); font-size: .72rem; letter-spacing: .12em; }

/* ============================================================
   5 · Live feed
   ============================================================ */
.live { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.live__frame { position: relative; margin: 0; clip-path: var(--cut); border: 1px solid rgba(0,240,255,.3); background: var(--surface); }
.live__frame img { display: block; width: 100%; height: auto; }
.live__frame::after { content: ""; }
.live__frame::before { /* animated cyan data-bar edge */
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 4;
    background: repeating-linear-gradient(90deg, var(--cyan) 0 22px, rgba(0,240,255,.15) 22px 34px);
    animation: databar 1.4s linear infinite;
}
@keyframes databar { to { transform: translateX(34px); } }
.live__caption {
    position: absolute; left: 0; bottom: 0; z-index: 4; display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem; font-size: .68rem; letter-spacing: .16em; color: var(--cyan);
    background: rgba(5,8,16,.85); border-top: 1px solid rgba(0,240,255,.3); border-right: 1px solid rgba(0,240,255,.3);
}
.live__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: dot-pulse 1.4s steps(2) infinite; }
.live__copy p { color: var(--text-muted); }
.live__copy strong { color: var(--text); }
.live__note { margin: 1.1rem 0 0; color: var(--text-dim); font-size: .72rem; letter-spacing: .12em; }
@media (max-width: 860px) { .live { grid-template-columns: 1fr; } }

/* ============================================================
   6 · Responsible gaming (calm, high readability)
   ============================================================ */
.rg__panel {
    --notch: 22px;
    padding: clamp(1.6rem, 4vw, 2.8rem);
    background: linear-gradient(160deg, rgba(0,240,255,.07), transparent 45%), var(--surface);
    border: 1px solid var(--border); clip-path: var(--cut);
}
.rg__panel::before, .rg__panel::after { width: 28px; height: 28px; opacity: .6; }
.rg__lead { max-width: 64ch; color: var(--text-muted); font-size: 1.05rem; }
.rg__lead strong, .rg__tools strong { color: var(--text); }
.rg__tools { padding-left: 1.2rem; max-width: 70ch; color: var(--text-muted); }
.rg__tools li { margin-bottom: .6rem; }
.rg__help {
    margin-top: 1.6rem; padding: 1.2rem 1.3rem;
    background: rgba(5,8,16,.55); border: 1px solid rgba(0,240,255,.25); border-left: 3px solid var(--cyan);
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem;
}
.rg__help-label { margin: 0; flex: 1 1 100%; font-size: .7rem; letter-spacing: .2em; color: var(--cyan); }
.rg__help-text { margin: 0; flex: 1 1 320px; }
.rg__phone { font-family: var(--mono); font-size: 1.18rem; font-weight: 700; color: var(--acid); white-space: nowrap; }

/* ============================================================
   7 · FAQ
   ============================================================ */
.faq { display: grid; gap: .7rem; }
.faq__item {
    background: var(--surface); border: 1px solid var(--border); padding: 0 1.15rem;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.faq__item summary {
    display: flex; align-items: baseline; gap: .9rem; padding: 1rem 0; cursor: pointer;
    font-weight: 700; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; margin-left: auto; color: var(--acid); font-weight: 800; font-family: var(--mono); }
.faq__item[open] summary::after { content: "\2212"; color: var(--cyan); }
.faq__item summary:hover { color: #fff; }
.faq__id { flex: 0 0 auto; font-size: .68rem; letter-spacing: .14em; color: var(--cyan); }
.faq__item p { color: var(--text-muted); margin: 0; padding: 0 0 1.05rem; }

/* ============================================================
   8 · Footer
   ============================================================ */
.footer { border-top: 1px solid rgba(0,240,255,.22); background: var(--bg-2); padding-block: 2.4rem 1.6rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: clamp(1.4rem, 3vw, 2.4rem); padding-bottom: 1.8rem; }
.footer__about { color: var(--text-muted); font-size: .9rem; margin-top: .9rem; }
.footer__nowin { color: var(--text-dim); font-size: .7rem; letter-spacing: .12em; margin: 0; }
.footer__nav h3 { font-size: .72rem; letter-spacing: .2em; color: var(--cyan); font-weight: 600; }
.footer__nav ul { list-style: none; padding: 0; }
.footer__nav li { margin-bottom: .5rem; }
.footer__nav a { color: var(--text-muted); font-size: .92rem; }
.footer__nav a:hover { color: var(--acid-2); }
.badge-19 {
    display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: .7rem;
    font-weight: 900; font-size: 1rem; color: var(--acid-ink);
    background: linear-gradient(150deg, var(--acid-2), var(--acid));
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    box-shadow: 0 0 0 4px rgba(247,230,0,.14);
}
.footer__connex { color: var(--text-muted); font-size: .9rem; margin: 0; }
.footer__legal { border-top: 1px solid var(--border); padding-top: 1.2rem; color: var(--text-dim); font-size: .8rem; }
.footer__legal strong { color: var(--text-muted); }
.footer__stamp { margin: 0; font-size: .7rem; letter-spacing: .14em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .hud-bar__name { display: none; }
    .hud-bar__readout { margin-left: auto; font-size: .64rem; padding: .3rem .5rem; letter-spacing: .08em; }
    .hud-bar__cta { padding: .5rem .8rem; font-size: .84rem; }
    .hero__inner { padding-inline: calc(var(--gap) + .6rem); }
    .hero__actions { display: grid; grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; }
    .stat { flex: 1 1 40%; min-width: 0; }
    .games { grid-template-columns: repeat(2, 1fr); }
    .footer__top { grid-template-columns: 1fr; }
    .brackets::before, .brackets::after { width: 22px; height: 22px; }
}

/* ============================================================
   Reduced motion — static page remains fully presentable
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
    }
    .hero__rain { display: none; }
    .js .reveal { opacity: 1; transform: none; }
    .scanner__line { display: none; }
    .live__frame::before { animation: none; background: var(--cyan); }
    .hud-bar__dot, .live__pulse { animation: none; }
}
