:root{--bg:#08090c;--panel:#101116;--gold:#d7a84d;--gold2:#f0d18a;--red:#9f271c;--ink:#f3efe7;--muted:#99958d;--line:rgba(215,168,77,.22);--serif:"Cinzel",Georgia,serif;--sans:"Manrope",Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);overflow-x:hidden}button,a{font:inherit}a{color:inherit;text-decoration:none}button{color:inherit}.noise{position:fixed;inset:0;pointer-events:none;z-index:99;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")}.site-header{height:82px;position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;padding:0 4.5vw;border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(to bottom,rgba(6,7,9,.85),transparent);transition:.3s}.site-header.scrolled{height:68px;background:rgba(7,8,10,.92);backdrop-filter:blur(18px)}.brand{display:flex;align-items:center;gap:11px;font-family:var(--serif);min-width:190px}.brand-mark{display:grid;place-items:center;width:39px;height:44px;color:#17100a;font-size:24px;font-weight:800;background:linear-gradient(145deg,var(--gold2),#8a5c20);clip-path:polygon(50% 0,95% 20%,88% 78%,50% 100%,12% 78%,5% 20%);filter:drop-shadow(0 0 12px rgba(215,168,77,.3))}.brand b,.brand small{display:block;line-height:1;letter-spacing:.13em}.brand b{font-size:16px}.brand small{font-size:8px;color:var(--gold);letter-spacing:.42em;margin-top:6px}.main-nav{display:flex;gap:2.7vw;margin:auto}.main-nav a{font-size:11px;font-weight:700;letter-spacing:.16em;color:#aaa7a0;position:relative;padding:30px 0}.main-nav a:hover,.main-nav a.active{color:#fff}.main-nav a.active:after{content:"";position:absolute;height:2px;background:var(--gold);bottom:17px;left:0;right:0;box-shadow:0 0 8px var(--gold)}.header-actions{min-width:190px;display:flex;justify-content:flex-end;gap:20px;align-items:center}.sound-toggle{height:25px;width:28px;padding:0;border:0;background:none;display:flex;justify-content:center;align-items:center;gap:3px;cursor:pointer}.sound-toggle span{height:7px;width:2px;background:#aaa;transition:.3s}.sound-toggle span:nth-child(2){height:13px}.sound-toggle[aria-pressed=true] span{animation:sound .6s infinite alternate;background:var(--gold)}.sound-toggle[aria-pressed=true] span:nth-child(2){animation-delay:.2s}.sound-toggle[aria-pressed=true] span:nth-child(3){animation-delay:.4s}@keyframes sound{to{height:18px}}.btn{border:1px solid transparent;cursor:pointer;font-size:11px;letter-spacing:.14em;font-weight:800;transition:.3s;position:relative;overflow:hidden}.btn:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.35),transparent 80%);transform:translateX(-120%);transition:.6s}.btn:hover:before{transform:translateX(120%)}.btn-gold{color:#120d07;background:linear-gradient(135deg,#8b5b20,var(--gold2) 50%,#a36d28);box-shadow:0 7px 25px rgba(177,118,37,.22)}.btn-sm{height:40px;padding:0 23px}.btn-lg{height:58px;padding:0 29px;min-width:225px;display:inline-flex;align-items:center;justify-content:space-between;gap:25px}.btn-lg b{font-size:18px}.menu-toggle{display:none;background:none;border:0;width:34px;padding:8px 0}.menu-toggle span{display:block;height:1px;background:#fff;margin:7px 0}

/* Layar gerbang masuk */
body.intro-active{overflow:hidden}.gate-intro{position:fixed;inset:0;z-index:120;display:grid;place-items:center;overflow:hidden;background:#030507;isolation:isolate;transition:visibility 0s 2.5s}.gate-intro.is-hidden{display:none}.gate-landscape{position:absolute;inset:-3%;z-index:-5;background:url('assets/mountain-gate-entrance.png') center center/cover no-repeat;transform:scale(1.04);filter:saturate(.78) contrast(1.05) brightness(.75);transition:transform 2.6s cubic-bezier(.2,.75,.2,1),filter 2.2s}.gate-shadow{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 50% 58%,transparent 7%,rgba(2,4,6,.12) 28%,rgba(1,3,5,.76) 100%),linear-gradient(180deg,rgba(0,0,0,.3),transparent 34%,rgba(0,0,0,.22));transition:opacity 1.4s}.gate-fog{position:absolute;left:-20%;right:-20%;height:32%;bottom:3%;z-index:-1;opacity:.24;background:radial-gradient(ellipse,rgba(190,205,214,.42),transparent 66%);filter:blur(22px);animation:fogDrift 13s ease-in-out infinite alternate}.gate-fog-two{bottom:27%;opacity:.12;animation-delay:-5s;animation-direction:alternate-reverse}@keyframes fogDrift{to{transform:translateX(8%) scale(1.1)}}.gate-doors{position:absolute;left:50%;top:51%;width:min(31vw,590px);height:min(57vw,650px);max-height:66vh;transform:translate(-50%,-50%);perspective:1200px;pointer-events:none}.gate-door{position:absolute;top:0;width:50.5%;height:100%;background:linear-gradient(90deg,rgba(10,10,11,.92),rgba(34,29,26,.57) 65%,rgba(163,93,31,.22)),repeating-linear-gradient(0deg,transparent 0 12%,rgba(203,156,82,.09) 12.3% 12.7%);border:1px solid rgba(210,151,70,.2);box-shadow:inset 0 0 60px #050505,0 0 30px rgba(0,0,0,.7);transition:transform 1.65s cubic-bezier(.65,.02,.22,1)}.gate-door:after{content:"";position:absolute;inset:7%;border:1px solid rgba(209,158,86,.14);background:radial-gradient(circle at 50% 48%,transparent 0 12%,rgba(188,131,56,.1) 12.5% 13%,transparent 13.5% 24%,rgba(188,131,56,.08) 24.5% 25%,transparent 25.5%)}.gate-door-left{left:0;transform-origin:left center}.gate-door-right{right:0;transform-origin:right center;transform:scaleX(-1)}.gate-seam{position:absolute;left:50%;top:4%;bottom:3%;width:2px;background:#ffc46b;box-shadow:0 0 8px #ff9d32,0 0 28px #ec7226,0 0 65px rgba(255,128,27,.8);animation:seamPulse 2s ease-in-out infinite}@keyframes seamPulse{50%{opacity:.55;box-shadow:0 0 4px #ff9d32,0 0 18px #ec7226}}.gate-light{position:absolute;left:50%;top:54%;width:2px;height:62vh;transform:translate(-50%,-50%);background:#ffeac3;opacity:0;z-index:4;box-shadow:0 0 60px 30px #ffb03a,0 0 180px 90px rgba(255,117,20,.7);pointer-events:none}.gate-intro-content{position:relative;z-index:8;text-align:center;margin-top:4vh;text-shadow:0 3px 20px #000;transition:opacity .45s,transform .7s}.gate-crest{display:grid;place-items:center;width:54px;height:62px;margin:0 auto 18px;color:#1a1108;font:800 31px var(--serif);background:linear-gradient(145deg,#f3d58e,#936024);clip-path:polygon(50% 0,95% 20%,88% 78%,50% 100%,12% 78%,5% 20%);filter:drop-shadow(0 0 18px rgba(238,180,79,.38))}.gate-overline{margin:0 0 7px;color:#d7ad60;font-size:9px;font-weight:800;letter-spacing:.42em}.gate-intro h1{font-size:clamp(43px,5vw,78px);line-height:1;letter-spacing:.04em}.gate-intro h1 em{display:block;font-size:.28em;letter-spacing:.55em;margin:9px 0 0 .55em;-webkit-text-stroke:0;color:#d9ad59}.gate-instruction{margin:19px 0 26px;color:#c0beb8;font-family:var(--serif);font-size:12px;letter-spacing:.08em}.enter-world{width:235px;height:54px;padding:0 22px;border:1px solid rgba(236,190,105,.68);background:linear-gradient(90deg,rgba(16,13,11,.84),rgba(80,54,24,.82),rgba(16,13,11,.84));box-shadow:0 12px 40px #000,inset 0 0 20px rgba(223,165,72,.13);display:inline-flex;align-items:center;justify-content:space-between;color:#f3d99c;font-size:10px;font-weight:800;letter-spacing:.22em;cursor:pointer;transition:.3s}.enter-world:hover{background:#c69843;color:#130d07;box-shadow:0 0 35px rgba(229,166,68,.38);transform:translateY(-2px)}.enter-world i{font-style:normal;font-size:8px}.skip-intro{position:absolute;right:28px;bottom:23px;z-index:9;border:0;border-bottom:1px solid #777;background:none;padding:5px;color:#9a9892;font-size:8px;letter-spacing:.2em;cursor:pointer}.gate-loading{position:absolute;z-index:10;left:50%;bottom:10%;width:220px;transform:translateX(-50%);opacity:0;text-align:center;transition:opacity .5s}.gate-loading span{display:block;height:1px;background:rgba(255,255,255,.15);overflow:hidden}.gate-loading span:after{content:"";display:block;width:45%;height:100%;background:#e0b15c;box-shadow:0 0 9px #e0b15c;animation:gateLoad 1.2s ease-in-out infinite}.gate-loading small{display:block;margin-top:10px;color:#b38e50;font-size:7px;letter-spacing:.3em}@keyframes gateLoad{from{transform:translateX(-110%)}to{transform:translateX(250%)}}.gate-intro.entering .gate-intro-content,.gate-intro.entering .skip-intro{opacity:0;transform:translateY(-15px);pointer-events:none}.gate-intro.entering .gate-loading{opacity:1}.gate-intro.entering .gate-door-left{transform:rotateY(-103deg)}.gate-intro.entering .gate-door-right{transform:scaleX(-1) rotateY(-103deg)}.gate-intro.entering .gate-seam{opacity:0}.gate-intro.entering .gate-light{animation:gateFlash 2.2s .45s ease-in forwards}.gate-intro.entering .gate-landscape{transform:scale(1.3);filter:saturate(.95) contrast(1.15) brightness(1.25);}.gate-intro.entering .gate-shadow{opacity:0}.gate-intro.entering{animation:introLeave 2.45s .1s forwards}@keyframes gateFlash{0%{opacity:0;width:2px}35%{opacity:1;width:8vw}75%{opacity:.8;width:60vw}100%{opacity:0;width:110vw}}@keyframes introLeave{0%,75%{opacity:1}100%{opacity:0;visibility:hidden}}
.hero{height:max(760px,100vh);min-height:700px;position:relative;display:flex;align-items:center;overflow:hidden;background:radial-gradient(circle at 70% 43%,rgba(160,51,25,.23),transparent 23%),linear-gradient(#0a0c11,#0a090b)}#worldCanvas{position:absolute;inset:0;width:100%;height:100%}.hero-vignette{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,7,9,.94) 0%,rgba(6,7,9,.57) 38%,transparent 69%),linear-gradient(0deg,#08090c 0%,transparent 18%,transparent 80%,rgba(0,0,0,.3) 100%);pointer-events:none}.hero-runes{position:absolute;right:5vw;top:25%;display:flex;flex-direction:column;gap:32px;color:rgba(240,209,138,.18);font-size:18px}.hero-content{position:relative;z-index:2;width:min(650px,45vw);margin-left:10vw;margin-top:25px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.28em;color:var(--gold);display:flex;align-items:center;gap:13px;margin:0 0 23px}.eyebrow span{width:35px;height:1px;background:var(--gold)}h1,h2,h3{font-family:var(--serif);margin:0}h1{font-size:clamp(55px,6.5vw,104px);font-weight:700;line-height:.89;letter-spacing:-.055em;text-shadow:0 8px 30px #000}h1 em,h2 em{font-style:normal;color:transparent;-webkit-text-stroke:1px var(--gold2);text-shadow:0 0 25px rgba(215,168,77,.15)}.hero-copy{max-width:530px;color:#afaca5;line-height:1.8;font-size:14px;margin:30px 0}.hero-actions{display:flex;align-items:center;gap:36px}.btn-play{background:none;border:0;padding:0;display:flex;align-items:center;gap:13px;cursor:pointer;text-align:left;font-family:var(--serif);letter-spacing:.13em;font-size:11px}.btn-play i{font-style:normal;width:49px;height:49px;border:1px solid rgba(255,255,255,.32);border-radius:50%;display:grid;place-items:center;font-size:10px;padding-left:3px;transition:.3s}.btn-play:hover i{background:var(--gold);border-color:var(--gold);color:#111;box-shadow:0 0 30px rgba(215,168,77,.35)}.btn-play small,.btn-play span{display:block}.btn-play small{font-family:var(--sans);font-size:8px;color:#777;margin-bottom:5px}.server-card{position:absolute;right:5vw;bottom:43px;z-index:3;padding:15px 20px;display:flex;flex-direction:column;gap:12px;width:440px}.glass-card{background:rgba(11,12,15,.68);border:1px solid rgba(255,255,255,.11);backdrop-filter:blur(16px)}.server-card small{display:block;color:#777;font-size:7px;letter-spacing:.17em;margin-bottom:5px}.server-card strong{font-family:var(--serif);font-size:13px}.server-card strong b{color:var(--gold)}.server-status{display:flex;align-items:center;gap:11px}.server-status i{width:8px;height:8px;background:#53bd70;border-radius:50%;box-shadow:0 0 10px #53bd70}.server-status b{font-size:11px;color:#53bd70}.server-divider{width:1px;height:32px;background:rgba(255,255,255,.12)}.scroll-cue{position:absolute;left:4.5vw;bottom:0;z-index:2;display:flex;gap:12px;align-items:center;transform:rotate(-90deg);transform-origin:left bottom;font-size:7px;letter-spacing:.25em;color:#777}.scroll-cue i{width:45px;height:1px;background:var(--gold)}
.section{padding:120px 8vw}
.world{background:radial-gradient(circle at 50% 35%,rgba(126,88,37,.1),transparent 35%),#08090c}
.section-heading{text-align:center;max-width:700px;margin:0 auto 65px}
.section-heading .eyebrow{justify-content:center}
.section-heading h2,.news h2{font-size:clamp(36px,4.3vw,66px);line-height:1.08;letter-spacing:-.035em}
.section-heading>p:last-child{font-size:13px;color:var(--muted);line-height:1.8;max-width:560px;margin:22px auto}

/* Layout Diagonal Split-Screen Faksi */
.faction-grid {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(215, 168, 77, 0.18);
  background: #090a0d;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.faction-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #0d0e12;
  isolation: isolate;
  transition: clip-path 0.7s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.7s ease, border-color 0.7s ease, background 0.7s ease;
}

.faction-card.elmorad {
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
  z-index: 2;
}

.faction-card.karus {
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
  z-index: 1;
}

/* Hover Diagonal Shift menggunakan :has() */
.faction-grid:has(.elmorad:hover) .elmorad {
  clip-path: polygon(0 0, 68% 0, 52% 100%, 0 100%);
  z-index: 3;
}
.faction-grid:has(.elmorad:hover) .karus {
  clip-path: polygon(68% 0, 100% 0, 100% 100%, 52% 100%);
}

.faction-grid:has(.karus:hover) .elmorad {
  clip-path: polygon(0 0, 48% 0, 32% 100%, 0 100%);
}
.faction-grid:has(.karus:hover) .karus {
  clip-path: polygon(48% 0, 100% 0, 100% 100%, 32% 100%);
  z-index: 3;
}
.classes{padding-top:80px;padding-bottom:100px;background-image:linear-gradient(rgba(8,9,12,0.45),rgba(8,9,12,0.75)),url('assets/classes_bg.png');background-size:cover;background-position:center;background-repeat:no-repeat;border-top:1px solid rgba(255,255,255,0.03)}.classes-header{text-align:center;margin-bottom:50px}.classes-header h2{font-size:38px;letter-spacing:0.1em;font-family:var(--serif);color:var(--gold);text-transform:uppercase;margin-bottom:10px;text-shadow:0 0 15px rgba(215,168,77,0.35)}.classes-header p{font-size:13px;color:var(--muted);letter-spacing:0.02em}.class-stage{display:grid;grid-template-columns:290px 1fr 350px;gap:40px;max-width:1200px;margin:auto;min-height:600px;align-items:stretch}.class-list{display:flex;flex-direction:column;gap:12px}.class-item{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:rgba(10, 11, 14, 0.85);border:1px solid rgba(255, 255, 255, 0.08);border-radius:6px;cursor:pointer;transition:all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);position:relative;overflow:hidden}.class-item:hover{background:rgba(215, 168, 77, 0.08);border-color:rgba(215, 168, 77, 0.35);transform:translateX(6px)}.class-item.active{background:rgba(215, 168, 77, 0.12);border-color:var(--gold);box-shadow:0 0 20px rgba(215, 168, 77, 0.15), inset 0 0 10px rgba(215, 168, 77, 0.06)}.class-item-left{display:flex;align-items:center;gap:15px;color:#777;transition:all 0.3s ease}.class-item.active .class-item-left,
.class-item:hover .class-item-left{color:#fff}.class-item-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;color:inherit}.class-item-icon svg{width:100%;height:100%}.class-item-name{font-family:var(--serif);font-size:13px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase}.class-item-thumb{width:55px;height:38px;background-size:cover;background-position:50% 12%;border-radius:4px;border:1px solid rgba(255, 255, 255, 0.08);opacity:0.5;transition:all 0.3s ease}.class-item.active .class-item-thumb,
.class-item:hover .class-item-thumb{opacity:1;border-color:var(--gold)}.class-display-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:radial-gradient(circle at center, rgba(215, 168, 77, 0.05), transparent 60%);min-height:520px}.class-large-image{max-height:510px;max-width:100%;object-fit:contain;filter:drop-shadow(0 20px 30px #000);transition:opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);transform:scale(0.97);opacity:0}.class-large-image.loaded{opacity:1;transform:scale(1)}.class-display-dots{display:flex;gap:10px;margin-top:25px}.class-dot{width:8px;height:8px;border-radius:50%;background:rgba(255, 255, 255, 0.15);cursor:pointer;transition:all 0.3s ease}.class-dot.active{background:var(--gold);box-shadow:0 0 8px var(--gold);transform:scale(1.2)}.class-details-panel{background:rgba(10, 11, 14, 0.85);border:1px solid rgba(255, 255, 255, 0.08);border-radius:8px;padding:30px;display:flex;flex-direction:column;gap:20px;justify-content:space-between;box-shadow:0 15px 35px rgba(0,0,0,0.5)}.nation-selector{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:4px}.nation-btn{padding:10px 14px;background:rgba(255, 255, 255, 0.02);border:1px solid rgba(255, 255, 255, 0.07);border-radius:4px;color:#777;font-family:var(--serif);font-size:10px;font-weight:700;letter-spacing:0.1em;cursor:pointer;transition:all 0.3s ease;text-align:center;text-transform:uppercase}.nation-btn:hover{color:#fff;border-color:rgba(255, 255, 255, 0.18)}.nation-btn.active.elmorad{color:#fff;border-color:#3b82f6;background:rgba(59, 130, 246, 0.1);box-shadow:0 0 10px rgba(59, 130, 246, 0.2)}.nation-btn.active.karus{color:#fff;border-color:#ef4444;background:rgba(239, 68, 68, 0.1);box-shadow:0 0 10px rgba(239, 68, 68, 0.2)}.class-title-block{display:flex;align-items:center;gap:15px;border-bottom:1px solid rgba(255, 255, 255, 0.05);padding-bottom:16px}.class-title-icon{width:36px;height:36px;color:var(--gold);filter:drop-shadow(0 0 6px rgba(215, 168, 77, 0.35))}.class-title-icon svg{width:100%;height:100%}.class-title-name{font-family:var(--serif);font-size:24px;color:#fff;letter-spacing:0.06em;font-weight:800;text-transform:uppercase}.class-details-desc{font-size:12px;line-height:1.75;color:var(--muted);min-height:55px}.class-details-stats{display:flex;flex-direction:column;gap:12px}.class-stat-row{display:grid;grid-template-columns:40px 1fr 20px;align-items:center;gap:15px}.class-stat-label{font-size:10px;font-weight:700;color:#666;letter-spacing:0.05em}.class-stat-bar-container{height:4px;background:rgba(255, 255, 255, 0.05);border-radius:2px;overflow:hidden;position:relative}.class-stat-bar{height:100%;background:linear-gradient(90deg, #a36d28, var(--gold));box-shadow:0 0 8px var(--gold);width:0%;transition:width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);border-radius:2px}.class-stat-val{font-size:10px;font-family:var(--serif);font-weight:700;color:var(--gold);text-align:right}.skill-preview-block{display:flex;flex-direction:column;gap:10px}.skill-preview-title{font-size:10px;font-weight:700;letter-spacing:0.1em;color:#555;text-transform:uppercase}.skill-preview-grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:12px}.skill-box{aspect-ratio:1;border-radius:4px;border:1px solid rgba(255, 255, 255, 0.08);background-size:cover;background-position:center;position:relative;cursor:pointer;transition:all 0.3s ease}.skill-box:hover{border-color:var(--gold);box-shadow:0 0 12px rgba(215, 168, 77, 0.35);transform:scale(1.05)}.skill-tooltip{display:none;position:absolute;bottom:120%;left:50%;transform:translateX(-50%);background:#0f1014;border:1px solid var(--gold);padding:6px 10px;border-radius:4px;font-size:9px;color:#fff;white-space:nowrap;z-index:10;box-shadow:0 5px 15px rgba(0,0,0,0.5);pointer-events:none}.skill-box:hover .skill-tooltip{display:block}.class-action-btn{width:100%;padding:14px;background:linear-gradient(135deg, #8b5b20, #f0d18a, #a36d28);border:0;border-radius:4px;color:#120d07;font-family:var(--serif);font-weight:700;letter-spacing:0.12em;cursor:pointer;transition:all 0.3s ease;text-shadow:0 1px 1px rgba(255,255,255,0.2);box-shadow:0 4px 15px rgba(139, 91, 32, 0.25);text-align:center;text-transform:uppercase}.class-action-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(215, 168, 77, 0.35)}.classes-perks-row{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;max-width:1200px;margin:50px auto 0;border-top:1px solid rgba(255, 255, 255, 0.05);padding-top:35px}.perk-col{display:flex;align-items:center;gap:15px;background:rgba(15, 16, 20, 0.25);border:1px solid rgba(255, 255, 255, 0.02);padding:15px 20px;border-radius:6px}.perk-icon{width:28px;height:28px;color:var(--gold);display:flex;align-items:center;justify-content:center;flex-shrink:0}.perk-icon svg{width:100%;height:100%}.perk-content{display:flex;flex-direction:column;gap:3px}.perk-title{font-family:var(--serif);font-size:11px;font-weight:800;color:#fff;letter-spacing:0.05em;text-transform:uppercase}.perk-desc{font-size:10px;color:#777;line-height:1.45}
.news{background:#08090c}.news-head{display:flex;align-items:end;justify-content:space-between;max-width:1200px;margin:0 auto 45px}.news-head .eyebrow{margin-bottom:12px}.news-head>a{margin-bottom:10px}.news-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:18px;max-width:1200px;margin:auto}.news-card{border:1px solid rgba(255,255,255,.09);background:#0f1014;transition:.3s}.news-card:hover{transform:translateY(-7px);border-color:var(--line)}.news-image{height:210px;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle,#754b20 0,#171318 48%,#0b0c0f 75%)}.news-image:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#0f1014)}.news-image i{font-style:normal;font-family:var(--serif);font-size:95px;color:rgba(232,198,126,.45);filter:drop-shadow(0 15px 15px #000)}.news-image span{position:absolute;top:18px;left:18px;padding:6px 9px;background:var(--gold);color:#120d07;font-size:7px;font-weight:800;letter-spacing:.16em;z-index:2}.news-image.relic{background:radial-gradient(circle,#24394f,#12151c 55%,#0b0c0f)}.news-image.champions{background:radial-gradient(circle,#62201b,#171015 55%,#0b0c0f)}.news-body{padding:24px}.news-body time{font-size:7px;letter-spacing:.16em;color:#696763}.news-body h3{font-size:19px;margin:11px 0;line-height:1.35}.news-body p{font-size:11px;line-height:1.7;color:#88847d;min-height:56px}.news-body a{display:block;margin-top:20px}.final-cta{height:620px;display:grid;place-items:center;text-align:center;position:relative;overflow:hidden;background:radial-gradient(circle,rgba(135,37,22,.25),transparent 27%),linear-gradient(#08090c,#101014)}.final-cta>div:last-child{position:relative;z-index:2}.final-cta .eyebrow{justify-content:center}.final-cta h2{font-size:clamp(39px,5vw,72px);line-height:1.06}.final-cta p:not(.eyebrow){font-size:13px;color:#8d8983;margin:22px 0 30px}.cta-rings{position:absolute;width:550px;height:550px;left:50%;top:50%;transform:translate(-50%,-50%)}.cta-rings i{position:absolute;border:1px solid rgba(215,168,77,.11);border-radius:50%;inset:0}.cta-rings i:nth-child(2){inset:55px;border-style:dashed;animation:spin 30s linear infinite}.cta-rings i:nth-child(3){inset:125px;box-shadow:0 0 80px rgba(215,168,77,.05)}footer{min-height:110px;padding:25px 5vw;display:flex;align-items:center;justify-content:space-between;border-top:1px solid rgba(255,255,255,.08);background:#07080a}footer p,footer a{font-size:8px;color:#6e6b66;letter-spacing:.08em}footer>div{display:flex;gap:25px}footer .brand{min-width:0}
.modal,.trailer-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center}.modal[hidden],.trailer-overlay[hidden]{display:none}.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(8px)}.modal-panel{position:relative;width:min(480px,90vw);padding:48px;text-align:center;background:linear-gradient(145deg,#17171b,#0d0e11);border:1px solid var(--line);box-shadow:0 30px 90px #000}.modal-close,.trailer-overlay>button{position:absolute;right:18px;top:12px;background:none;border:0;font-size:30px;color:#888;cursor:pointer}.modal-icon{margin:0 auto 25px;width:70px;height:80px;display:grid;place-items:center;font:800 40px var(--serif);color:#16100a;background:linear-gradient(145deg,var(--gold2),#8c5b20);clip-path:polygon(50% 0,95% 20%,88% 78%,50% 100%,12% 78%,5% 20%)}.modal-panel .eyebrow{justify-content:center}.modal-panel h2{font-size:32px}.modal-panel p{font-size:12px;line-height:1.7;color:#999;margin:20px 0}.modal-panel>small{display:block;color:#605e5a;font-size:8px;margin-top:16px}.trailer-overlay{background:rgba(0,0,0,.92);backdrop-filter:blur(12px)}.trailer-overlay>button{z-index:2;right:4vw;top:3vh;font-size:40px}.trailer-placeholder{width:min(900px,88vw);aspect-ratio:16/9;border:1px solid var(--line);background:radial-gradient(circle,rgba(148,45,25,.3),transparent 35%),#0d0e12;display:flex;flex-direction:column;align-items:center;justify-content:center}.trailer-placeholder i{display:grid;place-items:center;width:80px;height:80px;border:1px solid var(--gold);border-radius:50%;font-style:normal;color:var(--gold);padding-left:5px}.trailer-placeholder h2{font-size:30px;margin-top:25px}.trailer-placeholder p{color:#777;font-size:12px}.reveal{opacity:0;transform:translateY(30px);transition:opacity .8s,transform .8s}.reveal.visible{opacity:1;transform:none}
@media(max-width:950px){.main-nav{position:fixed;inset:0;background:rgba(8,9,12,.98);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;transform:translateY(-105%);transition:.45s}.main-nav.open{transform:none}.main-nav a{font:600 22px var(--serif);padding:14px}.main-nav a.active:after{bottom:6px}.header-actions{display:none}.menu-toggle{display:block;margin-left:auto;z-index:2}.hero-content{width:70vw;margin-left:8vw}.server-card{right:4vw}.faction-grid{grid-template-columns:1fr}.class-stage{grid-template-columns:220px 1fr}.class-details-panel{grid-column:span 2}.news-grid{grid-template-columns:1fr 1fr}.news-card.featured{grid-column:span 2}.featured{display:grid;grid-template-columns:1.2fr 1fr}.featured .news-image{height:100%}}
@media(max-width:620px){.site-header{padding:0 20px}.brand{min-width:0}.hero{min-height:760px}.hero-content{width:auto;margin:15px 24px 0}.hero-vignette{background:linear-gradient(90deg,rgba(6,7,9,.87),rgba(6,7,9,.25)),linear-gradient(0deg,#08090c,transparent 32%)}h1{font-size:51px}.hero-copy{font-size:12px;max-width:90%}.hero-actions{align-items:flex-start;gap:22px;flex-direction:column}.btn-play{margin-left:4px}.server-card{left:24px;right:24px;bottom:25px;justify-content:space-between;gap:10px;padding:13px}.scroll-cue,.hero-runes{display:none}.section{padding:85px 20px}.section-heading{margin-bottom:40px}.faction-card{height:420px}.faction-art{font-size:190px}.faction-copy{left:25px;right:25px;bottom:25px}.class-stage{grid-template-columns:1fr}.class-details-panel{grid-column:span 1;padding:20px}.class-list{flex-direction:row;overflow-x:auto;padding-bottom:10px;gap:8px}.class-item{flex:0 0 140px;padding:10px;justify-content:center}.class-item-thumb{display:none}.classes-perks-row{grid-template-columns:1fr;gap:15px}.news-head{align-items:flex-start}.news-head>a{display:none}.news-grid{grid-template-columns:1fr}.news-card.featured{grid-column:auto;display:block}.featured .news-image,.news-image{height:190px}.final-cta{height:560px;padding:0 20px}.cta-rings{width:430px;height:430px}footer{flex-direction:column;gap:18px;text-align:center;padding:35px 20px}.modal-panel{padding:38px 24px}.trailer-placeholder h2{font-size:20px}.trailer-placeholder p{padding:0 20px}}
@media(max-width:620px){.gate-landscape{background-position:50% center}.gate-doors{width:57vw;height:49vh;top:52%}.gate-intro-content{margin-top:8vh}.gate-intro h1{font-size:44px}.gate-intro h1 em{font-size:.28em}.gate-instruction{font-size:10px}.gate-crest{width:45px;height:53px;font-size:25px}.skip-intro{right:18px;bottom:17px}.gate-loading{bottom:8%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reveal{opacity:1;transform:none}}

/* Gerbang sudah menyatu di artwork; hilangkan panel CSS yang menutupinya. */
.gate-door{display:none}
.gate-doors{top:54%;width:3px;height:61vh;max-height:690px}
.gate-seam{left:0;top:0;bottom:0;width:2px}
@media(max-width:620px){.gate-doors{top:55%;width:3px;height:49vh}}

/* Daun maple kering beterbangan di depan gerbang. */
.maple-leaves{position:absolute;inset:-12% -8%;z-index:6;overflow:hidden;pointer-events:none;perspective:700px}
.maple-leaf{position:absolute;left:var(--x);top:-8%;width:var(--size);aspect-ratio:1;opacity:var(--opacity);filter:drop-shadow(0 5px 4px rgba(0,0,0,.5));will-change:transform;animation:mapleFall var(--duration) linear var(--delay) infinite}
.maple-leaf i{position:absolute;inset:0;display:block;background:radial-gradient(circle at 45% 42%,#e6a84b 0 5%,transparent 6%),linear-gradient(135deg,rgba(255,206,99,.38),transparent 38%),var(--leaf-color);clip-path:polygon(50% 0,58% 20%,73% 11%,68% 31%,94% 25%,78% 45%,100% 55%,70% 63%,76% 83%,56% 70%,50% 100%,44% 70%,24% 83%,30% 63%,0 55%,22% 45%,6% 25%,32% 31%,27% 11%,42% 20%);animation:mapleFlutter 1.35s ease-in-out infinite alternate;transform-origin:50% 65%}
.maple-leaf i:after{content:"";position:absolute;left:49%;top:42%;width:5%;height:62%;background:#4f2316;transform:rotate(-4deg);transform-origin:top;border-radius:100%}
.gate-intro.entering .maple-leaves{opacity:.72;transition:opacity 1.3s}
@keyframes mapleFall{0%{transform:translate3d(0,-12vh,-40px) rotateZ(0deg) rotateX(15deg)}24%{transform:translate3d(var(--sway),28vh,35px) rotateZ(calc(190deg * var(--spin))) rotateX(140deg)}52%{transform:translate3d(0,62vh,80px) rotateZ(calc(420deg * var(--spin))) rotateX(260deg)}78%{transform:translate3d(var(--sway),96vh,20px) rotateZ(calc(650deg * var(--spin))) rotateX(390deg)}100%{transform:translate3d(var(--drift),132vh,-55px) rotateZ(calc(850deg * var(--spin))) rotateX(540deg)}}
@keyframes mapleFlutter{from{transform:rotateY(-58deg) rotateX(-14deg) scale(.84)}to{transform:rotateY(58deg) rotateX(18deg) scale(1.08)}}
@media(max-width:620px){.maple-leaf:nth-child(3n){display:none}.maple-leaf{filter:drop-shadow(0 3px 3px rgba(0,0,0,.45))}}
@media(prefers-reduced-motion:reduce){.maple-leaves{display:none}}

/* Hero utama: artwork ksatria dan percikan api dari canvas. */
.main-nav{gap:clamp(13px,1.55vw,27px)}
.main-nav a{font-size:9px;white-space:nowrap}
.hero{background:#080a0d url('assets/knight-hero-v2.png') center center/cover no-repeat}
#worldCanvas{z-index:1;mix-blend-mode:screen;opacity:.88;pointer-events:none}
.hero-vignette{z-index:1;background:linear-gradient(90deg,rgba(4,6,9,.96) 0%,rgba(4,6,9,.78) 30%,rgba(4,6,9,.22) 58%,rgba(2,3,5,.12) 100%),linear-gradient(0deg,#08090c 0%,transparent 25%,transparent 76%,rgba(0,0,0,.34) 100%)}
.hero-content{z-index:3}
.nav-anchor{display:block;position:relative;top:-78px;visibility:hidden}
@media(max-width:620px){.hero{background-position:66% center}.hero-vignette{background:linear-gradient(90deg,rgba(4,6,9,.94),rgba(4,6,9,.48)),linear-gradient(0deg,#08090c,transparent 36%)}}

/* Login dan registrasi akun. */
.auth-header-login{height:40px;padding:0 5px;border:0;background:none;color:#d7d2c9;font-size:9px;font-weight:800;letter-spacing:.15em;cursor:pointer}.auth-header-login:hover{color:var(--gold2)}
.header-actions{min-width:265px;gap:14px}.mobile-auth{display:none}
.auth-modal{position:fixed;inset:0;z-index:160;display:grid;place-items:center;padding:28px}.auth-modal[hidden]{display:none}.auth-backdrop{position:absolute;inset:0;background:rgba(2,3,5,.88);backdrop-filter:blur(10px)}
.auth-panel{position:relative;width:min(680px,94vw);max-height:92vh;overflow:auto;padding:38px 42px 34px;background:radial-gradient(circle at 100% 0,rgba(198,140,58,.15),transparent 32%),linear-gradient(145deg,#15161a,#090a0d);border:1px solid rgba(215,168,77,.34);box-shadow:0 35px 110px #000}
.auth-close{position:absolute;right:18px;top:12px;border:0;background:none;color:#888;font-size:31px;cursor:pointer}.auth-heading{display:flex;align-items:center;gap:17px;margin-bottom:28px}.auth-heading .brand-mark{flex:0 0 auto}.auth-heading small{display:block;color:var(--gold);font-size:7px;letter-spacing:.26em;margin-bottom:6px}.auth-heading h2{font-size:28px;letter-spacing:.05em}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:26px}.auth-tabs button{height:43px;border:0;border-bottom:2px solid transparent;background:none;color:#6f6d68;font:700 10px var(--serif);letter-spacing:.18em;cursor:pointer}.auth-tabs button.active{color:var(--gold2);border-bottom-color:var(--gold)}
.auth-form{display:grid;grid-template-columns:1fr 1fr;gap:17px}.auth-form[hidden]{display:none}.auth-form label{display:grid;gap:8px;color:#928e86;font-size:8px;font-weight:800;letter-spacing:.13em}.auth-form input,.auth-form select{width:100%;height:47px;padding:0 14px;border:1px solid rgba(255,255,255,.12);outline:0;background:#090a0d;color:#eee;font:500 12px var(--sans);transition:.25s}.auth-form input:focus,.auth-form select:focus{border-color:var(--gold);box-shadow:0 0 0 2px rgba(215,168,77,.1)}.auth-form select{appearance:auto}.auth-wide{grid-column:1/-1}.auth-submit{height:49px;margin-top:5px}.auth-status{min-height:20px;margin:18px 0 0!important;color:#d9b76f!important;text-align:center;font-size:10px!important}.auth-note{display:block;text-align:center;color:#625f59;font-size:8px;line-height:1.6}.auth-form:not(.register-form) label,.auth-form:not(.register-form) .auth-submit{grid-column:1/-1}
@media(max-width:1120px) and (min-width:951px){.site-header{padding-left:2vw;padding-right:2vw}.brand{min-width:145px}.brand b{font-size:13px}.header-actions{min-width:220px;gap:9px}.main-nav{gap:10px}.main-nav a{font-size:8px}.btn-sm{padding:0 13px}}
@media(max-width:950px){.mobile-auth{display:flex;gap:10px;margin-top:20px}.mobile-auth button{min-width:125px;height:42px;border:1px solid var(--gold);background:transparent;color:var(--gold2);font:700 10px var(--serif);letter-spacing:.12em}.mobile-auth button:last-child{background:var(--gold);color:#140d05}.auth-panel{padding:34px 28px}}
@media(max-width:620px){.auth-modal{padding:10px}.auth-panel{width:96vw;max-height:96vh;padding:28px 20px}.auth-form{grid-template-columns:1fr}.auth-form label,.auth-wide{grid-column:1}.auth-heading h2{font-size:22px}}

/* Halaman menu utama */
.menu-section{scroll-margin-top:68px}.menu-heading,.store-top{max-width:1200px;margin:0 auto 48px;display:flex;align-items:end;justify-content:space-between;gap:45px}.menu-heading h2,.store-top h2{font-size:clamp(38px,5vw,68px);line-height:1}.menu-heading>p,.store-top>div>p:last-child{max-width:430px;color:#85817b;font-size:12px;line-height:1.8}.menu-heading .eyebrow,.store-top .eyebrow{margin-bottom:13px}

/* Ranking */
.ranking-section {
  background-image: linear-gradient(rgba(8, 9, 12, 0.55), rgba(8, 9, 12, 0.85)), url('assets/fortress_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Premium Ranking Board */
.ranking-board {
  max-width: 1200px;
  margin: 30px auto 0;
  background: radial-gradient(circle at 50% 0%, rgba(215, 168, 77, 0.1), transparent 50%), 
              linear-gradient(135deg, #16171d, #08090b);
  border: 1px solid rgba(215, 168, 77, 0.35);
  box-shadow: 0 0 45px rgba(215, 168, 77, 0.08), 0 30px 80px rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Wing Banner Header */
.ranking-board-header {
  background: linear-gradient(180deg, #1a1c22, #0d0f12);
  border-bottom: 2px solid rgba(215, 168, 77, 0.4);
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
}

.ranking-board-header::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  width: 280px;
  height: 48px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 40"><path d="M0,0 Q100,30 200,0 Q100,5 0,0 Z" fill="%23d7a84d" opacity="0.35"/></svg>') no-repeat center/contain;
  pointer-events: none;
}

.ranking-board-header h2 {
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.15em;
  margin: 0;
  text-shadow: 0 0 15px rgba(215, 168, 77, 0.5);
  text-transform: uppercase;
}

.ranking-board-header small {
  display: block;
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.35em;
  margin-top: 5px;
  font-weight: 800;
}

/* Main Grid Layout */
.ranking-board-body {
  display: grid;
  grid-template-columns: 210px 1fr 280px;
  min-height: 560px;
}

/* Left Sidebar Navigation */
.rank-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rank-sidebar-header {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold2);
  letter-spacing: 0.12em;
  padding: 0 12px 10px;
  border-bottom: 1.5px solid rgba(215, 168, 77, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.rank-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-side-btn {
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  color: #8c8983;
  padding: 11px 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

.rank-side-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  border-left-color: rgba(215, 168, 77, 0.4);
}

.rank-side-btn.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(145, 97, 32, 0.25), transparent);
  border-left-color: var(--gold);
  text-shadow: 0 0 6px rgba(255, 215, 122, 0.5);
}

.rank-side-btn i {
  font-style: normal;
  font-size: 13px;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.rank-side-btn.active i,
.rank-side-btn:hover i {
  opacity: 1;
}

.rank-side-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 10px;
}

/* Middle Content Area (Rank List) */
.rank-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Nation Selector Tabs */
.rank-nation-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.rank-nation-btn {
  flex: 1;
  height: 38px;
  background: transparent;
  border: 0;
  color: #8c8983;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  position: relative;
}

.rank-nation-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: 0.3s;
}

.rank-nation-btn.elmorad.active {
  background: linear-gradient(180deg, rgba(33, 115, 235, 0.18), rgba(33, 115, 235, 0.03));
  color: #fff;
}
.rank-nation-btn.elmorad.active::after {
  background: #3373eb;
  box-shadow: 0 0 10px #3373eb;
}

.rank-nation-btn.karus.active {
  background: linear-gradient(180deg, rgba(235, 55, 33, 0.18), rgba(235, 55, 33, 0.03));
  color: #fff;
}
.rank-nation-btn.karus.active::after {
  background: #eb3721;
  box-shadow: 0 0 10px #eb3721;
}

.rank-nation-btn.alliance.active {
  background: linear-gradient(180deg, rgba(215, 168, 77, 0.18), rgba(215, 168, 77, 0.03));
  color: #fff;
}
.rank-nation-btn.alliance.active::after {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.rank-nation-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

/* Ranking Table layout */
.rank-table-wrapper {
  flex: 1;
  min-height: 400px;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  color: #eee;
  font-size: 12px;
}

.rank-table th {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 12px 10px;
  border-bottom: 2px solid rgba(215, 168, 77, 0.25);
  text-align: left;
}

.rank-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  transition: all 0.2s ease;
}

.rank-table tbody tr {
  cursor: pointer;
}

.rank-table tbody tr:hover td {
  background: rgba(215, 168, 77, 0.04);
}

.rank-table tbody tr.selected td {
  background: rgba(215, 168, 77, 0.08);
  border-bottom-color: rgba(215, 168, 77, 0.3);
}

/* Custom icons in table rows */
.rank-table .rank-col-wreath {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.rank-table tr:nth-child(1) .rank-col-wreath {
  background: radial-gradient(circle, rgba(215,168,77,0.2) 20%, transparent 80%);
  border: 1px solid rgba(215, 168, 77, 0.8);
  color: #ffd88a;
  box-shadow: 0 0 10px rgba(215, 168, 77, 0.3);
}

.rank-table tr:nth-child(2) .rank-col-wreath {
  background: radial-gradient(circle, rgba(200,200,200,0.15) 20%, transparent 80%);
  border: 1px solid rgba(200, 200, 200, 0.6);
  color: #e2e2e2;
}

.rank-table tr:nth-child(3) .rank-col-wreath {
  background: radial-gradient(circle, rgba(168,111,77,0.15) 20%, transparent 80%);
  border: 1px solid rgba(168, 111, 77, 0.6);
  color: #cda287;
}

/* Job & Nation small symbols */
.rank-job-icon, .rank-nation-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 11px;
}

.rank-job-icon {
  background: #191b21;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rank-job-icon.warrior { border-color: #f25c5c; color: #f25c5c; }
.rank-job-icon.rogue { border-color: #53bd70; color: #53bd70; }
.rank-job-icon.mage { border-color: #3373eb; color: #3373eb; }
.rank-job-icon.priest { border-color: #ffd77a; color: #ffd77a; }

.rank-nation-icon.elmorad { color: #3373eb; }
.rank-nation-icon.karus { color: #eb3721; }

/* Table cells custom weights */
.rank-table .player-name {
  font-family: var(--serif);
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}

.rank-table .points-val {
  color: #53bd70;
  font-family: var(--serif);
  font-weight: 700;
}

/* Footer & Pagination style */
.rank-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.rank-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-page-btn {
  width: 28px;
  height: 28px;
  background: #141519;
  border: 1px solid rgba(215, 168, 77, 0.35);
  color: var(--gold);
  cursor: pointer;
  transition: 0.25s;
  display: grid;
  place-items: center;
  font-weight: bold;
}

.rank-page-btn:hover {
  background: var(--gold);
  color: #120d07;
  box-shadow: 0 0 10px rgba(215, 168, 77, 0.3);
}

.rank-page-num {
  font-family: var(--serif);
  font-size: 11px;
  color: #b3aeaf;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.rank-refresh-note {
  color: #6c6a65;
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* Right Sidebar (Top Player Preview Card) */
.rank-profile-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-header-lbl {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold2);
  letter-spacing: 0.12em;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(215, 168, 77, 0.35);
  text-align: center;
}

.profile-character-frame {
  height: 220px;
  background: radial-gradient(circle, rgba(215, 168, 77, 0.18) 10%, #08090b 95%);
  border: 1px solid rgba(215, 168, 77, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-visual-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(215, 168, 77, 0.25), transparent 70%);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.profile-character-frame img {
  position: relative;
  height: 92%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.8));
  z-index: 2;
}

.char-sword-glow {
  position: absolute;
  font-size: 40px;
  color: rgba(215, 168, 77, 0.45);
  text-shadow: 0 0 15px rgba(215, 168, 77, 0.6);
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.95; }
}

.profile-meta {
  text-align: center;
}

.profile-meta h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.profile-meta small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
}

.profile-stats-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-stats-table td {
  padding: 7px 0;
  font-size: 11px;
  color: #afaca5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-stats-table td:first-child {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: bold;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-stats-table td:first-child i {
  font-style: normal;
  font-size: 11px;
  opacity: 0.7;
}

.profile-stats-table td:last-child {
  text-align: right;
  font-family: var(--sans);
  color: #fff;
}

.profile-view-btn {
  width: 100%;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(215, 168, 77, 0.45);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
}

.profile-view-btn:hover {
  background: var(--gold);
  color: #120d07;
  box-shadow: 0 0 15px rgba(215, 168, 77, 0.35);
}

/* Responsiveness media queries for large ranking board */
@media (max-width: 1050px) {
  .ranking-board-body {
    grid-template-columns: 1fr;
  }
  .rank-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .rank-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
  }
  .rank-side-btn {
    flex: 0 0 auto;
    width: auto !important;
  }
  .rank-side-separator {
    display: none;
  }
  .rank-profile-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
  }
  .profile-header-lbl {
    grid-column: 1 / -1;
  }
  .profile-view-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .rank-profile-panel {
    display: flex;
  }
}

/* Directory */
.directory-section{background:linear-gradient(180deg,#08090c,#101116 50%,#08090c)}.directory-grid{max-width:1200px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,.09);border-left:1px solid rgba(255,255,255,.09)}.directory-card{min-height:285px;padding:38px;position:relative;overflow:hidden;border-right:1px solid rgba(255,255,255,.09);border-bottom:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.012);transition:.35s}.directory-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 10%,rgba(215,168,77,.16),transparent 38%);opacity:0;transition:.35s}.directory-card:hover{transform:translateY(-5px);background:#121318;border-color:rgba(215,168,77,.32)}.directory-card:hover:before{opacity:1}.directory-card i{font-style:normal;font-size:45px;color:rgba(215,168,77,.35);position:relative}.directory-card>b{position:absolute;right:25px;top:22px;color:#3d3b38;font:700 29px var(--serif)}.directory-card h3{position:relative;font-size:24px;margin:24px 0 12px}.directory-card p{position:relative;color:#77736c;font-size:11px;line-height:1.75;min-height:58px}.directory-card span{position:relative;display:block;margin-top:24px;color:var(--gold);font-size:8px;font-weight:800;letter-spacing:.15em}

/* Power Up Store */
.store-section{background:radial-gradient(circle at 82% 14%,rgba(111,29,20,.2),transparent 28%),#090a0d}.store-top{align-items:center}.store-wallet{min-width:190px;padding:18px 20px;border:1px solid rgba(215,168,77,.28);background:rgba(20,18,15,.8);position:relative}.store-wallet small,.store-wallet strong{display:block}.store-wallet small{font-size:7px;color:#706b63;letter-spacing:.18em}.store-wallet strong{margin-top:7px;font:600 16px var(--serif);color:var(--gold2)}.store-wallet i{position:absolute;right:17px;top:15px;width:39px;height:44px;display:grid;place-items:center;background:linear-gradient(145deg,#e7c377,#815219);color:#160e05;font:800 22px var(--serif);clip-path:polygon(50% 0,95% 20%,88% 78%,50% 100%,12% 78%,5% 20%)}.store-grid{max-width:1200px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.store-card{position:relative;min-height:480px;padding:18px;background:#101116;border:1px solid rgba(255,255,255,.08);transition:.35s}.store-card:hover{transform:translateY(-7px);border-color:rgba(215,168,77,.38);box-shadow:0 24px 60px rgba(0,0,0,.4)}.store-card.featured-item{border-color:rgba(215,168,77,.33)}.item-rarity{position:absolute;right:13px;top:13px;z-index:2;padding:6px 8px;background:var(--gold);color:#160e05;font-size:6px;font-weight:900;letter-spacing:.14em}.item-art{height:220px;display:grid;place-items:center;margin-bottom:24px;position:relative;overflow:hidden;background:radial-gradient(circle,rgba(188,120,39,.35),transparent 45%),linear-gradient(135deg,#272019,#0c0d10)}.item-art:before,.item-art:after{content:"";position:absolute;border:1px solid rgba(215,168,77,.17);border-radius:50%;inset:34px}.item-art:after{inset:58px;border-style:dashed;animation:spin 18s linear infinite}.item-art i{font:700 86px var(--serif);font-style:normal;color:rgba(232,193,115,.62);text-shadow:0 18px 30px #000;z-index:1}.item-art.armor{filter:hue-rotate(-12deg)}.item-art.wings{filter:hue-rotate(178deg)}.item-art.scroll{filter:hue-rotate(315deg)}.store-card>small{color:var(--gold);font-size:7px;letter-spacing:.16em}.store-card h3{font-size:19px;margin:9px 0 12px}.store-card>p{color:#77736c;font-size:10px;line-height:1.7;min-height:52px}.store-card footer{min-height:0;padding:17px 0 0;margin-top:17px;border-top:1px solid rgba(255,255,255,.08);background:none;display:flex;align-items:center;justify-content:space-between}.store-card footer strong{font:600 13px var(--serif);color:var(--gold2)}.store-card footer button{padding:9px 10px;border:1px solid rgba(215,168,77,.4);background:transparent;color:var(--gold);font-size:7px;font-weight:800;cursor:pointer}.store-card footer button:hover{background:var(--gold);color:#140d06}.store-status{height:20px;max-width:1200px;margin:18px auto 0;text-align:right;color:var(--gold2);font-size:9px}

/* Download */
.download-section{background:#0d0e12}.download-shell{max-width:1200px;min-height:560px;margin:auto;display:grid;grid-template-columns:.75fr 1.15fr .8fr;border:1px solid rgba(255,255,255,.09);background:radial-gradient(circle at 12% 50%,rgba(187,124,40,.2),transparent 23%),linear-gradient(135deg,#17171a,#090a0d)}.launcher-visual{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid rgba(255,255,255,.08);overflow:hidden}.launcher-visual:before{content:"";position:absolute;width:310px;height:310px;border:1px solid rgba(215,168,77,.17);border-radius:50%;box-shadow:0 0 80px rgba(215,168,77,.07),inset 0 0 80px rgba(215,168,77,.05)}.launcher-rune{position:relative;width:120px;height:140px;display:grid;place-items:center;background:linear-gradient(145deg,#f0d086,#86551d);clip-path:polygon(50% 0,95% 20%,88% 78%,50% 100%,12% 78%,5% 20%);color:#191006;font:800 65px var(--serif);filter:drop-shadow(0 25px 28px #000)}.launcher-visual>span,.launcher-visual>small{position:relative;letter-spacing:.23em}.launcher-visual>span{margin-top:31px;color:#d8af62;font-size:8px}.launcher-visual>small{margin-top:8px;color:#5e5b56;font-size:7px}.launcher-visual>i{position:relative;width:150px;height:2px;margin-top:15px;background:linear-gradient(90deg,var(--gold) 72%,rgba(255,255,255,.1) 72%)}.download-copy{padding:100px 55px}.download-copy h2{font-size:clamp(38px,4.2vw,62px);line-height:1}.download-copy>p:not(.eyebrow){max-width:490px;margin:24px 0;color:#89857e;font-size:12px;line-height:1.8}.download-actions{margin-top:35px}.download-actions small{display:block;margin-top:15px;color:#5e5a54;font-size:8px;letter-spacing:.12em}.requirements{padding:75px 30px;border-left:1px solid rgba(255,255,255,.08)}.requirements h3{font-size:14px;color:var(--gold2);margin-bottom:30px}.requirements div{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.07)}.requirements span,.requirements b{display:block}.requirements span{font-size:7px;color:#56534e;letter-spacing:.15em}.requirements b{font-size:10px;margin-top:6px;color:#aaa69e}.install-steps{max-width:1200px;margin:15px auto 0;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.09)}.install-steps article{padding:23px;background:#0c0d10;display:flex;align-items:center;gap:14px}.install-steps article>b{font:700 27px var(--serif);color:#3e382e}.install-steps strong,.install-steps small{display:block}.install-steps strong{font:600 10px var(--serif);color:var(--gold2)}.install-steps small{color:#5f5b55;font-size:8px;margin-top:5px}

/* Event */
.event-section{min-height:850px;padding:125px max(5vw,25px) 85px;position:relative;overflow:hidden;display:grid;align-items:center;background:#07080a}.event-backdrop{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,6,8,.97) 0%,rgba(5,6,8,.78) 46%,rgba(5,6,8,.34) 100%),url('assets/mountain-gate-entrance.png') center/cover no-repeat;filter:saturate(.55) contrast(1.12)}.event-backdrop:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 48%,rgba(177,54,25,.28),transparent 28%),linear-gradient(0deg,#08090c,transparent 25%,rgba(0,0,0,.3))}.event-content{position:relative;z-index:2;width:min(720px,62vw);margin-left:5vw}.event-content h2{font-size:clamp(52px,7vw,96px);line-height:.92}.event-content>p:not(.eyebrow){max-width:650px;margin:30px 0;color:#a19d96;font-size:13px;line-height:1.85}.event-countdown{display:flex;align-items:center;gap:14px;margin:35px 0}.event-countdown div{width:85px;padding:13px 7px;text-align:center;border:1px solid rgba(215,168,77,.25);background:rgba(8,9,12,.75);backdrop-filter:blur(8px)}.event-countdown b,.event-countdown span{display:block}.event-countdown b{font:600 30px var(--serif);color:var(--gold2)}.event-countdown span{margin-top:5px;color:#655f56;font-size:6px;letter-spacing:.18em}.event-countdown>i{font-style:normal;color:#7e663e}.event-schedule{position:absolute;z-index:3;right:5vw;top:50%;transform:translateY(-50%);width:380px;height:420px;background:transparent !important;border:none !important;backdrop-filter:none !important;display:flex;align-items:center;justify-content:flex-end;transform-style:preserve-3d;perspective:1000px;cursor:grab}.event-schedule:active{cursor:grabbing}.event-schedule article{position:absolute;right:0;width:320px;height:70px;background:rgba(10,11,14,0.95);border:1px solid rgba(215,168,77,0.25);border-radius:4px;padding:10px 20px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 10px 25px rgba(0,0,0,0.6);transition:transform 0.45s cubic-bezier(0.25,0.8,0.25,1),opacity 0.45s,z-index 0.45s,border-color 0.3s;user-select:none}.event-schedule article.active{border-color:var(--gold);box-shadow:0 0 20px rgba(215, 168, 77, 0.25),0 10px 25px rgba(0,0,0,0.6)}.event-schedule article.active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;background:var(--gold);box-shadow:0 0 10px var(--gold)}.event-schedule time{font-size:7px;color:var(--gold);letter-spacing:.16em}.event-schedule h3{font-size:13px;margin:3px 0;font-family:var(--serif);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-schedule span{font-size:8px;color:#65615b}

@media(max-width:1050px){.ranking-layout{grid-template-columns:1fr}.rank-podium{min-height:500px}.directory-grid{grid-template-columns:repeat(2,1fr)}.store-grid{grid-template-columns:repeat(2,1fr)}.download-shell{grid-template-columns:.8fr 1.2fr}.requirements{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);padding:28px;border-left:0;border-top:1px solid rgba(255,255,255,.08)}.requirements h3{grid-column:1/-1}.requirements div{padding-right:15px}.event-content{width:78vw;margin-left:0}.event-schedule{position:relative;right:auto;bottom:auto;width:100%;margin:200px auto 40px;height:120px;display:flex;align-items:center;justify-content:center;transform-style:preserve-3d;perspective:1000px}.event-schedule article{right:auto;border-right:0}}
@media(max-width:700px){.menu-heading,.store-top{display:block;margin-bottom:35px}.menu-heading>p,.store-top>div>p:last-child{margin-top:18px}.ranking-layout{display:block}.rank-podium{min-height:450px;margin-bottom:15px;padding-left:10px;padding-right:10px}.leaderboard{padding:12px;overflow-x:auto}.rank-row{min-width:600px}.directory-grid,.store-grid{grid-template-columns:1fr}.directory-card{min-height:245px}.store-wallet{margin-top:25px}.download-shell{display:block}.launcher-visual{min-height:390px;border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}.download-copy{padding:55px 25px}.requirements{display:block;padding:30px 25px}.install-steps{grid-template-columns:1fr 1fr}.event-section{min-height:700px;padding-top:95px}.event-content{width:100%}.event-countdown{gap:6px}.event-countdown div{width:70px}.event-countdown b{font-size:24px}.event-countdown>i{display:none}.event-schedule{width:100%;height:160px;margin:150px auto 40px}.event-schedule article{width:280px;height:70px;padding:10px 20px}.store-status{text-align:left}}

/* Logo bangsa dan map reveal saat hover. */
.faction-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  opacity: 0.08;
  transform: scale(1.1);
  filter: saturate(0.5) contrast(1.05) brightness(0.4);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1), transform 1.2s cubic-bezier(0.25, 1, 0.3, 1), filter 0.8s ease;
}

.faction-card:hover .faction-map,
.faction-card.map-active .faction-map {
  opacity: 0.75;
  transform: scale(1.02);
  filter: saturate(0.9) contrast(1.08) brightness(0.65);
}

.faction-card.elmorad {
  background: radial-gradient(circle at 30% 40%, rgba(33, 126, 235, 0.04), transparent 50%), linear-gradient(180deg, #090b0f, #06080b);
}

.faction-card.elmorad:hover {
  background: radial-gradient(circle at 30% 40%, rgba(33, 126, 235, 0.18), transparent 50%), linear-gradient(180deg, #0d121c, #07090f);
  box-shadow: inset 0 0 50px rgba(33, 126, 235, 0.12);
}

.faction-card.karus {
  background: radial-gradient(circle at 70% 40%, rgba(255, 55, 33, 0.04), transparent 50%), linear-gradient(180deg, #0b0808, #070505);
}

.faction-card.karus:hover {
  background: radial-gradient(circle at 70% 40%, rgba(255, 55, 33, 0.18), transparent 50%), linear-gradient(180deg, #180c0a, #090504);
  box-shadow: inset 0 0 50px rgba(255, 55, 33, 0.12);
}

/* Faction Art & Shield (Asymmetrically Positioned) */
.faction-art {
  position: absolute;
  top: 12%;
  width: 250px;
  height: 250px;
  font-size: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  mix-blend-mode: screen;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1), filter 0.8s ease;
}

.elmorad .faction-art {
  left: 26%;
  right: auto;
  transform: translate(-50%, 0) rotate(0deg);
  animation: elmoradFloat 6s ease-in-out infinite alternate;
}

.karus .faction-art {
  left: auto;
  right: 26%;
  transform: translate(50%, 0) rotate(0deg);
  animation: karusFloat 6s ease-in-out infinite alternate;
  animation-delay: -3s;
}

@keyframes elmoradFloat {
  0% {
    transform: translate(-50%, 0px) rotate(-1deg);
  }
  100% {
    transform: translate(-50%, -12px) rotate(1deg);
  }
}

@keyframes karusFloat {
  0% {
    transform: translate(50%, 0px) rotate(1deg);
  }
  100% {
    transform: translate(50%, -12px) rotate(-1deg);
  }
}

.faction-art:before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(215, 168, 77, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(33, 126, 235, 0.1);
  opacity: 0.4;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.3, 1);
  background: radial-gradient(circle, rgba(33, 126, 235, 0.05) 0%, transparent 70%);
}

.karus .faction-art:before {
  border-color: rgba(215, 168, 77, 0.22);
  box-shadow: 0 0 40px rgba(255, 55, 33, 0.1);
  background: radial-gradient(circle, rgba(255, 55, 33, 0.05) 0%, transparent 70%);
}

.faction-card.elmorad:hover .faction-art,
.faction-card.elmorad.map-active .faction-art {
  transform: translate(-50%, -15px) scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.9)) brightness(1.2);
}

.faction-card.karus:hover .faction-art,
.faction-card.karus.map-active .faction-art {
  transform: translate(50%, -15px) scale(1.06) rotate(2deg);
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.9)) brightness(1.2);
}

.faction-card:hover .faction-art:before,
.faction-card.map-active .faction-art:before {
  inset: -5px;
  opacity: 1;
  border-color: rgba(215, 168, 77, 0.55);
  box-shadow: 0 0 60px rgba(33, 126, 235, 0.35), inset 0 0 30px rgba(33, 126, 235, 0.15);
  background: radial-gradient(circle, rgba(33, 126, 235, 0.12) 0%, transparent 70%);
}

.faction-card.karus:hover .faction-art:before,
.faction-card.karus.map-active .faction-art:before {
  border-color: rgba(215, 168, 77, 0.55);
  box-shadow: 0 0 60px rgba(255, 55, 33, 0.35), inset 0 0 30px rgba(255, 55, 33, 0.15);
  background: radial-gradient(circle, rgba(255, 55, 33, 0.12) 0%, transparent 70%);
}

.faction-art span, .faction-art img {
  display: block;
  width: 100%;
  height: 100%;
}

.faction-art img {
  object-fit: contain;
  transition: filter 0.8s ease;
}

.elmorad .faction-art img {
  filter: sepia(0.25) saturate(0.9) contrast(1.05) brightness(0.95);
}

.faction-card.elmorad:hover .faction-art img,
.faction-card.elmorad.map-active .faction-art img {
  filter: sepia(0.15) saturate(1.05) contrast(1.1) brightness(1.05);
}

.karus .faction-art img {
  filter: sepia(0.3) saturate(0.9) contrast(1.05) brightness(0.95);
}

.faction-card.karus:hover .faction-art img,
.faction-card.karus.map-active .faction-art img {
  filter: sepia(0.2) saturate(1.05) contrast(1.1) brightness(1.05);
}

.faction-card:hover:after {
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.98) 0%, rgba(5, 6, 8, 0.65) 45%, rgba(5, 6, 8, 0.1) 100%);
}

.faction-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.5) 75%);
  z-index: -1;
  transition: background 0.8s ease;
}

/* Faction Info & Copy (Positioned on Symmetrical Sides) */
.faction-copy {
  position: absolute;
  bottom: 45px;
  width: 360px;
  display: flex;
  flex-direction: column;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.elmorad .faction-copy {
  left: 6%;
  right: auto;
  text-align: left;
  align-items: flex-start;
}

.karus .faction-copy {
  right: 6%;
  left: auto;
  text-align: right;
  align-items: flex-end;
}

.faction-card:hover .faction-copy {
  transform: translateY(-5px);
}

.faction-copy p {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 6px;
}

.faction-copy h3 {
  font-size: 32px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.elmorad .faction-copy h3 {
  color: #f0f5ff;
  text-shadow: 0 0 20px rgba(33, 126, 235, 0.2);
}

.karus .faction-copy h3 {
  color: #fff3f2;
  text-shadow: 0 0 20px rgba(255, 55, 33, 0.2);
}

.faction-copy>span {
  display: block;
  color: #b0acaf;
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 22px;
  opacity: 0.85;
  transition: color 0.4s ease;
}

.faction-card:hover .faction-copy>span {
  color: #e5e2e6;
}

.faction-copy a {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold2);
  border: 1px solid rgba(215, 168, 77, 0.3);
  padding: 11px 24px;
  background: rgba(10, 11, 15, 0.65);
  backdrop-filter: blur(5px);
  transition: all 0.4s ease;
}

.faction-copy a:hover {
  background: var(--gold);
  color: #120d07;
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(215, 168, 77, 0.4);
  transform: translateY(-2px);
}

/* Background Particle Effect (Embers / Stars) */
.faction-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
                    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 20px 30px;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  transition: transform 15s linear, opacity 0.8s ease;
}

.faction-card.elmorad::before {
  filter: hue-rotate(180deg);
}

.faction-card.karus::before {
  filter: hue-rotate(0deg);
}

.faction-card:hover::before {
  opacity: 0.35;
  transform: translateY(-30px);
}

/* Faction Big Numbers */
.faction-number {
  position: absolute;
  top: 25px;
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.015);
  letter-spacing: 0.1em;
  z-index: 1;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.elmorad .faction-number {
  color: rgba(33, 126, 235, 0.015);
  left: 6%;
}

.karus .faction-number {
  color: rgba(255, 55, 33, 0.015);
  right: 6%;
}

.faction-card:hover .faction-number {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.035);
}

.faction-card.elmorad:hover .faction-number {
  color: rgba(33, 126, 235, 0.04);
}

.faction-card.karus:hover .faction-number {
  color: rgba(255, 55, 33, 0.04);
}

/* Glowing Slanted Divider */
.faction-divider {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to bottom, #8b5b20, #f0d18a 30%, #f0d18a 70%, #a36d28);
  box-shadow: 0 0 15px rgba(215, 168, 77, 0.8), 0 0 30px rgba(215, 168, 77, 0.4);
  clip-path: polygon(calc(58% - 1.5px) 0, calc(58% + 1.5px) 0, calc(42% + 1.5px) 100%, calc(42% - 1.5px) 100%);
  transition: clip-path 0.7s cubic-bezier(0.25, 1, 0.3, 1);
}

.faction-grid:has(.elmorad:hover) .faction-divider {
  clip-path: polygon(calc(68% - 1.5px) 0, calc(68% + 1.5px) 0, calc(52% + 1.5px) 100%, calc(52% - 1.5px) 100%);
}

.faction-grid:has(.karus:hover) .faction-divider {
  clip-path: polygon(calc(48% - 1.5px) 0, calc(48% + 1.5px) 0, calc(32% + 1.5px) 100%, calc(32% - 1.5px) 100%);
}

/* Klik Map Support */
button.faction-art {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.faction-card.map-active .faction-map {
  opacity: 0.8;
  transform: scale(1.02);
  filter: saturate(0.9) contrast(1.08) brightness(0.65);
}

.faction-card.map-active {
  border-color: rgba(215, 168, 77, 0.4);
}

.faction-card.elmorad.map-active .faction-art {
  transform: translate(-50%, -15px) scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.9)) brightness(1.2);
}

.faction-card.karus.map-active .faction-art {
  transform: translate(50%, -15px) scale(1.06) rotate(2deg);
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.9)) brightness(1.2);
}

.faction-card.map-active .faction-art:before {
  inset: -5px;
  opacity: 1;
  border-color: rgba(109, 181, 255, 0.45);
  box-shadow: 0 0 60px rgba(33, 126, 235, 0.35), inset 0 0 30px rgba(33, 126, 235, 0.15);
}

.faction-card.karus.map-active .faction-art:before {
  border-color: rgba(255, 76, 55, 0.45);
  box-shadow: 0 0 60px rgba(255, 55, 33, 0.35), inset 0 0 30px rgba(255, 55, 33, 0.15);
}

.faction-card.map-active:after {
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.98) 0%, rgba(5, 6, 8, 0.65) 45%, rgba(5, 6, 8, 0.1) 100%);
}

.faction-art:focus-visible {
  outline: 1px solid var(--gold2);
  outline-offset: 5px;
}

@media (max-width: 950px) {
  .faction-grid {
    flex-direction: column;
    height: auto;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .faction-card {
    position: relative;
    width: 100%;
    height: 480px;
    clip-path: none !important;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .faction-card:last-child {
    margin-bottom: 0;
  }
  .faction-divider {
    display: none;
  }
  .faction-art {
    width: 220px;
    height: 220px;
    top: 10%;
  }
  .elmorad .faction-art, .karus .faction-art {
    left: 50%;
    right: auto;
    transform: translate(-50%, 0) rotate(0deg);
    animation: elmoradFloat 6s ease-in-out infinite alternate;
  }
  .faction-copy {
    left: 40px !important;
    right: 40px !important;
    width: auto;
    text-align: center !important;
    align-items: center !important;
    bottom: 45px;
  }
  .faction-number {
    left: 40px !important;
    right: auto !important;
  }
  .karus .faction-number {
    left: auto !important;
    right: 40px !important;
  }
  .faction-card:hover .faction-art {
    transform: translate(-50%, -15px) scale(1.06) rotate(0deg) !important;
  }
}

@media (max-width: 620px) {
  .faction-card {
    height: 400px;
  }
  .faction-art {
    width: 180px;
    height: 180px;
    top: 8%;
  }
  .faction-copy {
    left: 20px !important;
    right: 20px !important;
    bottom: 35px;
  }
  .faction-copy h3 {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .faction-copy>span {
    font-size: 11px;
    margin-bottom: 18px;
    max-width: 100%;
  }
  .faction-copy a {
    padding: 10px 22px;
  }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Logo Baru Chaos Realm Integration */
.brand {
  min-width: auto !important;
}

.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(215, 168, 77, 0.35));
  transition: height 0.3s ease;
}

.site-header.scrolled .brand-logo {
  height: 46px;
}

.gate-logo {
  width: min(380px, 80vw);
  height: auto;
  object-fit: contain;
  margin: 0 auto 30px;
  display: block;
  filter: drop-shadow(0 0 50px rgba(215, 168, 77, 0.25));
  animation: gateLogoFloat 8s ease-in-out infinite alternate;
}

@keyframes gateLogoFloat {
  0% {
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 0 40px rgba(215, 168, 77, 0.2));
  }
  100% {
    transform: translateY(-12px) scale(1.02);
    filter: drop-shadow(0 0 60px rgba(215, 168, 77, 0.38));
  }
}

/* Custom Popup Notification */
.popup-notification {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-notification[hidden] {
  display: none !important;
}
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 5, 0.9);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.4s ease forwards;
}
.popup-panel {
  position: relative;
  width: min(420px, 94vw);
  padding: 42px 34px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(215, 168, 77, 0.15), transparent 45%), linear-gradient(145deg, #15161a, #08090b);
  border: 1px solid rgba(215, 168, 77, 0.45);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(215, 168, 77, 0.15);
  border-radius: 4px;
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.popup-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.popup-icon.success {
  background: rgba(83, 189, 112, 0.1);
  border-color: #53bd70;
  color: #53bd70;
  text-shadow: 0 0 15px rgba(83, 189, 112, 0.5);
  box-shadow: 0 0 20px rgba(83, 189, 112, 0.2);
}
.popup-icon.error {
  background: rgba(159, 39, 28, 0.1);
  border-color: #9f271c;
  color: #f3efe7;
  text-shadow: 0 0 15px rgba(159, 39, 28, 0.6);
  box-shadow: 0 0 20px rgba(159, 39, 28, 0.25);
}
.popup-title {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 16px;
}
.popup-message {
  font-size: 13px;
  line-height: 1.7;
  color: #99958d;
  margin-bottom: 28px;
  word-break: break-word;
}
.popup-btn {
  width: 100%;
  height: 48px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  cursor: pointer;
  border: 1px solid rgba(215, 168, 77, 0.4);
  background: transparent;
  color: var(--gold);
  transition: 0.25s;
}
.popup-btn:hover {
  background: var(--gold);
  color: #140d05;
  box-shadow: 0 0 20px rgba(215, 168, 77, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Top Up Section Styles */
.topup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .topup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .topup-grid {
    grid-template-columns: 1fr;
  }
}

.topup-card {
  position: relative;
  background: linear-gradient(135deg, #111216, #07080a);
  border: 1px solid rgba(215, 168, 77, 0.15);
  border-radius: 6px;
  padding: 30px 24px;
  text-align: center;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topup-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(215, 168, 77, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.topup-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 168, 77, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(215, 168, 77, 0.1);
}

.topup-card:hover::before {
  opacity: 1;
}

.topup-card-art {
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.topup-card:hover .topup-card-art {
  transform: scale(1.1) rotate(2deg);
}

.topup-card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.topup-card-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(215, 168, 77, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

.topup-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.topup-card p {
  font-size: 12px;
  color: #8f8c85;
  margin: 0 0 24px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.topup-card-price {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold2);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(215, 168, 77, 0.3);
  position: relative;
  z-index: 2;
}

.topup-card-btn {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(215, 168, 77, 0.3);
  background: transparent;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  z-index: 2;
}

.topup-card-btn:hover {
  background: var(--gold);
  color: #140d05;
  box-shadow: 0 0 15px rgba(215, 168, 77, 0.4);
}

/* Floating Social Media Sidebar */
.floating-social-bar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(8, 9, 12, 0.85);
  border: 1px solid rgba(215, 168, 77, 0.35);
  border-radius: 30px;
  padding: 16px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(215, 168, 77, 0.05);
  backdrop-filter: blur(8px);
  animation: floatBarIn 1s ease forwards;
}

@keyframes floatBarIn {
  from { opacity: 0; transform: translate(30px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(215, 168, 77, 0.2);
  color: #8f8c85;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-btn:hover {
  transform: scale(1.15) translateY(-2px);
  color: #fff;
}

.social-btn.facebook:hover {
  background: #1877f2;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
  border-color: #1877f2;
}

.social-btn.discord:hover {
  background: #5865f2;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
  border-color: #5865f2;
}

.social-btn.youtube:hover {
  background: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  border-color: #ff0000;
}

.social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 0 15px rgba(220, 39, 67, 0.4);
  border-color: transparent;
}

/* Custom Theme Cursor */
html, body {
  cursor: url('assets/cursor.png'), auto !important;
}

a, button, input, select, option, textarea, [role="button"], [data-close-modal], [data-close-usercp], [data-usercp-tab], .social-btn {
  cursor: url('assets/cursor.png'), pointer !important;
}

/* Upgrade rates CSS */
.upgrade_menu {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.upgrade_btn {
  background: linear-gradient(180deg, #1b1c21, #0f1013);
  border: 1px solid rgba(215, 168, 77, 0.35);
  color: #c9b183;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.05), 0 2px 5px rgba(0, 0, 0, 0.4);
}

.upgrade_btn:hover {
  color: #fff;
  border-color: var(--gold2);
  box-shadow: 0 0 12px rgba(215, 168, 77, 0.3);
  transform: translateY(-1px);
}

.upgrade_btn.active {
  background: linear-gradient(180deg, #916120, #4c320d);
  border-color: #ffd77a;
  color: #fff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 0 15px rgba(215, 168, 77, 0.45);
  text-shadow: 0 0 5px rgba(255, 215, 122, 0.6);
}

.upgrade_box {
  background: rgba(8, 9, 13, 0.85);
  border: 1px solid rgba(215, 168, 77, 0.22);
  padding: 24px;
  border-radius: 4px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.upgrade_box h3 {
  color: var(--gold2);
  text-align: center;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(215, 168, 77, 0.4);
}

.upgrade_box table {
  width: 100%;
  color: #eee;
  border-collapse: collapse;
}

.upgrade_box table th {
  background: linear-gradient(90deg, transparent, rgba(215, 168, 77, 0.12), transparent);
  color: #ffd88a;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-bottom: 1.5px solid rgba(215, 168, 77, 0.35);
  padding: 12px 10px;
}

.upgrade_box table td {
  padding: 12px 10px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.25s;
  text-align: center;
}

.upgrade_box table tbody tr:hover td {
  background: rgba(215, 168, 77, 0.04);
}

.upgrade_box img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  border: 2px solid #5a4831;
  background: radial-gradient(circle, #24252a 30%, #0d0e11 90%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s;
  padding: 2px;
  display: inline-block;
  vertical-align: middle;
}

.upgrade_box table tbody tr:hover img {
  transform: scale(1.1) rotate(2deg);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(215, 168, 77, 0.5);
}

@media (max-width: 700px) {
  #upgradeRatesModal .auth-panel {
    display: block !important;
    padding: 30px 20px !important;
  }
  #upgradeRatesModal .auth-panel > div:first-of-type {
    border-right: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #upgradeRatesModal .upgrade_menu {
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  #upgradeRatesModal .upgrade_btn {
    width: auto !important;
    text-align: center !important;
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 10px;
  }
}

/* Loading overlay for smooth transition */
.upgrade-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.upgrade-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.forge-loader {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(215, 168, 77, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(215, 168, 77, 0.25);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Premium Top Up Board */
.topup-board {
  max-width: 1200px;
  margin: 30px auto 0;
  background: radial-gradient(circle at 50% 0%, rgba(215, 168, 77, 0.05), transparent 50%), 
              linear-gradient(135deg, #16171d, #08090b);
  border: 1px solid rgba(215, 168, 77, 0.25);
  box-shadow: 0 0 45px rgba(215, 168, 77, 0.08), 0 30px 80px rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Body Grid */
.topup-board-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 600px;
  background: #0c0d12;
}

/* Sidebar Menu */
.topup-sidebar {
  border-right: 1px solid rgba(215, 168, 77, 0.08);
  background: #08090c;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 550px;
}

.topup-sidebar-header {
  margin-bottom: 30px;
  text-align: left;
  padding-left: 5px;
}

.topup-logo {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.topup-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topup-side-btn {
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: #8a8781;
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.topup-side-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  border-left-color: rgba(215, 168, 77, 0.3);
}

.topup-side-btn.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(215, 168, 77, 0.22) 0%, rgba(215, 168, 77, 0.03) 90%);
  border-left-color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 215, 122, 0.5);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
  padding-right: 25px;
}

.nav-btn-icon {
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.6;
  transition: all 0.3s;
}

.topup-side-btn.active .nav-btn-icon,
.topup-side-btn:hover .nav-btn-icon {
  opacity: 1;
  color: var(--gold);
  filter: drop-shadow(0 0 3px rgba(215, 168, 77, 0.4));
}

.topup-sidebar-decor {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  margin-top: auto;
}

.topup-decor-img {
  max-width: 90px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(215, 168, 77, 0.2)) brightness(0.85);
  transition: all 0.3s;
}

.topup-sidebar-footer {
  margin-top: 15px;
  padding: 0 5px;
}

.topup-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #8a8781;
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  box-sizing: border-box;
}

.topup-back-btn:hover {
  background: linear-gradient(180deg, #916120, #4c320d);
  border-color: #ffd77a;
  color: #fff;
  box-shadow: 0 0 10px rgba(215, 168, 77, 0.25);
}

/* Right Content Area */
.topup-main {
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: radial-gradient(circle at 50% 0%, rgba(215, 168, 77, 0.04), transparent 60%);
}

.topup-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.topup-title-area h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.topup-title-area p {
  font-size: 11px;
  color: #6b6a65;
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}

/* User Balance Widget */
.topup-balance-widget {
  background: rgba(16, 17, 22, 0.7);
  border: 1px solid rgba(215, 168, 77, 0.25);
  border-radius: 4px;
  padding: 6px 14px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.topup-balance-widget:hover {
  border-color: rgba(215, 168, 77, 0.45);
}

.balance-title {
  font-size: 7px;
  font-weight: 800;
  color: var(--gold2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.balance-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-coin-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #e2ae4c, #815219);
  border: 1px solid #ffb100;
  color: #160e05;
  font: 800 8px var(--serif);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(215, 168, 77, 0.4);
}

.user-kcash-balance {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.balance-plus-btn {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(215, 168, 77, 0.4);
  background: transparent;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  margin-left: auto;
}

.balance-plus-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 0 5px rgba(215, 168, 77, 0.5);
}

/* Packages Grid (3 columns) */
.topup-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.topup-pkg-card {
  background: rgba(16, 17, 22, 0.4);
  border: 1px solid rgba(215, 168, 77, 0.15);
  border-radius: 4px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 295px;
  box-sizing: border-box;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: 1px solid rgba(215, 168, 77, 0.05);
  outline-offset: -6px;
}

.topup-pkg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 168, 77, 0.5);
  outline-color: rgba(215, 168, 77, 0.15);
  background: rgba(215, 168, 77, 0.015);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(215, 168, 77, 0.05);
}

.pkg-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.pkg-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.pkg-image img {
  max-height: 110px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s;
}

.topup-pkg-card:hover .pkg-image img {
  transform: scale(1.08) translateY(-2px);
}

.pkg-label {
  font-size: 10px;
  color: #8e8a82;
  margin-bottom: 12px;
  font-weight: 500;
}

.pkg-buy-btn {
  width: 90%;
  height: 32px;
  background: linear-gradient(180deg, #916120, #4c320d);
  border: 1px solid #ffd77a;
  color: #fff;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.pkg-buy-btn:hover {
  background: var(--gold);
  color: #120d07;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(215, 168, 77, 0.5);
  text-shadow: none;
}

/* Features Footer Row */
.topup-features-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  background: rgba(8, 9, 12, 0.4);
  border: 1px solid rgba(215, 168, 77, 0.1);
  border-radius: 4px;
  padding: 15px 20px;
  margin-top: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.feature-icon-svg {
  filter: drop-shadow(0 0 5px rgba(215, 168, 77, 0.3));
}

.feature-info h4 {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-info p {
  font-size: 9px;
  color: #6b6a65;
  margin: 3px 0 0;
}

/* Responsiveness media queries */
@media (max-width: 992px) {
  .topup-board-body {
    grid-template-columns: 1fr;
  }
  .topup-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(215, 168, 77, 0.1);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    min-height: auto;
  }
  .topup-sidebar-header {
    margin-bottom: 0;
  }
  .topup-sidebar-nav {
    flex-direction: row;
    gap: 15px;
  }
  .topup-side-btn.active {
    clip-path: none;
    border-left: 0;
    border-bottom: 2px solid var(--gold);
    background: linear-gradient(180deg, rgba(215, 168, 77, 0.15) 0%, transparent 100%);
    padding-right: 20px;
  }
  .topup-sidebar-decor {
    display: none;
  }
  .topup-sidebar-footer {
    margin-top: 0;
  }
  .topup-back-btn {
    width: auto;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .topup-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topup-features-footer {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .topup-packages-grid {
    grid-template-columns: 1fr;
  }
  .topup-sidebar-nav span {
    display: none;
  }
  .topup-main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .topup-balance-widget {
    width: 100%;
  }
}

/* News & Announcement Section */
.news {
  padding: 80px 0;
  background: linear-gradient(rgba(8, 9, 12, 0.91), rgba(8, 9, 12, 0.91)), url('assets/world_bg.png') center/cover no-repeat;
  overflow: hidden;
  position: relative;
}

/* Category Tabs Switcher */
.news-category-tabs {
  max-width: 1200px;
  margin: 0 auto 25px;
  padding: 0 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-tab-btn {
  background: #0e1014;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8882;
  padding: 8px 18px;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.news-tab-btn:hover,
.news-tab-btn.active {
  color: #fff;
  border-color: rgba(215, 168, 77, 0.55);
  box-shadow: 0 0 10px rgba(215, 168, 77, 0.15);
}

.news-tab-btn.active {
  background: linear-gradient(180deg, rgba(145, 97, 32, 0.15), transparent);
  border-color: var(--gold);
  text-shadow: 0 0 5px rgba(255, 215, 122, 0.4);
}

/* Carousel Outer Shell */
.news-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Arrow Buttons */
.news-arrow-btn {
  width: 32px;
  height: 48px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8c8983;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s;
  border-radius: 4px;
}

.news-arrow-btn:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(215, 168, 77, 0.1);
  box-shadow: 0 0 12px rgba(215, 168, 77, 0.2);
}

/* Viewport & Track */
.news-carousel-viewport {
  overflow: hidden;
  margin: 0;
  width: 100%;
}

.news-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
}

/* Card item */
.news-item-card {
  flex: 0 0 calc((100% - 48px) / 4); /* Display 4 cards at a time by default */
  min-width: calc((100% - 48px) / 4);
  background: rgba(14, 16, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.news-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  background: rgba(255, 255, 255, 0.02);
}

/* Borders colors based on types */
.news-item-card.event-border {
  border-bottom-color: rgba(215, 168, 77, 0.45);
}
.news-item-card.event-border:hover {
  border-color: rgba(215, 168, 77, 0.45);
}

.news-item-card.update-border {
  border-bottom-color: rgba(51, 115, 235, 0.45);
}
.news-item-card.update-border:hover {
  border-color: rgba(51, 115, 235, 0.45);
}

.news-item-card.notice-border {
  border-bottom-color: rgba(140, 137, 131, 0.45);
}
.news-item-card.notice-border:hover {
  border-color: rgba(140, 137, 131, 0.45);
}

.news-item-card.maintenance-border {
  border-bottom-color: rgba(167, 35, 20, 0.45);
}
.news-item-card.maintenance-border:hover {
  border-color: rgba(167, 35, 20, 0.45);
}

/* Cover Image */
.news-item-art {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.news-item-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.95);
}

.news-item-card:hover .news-item-art img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.news-item-art::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(14, 16, 20, 1), transparent);
}

/* Card content */
.news-item-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-tag {
  align-self: flex-start;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.news-tag.event {
  background: rgba(145, 97, 32, 0.25);
  color: var(--gold);
  border: 1px solid rgba(215, 168, 77, 0.35);
}

.news-tag.update {
  background: rgba(33, 115, 235, 0.25);
  color: #5595ff;
  border: 1px solid rgba(33, 115, 235, 0.35);
}

.news-tag.notice {
  background: rgba(140, 137, 131, 0.2);
  color: #a49e95;
  border: 1px solid rgba(140, 137, 131, 0.3);
}

.news-tag.maintenance {
  background: rgba(167, 35, 20, 0.2);
  color: #ff6352;
  border: 1px solid rgba(167, 35, 20, 0.35);
}

.news-item-content h3 {
  font-family: var(--serif);
  font-size: 13px;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.05em;
}

.news-item-content p {
  font-size: 10px;
  color: #8c8983;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.news-date {
  font-size: 8px;
  font-weight: bold;
  color: #615e58;
  letter-spacing: 0.05em;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-date i {
  font-style: normal;
  opacity: 0.8;
}

/* Dots indicator */
.news-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.news-dot-diamond {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(215, 168, 77, 0.35);
  transform: rotate(45deg);
  transition: all 0.25s;
  cursor: pointer;
  background: transparent;
}

.news-dot-diamond.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(215, 168, 77, 0.6);
}

/* Media Queries for News Carousel */
@media (max-width: 1050px) {
  .news-item-card {
    flex: 0 0 calc((100% - 32px) / 3); /* Display 3 cards */
    min-width: calc((100% - 32px) / 3);
  }
}

@media (max-width: 750px) {
  .news-item-card {
    flex: 0 0 calc((100% - 16px) / 2); /* Display 2 cards */
    min-width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 480px) {
  .news-item-card {
    flex: 0 0 100%; /* Display 1 card */
    min-width: 100%;
  }
}

/* ==================== USER PROFILE REDESIGN STYLES ==================== */
.ucp-modal-panel {
  position: relative;
  width: min(960px, 96vw) !important;
  max-height: 94vh !important;
  display: grid !important;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  text-align: left;
  align-content: start;
}

.ucp-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ucp-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 4px;
  background: #090a0d;
}

.ucp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ucp-level-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #16171a, #08090b);
  border: 1px solid var(--gold);
  color: var(--gold2);
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.ucp-username-area {
  text-align: center;
  margin-top: 5px;
}

.ucp-username {
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ucp-status-pill {
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  background: rgba(83, 189, 112, 0.1);
  border: 1px solid #53bd70;
  color: #53bd70;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ucp-status-pill::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #53bd70;
  border-radius: 50%;
  box-shadow: 0 0 6px #53bd70;
}

.ucp-rank-title {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.ucp-menu-btn {
  height: 38px;
  text-align: left;
  padding: 0 14px;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  color: #6f6d68;
  font: 700 9px var(--serif);
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: 0.25s;
  width: 100%;
}

.ucp-menu-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.ucp-menu-btn.active {
  border-left-color: var(--gold);
  color: #fff;
  background: linear-gradient(90deg, rgba(215, 168, 77, 0.05), transparent);
}

/* Right Content Area */
.ucp-content {
  overflow-y: auto;
  max-height: 80vh;
  padding-right: 8px;
}

/* Header section styling */
.ucp-header {
  margin-bottom: 20px;
}

.ucp-header h1 {
  font-size: 26px;
  font-family: var(--serif);
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(215, 168, 77, 0.25);
  margin: 0;
}

.ucp-breadcrumbs {
  font-size: 9px;
  color: #6f6d68;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ucp-breadcrumbs span {
  color: var(--gold);
}

/* Profile Tab Content */
.ucp-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Stats Card - Top Panel */
.ucp-card-top {
  background: rgba(16, 17, 22, 0.95);
  border: 1px solid rgba(215, 168, 77, 0.18);
  border-radius: 4px;
  padding: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.ucp-top-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.ucp-detail-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
}

.ucp-detail-row span {
  color: #6f6d68;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.ucp-detail-row strong {
  color: #afaca5;
  font-weight: 500;
}

.ucp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ucp-stat-box {
  background: rgba(8, 9, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 16px 8px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.ucp-stat-box:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 168, 77, 0.3);
}

.ucp-stat-icon {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
}

.ucp-stat-label {
  color: #6f6d68;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.ucp-stat-value {
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: bold;
  display: block;
}

.ucp-stat-sub {
  color: var(--gold);
  font-size: 8px;
  margin-top: 2px;
  display: block;
}

/* Bottom Split Layout */
.ucp-bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ucp-card-bottom {
  background: rgba(16, 17, 22, 0.95);
  border: 1px solid rgba(215, 168, 77, 0.18);
  border-radius: 4px;
  padding: 24px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.ucp-card-title {
  color: var(--gold2);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  border-bottom: 1.5px solid rgba(215, 168, 77, 0.2);
  padding-bottom: 10px;
  text-transform: uppercase;
}

/* Main Character Layout inside Card */
.ucp-char-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 15px;
}

.ucp-char-view-box {
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at 50% 50%, rgba(215, 168, 77, 0.12), transparent 70%), #090a0d;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ucp-char-artwork {
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.ucp-char-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ucp-char-name-lv {
  margin-bottom: 4px;
}

.ucp-char-name {
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.ucp-char-lv-class {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  margin: 2px 0 0;
}

/* Progress bar styling */
.ucp-bar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ucp-bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: bold;
}

.ucp-bar-label {
  color: #6f6d68;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ucp-bar-val {
  color: #afaca5;
}

.ucp-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.ucp-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.ucp-progress-fill.hp {
  background: linear-gradient(90deg, #6c1912, #c62828);
  box-shadow: 0 0 6px rgba(198, 40, 40, 0.4);
}

.ucp-progress-fill.mp {
  background: linear-gradient(90deg, #123d6a, #1565c0);
  box-shadow: 0 0 6px rgba(21, 101, 192, 0.4);
}

.ucp-progress-fill.exp {
  background: linear-gradient(90deg, #8a6520, var(--gold2));
  box-shadow: 0 0 6px rgba(240, 209, 138, 0.4);
}

/* Activity Logs styling */
.ucp-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.ucp-activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(8, 9, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 10px 14px;
  transition: border-color 0.2s;
}

.ucp-activity-item:hover {
  border-color: rgba(215, 168, 77, 0.12);
}

.ucp-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(215, 168, 77, 0.05);
  border: 1px solid rgba(215, 168, 77, 0.12);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.ucp-activity-details {
  flex: 1;
  font-size: 11px;
}

.ucp-activity-text {
  color: #afaca5;
  margin: 0;
  line-height: 1.4;
}

.ucp-activity-text strong {
  color: var(--gold2);
  font-weight: 600;
}

.ucp-activity-time {
  font-size: 9px;
  color: #6f6d68;
  margin: 2px 0 0;
  display: block;
}

/* Styled outline buttons */
.ucp-outline-btn {
  height: 36px;
  border: 1px solid rgba(215, 168, 77, 0.35);
  background: none;
  color: var(--gold2);
  font: 700 9px var(--serif);
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 2px;
  width: 100%;
}

.ucp-outline-btn:hover {
  border-color: var(--gold);
  background: rgba(215, 168, 77, 0.04);
  color: #fff;
  box-shadow: 0 0 10px rgba(215, 168, 77, 0.1);
}

.ucp-outline-btn i {
  font-style: normal;
  font-size: 8px;
}

/* Custom styles for Character Selector in Dashboard */
.ucp-char-select-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ucp-char-select-btn {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #6f6d68;
  font-size: 9px;
  font-family: var(--serif);
  font-weight: bold;
  border-radius: 2px;
  cursor: pointer;
  transition: 0.2s;
}

.ucp-char-select-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}

.ucp-char-select-btn.active {
  background: rgba(215, 168, 77, 0.08);
  border-color: var(--gold);
  color: var(--gold2);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .ucp-modal-panel {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .ucp-sidebar {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 0 !important;
    padding-bottom: 20px;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  .ucp-avatar-wrapper {
    width: 60px;
    height: 60px;
  }
  .ucp-username-area {
    text-align: left;
  }
  .ucp-menu-btn {
    width: auto !important;
    height: 32px;
    padding: 0 10px;
  }
}

@media (max-width: 720px) {
  .ucp-card-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ucp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ucp-bottom-row {
    grid-template-columns: 1fr;
  }
}

/* Custom Scrollbar Styles matching the Gold/Bronze Theme */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 168, 77, 0.35) rgba(8, 9, 12, 0.6);
}

/* Chrome, Safari, Edge, Opera */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 9, 12, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(215, 168, 77, 0.35);
  border-radius: 4px;
  border: 1px solid rgba(8, 9, 12, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(215, 168, 77, 0.6);
}
/* Monster Search Styles */
#monsterSearchInput {
  background: rgba(8, 9, 13, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

#monsterSearchInput:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(215, 168, 77, 0.25);
}

.monster-search-row:hover {
  background: rgba(215, 168, 77, 0.04);
}

.monster-search-link {
  color: var(--gold2);
  text-decoration: none;
  font-weight: bold;
  font-family: var(--serif);
  transition: color 0.25s, text-shadow 0.25s;
}

.monster-search-link:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--gold);
}
/* ==================== SEAMLESS BACKGROUND OVERRIDES ==================== */
.world,
.news,
.directory-section,
.store-section,
.download-section,
.final-cta {
  background: radial-gradient(circle at 50% 0%, rgba(215, 168, 77, 0.07), transparent 50%),
              radial-gradient(circle at 50% 100%, rgba(215, 168, 77, 0.07), transparent 50%) !important;
}

.world,
.classes,
.news,
.ranking-section,
.directory-section,
.store-section,
.download-section,
.final-cta {
  position: relative !important;
  z-index: 2 !important; /* Establishes stacking context above the global leaves */
}

/* Gradients at the boundaries (corners/edges) between sections to blend them seamlessly */
.world::before,
.classes::before,
.news::before,
.ranking-section::before,
.directory-section::before,
.store-section::before,
.download-section::before,
.final-cta::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 120px !important;
  background: linear-gradient(to bottom, #08090c, transparent) !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.world::after,
.classes::after,
.news::after,
.ranking-section::after,
.directory-section::after,
.store-section::after,
.download-section::after,
.final-cta::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 120px !important;
  background: linear-gradient(to top, #08090c, transparent) !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Global falling maple leaves for Page 2 to last page */
.global-maple-leaves {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important; /* Put behind sections (z-index 2) so it does not overlay models or text */
  pointer-events: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.5s ease !important;
  perspective: 700px !important;
}

.global-maple-leaves.visible {
  opacity: 1 !important;
}

/* Profile Modal Overlay */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  padding: 20px;
}

/* Modal Content Container */
.profile-modal-content {
  position: relative;
  width: min(940px, 95vw);
  background: radial-gradient(circle at 50% 0%, rgba(215, 168, 77, 0.12), transparent 45%), linear-gradient(145deg, #121318, #07080a);
  border: 1px solid rgba(215, 168, 77, 0.45);
  box-shadow: 0 30px 90px rgba(0,0,0,0.95), 0 0 40px rgba(215, 168, 77, 0.15);
  border-radius: 4px;
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
}

/* Close button */
.profile-modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}
.profile-modal-close:hover {
  color: var(--gold);
}

/* Modal Title */
.profile-modal-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: #fff;
  border-bottom: 2px solid rgba(215, 168, 77, 0.25);
  padding-bottom: 12px;
  margin-top: 0;
  margin-bottom: 24px;
}
.profile-modal-title span {
  color: var(--gold);
}

/* Body layout */
.profile-modal-body {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Box Panels */
.char-info-box, .char-inventory-box {
  background: rgba(11, 12, 16, 0.75);
  border: 1px solid rgba(215, 168, 77, 0.22);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.char-info-header, .inventory-header {
  height: 38px;
  line-height: 36px;
  padding: 0 16px;
  background: linear-gradient(to right, #191c24, #0f1015);
  border-bottom: 1px solid rgba(215, 168, 77, 0.18);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.char-info-body, .inventory-body {
  padding: 20px;
}

/* Left Panel: Character Info */
.char-info-box {
  width: 320px;
  flex-shrink: 0;
}
.char-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.char-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.2);
}
.char-status-indicator.online {
  background: #53bd70;
  box-shadow: 0 0 10px #53bd70;
}
.char-status-indicator.offline {
  background: #9f271c;
  box-shadow: 0 0 10px #9f271c;
}
.char-icons-wrapper {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.char-icons-wrapper span {
  font-size: 12px;
}

/* Stats table grid */
.char-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.03);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.stat-label {
  color: #888;
}
.stat-val {
  font-weight: bold;
  color: #fff;
}

/* Combat Stats block */
.char-combat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.combat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  background: rgba(0,0,0,0.4);
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  font-size: 11px;
}
.combat-row span:first-child {
  color: #888;
}
.combat-val {
  font-weight: bold;
  color: #ccc;
}
.combat-val.stat-hl {
  color: #ffd77a;
}

/* Resistance grid */
.char-resistance-section {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.03);
}
.resistance-title {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 10px;
  text-align: center;
}
.resistance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.res-item {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.res-item span:first-child {
  color: #888;
}
.res-val {
  color: #fff;
  font-weight: bold;
}

/* Right Panel: Inventory */
.char-inventory-box {
  width: 500px;
}

/* Equipment Layout Container */
.equipment-layout-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 250px;
  margin-bottom: 15px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 4px;
  padding: 10px 20px;
}

.char-silhouette-frame {
  width: 160px;
  height: 220px;
  background: url('assets/classes_bg.png') no-repeat center center;
  background-size: contain;
  opacity: 0.15;
}

.equipment-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(5, 44px);
  gap: 6px;
  justify-content: center;
}

.equip-slot, .bag-slot {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(215, 168, 77, 0.28);
  background: #08090c no-repeat center center;
  background-size: 38px 38px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.equip-slot:hover, .bag-slot:hover {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(215,168,77,0.4);
}

.equip-slot[data-slot="0"]::before, .equip-slot[data-slot="2"]::before { content: "👂"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="1"]::before { content: "🪖"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="3"]::before { content: "📿"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="4"]::before { content: "🛡️"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="5"]::before { content: "🧥"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="14"]::before { content: "⚔️"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="7"]::before { content: "🎗️"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="15"]::before { content: "🛡️"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="9"]::before, .equip-slot[data-slot="11"]::before { content: "💍"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="10"]::before { content: "👖"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="12"]::before { content: "🧤"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }
.equip-slot[data-slot="13"]::before { content: "🥾"; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.15; font-size: 16px; }

/* Slot Stack badge count */
.item-slot-stack {
  position: absolute;
  bottom: 2px;
  right: 3px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 9px;
  font-family: var(--sans);
  padding: 0 3px;
  border-radius: 2px;
  font-weight: bold;
  pointer-events: none;
}

/* Inventory Gold Info */
.inventory-gold-row {
  text-align: right;
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
  font-family: var(--serif);
}

/* Bag slots layout (7 cols x 4 rows) */
.bag-slots-grid {
  display: grid;
  grid-template-columns: repeat(7, 44px);
  grid-template-rows: repeat(4, 44px);
  gap: 6px;
  justify-content: center;
}

/* Custom Item Tooltip popup floating */
.item-tooltip-popup {
  min-width: 220px;
  max-width: 320px;
  background: rgba(11, 12, 16, 0.95);
  border: 1px solid rgba(215, 168, 77, 0.6);
  border-radius: 4px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8), 0 0 15px rgba(215,168,77,0.15);
  font-family: var(--sans);
}

/* Media Page Video Card CSS styles */
.video-card:hover {
  border-color: rgba(215, 168, 77, 0.6) !important;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 10px rgba(215,168,77,0.1);
}
.video-iframe-wrapper iframe {
  pointer-events: none; /* Allows hover action directly over card without iframe intercepting */
}
.video-iframe-wrapper iframe.interactive {
  pointer-events: auto !important;
}

/* Section: MEDIA background & style */
.media-section {
  padding: 100px 0;
  background: linear-gradient(rgba(8, 9, 12, 0.92), rgba(8, 9, 12, 0.92)), url('assets/fortress_bg.png') center/cover no-repeat;
  position: relative;
}

/* Premium Gold Frame for Media Video Container */
.media-video-frame {
  position: relative;
  padding: 10px;
  background: rgba(8, 9, 12, 0.95);
  border: 3px double #d7a84d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(215, 168, 77, 0.25);
  border-radius: 4px;
}
.media-video-frame::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid rgba(215, 168, 77, 0.3);
  pointer-events: none;
  border-radius: 6px;
}

/* Choice Videos CSS styles */
.video-choices-container {
  margin-top: 20px;
  border-top: 1px dashed rgba(215, 168, 77, 0.2);
  padding-top: 25px;
}

.video-choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.video-choice-item {
  background: rgba(8, 9, 12, 0.85);
  border: 1px solid rgba(215, 168, 77, 0.25);
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
}

.video-choice-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(215, 168, 77, 0.25);
}

.video-choice-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}

.video-choice-item:hover img {
  transform: scale(1.06);
}

.video-choice-item.active {
  border-color: var(--gold);
  background: rgba(215, 168, 77, 0.1);
  box-shadow: 0 0 20px rgba(215, 168, 77, 0.3);
}

.video-choice-item.active .play-icon-overlay {
  background: rgba(20, 13, 5, 0.15);
  opacity: 1;
}

.video-choice-item.active .play-icon-overlay svg {
  transform: scale(1.25);
  filter: drop-shadow(0 0 10px var(--gold));
}

.video-choice-item:hover .play-icon-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
}

.video-choice-item:hover .play-icon-overlay svg {
  transform: scale(1.15);
}

/* Server Card Stats & Activity Styles */
.server-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.server-card-activity {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.server-card-activity .activity-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.live-dot-red {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
  display: inline-block;
  animation: pulse-live-dot-red 1.8s infinite ease-in-out;
}

@keyframes pulse-live-dot-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.server-card-activity .activity-label {
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.server-card-activity .activity-ticker {
  height: 20px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.server-card-activity .activity-text {
  font-size: 10px;
  line-height: 1.2;
  color: #c0beb8;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  text-align: left;
}

/* Footer Inline Visitor Stats Styles */
.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-visitor-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(215, 168, 77, 0.15);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer-visitor-stats .live-dot {
  width: 6px;
  height: 6px;
  background-color: #53bd70;
  border-radius: 50%;
  box-shadow: 0 0 6px #53bd70;
  display: inline-block;
  animation: pulse-live-dot 1.8s infinite ease-in-out;
}

.footer-visitor-stats .visitor-stat-divider {
  color: rgba(215, 168, 77, 0.25);
  margin: 0 4px;
}

.footer-visitor-stats b {
  font-family: var(--serif);
  font-size: 11px;
}

.footer-visitor-stats b.count-green {
  color: #53bd70;
  text-shadow: 0 0 5px rgba(83, 189, 112, 0.3);
}

.footer-visitor-stats b.count-gold {
  color: var(--gold2);
  text-shadow: 0 0 5px rgba(215, 168, 77, 0.3);
}

@keyframes pulse-live-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(83, 189, 112, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(83, 189, 112, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(83, 189, 112, 0);
  }
}

@keyframes fade-in-activity {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive adjustments */
@media(max-width: 620px) {
  .server-card {
    left: 24px;
    right: 24px;
    bottom: 25px;
    width: auto !important;
    padding: 12px 15px;
    gap: 8px;
  }
  
  .server-card-stats {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  .server-card-stats .server-divider {
    display: none;
  }
  
  .server-card-activity {
    justify-content: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
  }
}


