:root {
  --bg: #14110f;
  --panel: #1f1914;
  --ink: #fff8ec;
  --muted: #c9b79c;
  --gold: #ffc21a;
  --gold-hi: #ffd34d;
  --line: #1b0f05;
  --soft: #3a2414;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ------------------------------------------------------------ header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: rgba(20, 17, 15, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a221b;
}

.brand { display: flex; align-items: center; gap: 10px; direction: ltr; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--line);
  font-weight: 900;
  border: 3px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
}

.brand-name { font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand-name b { color: var(--gold); }

nav { display: flex; align-items: center; gap: 18px; font-weight: 700; }
nav a { color: var(--muted); }
nav a:hover { color: var(--ink); }

.nav-play {
  color: var(--line) !important;
  background: var(--gold);
  padding: 6px 14px;
  border-radius: 10px;
  border: 3px solid var(--line);
  white-space: nowrap;
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(20, 17, 15, .75) 35%, rgba(20, 17, 15, 0) 70%),
    linear-gradient(to left, rgba(20, 17, 15, .65) 0%, rgba(20, 17, 15, 0) 55%);
}

.hero-text {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.kicker { margin: 0; color: var(--gold-hi); font-weight: 800; letter-spacing: .05em; }

h1 {
  margin: 0;
  font-size: clamp(72px, 16vw, 150px);
  line-height: 1.05;
  font-weight: 900;
  color: var(--gold);
  -webkit-text-stroke: 4px var(--line);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--line);
}

.lead { max-width: 520px; margin: 12px 0 0; font-size: clamp(17px, 2.4vw, 21px); }

.actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 40px 10px;
  border-radius: 16px;
  border: 4px solid var(--line);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
  transition: transform .08s ease, box-shadow .08s ease;
}

.btn span { display: block; font-size: 12px; letter-spacing: .3em; }

.btn-main { background: var(--gold); color: var(--line); box-shadow: 0 7px 0 var(--line); }
.btn-main:hover { background: var(--gold-hi); }
.btn-main:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--line); }

.note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ sections */

section.games, section.keys {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px 8px;
}

h2 { margin: 0 0 20px; font-size: 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--line);
  transition: transform .15s ease;
}

a.card:hover { transform: translateY(-3px); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.card h3 { margin: 0; font-size: 24px; color: var(--gold); }
.card h3 small { font-size: 12px; letter-spacing: .3em; color: var(--muted); margin-inline-start: 6px; }
.card p { margin: 6px 0 0; color: var(--muted); }

.card-soon {
  justify-content: center;
  min-height: 200px;
  background: repeating-linear-gradient(-45deg, var(--panel), var(--panel) 14px, #241d17 14px, #241d17 28px);
}

.tags { list-style: none; display: flex; gap: 8px; padding: 0; margin: 12px 0 0; }
.tags li { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--gold-hi); }

.key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.key-grid div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 14px;
  color: var(--muted);
}

.key-grid span { margin-inline-start: auto; color: var(--ink); font-weight: 700; }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--line);
  font: 800 14px/1 inherit;
  box-shadow: 0 3px 0 #8f7c63;
  direction: ltr;
}

/* ------------------------------------------------------------ footer */

.foot {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 20px 16px max(28px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #8f7c63;
  font-size: 14px;
  border-top: 1px solid #2a221b;
}

@media (max-width: 560px) {
  nav a:not(.nav-play) { display: none; }
  .brand-name { font-size: 15px; }
  .hero { min-height: 78vh; }
  .hero-img { object-position: 62% 40%; }
  .btn { width: 100%; }
}
