/* ===========================
   NOCTURNE — Gothic Gaming Theme
   =========================== */

:root {
  --bg:          #080810;
  --bg-surface:  #0d0d1a;
  --bg-raised:   #12121f;
  --accent:      #9d4edd;
  --accent-glow: #b46ff5;
  --hot:         #e040fb;
  --text:        #f0eaf5;
  --text-dim:    #8a82a0;
  --text-muted:  #4a4560;
  --border:      #1e1b2e;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__band {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
.hero__band--1 {
  top: 15%;
  background: linear-gradient(90deg, transparent 0%, #9d4edd22 40%, #e040fb22 60%, transparent 100%);
  height: 2px;
  filter: blur(1px);
}
.hero__band--2 {
  top: 38%;
  background: linear-gradient(90deg, transparent 0%, #e040fb15 45%, #9d4edd15 55%, transparent 100%);
  height: 1px;
  filter: blur(2px);
}
.hero__band--3 {
  top: 65%;
  background: linear-gradient(90deg, transparent 0%, #9d4edd10 50%, transparent 100%);
  height: 1px;
  filter: blur(4px);
}

/* diagonal light sweep */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at top left, #9d4edd14 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse at top right, #e040fb0d 0%, transparent 60%);
  pointer-events: none;
}

/* grain overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 clamp(24px, 6vw, 80px);
  max-width: 900px;
}

.hero__eyebrow {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}

.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 14vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 28px;
  /* subtle violet glow behind text */
  text-shadow:
    0 0 80px #9d4edd30,
    0 0 120px #9d4edd18;
}

.hero__tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 3.5vw, 38px);
  letter-spacing: 0.06em;
  color: var(--accent-glow);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero__sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-dim);
  max-width: 500px;
  font-weight: 300;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  right: clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
}

.hero__scroll-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px clamp(24px, 6vw, 80px);
  background: var(--bg-surface);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.3;
}

.features__header {
  margin-bottom: 60px;
}

.features__label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
}

.feature-card {
  background: var(--bg-raised);
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-card__icon {
  margin-bottom: 24px;
}

.feature-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 14px;
}

.feature-card__desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 24px;
}

.feature-card__tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  opacity: 0.7;
}

/* ---- VIP ---- */
.vip {
  padding: 100px clamp(24px, 6vw, 80px);
  background: var(--bg);
  position: relative;
}

.vip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hot) 50%, transparent);
  opacity: 0.4;
}

.vip__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
  max-width: 900px;
}

@media (max-width: 640px) {
  .vip__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.vip__badge-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.vip__badge {
  width: 80px;
  height: 80px;
  border: 1.5px solid var(--hot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 0 30px #e040fb30;
}

.vip__badge-star {
  font-size: 1.2rem;
  color: var(--hot);
}

.vip__badge-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--hot);
}

.vip__username-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.username-sample {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.vip__eyebrow {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--hot);
  opacity: 0.8;
  margin-bottom: 16px;
}

.vip__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.vip__body {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 520px;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 100px clamp(24px, 6vw, 80px);
  background: var(--bg-surface);
  position: relative;
}

.manifesto__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.manifesto__quote {
  border-left: none;
  margin-bottom: 40px;
}

.manifesto__quote p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.3;
}

.manifesto__body {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 60px;
}

.manifesto__rule {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.manifesto__rule-mark {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.manifesto__rule-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px clamp(24px, 6vw, 80px);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- SITE HEADER ---- */
.c-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(24px, 6vw, 80px);
  height: 60px;
  display: flex;
  align-items: center;
}

.c-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.c-header__brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-decoration: none;
}

.c-header__nav {
  display: flex;
  gap: 32px;
}

.c-header__link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.c-header__link:hover,
.c-header__link--active { color: var(--text-dim); }

/* ---- COMMUNITY ---- */
.community {
  min-height: 100vh;
  background: var(--bg);
}

.community__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(24px, 6vw, 80px);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  padding: 20px 28px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover { color: var(--text-dim); }

.tab.active {
  color: var(--accent-glow);
  border-bottom-color: var(--accent);
}

.tab svg { opacity: 0.6; }
.tab.active svg { opacity: 1; }

.community__body {
  padding: 80px clamp(24px, 6vw, 80px);
}

.community__header {
  margin-bottom: 48px;
}

.community__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
}

.community__sub {
  font-size: 1rem;
  color: var(--text-dim);
}

/* ---- GAMES GRID ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.games-grid__loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 80px 0;
}

.loading-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
.loading-dot:nth-child(4) { animation-delay: 0.6s; }
.loading-dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.games-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  padding: 80px 0;
}

/* ---- GAME CARD ---- */
.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.game-card:hover { border-color: var(--accent); }

.game-card__cover {
  height: 160px;
  background: var(--bg-raised);
  background-size: cover;
  background-position: center;
  position: relative;
}

.game-card__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card__cover-icon { opacity: 0.5; }

.game-card__body { padding: 28px 24px; }

.game-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 6px;
}

.game-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.game-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
}

.star { flex-shrink: 0; }

.game-card__count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.game-card__desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- RECOMMENDATION SUBMIT ---- */
.rec-submit {
  margin-bottom: 56px;
}

.rec-submit__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent-glow);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rec-submit__toggle:hover {
  background: var(--accent);
  color: var(--text);
}

.rec-submit__form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 36px 32px;
  margin-top: 24px;
  max-width: 680px;
}

.form-row { margin-bottom: 20px; }
.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }

.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  padding: 12px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn--primary:hover:not(:disabled) { background: var(--accent-glow); border-color: var(--accent-glow); }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--ghost {
  background: none;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--ghost:hover { color: var(--text-dim); border-color: var(--text-muted); }

.form-msg {
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 8px 12px;
  display: none;
}

.form-msg--error { color: #ff6b6b; display: block; }
.form-msg--success { color: #6bffa8; display: block; }

/* ---- GAME CARD ACTIONS ---- */
.game-card__actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rec-btn:hover:not(.rec-btn--active) {
  border-color: var(--accent);
  color: var(--accent-glow);
}

.rec-btn--active {
  border-color: var(--hot);
  color: var(--hot);
  cursor: default;
}

.rec-btn--active svg { fill: var(--hot); stroke: var(--hot); }

.rec-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .form-row--two { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 80px; }
  .features__grid { grid-template-columns: 1fr; }
  .vip__inner { grid-template-columns: 1fr; }
  .community__tabs { padding: 0 16px; overflow-x: auto; }
  .tab { padding: 16px 16px 14px; white-space: nowrap; }
  .games-grid { grid-template-columns: 1fr; }
  .rec-submit__form { padding: 24px 20px; }
  .form-actions { flex-wrap: wrap; }
}
