/*
 * AoW Hub — Wuxia-inspired atmosphere (fan hub; not an official game site).
 * Palette: deep jianghu night, gold scroll accents, ember CTAs — all CSS-only for CSP.
 */
:root {
  --aow-bg-deep: #07090d;
  --aow-bg: #0c1018;
  --aow-bg-mist: rgba(45, 85, 95, 0.12);
  --aow-surface: #141c28;
  --aow-surface-2: #1a2434;
  --aow-border: #2a3548;
  --aow-border-gold: rgba(201, 162, 39, 0.35);
  --aow-text: #e8e4dc;
  --aow-muted: #9a9da8;
  --aow-gold: #d4af37;
  --aow-gold-dim: #8b6914;
  --aow-ember: #c45c2a;
  --aow-ember-deep: #6b1f0f;
  --aow-teal-glow: rgba(45, 120, 130, 0.15);
  --aow-font: system-ui, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --aow-display: Georgia, "Times New Roman", "Noto Serif", Times, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.aow-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--aow-font);
  color: var(--aow-text);
  background-color: var(--aow-bg-deep);
  /* Photo: public/assets/bg.jpg */
  background-image:
    linear-gradient(180deg, rgba(5, 7, 11, 0.78) 0%, rgba(10, 14, 22, 0.68) 45%, rgba(5, 7, 11, 0.88) 100%),
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--aow-teal-glow), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(139, 40, 20, 0.12), transparent 50%),
    url("../bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.aow-skip {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--aow-ember);
  color: #fff;
  text-decoration: none;
}

.aow-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Header (dark bar, gold edge) —— */
.aow-header {
  background: rgba(5, 7, 11, 0.92);
  border-bottom: 1px solid var(--aow-border);
  box-shadow:
    0 1px 0 0 var(--aow-border-gold),
    0 8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.aow-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.aow-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.aow-brand__mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(145deg, #f0d78c 0%, var(--aow-gold) 40%, var(--aow-gold-dim) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(212, 175, 55, 0.25);
  position: relative;
}

.aow-brand__mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 0.2rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.aow-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.aow-brand__name {
  font-family: var(--aow-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #f5e6b8 0%, var(--aow-gold) 45%, var(--aow-gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.aow-brand__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--aow-muted);
}

.aow-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
}

.aow-nav a {
  color: #c8cbd4;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.aow-nav a:hover,
.aow-nav a:focus-visible {
  color: var(--aow-text);
  border-color: var(--aow-gold);
}

/* —— Main —— */
.aow-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* —— Hero —— */
.aow-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}

.aow-hero::before {
  content: "";
  position: absolute;
  top: 15%;
  left: -10%;
  width: 55%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(196, 92, 42, 0.5), transparent);
  transform: rotate(-12deg);
  pointer-events: none;
}

.aow-hero::after {
  content: "";
  position: absolute;
  bottom: 25%;
  right: -5%;
  width: 45%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.aow-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.aow-hero__kicker {
  margin: 0 0 0.75rem;
  font-family: var(--aow-display);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aow-muted);
}

.aow-hero__title {
  margin: 0 0 1rem;
  font-family: var(--aow-display);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff8e0 0%, var(--aow-gold) 42%, var(--aow-gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.aow-hero__lead {
  margin: 0 0 1.85rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #b8bcc8;
}

.aow-hero__lead strong {
  color: var(--aow-text);
  font-weight: 600;
}

.aow-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* —— Buttons (ember gradient, ref-style CTA) —— */
.aow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.aow-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #e0703a 0%, var(--aow-ember) 45%, var(--aow-ember-deep) 100%);
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 12px rgba(196, 92, 42, 0.35);
}

.aow-btn--primary:hover,
.aow-btn--primary:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(196, 92, 42, 0.45);
}

.aow-btn--ghost {
  background: rgba(20, 28, 40, 0.6);
  color: var(--aow-text);
  border-color: var(--aow-border);
}

.aow-btn--ghost:hover,
.aow-btn--ghost:focus-visible {
  border-color: var(--aow-border-gold);
  color: var(--aow-gold);
}

/* —— Feature grid —— */
.aow-section-head {
  margin: 2.5rem 0 1.25rem;
  text-align: center;
}

.aow-section-head__label {
  margin: 0;
  font-family: var(--aow-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aow-muted);
}

.aow-section-head__label::before,
.aow-section-head__label::after {
  content: " · ";
  opacity: 0.7;
}

.aow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.aow-card {
  padding: 1.4rem 1.35rem;
  background: linear-gradient(165deg, var(--aow-surface-2) 0%, var(--aow-surface) 100%);
  border: 1px solid var(--aow-border);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
}

.aow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.08);
}

.aow-card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--aow-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #eee9df;
}

.aow-card p {
  margin: 0;
  color: var(--aow-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* —— Inner pages —— */
.aow-page {
  padding-top: 2rem;
}

.aow-page--news {
  max-width: 38rem;
  margin: 0 auto;
}

.aow-page__title {
  margin: 0 0 1.75rem;
  font-family: var(--aow-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #d5d0c8;
}

.aow-page__title--rule {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.aow-page p {
  color: var(--aow-muted);
  line-height: 1.7;
  max-width: 42rem;
}

.aow-page a {
  color: var(--aow-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.aow-page a:hover,
.aow-page a:focus-visible {
  color: #f0e6c8;
  border-bottom-color: var(--aow-gold);
}

.aow-legal p + p {
  margin-top: 0.85rem;
}

.aow-news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aow-news__item {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aow-news__item:last-child {
  border-bottom: none;
}

.aow-news__date {
  display: block;
  font-family: var(--aow-display);
  font-size: 0.8rem;
  color: var(--aow-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
}

.aow-news__headline {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--aow-text);
  letter-spacing: 0.02em;
}

.aow-news__body {
  margin: 0;
  color: var(--aow-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

/* —— Footer —— */
.aow-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  background: rgba(4, 6, 10, 0.85);
  border-top: 1px solid var(--aow-border);
}

.aow-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.aow-footer p {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: #6d7380;
  max-width: none;
}

.aow-footer p:last-child {
  margin-bottom: 0;
}

/* —— Under construction (single full-page) —— */
.aow-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.aow-soon__inner {
  text-align: center;
  max-width: 28rem;
}

.aow-soon__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--aow-muted);
}

.aow-soon__title {
  margin: 0 0 1.25rem;
  font-family: var(--aow-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff8e0 0%, var(--aow-gold) 42%, var(--aow-gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aow-soon__msg {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--aow-text);
}

.aow-soon__sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--aow-muted);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.aow-body {
    background-attachment: scroll;
  }

  .aow-btn {
    transition: none;
  }
}
