:root {
  color-scheme: dark;
  --gold: #f7c75c;
  --gold-soft: rgba(247, 199, 92, 0.34);
  --red: #7b1116;
  --blue: #0d2b52;
  --panel: rgba(7, 9, 14, 0.78);
  --panel-strong: rgba(11, 12, 18, 0.92);
  --text: #fff6df;
  --muted: #d8c69c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: #05070b;
  overflow-x: hidden;
}

.portal-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.82), rgba(12, 7, 5, 0.22), rgba(4, 7, 14, 0.78)),
    url("/assets/ui/fond-ecran-accueil.png") center / cover no-repeat;
}

.portal-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 90px);
  animation: cinematic-pan 18s ease-in-out infinite alternate;
}

@keyframes cinematic-pan {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.035); opacity: 1; }
}

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

.portal-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(247, 199, 92, 0.24);
  background: rgba(4, 5, 9, 0.72);
  backdrop-filter: blur(16px);
}

.studio-brand,
.portal-nav nav,
.hero-actions,
.game-actions,
.community-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-brand {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(247, 199, 92, 0.34));
}

.brand-name {
  background: linear-gradient(180deg, #fff6c9 0%, #f7c75c 36%, #d75a20 68%, #6ecbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6), 0 0 20px rgba(247, 199, 92, 0.18);
}

.portal-nav nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.portal-nav nav a:hover,
.community-actions a:hover {
  color: var(--gold);
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 64px) 48px;
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  padding: 72px 0 36px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-head span {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff8d6 0%, #ffc94b 26%, #ff6a21 52%, #7ed7ff 78%, #fff8d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 230, 139, 0.45);
  filter: drop-shadow(0 9px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 34px rgba(247, 199, 92, 0.34));
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.hero p,
.studio-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.primary,
.secondary,
.community-actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary {
  background: linear-gradient(180deg, #8f1519, #3d0710);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.08), 0 0 24px rgba(247, 99, 50, 0.2);
}

.secondary,
.community-actions a {
  background: rgba(6, 10, 18, 0.74);
}

.primary:hover,
.secondary:hover,
.community-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(247, 199, 92, 0.28);
}

.hero-emblem {
  padding: 28px;
  border: 1px solid rgba(247, 199, 92, 0.5);
  background: radial-gradient(circle at center, rgba(247, 110, 43, 0.24), rgba(7, 9, 14, 0.86));
  box-shadow: 0 0 58px rgba(247, 199, 92, 0.16);
}

.hero-emblem img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.62));
}

.section-head {
  margin-bottom: 24px;
}

.games-section,
.studio-section,
.community-section {
  margin-top: 44px;
}

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

.game-card {
  position: relative;
  min-height: 360px;
  padding: 22px;
  border: 1px solid rgba(247, 199, 92, 0.46);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 199, 92, 0.9);
  box-shadow: 0 0 36px rgba(247, 199, 92, 0.14), 0 18px 50px rgba(0, 0, 0, 0.32);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.54;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.dragon-card {
  background:
    linear-gradient(180deg, rgba(30, 5, 7, 0.18), rgba(0, 0, 0, 0.86)),
    url("/assets/ui/menu-premium-pc.png") center / cover no-repeat;
}

.monster-card {
  background:
    linear-gradient(180deg, rgba(7, 12, 28, 0.12), rgba(0, 0, 0, 0.84)),
    #101520;
}

.soon-card {
  display: grid;
  align-content: end;
  min-height: 280px;
  filter: grayscale(0.65);
  background:
    linear-gradient(135deg, rgba(50, 16, 64, 0.72), rgba(9, 12, 24, 0.92)),
    repeating-linear-gradient(45deg, rgba(247, 199, 92, 0.08) 0 2px, transparent 2px 22px);
}

.game-media,
.game-content,
.soon-card h3,
.soon-card p,
.lock {
  position: relative;
  z-index: 1;
}

.game-media {
  min-height: 128px;
  display: flex;
  align-items: center;
}

.game-media img {
  max-width: min(100%, 360px);
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.72));
}

.game-content {
  margin-top: auto;
}

.status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(247, 199, 92, 0.6);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.45);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.game-card h3 {
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
}

.game-card p {
  color: var(--muted);
  line-height: 1.5;
}

.game-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}

.lock {
  width: max-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.1em;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 34px;
  border: 1px solid rgba(247, 199, 92, 0.36);
  background: var(--panel-strong);
}

.community-actions {
  flex-wrap: wrap;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 64px);
  color: var(--muted);
  border-top: 1px solid rgba(247, 199, 92, 0.24);
  background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 980px) {
  .portal-nav,
  .studio-section,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-emblem {
    max-width: 360px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .portal-nav nav {
    justify-content: flex-start;
  }

  .hero-actions,
  .game-actions,
  .community-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary,
  .secondary,
  .community-actions a {
    width: 100%;
  }
}
