/* pkr.az game picker. Visual language shared with İhale: near-black ground, neon lime accent,
   Days One display type, Chakra Petch body (Exo 2 for Cyrillic), cut corners. */
:root {
  --bg: #0B0E13;
  --panel: #13161C;
  --panel-2: #191C23;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #ABABAB;
  --white: #FFFFFF;
  --theme: #CBFE1C;
  --theme-deep: #5A7501;
  --theme-soft: rgba(203, 254, 28, 0.12);
  --display: "Days One", "Exo 2", sans-serif;
  --body: "Chakra Petch", "Exo 2", system-ui, sans-serif;
  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  --cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  position: relative;
}
h1, h2, h3 { font-family: var(--display); color: var(--white); font-weight: 400; margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: var(--theme); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--theme); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--theme); font-weight: 600; }

/* Soft lime glow behind the hero */
.glow {
  position: absolute; top: 0; left: 0; right: 0; height: 760px; overflow: hidden;
  background: radial-gradient(520px 420px at 78% 60px, rgba(203, 254, 28, 0.20), rgba(203, 254, 28, 0.05) 55%, transparent 75%);
  pointer-events: none; z-index: 0;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(11, 14, 19, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font-family: var(--display); font-size: 24px; letter-spacing: 0.04em; line-height: 1; }
.brand-tld { color: var(--theme); font-size: 0.62em; letter-spacing: 0.02em; margin-left: 2px; }
.topbar-end { display: flex; align-items: center; gap: 10px; }

/* Language pills (az · en · ru) */
.lang { display: flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 100px; background: var(--bg); }
.lang button {
  min-width: 40px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 100px;
  background: transparent; color: var(--text); font-weight: 600; font-size: 14px; text-transform: lowercase;
  transition: color 0.2s, background 0.2s;
}
@media (hover: hover) { .lang button:hover { color: var(--white); } }
.lang button.is-active { background: var(--theme); color: var(--bg); }

/* Future sign-in slot: a pill like the ghost buttons. */
.auth-slot { display: flex; align-items: center; }

/* ---------- Layout ---------- */
.wrap { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px 48px; }

.hero { padding: 44px 0 30px; max-width: 760px; }
.hero h1 { font-size: clamp(32px, 9vw, 60px); text-transform: uppercase; margin-top: 12px; }
.hero .lead { margin-top: 16px; font-size: 17px; max-width: 34em; }

/* ---------- Game cards ---------- */
.games { display: grid; grid-template-columns: 1fr; gap: 16px; }
.game {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px 20px 20px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(203, 254, 28, 0.10), transparent 55%), var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  transition: transform 0.25s ease, background-color 0.25s, border-color 0.25s;
}
@media (hover: hover) {
  .game:hover { transform: translateY(-3px); background-color: var(--panel-2); }
  .game:hover { border-color: rgba(203, 254, 28, 0.45); }
}
.game-head { display: flex; align-items: center; gap: 16px; }
.game-icon { width: 64px; height: 64px; flex: none; display: block; }
.game h3 { font-size: 26px; text-transform: uppercase; margin-top: 4px; }
.game-desc { color: var(--text); font-size: 16px; flex: 1; }

/* Lime slab button */
.slab {
  position: relative; overflow: hidden; z-index: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 54px; padding: 0 24px;
  background: linear-gradient(90deg, var(--theme) 0%, var(--theme-deep) 100%);
  clip-path: var(--cut-sm);
  color: var(--bg); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.1s;
}
.slab::after {
  content: ""; position: absolute; inset: 0; background: var(--white); z-index: -1;
  transform: translate3d(0, 101%, 0); transition: transform 0.35s cubic-bezier(0.1, 0, 0.3, 1);
}
@media (hover: hover) { .slab:hover::after { transform: none; } }
.slab:active { transform: scale(0.98); }
.slab-arrow { font-size: 20px; line-height: 1; transition: transform 0.25s; }
@media (hover: hover) { .slab:hover .slab-arrow { transform: translateX(4px); } }

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 22px 16px; padding-bottom: max(22px, env(safe-area-inset-bottom));
  text-align: center; font-size: 13px;
}
.foot-note { max-width: 46em; margin: 0 auto; }
.foot-copy { margin-top: 6px; color: rgba(171, 171, 171, 0.6); }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .topbar { padding-left: max(24px, calc((100% - 1160px) / 2 + 24px)); padding-right: max(24px, calc((100% - 1160px) / 2 + 24px)); }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero { padding: 72px 0 44px; }
  .hero .lead { font-size: 18px; }
}
@media (min-width: 900px) {
  .games { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .game { padding: 28px 26px 26px; gap: 22px; }
  .game-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .game-icon { width: 76px; height: 76px; }
  .game h3 { font-size: 30px; }
  .glow { background: radial-gradient(900px 560px at 70% 40px, rgba(203, 254, 28, 0.20), rgba(203, 254, 28, 0.05) 55%, transparent 75%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
