:root {
  --col-bg:         #0a0d08;        
  --col-surface:    #111a0e;        
  --col-green:      #3dff8f;        
  --col-green-dim:  #1a7a3a;        
  --col-gold:       #c9a227;        
  --col-gold-light: #f0cc55;        
  --col-text:       #d4c99a;        
  --col-muted:      #7a7259;        
  --col-red:        #8b1a1a;        
  --radius:         6px;            
  --transition:     0.35s ease;     
}

/* Reset – box-sizing a nulové odsazení */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Plynulý posun na kotvy */
}

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--col-bg);
  color: var(--col-text);
  overflow-x: hidden; /* Zamezení horizontálnímu posunu */
}


/* 2. TYPOGRAFIE */

/* Dekorativní font pro hlavní nadpisy */
h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  line-height: 1.2;
}

/* Serifový font pro podnadpisy karet */
h4 {
  font-family: 'Cinzel', serif;
  letter-spacing: .08em;
}


/* 3. UTILITY TŘÍDY */

/* Centrovaný obsah s maximální šířkou */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Zlatá barva textu */
.gold  { color: var(--col-gold-light); }

/* Zelená barva textu */
.green { color: var(--col-green); }

/* Dekorativní oddělovač s čárami a textem */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 600px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--col-gold), transparent);
}
.divider span {
  font-family: 'Cinzel', serif;
  color: var(--col-gold);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Titulek sekce – centrovaný, zlatý, se zásvitem */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--col-gold-light);
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(201,162,39,.5);
}


/* 4. NAVIGACE */

/* Pevná navigace nahoře přes celou stránku */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(8, 12, 7, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,162,39,.25);
  transition: var(--transition);
}

/* Vnitřní flex řádek navbaru */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo v navigaci */
.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(61,255,143,.4));
}

/* Hamburger tlačítko (viditelné jen na mobilu) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--col-gold);
  transition: var(--transition);
}

/* Seznam navigačních odkazů */
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--col-text);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

/* Podtržení linkou při hoveru */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--col-green);
  transition: width var(--transition);
}
.nav-links a:hover            { color: var(--col-green); }
.nav-links a:hover::after     { width: 100%; }


/* 5. HERO SEKCE */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Animované pozadí s jemným přiblížením */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('img/Background_3.png');
  background-size: cover;
  background-position: center top;
  filter: brightness(.35) saturate(1.3);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

/* Gradientní překryv pro plynulý přechod do pozadí stránky */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(10,13,8,.5) 60%,
    var(--col-bg) 100%
  );
}

/* Vignetový efekt na okrajích */
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(10,13,8,.8) 100%
  );
}

/* Obsah hero sekce */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 1.5rem 4rem;
  max-width: 900px;
}

/* Badge nad hlavním nadpisem */
.hero-badge {
  display: inline-block;
  border: 1px solid var(--col-green-dim);
  background: rgba(61,255,143,.08);
  color: var(--col-green);
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: .35rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1.4rem;
  animation: fadeDown .8s ease both;
}

/* Hlavní titulek */
.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--col-gold-light);
  text-shadow:
    0 0 40px rgba(201,162,39,.6),
    0 0 80px rgba(201,162,39,.3);
  animation: fadeDown .9s .1s ease both;
  line-height: 1;
}

/* Podtitulek */
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--col-text);
  margin: 1.2rem auto;
  max-width: 600px;
  font-style: italic;
  animation: fadeDown 1s .2s ease both;
}

/* Dvojice postav v hero */
.hero-chars {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 2rem auto 0;
  max-width: 600px;
  animation: fadeUp 1.1s .3s ease both;
}
.hero-chars img {
  height: clamp(280px, 40vw, 420px);
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(61,255,143,.35));
  transition: transform .4s ease;
}
.hero-chars img:first-child { transform: translateX(20px); }
.hero-chars img:last-child  { transform: translateX(-20px); }
.hero-chars img:hover       { transform: translateY(-8px) scale(1.03) !important; }

/* CTA tlačítko */
.btn-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: .9rem 2.8rem;
  background: linear-gradient(135deg, var(--col-green-dim), #0d5c2a);
  border: 1px solid var(--col-green);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(61,255,143,.2);
  transition: all var(--transition);
  animation: fadeUp 1.2s .4s ease both;
  cursor: pointer;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #1a9b4a, var(--col-green-dim));
  box-shadow: 0 0 35px rgba(61,255,143,.45);
  transform: translateY(-2px);
}

/* Keyframe animace hero elementů */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animovaná šipka dolů */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-hint svg {
  width: 24px; height: 24px;
  stroke: var(--col-gold);
  fill: none;
  opacity: .6;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* 6. SEKCE: O HŘE */

#o-hre {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--col-bg) 0%, #0b1209 100%);
}

