/* DAGEN Games portal — dark gold premium */

:root {
  --bg: #0a0908;
  --bg-elevated: #12100e;
  --bg-card: #161310;
  --ink: #f4ebe0;
  --ink-muted: #b8a898;
  --ink-dim: #7a6f63;
  --gold: #e8c27a;
  --gold-bright: #ffd994;
  --gold-deep: #a67c3d;
  --crimson: #c45c4a;
  --line: rgba(232, 194, 122, 0.18);
  --line-strong: rgba(232, 194, 122, 0.35);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-display: "Cinzel", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.glow {
  pointer-events: none;
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  z-index: 0;
}

.glow-a {
  top: -10vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.55), transparent 70%);
}

.glow-b {
  bottom: 10vh;
  left: -12vw;
  background: radial-gradient(circle, rgba(196, 92, 74, 0.35), transparent 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(10, 9, 8, 0.72);
  border-bottom: 1px solid rgba(232, 194, 122, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-en {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--gold-bright);
}

.brand-cn {
  font-size: 0.72rem;
  color: var(--ink-dim);
  letter-spacing: 0.28em;
  margin-top: 0.15rem;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--gold-bright);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(232, 194, 122, 0.16), rgba(232, 194, 122, 0.04));
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232, 194, 122, 0.28), rgba(232, 194, 122, 0.08));
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  filter: saturate(0.95) contrast(1.05);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.72) 42%, rgba(10, 9, 8, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 9, 8, 0.95) 0%, rgba(10, 9, 8, 0.2) 45%, rgba(10, 9, 8, 0.45) 100%);
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.8rem 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6dde8a;
  box-shadow: 0 0 0 4px rgba(109, 222, 138, 0.15);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

h1 {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.h1-en {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.h1-cn {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff6e6 0%, #e8c27a 55%, #c9a15e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(232, 194, 122, 0.12);
}

.hero-lead {
  max-width: 36rem;
  margin: 1.35rem 0 0;
  color: var(--ink-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #1a1208;
  background: linear-gradient(135deg, #ffe2a8 0%, #e8c27a 45%, #c9a15e 100%);
  box-shadow: 0 10px 30px rgba(232, 194, 122, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(232, 194, 122, 0.4);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(232, 194, 122, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 28rem;
  margin: 2.4rem 0 0;
  padding: 0;
}

.hero-stats > div {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.hero-stats dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-bright);
}

/* Sections */
section {
  position: relative;
  z-index: 1;
}

.section-head {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1.75rem;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-head h2,
.about h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: 0.04em;
}

.section-sub {
  margin: 0.65rem 0 0;
  color: var(--ink-muted);
  max-width: 36rem;
}

/* Featured */
.featured {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 1rem;
}

.feature-card {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(28, 24, 20, 0.95), rgba(14, 12, 10, 0.98));
  box-shadow: var(--shadow);
}

.feature-media {
  position: relative;
  min-height: 240px;
  background: #000;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.feature-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 40, 24, 0.85);
  border: 1px solid rgba(109, 222, 138, 0.45);
  color: #9ef0b2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.feature-body {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.feature-tag {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.feature-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: 0.03em;
}

.feature-desc {
  margin: 0.9rem 0 0;
  color: var(--ink-muted);
}

.feature-points {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.feature-points li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 194, 122, 0.15);
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Games grid */
.games {
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
}

.game-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}

.game-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card.is-live:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.game-card.is-soon {
  opacity: 0.72;
}

.game-card-link {
  display: grid;
  color: inherit;
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #100e0c;
  overflow: hidden;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.game-card.is-live:hover .game-thumb img {
  transform: scale(1.04);
}

.game-thumb.placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 194, 122, 0.12), transparent 50%),
    linear-gradient(145deg, #1a1612, #0e0c0a);
}

.game-thumb.placeholder.alt {
  background:
    radial-gradient(circle at 70% 40%, rgba(196, 92, 74, 0.14), transparent 55%),
    linear-gradient(145deg, #1a1412, #0e0c0a);
}

.placeholder-art {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
}

.status-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.status-pill.live {
  color: #b8f5c8;
  background: rgba(18, 48, 28, 0.8);
  border: 1px solid rgba(109, 222, 138, 0.4);
}

.status-pill.soon {
  color: var(--ink-muted);
  background: rgba(20, 18, 16, 0.8);
  border: 1px solid var(--line);
}

.game-meta {
  padding: 1.15rem 1.2rem 1.25rem;
}

.game-meta h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.game-meta p {
  margin: 0.45rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.domain {
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.go {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
}

.go.muted {
  color: var(--ink-dim);
}

/* Gallery */
.gallery {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  overflow: hidden;
}

.gallery-track {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  background: var(--bg-elevated);
}

/* About */
.about {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.about-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.about p {
  color: var(--ink-muted);
  margin: 1rem 0 0;
}

.about-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(232, 194, 122, 0.08), transparent 40%),
    var(--bg-card);
  padding: 1.4rem 1.35rem 1.5rem;
}

.about-panel h3 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.about-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.about-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.about-panel li span {
  color: var(--ink-dim);
}

.about-panel a {
  color: var(--gold-bright);
  border-bottom: 1px solid transparent;
}

.about-panel a:hover {
  border-bottom-color: var(--gold);
}

.about-note {
  margin-top: 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 1.8rem;
  border-top: 1px solid rgba(232, 194, 122, 0.1);
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.footer-brand .brand-en {
  font-size: 0.85rem;
}

.footer-copy {
  margin: 0;
}

.footer-top {
  color: var(--gold);
}

.footer-top:hover {
  color: var(--gold-bright);
}

/* Responsive */
@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .feature-card {
    grid-template-columns: 1.1fr 1fr;
  }

  .feature-media img {
    min-height: 100%;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
    gap: 2rem;
  }
}

@media (max-width: 719px) {
  .header-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 16rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
