:root {
  --bg0: #0c0a0b;
  --bg1: #1a1014;
  --ink: #f3ebe6;
  --muted: #b5a49a;
  --door: #b83a3a;
  --door-deep: #6e1c22;
  --glow: #e85d4c;
  --panel: rgba(28, 18, 22, 0.72);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(184, 58, 58, 0.35), transparent 55%),
    radial-gradient(700px 480px at 95% 10%, rgba(90, 40, 50, 0.45), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #080607);
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: 36px 0 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.02em;
  color: #f7ece7;
}
.brand em {
  font-style: normal;
  color: var(--glow);
}

.hero {
  position: relative;
  flex: 1;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(28px, 6vw, 56px) 0 20px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 5% auto;
  height: min(52vh, 420px);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(184, 58, 58, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(20, 12, 14, 0.2), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0 2px,
      transparent 2px 28px
    );
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  pointer-events: none;
  animation: doorPulse 7s ease-in-out infinite;
}
@keyframes doorPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.015); }
}

.hero-copy { position: relative; max-width: 18ch; }
.hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  color: #fff6f1;
}
.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 28ch;
}

.games {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.game {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 220, 210, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
  animation: riseIn 0.7s ease both;
}
.game:nth-child(2) { animation-delay: 0.1s; }
.game:nth-child(3) { animation-delay: 0.18s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.game:hover,
.game:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent, var(--glow)) 55%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--accent, var(--glow)) 25%, transparent);
  outline: none;
}

.game-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease;
}
.game:hover .game-icon { transform: scale(1.05) rotate(-2deg); }
.game-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.game-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: #fff8f3;
}
.game-en {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.game-blurb {
  margin: 0;
  color: #cbb8af;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; }
  .hero-copy { max-width: none; }
}