/* Obrázek mapy světa */
.world-map-wrap {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  width: 100%;
}
.world-map-wrap img {
  max-width: min(700px, 90%);
  border-radius: 8px;
  filter: sepia(.3) saturate(1.2);
  box-shadow: 0 0 60px rgba(201,162,39,.15);
}

/* Kontejner lore textu s pergamenovým pozadím */
.scroll-box {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.scroll-box-bg {
  position: absolute; inset: 0;
  background-image: url('Random_Events_Scroll.png');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  opacity: .18; /* Jemné překryté pozadí */
}
.scroll-box-content {
  position: relative; z-index: 1;
  background: rgba(10, 14, 8, 0.82);
  border: 1px solid rgba(201,162,39,.2);
  border-radius: 8px;
  padding: 2.5rem 3rem;
}

/* Odstavec lore textu */
.lore-text {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}
.lore-text:last-child { margin-bottom: 0; }

/* Citát vývojáře */
.game-quote {
  border-left: 3px solid var(--col-green-dim);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(61,255,143,.04);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #b8d4b8;
}

/* Flex řádek štítků platforem */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Štítek platformy */
.platform-tag {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem 1.2rem;
  border: 1px solid var(--col-gold);
  color: var(--col-gold);
  border-radius: 3px;
  background: rgba(201,162,39,.06);
  transition: all var(--transition);
}
.platform-tag:hover {
  background: rgba(201,162,39,.15);
  box-shadow: 0 0 12px rgba(201,162,39,.2);
}


/* 7. SEKCE: LESAPÁN (POVOLÁNÍ) */

#lesapan {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61,255,143,.05) 0%, transparent 70%),
    #0b1209;
}

/* Dvousloupcové rozvržení: artwork | popis */
.char-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

/* Blok s obrázkem postavy */
.char-art {
  text-align: center;
  position: relative;
}
.char-art img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(61,255,143,.3));
  animation: floatChar 5s ease-in-out infinite alternate;
}

/* Plynoucí animace postavy nahoru-dolů */
@keyframes floatChar {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* Přepínač muž / žena */
.gender-toggle {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.2rem;
}
.gender-btn {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border: 1px solid var(--col-gold);
  background: transparent;
  color: var(--col-gold);
  cursor: pointer;
  border-radius: 3px;
  transition: all var(--transition);
}
.gender-btn.active,
.gender-btn:hover {
  background: var(--col-gold);
  color: var(--col-bg);
}

/* Textová část s popisem postavy */
.char-info h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--col-gold-light);
  margin-bottom: 1.2rem;
}
.char-info p {
  line-height: 1.85;
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

/* Logo třídy pod popisem */
.class-logo {
  margin-top: 1.8rem;
  text-align: left;
}
.class-logo img {
  max-width: 140px;
  filter: drop-shadow(0 0 10px rgba(61,255,143,.25));
}


/* 8. SEKCE: SCHOPNOSTI */

#schopnosti {
  padding: 6rem 0;
  background: var(--col-bg);
}

/* Automatická mřížka karet schopností */
.abilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Karta schopnosti */
.ability-card {
  background: rgba(17,26,14,.85);
  border: 1px solid rgba(61,255,143,.15);
  border-radius: 8px;
  overflow: hidden;
  transition: all .4s ease;
  cursor: default;
  position: relative;
}

/* Zelený přesvit při hoveru */
.ability-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(61,255,143,.06), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.ability-card:hover {
  border-color: var(--col-green);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(61,255,143,.12),
    0 0 0 1px rgba(61,255,143,.15);
}
.ability-card:hover::before { opacity: 1; }

/* Ultimátka – zlatý border, přes celou šířku mřížky */
.ability-card.ultimate {
  border-color: rgba(201,162,39,.35);
  grid-column: 1 / -1;
}
.ability-card.ultimate::before {
  background: linear-gradient(135deg, rgba(201,162,39,.06), transparent);
}
.ability-card.ultimate:hover {
  border-color: var(--col-gold);
  box-shadow: 0 12px 40px rgba(201,162,39,.12);
}

/* Obrázek schopnosti */
.ability-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: saturate(1.3) brightness(.9);
  transition: filter .4s ease;
}
.ability-card.ultimate .ability-img { height: 200px; }
.ability-card:hover .ability-img { filter: saturate(1.6) brightness(1.05); }

