/* =================================================
RESET
================================================= */

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

html,body{
height:100%;
scroll-behavior:smooth;
/* overflow-x:hidden on BOTH html and body — iOS Safari ignores the
   rule when set on body alone, so we get an unwanted horizontal scroll
   from any decorative pseudo-element that overflows. */
overflow-x:hidden;
/* Force the layout viewport to the device width so 700px-wide blur
   pseudos in .hero / .community-box can't push the page past 100vw. */
max-width:100%;
}

body{
font-family:Segoe UI,Arial,sans-serif;
color:#e6e6e6;
background:#05060c;
overflow-x:hidden;
min-height:100vh;
display:flex;
flex-direction:column;
position:relative;          /* anchor for absolutely-positioned children */
}

/* Default safe sizing for media so a rogue image in user content
   (guides, news) can't blow out the layout. */
img, video, iframe, svg, canvas{
max-width:100%;
height:auto;
}

/* =================================================
BACKGROUND
================================================= */

body::before{
content:"";
position:fixed;
inset:0;
background:
radial-gradient(circle at 20% 10%,rgba(88,101,242,.35),transparent 40%),
radial-gradient(circle at 80% 0%,rgba(202,166,90,.25),transparent 45%),
linear-gradient(180deg,#070812 0%,#020308 100%);
z-index:-3;
animation:bgPulse 10s ease-in-out infinite;
}

body::after{
content:"";
position:fixed;
inset:0;
background:url("assets/img/hero.png") center top/cover no-repeat;
opacity:.35;
z-index:-2;
pointer-events:none;
}

/* =================================================
NAVBAR
================================================= */

.navbar{
position:fixed;
top:0;
width:100%;
background:rgba(5,6,14,.85);
backdrop-filter:blur(12px);
border-bottom:1px solid rgba(255,255,255,.05);
z-index:9999;
box-shadow:0 10px 35px rgba(0,0,0,.6);
}

.container{
max-width:1200px;
margin:auto;
padding:18px 25px;
display:flex;
justify-content:space-between;
align-items:center;
}

.logo img{
height:50px;
}

.menu{
display:flex;
gap:30px;
}

.menu a{
color:#ddd;
text-decoration:none;
font-weight:600;
position:relative;
}

.menu a:hover{
color:#fff;
}

.menu a::after{
content:"";
position:absolute;
left:0;
bottom:-6px;
width:0%;
height:2px;
background:linear-gradient(90deg,#5865F2,#caa65a);
transition:.3s;
}

.menu a:hover::after{
width:100%;
}

/* =================================================
HAMBURGER
================================================= */

.hamburger{
display:none;
font-size:30px;
cursor:pointer;
color:#fff;
}

/* =================================================
HERO
================================================= */

.hero{
/* Hero is now slim: logo + tagline + PLAY NOW only. Timeline moved
   to its own .timeline-section below the gold divider so it gets a
   clean document flow without fighting the hero's flex layout. */
min-height:100vh;
padding-top:100px;
padding-bottom:60px;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
position:relative;
overflow:hidden;
}

/* Tagline that lives INSIDE the hero, just under the floating logo.
   Narrower than the standalone .seo-box used elsewhere so it reads
   as a subtitle, not as a content block. */
.seo-box.hero-tagline{
    max-width:760px;
    margin:8px auto 20px;
    padding:18px 28px;
    font-size:14px;
    line-height:1.65;
}
/* hero-content needs an explicit width otherwise the flex parent
   (.hero with align-items:flex-start) can leave it auto-sized at
   the natural width of the WIDEST child — bad on narrow screens. */
.hero-content{
    width:100%;
    max-width:920px;
    margin:0 auto;
    position:relative;
    z-index:1;
}
.seo-box.hero-tagline p{
    margin:0;
    color:#cbd5e1;
    font-weight:normal;
}
.seo-box.hero-tagline b{
    /* the source markup wraps the whole paragraph in <b> — tone it down */
    font-weight:normal;
}

@media (max-width: 600px){
    .hero{
        padding-top:60px;
        padding-bottom:40px;
    }
    .seo-box.hero-tagline{
        font-size:13px;
        padding:14px 18px;
        margin:6px auto 20px;
    }
}

.hero::after{
content:"";
position:absolute;
/* Center the glow so it sits behind the hero text regardless of the
   element's intrinsic position. Without this it defaults to top:auto
   /left:auto and behaves unpredictably across browsers. */
top:50%;
left:50%;
transform:translate(-50%, -50%);
width:700px;
height:700px;
/* Cap to viewport on small screens so the blur stays inside .hero
   even at 320px-wide phones. */
max-width:100vw;
max-height:100vh;
background:radial-gradient(circle,#5865F2 0%,transparent 65%);
filter:blur(160px);
opacity:.35;
z-index:-1;
/* Make sure mouse events go straight through the decorative glow. */
pointer-events:none;
}

.hero img{
max-width:650px;
width:90%;
margin-bottom:25px;
animation:heroFloat 6s ease-in-out infinite;
}

.hero h1{
font-size:46px;
margin-bottom:20px;
background:linear-gradient(90deg,#fff,#caa65a);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

/* =================================================
BUTTON
================================================= */

.btn{
background:linear-gradient(45deg,#5865F2,#7b84ff);
padding:16px 34px;
border-radius:8px;
text-decoration:none;
color:white;
font-weight:700;
display:inline-block;
transition:.3s;
box-shadow:0 8px 25px rgba(88,101,242,.45);
position:relative;
overflow:hidden;
}

.btn::before{
content:"";
position:absolute;
top:0;
left:-100%;
width:100%;
height:100%;
background:linear-gradient(120deg,transparent,rgba(255,255,255,.4),transparent);
transition:.5s;
}

.btn:hover::before{
left:100%;
}

.btn:hover{
transform:translateY(-5px);
box-shadow:
0 12px 35px rgba(88,101,242,.6),
0 0 20px rgba(88,101,242,.5);
}

/* =================================================
SECTION
================================================= */

.section{
padding-top:140px;
padding-bottom:80px;
max-width:1050px;
margin:auto;
}

h1{
text-align:center;
margin-bottom:45px;
font-size:42px;
background:linear-gradient(90deg,#ffffff,#caa65a);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

/* =================================================
COUNTDOWN
================================================= */

.countdown{
display:flex;
justify-content:center;
gap:20px;
flex-wrap:wrap;
}

.countdown div{
background:rgba(18,20,40,.75);
border:1px solid rgba(255,255,255,.08);
padding:20px 30px;
border-radius:12px;
backdrop-filter:blur(8px);
box-shadow:0 10px 30px rgba(0,0,0,.6);
}

.countdown span{
font-size:34px;
color:#caa65a;
font-weight:bold;
}

/* =================================================
INFO GRID
================================================= */

.info-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
margin-top:40px;
}

.info-box{
background:rgba(18,20,40,.65);
backdrop-filter:blur(10px);
padding:32px;
border-radius:14px;
text-align:center;
border:1px solid rgba(255,255,255,.08);
transition:.35s;
}

.info-box:hover{
transform:translateY(-10px);
border-color:#5865F2;
box-shadow:0 10px 35px rgba(0,0,0,.7);
}

/* =================================================
FEATURES (features.php)
================================================= */

.features-wrapper{
display:flex;
flex-direction:column;
gap:20px;
}

.feature-toggle{
background:rgba(18,20,40,.85);
border-radius:12px;
overflow:visible;
border:1px solid rgba(255,255,255,.05);
transition:.3s;
}

.feature-header{
padding:22px;
cursor:pointer;
background:#141832;
position:relative;
font-weight:600;
}

.feature-header::after{
content:"+";
position:absolute;
right:25px;
font-size:22px;
}

.feature-toggle.active .feature-header::after{
content:"-";

}

.feature-content{
max-height:0;
overflow:hidden;
transition:.4s;
padding:0 25px;
}

.feature-toggle.active .feature-content{
max-height:4000px;
padding:25px;
overflow:visible;
}

/* =================================================
FEATURES: crafting details
================================================= */

.feature-inner{
    margin: 18px 0 20px;
    padding: 18px 20px;
    border-radius: 10px;
    background: rgba(10, 16, 36, 0.88);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.feature-split{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.feature-text{
    flex: 1 1 60%;
    line-height: 1.7;
}

.feature-image{
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img{
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px){
    .feature-split{
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-image{
        flex: none;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .feature-image img{
        max-width: 100%;
    }
    }


/* =================================================
TABLES (features)
================================================= */

.l2-table{
width:100%;
border-collapse:collapse;
margin-top:25px;
background:rgba(10,12,28,.95);
}

.l2-table th{
background:#1e2246;
color:#caa65a;
padding:14px;
}

.l2-table td{
padding:14px;
text-align:center;
border-top:1px solid rgba(255,255,255,.05);
}

/* ===== Headery tabel z grafik� po prawej ===== */

.l2-block {
    margin: 0 0 28px;
}

.l2-table-title {
    --title-color: #ffffff;
    --header-image: none;

    position: relative;
    display: flex;
    align-items: center;
    min-height: 68px;
    margin: 24px 0 0;
    padding: 0 22px;
    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;

    background: linear-gradient(
        90deg,
        rgba(5, 10, 30, 0.98) 0%,
        rgba(10, 18, 45, 0.96) 45%,
        rgba(18, 28, 60, 0.92) 100%
    );
}

.l2-table-title span {
    position: relative;
    z-index: 3;
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--title-color);
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* delikatne przyciemnienie pod tekst */
.l2-table-title::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(4, 8, 24, 0.95) 0%,
        rgba(4, 8, 24, 0.72) 42%,
        rgba(4, 8, 24, 0.25) 72%,
        rgba(4, 8, 24, 0) 100%
    );
    pointer-events: none;
}

/* grafika po prawej z przej�ciem do przezroczysto�ci */
.l2-table-title::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(44%, 420px);
    z-index: 2;
    pointer-events: none;

    background-image: var(--header-image);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    opacity: 0.95;

    -webkit-mask-image: linear-gradient(
        to left,
        rgba(0,0,0,1) 35%,
        rgba(0,0,0,0.85) 55%,
        rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(
        to left,
        rgba(0,0,0,1) 35%,
        rgba(0,0,0,0.85) 55%,
        rgba(0,0,0,0) 100%
    );
}

/* po��czenie headera z tabel� */
.l2-block .l2-table {
    margin-top: 0;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}


/* ===== Kolory + obrazki dla konkretnych header�w ===== */

.cloak-feather {
    --title-color: #ffffff;
    --header-image: url('../assets/headers/f1.jpg');
}

.cloak-wind {
    --title-color: #ffffff;
    --header-image: url('../assets/headers/wind.jpg');
}

.cloak-regeneration {
    --title-color: #ffffff;
    --header-image: url('../assets/headers/regen.jpg');
}

.cloak-nature {
    --title-color: #ffffff;
    --header-image: url('../assets/headers/nature.jpg');
}

.cloak-defense {
    --title-color: #ffffff;
    --header-image: url('../assets/headers/defense.jpg');
}

.cloak-fortitude {
    --title-color: #ffffff;
    --header-image: url('../assets/headers/fortitude.jpg');
}

.cloak-pledge {
    --title-color: #ffffff;
    --header-image: url('../assets/headers/pledge.jpg');
}

/* mobile */
@media (max-width: 768px) {
    .l2-table-title {
        min-height: 56px;
        padding: 0 16px;
    }

    .l2-table-title span {
        font-size: 22px;
    }

    .l2-table-title::after {
        width: 48%;
        opacity: 0.75;
    }
}

.l2-table {
    width: 100%;
    table-layout: fixed; 
}

.l2-table th:first-child,
.l2-table td:first-child {
    width: 40%;
    text-align: left;
}


/* =================================================
DOWNLOAD (download.php)
================================================= */

.download-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
}

.download-card{
background: url("assets/img/launchertab.png") center/cover no-repeat;
padding:40px;
border-radius:14px;
text-align:center;
border:1px solid rgba(255,255,255,.08);
transition:.3s;
backdrop-filter:blur(6px);
position:relative;
overflow:hidden;
}

/* overlay dla czytelno�ci */
.download-card::before{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,.45);
z-index:0;
}

/* �eby tekst by� nad overlay */
.download-card *{
position:relative;
z-index:1;
}

.download-card:hover{
transform:translateY(-8px) scale(1.02);
border-color:#5865F2;
box-shadow:0 10px 35px rgba(0,0,0,.6);
}

.download-icon img{
width:80px;
margin:auto;
display:block;
}

/* =================================================
EVENTS (events.php)
================================================= */

.events-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
margin-top:40px;
}

.event-card{
background:rgba(18,20,40,.85);
border-radius:12px;
padding:30px;
border:1px solid rgba(255,255,255,.05);
transition:.3s;
}

.event-card:hover{
transform:translateY(-6px);
border-color:#5865F2;
box-shadow:0 10px 30px rgba(0,0,0,.6);
}

/* =================================================
FOOTER
================================================= */

footer{
text-align:center;
padding:40px;
margin-top:auto;
background:rgba(0,0,0,.6);
}

/* =================================================
MOBILE MENU FIX
================================================= */

@media(max-width:900px){

.hamburger{
display:block;
}

.menu{
flex-direction:column;
position:absolute;
top:75px;
left:0;
width:100%;
background:rgba(5,6,14,.98);
display:none;
padding:20px 0;
text-align:center;
}

.menu a{
display:block;
padding:14px 0;
}

.menu.active{
display:flex;
}

.hero h1{
font-size:32px;
}

.hero img{
max-width:420px;
}

}

/* =================================================
ANIMATIONS
================================================= */

@keyframes heroFloat{
0%{transform:translateY(0);}
50%{transform:translateY(-12px);}
100%{transform:translateY(0);}
}

@keyframes bgPulse{
0%{opacity:1;}
50%{opacity:.85;}
100%{opacity:1;}
}

/* =================================================
VOTE + FIND US FIX
================================================= */

.vote-grid,
.social-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:30px;
margin-top:40px;
}

.vote-card,
.social-card{
background:rgba(18,20,40,.7);
padding:25px;
border-radius:14px;
text-align:center;
text-decoration:none;
color:#fff;
border:1px solid rgba(255,255,255,.08);
transition:.3s;
backdrop-filter:blur(10px);
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
}

.vote-card img{
height:55px;
width:auto;
margin-bottom:10px;
object-fit:contain;
}

.social-card img{
height:45px;
width:auto;
margin-bottom:10px;
object-fit:contain;
}

.vote-card:hover{
transform:translateY(-6px);
border-color:#caa65a;
box-shadow:0 10px 35px rgba(0,0,0,.6);
}

.social-card:hover{
transform:translateY(-6px);
border-color:#5865F2;
box-shadow:0 10px 35px rgba(0,0,0,.6);
}


/* =================================================
FOOTER FIX
================================================= */

footer{
text-align:center;
padding:30px 20px;
margin-top:auto;
background:rgba(0,0,0,.7);
border-top:1px solid rgba(255,255,255,.05);
font-size:14px;
color:#aaa;
}

footer p{
margin:6px 0;
}

footer a{
color:#caa65a;
text-decoration:none;
}

footer a:hover{
text-decoration:underline;
}

/* =================================================
COMMUNITY SECTION IMPROVED
================================================= */

.community{
padding:120px 20px;
text-align:center;
}

.community-box{
max-width:700px;
margin:auto;
background:rgba(18,20,40,.75);
padding:60px 40px;
border-radius:16px;
border:1px solid rgba(255,255,255,.08);
backdrop-filter:blur(12px);
box-shadow:0 20px 50px rgba(0,0,0,.6);
position:relative;
overflow:hidden;
}

/* lekka aura jak w L2 */

.community-box::before{
content:"";
position:absolute;
top:-150px;
left:-150px;
width:300px;
height:300px;
background:radial-gradient(circle,#5865F2,transparent 70%);
opacity:.25;
filter:blur(80px);
}

.community-box::after{
content:"";
position:absolute;
bottom:-150px;
right:-150px;
width:300px;
height:300px;
background:radial-gradient(circle,#caa65a,transparent 70%);
opacity:.25;
filter:blur(80px);
}

.community-box h1{
margin-bottom:15px;
}

.community-box p{
color:#bbb;
font-size:16px;
margin-bottom:35px;
}

/* BUTTONS */

.community-buttons{
display:flex;
justify-content:center;
gap:25px;
flex-wrap:wrap;
}

.discord-btn{
padding:16px 40px;
border-radius:10px;
text-decoration:none;
font-weight:600;
font-size:15px;
color:#fff !important;
background:linear-gradient(135deg,#5865F2,#7b8cff);
box-shadow:0 10px 25px rgba(88,101,242,.35);
transition:.25s;
}

.discord-btn.alt{
background:linear-gradient(135deg,#7c3aed,#a78bfa);
}

.discord-btn:hover{
transform:translateY(-4px);
box-shadow:0 15px 35px rgba(120,120,255,.45);
}

/* =================================================
DISCORD BUTTON IN MENU
================================================= */

.discord-fire{
padding:8px 18px;
border-radius:8px;
background:linear-gradient(135deg,#5865F2,#7b8cff);
color:#fff !important;
font-weight:700;
transition:.25s;
box-shadow:0 6px 15px rgba(88,101,242,.35);
}

.discord-fire:hover{
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(88,101,242,.45);
background:linear-gradient(135deg,#6a76ff,#8c96ff);
}

/* =================================================
GOLD DIVIDER
================================================= */

.gold-divider{
position:relative;
width:100%;
height:70px;
display:flex;
align-items:center;
justify-content:center;
margin:80px 0;
/* keep the divider above any hero background pseudo / animated layers
   so it cleanly separates sections instead of getting overlapped */
z-index:1;
}

.gold-divider::before,
.gold-divider::after{
content:"";
flex:1;
height:2px;
background:linear-gradient(
90deg,
transparent,
#caa65a,
#f6d365,
#caa65a,
transparent
);
opacity:.9;
}

.gold-divider::before{
margin-right:25px;
}

.gold-divider::after{
margin-left:25px;
}

.gold-divider span{
width:16px;
height:16px;
border:2px solid #caa65a;
transform:rotate(45deg);
background:rgba(202,166,90,.15);
box-shadow:
0 0 8px rgba(202,166,90,.6),
0 0 18px rgba(202,166,90,.4);
}

/* RATES */

.rates-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:18px;
margin-top:20px;
}

.rate-item{
background:rgba(10,12,28,.9);
border-radius:10px;
padding:18px;
border:1px solid rgba(255,255,255,.06);
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
transition:.25s;
}

.rate-item:hover{
transform:translateY(-4px);
border-color:#caa65a;
box-shadow:0 10px 25px rgba(0,0,0,.6);
}

.rate-number{
font-size:30px;
font-weight:700;
color:#caa65a;
}

.rate-text{
font-size:13px;
letter-spacing:1px;
opacity:.85;
}

/* ===============================
CHRONICLE LIST
=============================== */

.chronicle-list{

list-style:none;
margin-top:15px;
display:flex;
flex-direction:column;
gap:10px;

}

.chronicle-list li{

background:rgba(10,12,28,.85);

padding:10px 14px;

border-radius:8px;

border:1px solid rgba(255,255,255,.05);

font-size:14px;

position:relative;

transition:.25s;

}

.chronicle-list li:hover{

border-color:#caa65a;

transform:translateX(4px);

}

/* gold bullet */

.chronicle-list li::before{

content:">";

color:#caa65a;

margin-right:8px;

}

/* ===============================
START DATE
=============================== */

.start-date{

display:flex;
align-items:center;
justify-content:center;

gap:15px;

margin-top:15px;

}

.start-day{

font-size:46px;

font-weight:800;

color:#caa65a;

line-height:1;

}

.start-info{

display:flex;

flex-direction:column;

align-items:flex-start;

}

.start-month{

font-size:16px;

font-weight:600;

}

.start-type{

font-size:12px;

letter-spacing:2px;

color:#5865F2;

margin-top:2px;

}

#country-stats p {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

#country-stats p:nth-child(1){animation-delay:0.1s;}
#country-stats p:nth-child(2){animation-delay:0.2s;}
#country-stats p:nth-child(3){animation-delay:0.3s;}
#country-stats p:nth-child(4){animation-delay:0.4s;}
#country-stats p:nth-child(5){animation-delay:0.5s;}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card a{
color:#fff;
font-weight:700;
text-decoration:underline;
text-shadow:0 0 8px rgba(0,0,0,.9);
}

.download-card a:hover{
color:#caa65a;
text-shadow:0 0 12px rgba(202,166,90,.8);
}

.site-footer {
  background: #0d0d0d;
  color: #cfcfcf;
  padding: 30px 40px;
  border-top: 1px solid #222;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left p {
  margin: 0;
  font-size: 14px;
}

/* ?? obrazek po prawej */
.footer-right {
  position: relative;
}

.footer-image {
  max-height: 120px;
  width: auto;
  display: block;

  /* efekt jak na screenie (lekko "wychodzi" z footera) */
  transform: translateY(-20px);

  /* opcjonalny glow */
  filter: drop-shadow(0 0 15px rgba(255, 180, 0, 0.3));
}

/* ?? mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-image {
    margin-top: 15px;
    transform: none;
    max-height: 90px;
  }
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  text-align: left;
}

.footer-right {
  position: relative;
}

.footer-image {
  max-height: 120px;
  transform: translateY(-20px);
  display: block;
}

/* ?? seobox na glownej index.php */
.seo-box {
    max-width: 800px;
    margin: 40px auto;
    padding: 25px 30px;
    
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid #caa65a;
    border-radius: 12px;
    
    text-align: center;
    
    box-shadow: 0 0 25px rgba(202, 166, 90, 0.2);
    
    backdrop-filter: blur(6px);
}

.seo-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #eaeaea;
    margin: 10px 0;
}

.seo-box b {
    color: #f6d365;
    font-weight: 600;
}

/* =================================================
   PROJECT ORTOS TIMELINE (own section under hero)
   ================================================= */

.timeline-section{
    /* lighter than the standard .section because the timeline-wrap
       already brings its own breathing room above and below the
       track. */
    padding:30px 0 50px;
}
.timeline-section h1{
    margin-bottom:8px;
}

.timeline-wrap{
    width:100%;
    max-width:760px;
    margin:36px auto 12px;
    /* trimmed bottom padding — there was 72px under the track that
       added empty space below the date labels, pushing the next
       section (or the divider above it) visually onto the timeline. */
    padding:64px 40px 36px;
    position:relative;
}

.timeline-track{
    position:relative;
    height:4px;
    background:rgba(255,255,255,0.08);
    border-radius:2px;
}

.timeline-progress{
    position:absolute;
    top:0;
    left:0;
    height:100%;
    width:0%;
    background:linear-gradient(90deg,#caa65a 0%,#caa65a 50%,#5865F2 100%);
    border-radius:2px;
    box-shadow:0 0 14px rgba(202,166,90,0.5);
    transition:width 0.8s ease;
    pointer-events:none;
}

/* "today" vertical needle that travels along the track */
.timeline-today{
    position:absolute;
    top:-12px;
    left:0%;
    width:2px;
    height:28px;
    background:#fff;
    transform:translateX(-50%);
    z-index:3;
    pointer-events:none;
    box-shadow:0 0 8px rgba(255,255,255,0.6);
}
.timeline-today-label{
    position:absolute;
    top:-22px;
    left:50%;
    transform:translateX(-50%);
    font-size:10px;
    color:#fff;
    text-transform:uppercase;
    letter-spacing:0.1em;
    background:rgba(0,0,0,0.75);
    padding:2px 8px;
    border-radius:3px;
    white-space:nowrap;
    font-weight:bold;
}

/* milestone bullet */
.timeline-point{
    position:absolute;
    top:50%;
    transform:translate(-50%,-50%);
    z-index:2;
    cursor:default;
}
.timeline-point[data-tooltip]{
    cursor:pointer;
}

.timeline-marker{
    width:22px;
    height:22px;
    border-radius:50%;
    background:#1a1a20;
    border:3px solid #2a2a32;
    transition:all 0.3s ease;
    box-sizing:border-box;
}

.timeline-past .timeline-marker{
    background:#caa65a;
    border-color:#fff;
    box-shadow:0 0 14px rgba(202,166,90,0.7);
}

.timeline-upcoming .timeline-marker{
    background:#5865F2;
    border-color:#fff;
    box-shadow:0 0 16px rgba(88,101,242,0.8);
    animation:timelinePulse 2.4s ease-in-out infinite;
}
@keyframes timelinePulse{
    0%,100%{ transform:scale(1);    box-shadow:0 0 16px rgba(88,101,242,0.8); }
    50%    { transform:scale(1.2);  box-shadow:0 0 28px rgba(88,101,242,1);   }
}

.timeline-future .timeline-marker{
    background:transparent;
    border-style:dashed;
    border-color:#94a3b8;
}

/* labels under the bullets */
.timeline-label{
    position:absolute;
    top:34px;
    left:50%;
    transform:translateX(-50%);
    text-align:center;
    white-space:nowrap;
    font-family:Segoe UI,Arial,sans-serif;
}
.timeline-date{
    font-size:13px;
    font-weight:bold;
    color:#caa65a;
    margin-bottom:3px;
    letter-spacing:0.04em;
}
.timeline-future .timeline-date{
    color:#94a3b8;
    font-style:italic;
}
.timeline-title{
    font-size:11px;
    color:#ddd;
    text-transform:uppercase;
    letter-spacing:0.1em;
}
.timeline-upcoming .timeline-title{
    color:#b8c4ff;
}

/* tooltip popup (Stage 2) */
.timeline-tooltip{
    position:absolute;
    bottom:46px;
    left:50%;
    transform:translate(-50%,12px);
    background:linear-gradient(180deg,rgba(20,22,46,0.98),rgba(10,10,14,0.98));
    border:1px solid rgba(88,101,242,0.55);
    border-radius:8px;
    padding:14px 18px;
    min-width:300px;
    max-width:420px;
    /* enough vertical room for ~13 bullets without scrolling; if patch
       notes grow past that the inner UL handles its own scroll. */
    max-height:60vh;
    overflow-y:auto;
    box-shadow:0 20px 50px rgba(0,0,0,0.7),0 0 30px rgba(88,101,242,0.25);
    text-align:left;
    z-index:10;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.25s ease,visibility 0.25s ease,transform 0.25s ease;
    pointer-events:none;
}
.timeline-tooltip::after{
    content:"";
    position:absolute;
    bottom:-8px;
    left:50%;
    transform:translateX(-50%);
    width:0;
    height:0;
    border:8px solid transparent;
    border-top-color:rgba(88,101,242,0.55);
}
.timeline-tooltip strong{
    display:block;
    color:#caa65a;
    font-size:15px;
    margin-bottom:2px;
}
.timeline-tooltip-date{
    display:block;
    font-size:11px;
    color:#94a3b8;
    margin-bottom:10px;
    text-transform:uppercase;
    letter-spacing:0.08em;
}
.timeline-tooltip ul{
    margin:0;
    padding-left:18px;
    font-size:13px;
    color:#ddd;
    line-height:1.6;
}
.timeline-tooltip li{
    margin-bottom:3px;
}
/* Inline highlights inside list items (e.g. <li>Max level: <strong>79</strong>) —
   without this they'd inherit the .timeline-tooltip > strong display:block
   rule used for the popup header and break onto their own line. */
.timeline-tooltip li strong{
    display:inline;
    font-size:inherit;
    color:#f6d365;
    font-weight:700;
    margin:0;
}

/* show on hover (desktop) OR when .open is toggled (mobile tap, JS) */
.timeline-point[data-tooltip]:hover .timeline-tooltip,
.timeline-point[data-tooltip].open .timeline-tooltip{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
    pointer-events:auto;
}

/* keyboard focus opens it too so it stays accessible */
.timeline-point[data-tooltip]:focus-visible{
    outline:none;
}
.timeline-point[data-tooltip]:focus-visible .timeline-tooltip{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
    pointer-events:auto;
}

/* mobile: keep horizontal layout, shrink the popup so it stays on screen */
@media (max-width: 600px){
    .timeline-wrap{
        padding:52px 24px 64px;
        margin:24px auto 18px;
    }
    .timeline-date{ font-size:12px; }
    .timeline-title{ font-size:10px; letter-spacing:0.08em; }
    .timeline-tooltip{
        min-width:240px;
        max-width:88vw;
        padding:12px 14px;
        max-height:62vh;
    }
    .timeline-tooltip strong{ font-size:14px; }
    .timeline-tooltip ul{ font-size:12px; }
}

/* =================================================
   CATCHUP MECHANISM (index.php — right under hero)
   ================================================= */
.catchup-section{
    /* keep the standard .section vertical rhythm but tighten because the
       hero already gave the page a lot of breathing room */
    padding-top:50px;
    padding-bottom:50px;
}

.catchup-intro{
    max-width:760px;
    margin:8px auto 0;
    text-align:center;
    color:#cbd5e1;
    font-size:15px;
    line-height:1.7;
}

.catchup-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
    margin-top:34px;
    max-width:980px;
    margin-left:auto;
    margin-right:auto;
}

.catchup-card{
    background:linear-gradient(180deg,rgba(20,22,46,0.85),rgba(10,10,16,0.85));
    border:1px solid rgba(202,166,90,0.35);
    border-radius:10px;
    padding:24px 26px;
    position:relative;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.45);
    transition:transform 0.25s ease,border-color 0.25s ease,box-shadow 0.25s ease;
}
.catchup-card:hover{
    transform:translateY(-3px);
    border-color:rgba(202,166,90,0.7);
    box-shadow:0 18px 40px rgba(0,0,0,0.55),0 0 20px rgba(202,166,90,0.15);
}
/* accent stripe across the top — same blue→gold gradient as the timeline
   progress fill so the page reads as one design system */
.catchup-card::before{
    content:"";
    position:absolute;
    top:0; left:0;
    width:100%;
    height:3px;
    background:linear-gradient(90deg,#5865F2 0%,#caa65a 100%);
}

.catchup-card-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:14px;
}
.catchup-card-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px; height:42px;
    flex-shrink:0;
    background:linear-gradient(135deg,#caa65a,#5865F2);
    color:#0a0a0c;
    font-size:22px;
    font-weight:bold;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,255,255,0.15);
}
.catchup-card-header h3{
    margin:0;
    color:#caa65a;
    font-size:19px;
    letter-spacing:0.04em;
    text-transform:uppercase;
}

.catchup-card-lead{
    color:#ddd;
    font-size:14px;
    line-height:1.6;
    margin:0 0 14px;
}
.catchup-card-lead strong{ color:#f6d365; font-weight:700; }

.catchup-card-sub{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:0.1em;
    color:#94a3b8;
    margin-bottom:8px;
    padding-bottom:6px;
    border-bottom:1px dashed rgba(255,255,255,0.08);
}

.catchup-list{
    list-style:none;
    margin:0;
    padding:0;
    color:#ddd;
    font-size:14px;
    line-height:1.55;
}
.catchup-list li{
    position:relative;
    padding:6px 0 6px 22px;
}
.catchup-list li::before{
    content:"+";
    position:absolute;
    left:0; top:6px;
    color:#caa65a;
    font-weight:bold;
    font-family:Consolas,"Courier New",monospace;
}
.catchup-list strong{ color:#f6d365; font-weight:700; }

@media (max-width: 600px){
    .catchup-section{ padding:36px 0; }
    .catchup-intro{ font-size:14px; padding:0 20px; }
    .catchup-grid{ gap:18px; margin-top:26px; padding:0 16px; }
    .catchup-card{ padding:20px 18px; }
    .catchup-card-header h3{ font-size:16px; }
    .catchup-card-icon{ width:36px; height:36px; font-size:18px; }
    .catchup-card-lead,
    .catchup-list{ font-size:13px; }
}



