/*
 * Club77's website: a shop window and a help desk, not a place to play (the games are in the app).
 * The app's look: near-black layers, Club77 lime for the one action that matters, rounded cards.
 */
:root {
  --bg: #0a0a0b;
  --surface: #161719;
  --surface-2: #1f2023;
  --line: #2a2b2e;
  --text: #f2f3f5;
  --muted: #9a9da3;
  --lime: #d1fe17;
  --lime-press: #bde30f;
  --on-lime: #0a0c02;
  --radius: 18px;
  --font: "Plus Jakarta Sans", "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgb(10 10 11 / .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.top .brand img { height: 34px; width: auto; }
.top nav { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.top nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--lime); color: var(--on-lime); }
.button.primary:active { background: var(--lime-press); }
.button.ghost { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 1.5px var(--lime); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.button[disabled] { opacity: .45; cursor: default; }

/* Home */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 30%, rgb(10 10 11 / .2) 70%), url(assets/hero.webp) right center / auto 120% no-repeat; }
.hero .wrap { position: relative; display: grid; gap: 22px; padding-block: 96px 110px; max-width: 1120px; }
.hero img.logo { width: 150px; }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; font-weight: 800; max-width: 14ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { margin: 0; color: var(--muted); max-width: 46ch; font-size: 18px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 14px; background: #fff; color: #000; text-decoration: none; font-weight: 700; }
.store small { display: block; font-size: 11px; font-weight: 500; line-height: 1; }

section.block { padding-block: 72px; border-bottom: 1px solid var(--line); }
section.block h2 { margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; text-wrap: balance; }
section.block > .wrap > p.lead { margin: 0 0 34px; color: var(--muted); max-width: 60ch; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature b { display: block; font-size: 17px; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 15px; }
.feature .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); margin-bottom: 14px; }
.screens { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; flex: 0 0 auto; width: min(240px, 70vw); scroll-snap-align: start; }
.screens img { border-radius: 26px; border: 6px solid #000; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgb(0 0 0 / .5); aspect-ratio: 402 / 874; object-fit: cover; width: 100%; }
.screens figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }

footer { padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .legal { flex-basis: 100%; font-size: 13px; }

/* Support */
.support { padding-block: 48px 80px; }
.support h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 40px); }
.support > .wrap > p { margin: 0 0 30px; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.panel h2 { margin: 0 0 4px; font-size: 20px; }
.panel > p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); }
input, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
input:focus, textarea:focus { border-color: var(--lime); outline: none; }
textarea { min-height: 130px; resize: vertical; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.notice.good { background: #1d2309; border: 1px solid rgb(209 254 23 / .35); }
.notice.bad { background: #2a1112; border: 1px solid #5a2326; color: #ffb4b4; }

/* Live chat */
.chat { display: flex; flex-direction: column; height: 560px; padding: 0; overflow: hidden; }
.chat header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat header .avatar { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2b330d, #121408); display: grid; place-items: center; border: 1px solid rgb(209 254 23 / .4); }
.chat header .avatar img { width: 26px; }
.chat header b { display: block; font-size: 16px; }
.chat header .status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.chat header .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--status, #7a7d83); }
.chat[data-state="online"] header .status { --status: #3ddc84; }
.chat .log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.agent { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--lime); color: var(--on-lime); border-bottom-right-radius: 6px; }
.bubble time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.chat .intro { display: grid; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: #131416; }
.chat .intro p { margin: 0; color: var(--muted); font-size: 14px; }
.chat .intro .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat form.compose { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.chat form.compose input { flex: 1; }
.chat form.compose button { height: 48px; width: 48px; padding: 0; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .bubble { animation: rise .18s ease-out; } @keyframes rise { from { opacity: 0; transform: translateY(6px); } } }