/* Textová část karty */
.ability-body {
  padding: 1.4rem 1.6rem;
}
.ability-body h4 {
  font-size: 1rem;
  color: var(--col-gold-light);
  margin-bottom: .6rem;
}
.ability-card.ultimate .ability-body h4 {
  font-size: 1.1rem;
}
.ability-body p {
  font-size: .92rem;
  line-height: 1.7;
}

/* Červený odznak "Ultimátka" */
.ultimate-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--col-red), #6b1111);
  color: #ffd;
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 2px;
  margin-left: .6rem;
  vertical-align: middle;
}


/* 9. SEKCE: VYDÁNÍ & MAPA */

#vydani {
  padding: 6rem 0;
  background: linear-gradient(180deg, #0b1209 0%, var(--col-bg) 100%);
}

/* Dvousloupcové rozvržení: info | mapa */
.vydani-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

/* Boxík s datem vydání */
.release-date-box {
  background: rgba(201,162,39,.07);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.release-label {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--col-muted);
  margin-bottom: .5rem;
}
.release-big {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--col-gold-light);
  text-shadow: 0 0 30px rgba(201,162,39,.5);
}
.release-note {
  font-size: .85rem;
  font-style: italic;
  color: var(--col-muted);
  margin-top: .5rem;
}

/* Štítky platforem v sekci vydání */
.platforms-vydani {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

/* Mapa světa (dekorativní pravý sloupec) */
.map-art img {
  width: 100%;
  border-radius: 8px;
  filter: sepia(.5) saturate(1.4) brightness(.8);
  transition: filter .4s ease;
}
.map-art img:hover {
  filter: sepia(.2) saturate(1.6) brightness(.95);
}

/* Sekce mazlíčka Archibalda */
.pet-section {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background: rgba(17,26,14,.6);
  border: 1px solid rgba(61,255,143,.1);
  border-radius: 8px;
}
.pet-section img {
  max-width: 250px;
  border-radius: 8px;
  filter: drop-shadow(0 0 20px rgba(61,255,143,.2));
}
.pet-section h4 {
  color: var(--col-green);
  margin-top: 1rem;
}
.pet-section p {
  font-size: .9rem;
  font-style: italic;
  margin-top: .5rem;
}


/* 10. FOOTER / KONTAKT */

#kontakt {
  padding: 5rem 0 3rem;
  background: #060908;
  border-top: 1px solid rgba(201,162,39,.15);
}

/* Třísloupcová mřížka footeru */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Popisky sloupců footeru */
.footer-col h4 {
  color: var(--col-gold);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(201,162,39,.2);
}
.footer-col p,
.footer-col a {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--col-muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--col-green); }

/* Prostřední sloupec footeru – logo a studio */
.footer-logo-wrap { text-align: center; }
.footer-logo-wrap img {
  max-width: 100px;
  filter: drop-shadow(0 0 8px rgba(61,255,143,.2));
}
.footer-logo-wrap p {
  margin-top: .8rem;
  font-size: .8rem;
  font-style: italic;
  color: var(--col-muted);
}

/* Seznam partnerů – dekorativní odrážky */
.partners-list { list-style: none; }
.partners-list li {
  font-size: .9rem;
  color: var(--col-muted);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
}
.partners-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: .5rem;
  color: var(--col-green-dim);
  top: .4rem;
}

/* Spodní copyright lišta */
.footer-bar {
  border-top: 1px solid rgba(201,162,39,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .78rem;
  color: var(--col-muted);
  font-style: italic;
}


/* 11. PARTICLES CANVAS */

/* Canvas s plovoucími lístky – překrývá celou stránku, neklikatelný */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}


/* 12. SCROLL REVEAL ANIMACE */

/* Výchozí stav: skrytý a posunutý dolů */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

/* Třída přidaná JavaScriptem při vstupu do viewportu */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* 13. RESPONZIVITA – MEDIA QUERIES */

/* Tablet a menší (768px) */
@media (max-width: 768px) {
  /* Hamburger menu – skryté nav-links, zobrazit toggle */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(8,12,7,.97);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(201,162,39,.2);
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; }

  /* Jednosloupcoé layouty */
  .char-layout  { grid-template-columns: 1fr; }
  .vydani-grid  { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }

  /* Zúžení vnitřního paddingu scroll boxu */
  .scroll-box-content { padding: 1.5rem; }

  /* Zmenšení postaviček v hero */
  .hero-chars img { height: clamp(200px, 35vw, 300px); }

  /* Ultimátka se chová jako ostatní karty */
  .ability-card.ultimate { grid-column: 1; }
}

/* Mobilní (480px) */
@media (max-width: 480px) {
  /* Jeden sloupec pro karty schopností */
  .abilities-grid { grid-template-columns: 1fr; }
}
