* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #a78bfa;
  --accent2: #818cf8;
  --bg: #05050d;
  --surface: #0f0b1e;
  --surface2: #160d2a;
  --border: rgba(255,255,255,0.09);
  --text: #e8e4ff;
  --text2: #a89fc4;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header banner ── */
.site-header {
  width: 100%;
  background: #130a2a;
  border-bottom: 1px solid rgba(167, 139, 250, 0.18);
}

.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.logo-link {
  color: var(--accent);
  text-decoration: none;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.1em;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text2);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.45rem 0.9rem;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(167,139,250,0.4);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text2);
  letter-spacing: 0.03em;
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
  width: 100%;
}

/* ── Arcade hero ── */
.arcade-scene {
  width: min(96vw, 900px);
  margin: 2rem auto 0;
  text-align: center;
}

.arcade-wrap {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(168,85,247,0.35);
}

.arcade-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 50% 72%;
}

.arcade-wrap.zooming .arcade-img {
  transform: scale(3.5);
}

/* Door hotspot — covers the three glass doors */
.door-hotspot {
  position: absolute;
  left: 33%;
  top: 52%;
  width: 34%;
  height: 40%;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
}

.enter-label {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255,255,255,0.9), 0 0 40px rgba(168,85,247,0.8);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.door-hotspot:hover .enter-label,
.door-hotspot:focus-visible .enter-label {
  opacity: 1;
  transform: scale(1);
}

.door-hotspot:focus-visible {
  outline: 3px solid rgba(168,85,247,0.8);
  outline-offset: 2px;
}

.arcade-cta {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text2);
  letter-spacing: 0.05em;
}

/* ── Sections ── */
.section {
  width: min(96vw, 900px);
  margin: 4rem auto 0;
}

.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(167,139,250,0.3);
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

/* ── Game cards ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(167,139,250,0.25);
}

.game-card__thumb {
  width: 100%;
  height: 160px;
  background: var(--surface2);
}

.maze-thumb {
  background: linear-gradient(135deg, #1a0a3a 0%, #2d1060 50%, #0f0520 100%);
  position: relative;
}
.maze-thumb::after {
  content: '🌀';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.depths-thumb {
  background: linear-gradient(135deg, #0a0f2a 0%, #0d2040 50%, #051020 100%);
  position: relative;
}
.depths-thumb::after {
  content: '⚔️';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.game-card__body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.game-card__body h3 {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.game-card__body p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}

.play-btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}

/* ── About ── */
.about-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-block p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.8;
}

.about-block strong {
  color: var(--text);
}

.about-block a {
  color: var(--accent);
  text-decoration: none;
}

.about-block a:hover {
  text-decoration: underline;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.contact-line {
  font-size: 0.95rem !important;
}

/* ── Footer ── */
footer {
  width: 100%;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 4rem;
  font-size: 0.82rem;
  color: #5a5270;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .game-grid { grid-template-columns: 1fr; }
  .about-block { padding: 1.4rem; }
}
