/* ---------- Base ---------- */
:root {
  --black: #0a0a0a;
  --black-deep: #000000;
  --orange: #ff6600;
  --orange-dim: #c95200;
  --white: #ffffff;
  --ink: #f2f2f0;
  --muted: #b7b3ac;
  --card-bg: #141414;
  --border: #262626;
  --max-w: 1120px;
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--white);
}

a { color: var(--orange); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--black-deep);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--black-deep);
}
.btn-primary:hover { background: #ff7a1a; }

.btn-ghost {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}
.btn-ghost:hover { background: rgba(255,102,0,0.12); }

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-soon {
  position: relative;
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.btn-soon::after {
  content: "Coming soon";
  position: absolute;
  bottom: -1.6em;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 20px;
  margin-top: 40px;
  padding-bottom: 8px;
}

.pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.pill:not(.btn-soon):hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  height: 46px;
  width: auto;
}
.brand-word {
  height: 32px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 10px 0 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-logo {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto 32px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.hero-copy {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 24px 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Section shared ---------- */
section { padding: 96px 0; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 64px;
  height: 6px;
  background: var(--orange);
}

/* ---------- Games ---------- */
.games { background: var(--black-deep); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-art {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    var(--orange) 0px, var(--orange) 40px,
    var(--orange-dim) 40px, var(--orange-dim) 80px
  );
}
.game-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black-deep);
  clip-path: polygon(0 0, 30% 0, 55% 100%, 0% 100%);
  opacity: 0.85;
}
.game-art-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  color: var(--black-deep);
  font-size: 3.2rem;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.25);
}
.game-art--wizard {
  background: repeating-linear-gradient(
    135deg,
    #1a1a1a 0px, #1a1a1a 40px,
    var(--black-deep) 40px, var(--black-deep) 80px
  );
}
.game-art--wizard .game-art-mark { color: var(--orange); }

.game-art--tss {
  background: linear-gradient(160deg, #1c1c1c, var(--black-deep));
}
.game-art--tss::before { content: none; }
.game-art-logo {
  position: relative;
  z-index: 1;
  max-width: 78%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.55));
}
.game-art--wizard::before { background: var(--orange); opacity: 0.15; }

.game-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.game-meta {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
}
.tag-platform {
  background: var(--orange);
  color: var(--black-deep);
}
.tag-status {
  border: 1px solid var(--border);
  color: var(--muted);
}

.game-body h3 {
  font-size: 1.6rem;
}

.game-body p {
  color: var(--muted);
  flex: 1;
}

.game-actions { margin-top: 8px; }

/* ---------- About ---------- */
.about-inner p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 68ch;
}

/* ---------- Community ---------- */
.community { background: var(--black-deep); border-top: 1px solid var(--border); }
.community-copy { color: var(--muted); margin-top: -24px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-mark {
  height: 22px;
  width: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .game-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 24px;
    gap: 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { margin-top: 4px; }

  section { padding: 64px 0; }
  .hero { padding: 10px 0 80px; }
}
