:root {
    --bg: #f6f7fb;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #f3f4f9;
    --line: #e7e8f0;
    --text: #5a5b6e;
    --muted: #9a9bae;
    --white: #1c1d2b;
    --ink: #1c1d2b;
    --accent: #6c5ce7;
    --accent-2: #6c5ce7;
    --accent-soft: #efeafe;
    --pink: #ec4899;
    --cyan: #0ea5b7;
    --purple: #7c5cf0;
    --green: #10b981;
    --head: 'Oswald', sans-serif;
    --body: 'Rajdhani', sans-serif;
    --shadow: 0 14px 40px rgba(28,29,60,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--head);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
}

.btn {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 12px 26px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: .25s;
    border: 1.5px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: #5a4bd4; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(108,92,231,.25); }
.btn-outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--panel-2); border-color: var(--accent); color: var(--accent); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 60; }
.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}
.topbar-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--text);
}
.clock-icon {
    font-size: 13px;
    line-height: 1;
    color: var(--accent);
    animation: clockPulse 2s ease-in-out infinite;
}
@keyframes clockPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.clock-label { color: var(--muted); }
.clock-time {
    color: var(--white);
    font-weight: 600;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}
.clock-date { color: var(--muted); }
.clock-tz {
    font-family: var(--head);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 5px;
}

/* ---- Server online indicator ---- */
.topbar-left { display: flex; align-items: center; gap: 16px; }
.server-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .06em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--muted);
    transition: .25s;
}
.server-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
    flex: none;
}
.server-status.is-online {
    color: #25d97a;
    border-color: rgba(37,217,122,.35);
    background: rgba(37,217,122,.10);
}
.server-status.is-online .status-dot {
    background: #25d97a;
    box-shadow: 0 0 0 0 rgba(37,217,122,.7);
    animation: statusPulse 1.8s ease-out infinite;
}
.server-status.is-offline {
    color: #ff4d4d;
    border-color: rgba(255,77,77,.35);
    background: rgba(255,77,77,.10);
}
.server-status.is-offline .status-dot { background: #ff4d4d; }
.server-status.is-checking .status-dot { animation: clockPulse 1.2s ease-in-out infinite; }
@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,217,122,.6); }
    70% { box-shadow: 0 0 0 7px rgba(37,217,122,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,217,122,0); }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,61,127,.6); }
    70% { box-shadow: 0 0 0 8px rgba(255,61,127,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,61,127,0); }
}
.topbar-actions { display: flex; gap: 18px; align-items: center; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a, .topbar-login, .topbar-lang {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .03em;
    transition: .2s;
}
.topbar-social a:hover, .topbar-login:hover { color: var(--accent); }
.topbar-login { background: none; border: none; cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; }
.topbar-register {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 999px;
}
.topbar-register:hover { background: var(--accent); color: #fff; }
.topbar-user { color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.topbar-logout-form { display: inline; }
.topbar-logout { color: var(--muted); }

.mainnav {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.mainnav.scrolled { box-shadow: 0 6px 24px rgba(28,29,60,.06); }
.mainnav-inner {
    display: flex;
    align-items: center;
    height: 70px;
    position: relative;
}
.nav-left, .nav-right { display: flex; gap: 28px; list-style: none; flex: 1; align-items: center; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
    font-family: var(--head);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .05em;
    color: var(--text);
    transition: .2s;
    position: relative;
}
.nav-left a::after, .nav-right a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width .25s;
}
.nav-left a:hover::after, .nav-right a:hover::after, .nav-left a.active::after { width: 100%; }
.nav-left a:hover, .nav-right a:hover, .nav-left a.active { color: var(--accent); }

/* ---- Nav dropdown (General) ---- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--head);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .05em;
    color: var(--text);
    transition: color .2s;
    padding: 0;
}
.nav-dd-trigger:hover { color: var(--accent); }
.nav-dd-caret {
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .25s;
}
.nav-dropdown:hover .nav-dd-caret,
.nav-dropdown.open .nav-dd-caret { transform: rotate(-135deg) translateY(-1px); }

.nav-dd-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 256px;
    list-style: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 70;
}
.nav-dd-menu::before {
    content: '';
    position: absolute;
    top: -6px; right: 26px;
    width: 12px; height: 12px;
    background: var(--panel);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.nav-dropdown:hover .nav-dd-menu,
.nav-dropdown.open .nav-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dd-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    transition: background .18s;
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--panel-2); }
.nav-dd-ico {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    font-size: 18px;
}
.nav-dd-text { display: flex; flex-direction: column; gap: 1px; text-transform: none; }
.nav-dd-label {
    font-family: var(--head);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
}
.nav-dd-menu a:hover .nav-dd-label { color: var(--accent); }
.nav-dd-desc {
    font-family: var(--body);
    font-size: 12px;
    letter-spacing: 0;
    color: var(--muted);
    text-transform: none;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 30px; }
.brand-mark {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: var(--accent);
    border-radius: 10px;
    font-family: var(--head);
    font-weight: 700;
    color: #fff;
    font-size: 18px;
}
.brand-text { font-family: var(--head); font-weight: 500; font-size: 20px; letter-spacing: .04em; color: var(--white); }
.brand-text strong { color: var(--accent); }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-logo--footer { height: 40px; }
.nav-search {
    background: none; border: 0; color: var(--text);
    font-size: 18px; cursor: pointer; transition: .2s;
}
.nav-search:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 24px; cursor: pointer; }

.scroll-progress {
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: width .1s linear;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #f3f0ff 0%, #f6f7fb 55%, #eef4ff 100%);
    border-bottom: 1px solid var(--line);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(124,92,240,.12), transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(14,165,183,.08), transparent 45%);
}
.hero-inner { position: relative; min-height: 440px; }
.hero-slides { position: relative; min-height: 440px; }

/* ---- Full-bleed hero background video ----------------------------------- */
.hero-video-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}
.hero-video.active { opacity: 1; }
.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(243,240,255,.78) 0%, rgba(246,247,251,.62) 55%, rgba(238,244,255,.80) 100%);
}

.hero-slide {
    position: absolute; inset: 0;
    display: flex;
    align-items: flex-end;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity .6s, transform .6s;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: translateX(0); position: relative; }
.hero-player { flex: 0 0 45%; align-self: stretch; position: relative; min-height: 360px; }
.hero-figure {
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 30px;
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
    border-radius: 8px 8px 0 0;
}
.hero-figure--img {
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 30px;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

/* ---- Per-race aura effect ------------------------------------------------ */
.hero-player { z-index: 1; }
.hero-figure, .hero-figure--img { z-index: 2; }
.hero-aura {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s ease;
}
.hero-slide.active .hero-aura { opacity: 1; }

/* Color themes per race (RGB triplets so we can tweak alpha) */
.aura-red     { --aura: 255, 61, 90;   --aura-deep: 200, 20, 50; }
.aura-green   { --aura: 34, 224, 140;  --aura-deep: 12, 150, 90; }
.aura-dark    { --aura: 138, 92, 246;  --aura-deep: 24, 12, 38; }
.aura-default { --aura: 124, 92, 240;  --aura-deep: 70, 40, 160; }

/* Soft glow billowing behind the character */
.aura-glow {
    position: absolute;
    bottom: -4%;
    left: 50%;
    width: 80%;
    height: 90%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 55% at 50% 58%,
        rgba(var(--aura), .50) 0%,
        rgba(var(--aura), .24) 38%,
        rgba(var(--aura), 0) 72%);
    filter: blur(8px);
    animation: auraPulse 3.6s ease-in-out infinite;
}
/* Majin: smoky dark core with a violet edge */
.aura-dark .aura-glow {
    background: radial-gradient(ellipse 48% 56% at 50% 58%,
        rgba(var(--aura-deep), .82) 0%,
        rgba(var(--aura-deep), .55) 24%,
        rgba(var(--aura), .40) 46%,
        rgba(var(--aura), 0) 74%);
}

/* Glowing ring on the ground */
.aura-ring {
    position: absolute;
    bottom: 5%;
    left: 50%;
    width: 60%;
    height: 64px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
        rgba(var(--aura), .60) 0%, rgba(var(--aura), 0) 70%);
    border-radius: 50%;
    filter: blur(4px);
    animation: auraRing 2.8s ease-in-out infinite;
}
.aura-dark .aura-ring {
    background: radial-gradient(ellipse at center,
        rgba(var(--aura-deep), .8) 0%, rgba(var(--aura), .4) 40%, rgba(var(--aura), 0) 72%);
}

/* Vertical energy curtain */
.aura-beams {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 66%;
    height: 96%;
    transform: translateX(-50%);
    background: linear-gradient(to top, rgba(var(--aura), .20), rgba(var(--aura), 0) 62%);
    -webkit-mask: radial-gradient(ellipse 58% 78% at 50% 100%, #000 0%, transparent 72%);
            mask: radial-gradient(ellipse 58% 78% at 50% 100%, #000 0%, transparent 72%);
    animation: auraPulse 4.4s ease-in-out infinite;
}

/* Floating spark particles */
.aura-particles { position: absolute; inset: 0; }
.aura-particles i {
    position: absolute;
    bottom: 14%;
    left: calc(26% + (var(--p) * 7.5%));
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(var(--aura), .95);
    box-shadow: 0 0 9px 2px rgba(var(--aura), .65);
    opacity: 0;
    animation: auraFloat 4.6s ease-in-out infinite;
    animation-delay: calc(var(--p) * .55s);
}

@keyframes auraPulse {
    0%, 100% { transform: translateX(-50%) scale(1);    opacity: .8; }
    50%      { transform: translateX(-50%) scale(1.07); opacity: 1; }
}
@keyframes auraRing {
    0%, 100% { transform: translateX(-50%) scaleX(1);    opacity: .65; }
    50%      { transform: translateX(-50%) scaleX(1.14); opacity: 1; }
}
@keyframes auraFloat {
    0%   { transform: translateY(0) scale(.5);   opacity: 0; }
    18%  { opacity: 1; }
    80%  { opacity: .85; }
    100% { transform: translateY(-170px) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .aura-glow, .aura-ring, .aura-beams, .aura-particles i { animation: none; }
}
.fig1 { background: radial-gradient(ellipse at center bottom, rgba(255,61,127,.55), transparent 70%), linear-gradient(180deg, rgba(154,92,255,.3), rgba(0,0,0,.2)); }
.fig2 { background: radial-gradient(ellipse at center bottom, rgba(26,209,255,.5), transparent 70%), linear-gradient(180deg, rgba(108,76,241,.3), rgba(0,0,0,.2)); }
.fig3 { background: radial-gradient(ellipse at center bottom, rgba(25,230,168,.5), transparent 70%), linear-gradient(180deg, rgba(154,92,255,.3), rgba(0,0,0,.2)); }
.hero-copy { flex: 1; padding: 60px 0; position: relative; z-index: 2; }
.hero-tag {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: .15em;
    font-size: 14px;
    margin-bottom: 12px;
}
.hero-name { font-size: 60px; font-weight: 700; letter-spacing: .01em; margin-bottom: 10px; }
.hero-name span { color: var(--accent); }

/* ===== Glowing gradient hero title (mengikuti tema aura tiap race) =====
   Gradient di-clip ke teks lalu diberi glow + animasi kilau, sama seperti
   judul di halaman profil race. */
.hero-slide .hero-name,
.hero-slide .hero-name span {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% auto;
    animation: race-name-shine 5s linear infinite;
}
.aura-red .hero-name,
.aura-red .hero-name span {
    background-image: linear-gradient(100deg, #7a0010 0%, #ff2d3f 35%, #ff7a6b 50%, #ff2d3f 65%, #7a0010 100%);
    filter: drop-shadow(0 0 14px rgba(255, 45, 63, .55)) drop-shadow(0 0 30px rgba(255, 45, 63, .3));
}
.aura-green .hero-name,
.aura-green .hero-name span {
    background-image: linear-gradient(100deg, #0a5a2a 0%, #2be07a 35%, #b6ffcf 50%, #2be07a 65%, #0a5a2a 100%);
    filter: drop-shadow(0 0 14px rgba(43, 224, 122, .5)) drop-shadow(0 0 30px rgba(43, 224, 122, .28));
}
.aura-dark .hero-name,
.aura-dark .hero-name span {
    background-image: linear-gradient(100deg, #2a0b45 0%, #6d3bd1 30%, #e9e9f2 50%, #c9cad6 60%, #6d3bd1 80%, #2a0b45 100%);
    filter: drop-shadow(0 0 14px rgba(150, 110, 230, .5)) drop-shadow(0 0 28px rgba(220, 220, 240, .28));
}
.aura-default .hero-name,
.aura-default .hero-name span {
    background-image: linear-gradient(100deg, #3a23a0 0%, #7c5cf0 35%, #cdbcff 50%, #7c5cf0 65%, #3a23a0 100%);
    filter: drop-shadow(0 0 14px rgba(124, 92, 240, .5)) drop-shadow(0 0 30px rgba(124, 92, 240, .3));
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide .hero-name,
    .hero-slide .hero-name span { animation: none; }
}
.hero-role {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 5px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.hero-desc { max-width: 460px; color: var(--text); margin-bottom: 26px; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
    transition: .2s;
    box-shadow: 0 4px 14px rgba(28,29,60,.08);
}
.hero-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero-dots { position: absolute; bottom: 20px; right: 30px; display: flex; gap: 8px; z-index: 5; }
.hero-dots .dot {
    width: 26px; height: 6px;
    background: rgba(28,29,60,.15);
    border: 0; border-radius: 3px;
    cursor: pointer; transition: .2s; padding: 0;
}
.hero-dots .dot.active { background: var(--accent); width: 34px; }

/* ============ STATS ============ */
.stats { background: #ffffff; border-bottom: 1px solid var(--line); }
.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 36px 20px;
}
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
    content: ''; position: absolute; right: -10px; top: 50%;
    transform: translateY(-50%); height: 50px; width: 1px; background: var(--line);
}
.stat-num {
    font-family: var(--head);
    font-weight: 700;
    font-size: 44px;
    color: var(--accent);
}
.stat-label {
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

/* ============ MAIN GRID ============ */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 50px;
}
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 22px; white-space: nowrap; }
.section-head--center { justify-content: center; text-align: center; margin-bottom: 34px; }
.section-head--center h2 { font-size: 28px; }
.section-line { flex: 1; height: 1px; background: var(--line); }
.section-head--center .section-line:first-child { background: var(--line); }

/* news controls */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
    padding: 7px 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.news-search { position: relative; }
.news-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: .55;
    pointer-events: none;
}
.news-search input {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 9px 14px 9px 34px;
    border-radius: 10px;
    font-family: var(--body);
    font-size: 14px;
    width: 220px;
    transition: .2s;
}
.news-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,92,231,.15);
    width: 250px;
}

/* news grid */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.news-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
    animation: fadeUp .4s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.news-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.news-card--hidden { display: none; }

/* featured card */
.news-card--wide { grid-column: 1 / -1; }
.news-card--feature { flex-direction: row; }
.news-card--feature .news-thumb { flex: 0 0 48%; aspect-ratio: auto; min-height: 280px; }
.news-card--feature .news-body { flex: 1; justify-content: center; padding: 26px 28px; }
.news-card--feature .news-title { font-size: 26px; }
.news-card--feature .news-excerpt { font-size: 15px; }

.news-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.news-thumb::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28) 100%);
}
.news-cat {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 11px; font-weight: 600; letter-spacing: .06em;
    color: #fff; padding: 4px 10px; border-radius: 4px;
}
.news-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 10px; font-weight: 600; letter-spacing: .08em;
    color: #fff; padding: 4px 10px; border-radius: 999px;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.25);
}
.news-readmore {
    position: absolute; inset: 0; z-index: 3;
    display: grid; place-items: center;
    background: rgba(108,92,231,.82);
    color: #fff;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    opacity: 0;
    transition: .25s;
}
.news-card:hover .news-readmore { opacity: 1; }
.tag-pink { background: var(--pink); }
.tag-cyan { background: var(--cyan); color: #06222b; }
.tag-purple { background: var(--purple); }
.tag-green { background: var(--green); color: #06352a; }
.news-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-title { font-size: 18px; margin-bottom: 8px; line-height: 1.25; }
.news-title a { transition: color .2s; }
.news-title a:hover { color: var(--accent); }
.news-excerpt { font-size: 14px; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.news-meta {
    margin-top: auto;
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    flex-wrap: wrap;
}
.news-meta--top {
    margin-top: 0;
    margin-bottom: 6px;
    border-top: 0;
    padding-top: 0;
}
.news-meta--top .meta-date {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: var(--head);
    color: var(--accent);
}
.meta-author { color: var(--ink); font-weight: 600; }
.meta-views { margin-left: auto; }
.news-empty { text-align: center; color: var(--muted); padding: 30px; font-size: 18px; }
.loadmore-wrap { text-align: center; margin-top: 34px; }

/* gradient placeholders */
.g1 { background: linear-gradient(135deg, #f97316, #b91c1c); }
.g2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.g3 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.g4 { background: linear-gradient(135deg, #0ea5e9, #1e3a8a); }
.g5 { background: linear-gradient(135deg, #db2777, #7c3aed); }
.g6 { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.g7 { background: linear-gradient(135deg, #4f46e5, #0891b2); }
.g8 { background: linear-gradient(135deg, #16a34a, #065f46); }

/* ============ SIDEBAR ============ */
.widget {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 26px;
    overflow: hidden;
}
.widget-head { background: var(--panel); padding: 16px 18px; border-bottom: 1px solid var(--line); }
.widget-head h3 { font-size: 15px; letter-spacing: .05em; }
.widget-body { padding: 16px 18px; }

/* countdown */
.cd-teams { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cd-team { display: flex; align-items: center; gap: 8px; font-family: var(--head); text-transform: uppercase; font-size: 13px; color: var(--white); }
.cd-vs { font-family: var(--head); color: var(--accent); font-weight: 700; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.cd-box { background: var(--panel-2); border-radius: 6px; padding: 10px 4px; text-align: center; }
.cd-val { display: block; font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--white); }
.cd-unit { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }

/* tabs */
.widget-tabs-head { display: flex; background: var(--panel-2); }
.wtab {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .04em;
    padding: 14px 4px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: .2s;
}
.wtab:hover { color: var(--white); }
.wtab.active { color: var(--white); border-bottom-color: var(--accent); }
.wtab-panel { display: none; }
.wtab-panel.active { display: block; }

.match-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 8px; }
.match-row:last-child { border-bottom: 0; }
.match-team { display: flex; align-items: center; gap: 8px; flex: 1; font-family: var(--head); font-size: 13px; text-transform: uppercase; }
.match-team--right { justify-content: flex-end; text-align: right; }
.team-badge { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--purple)); flex: 0 0 auto; }
.match-score { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.score { font-family: var(--head); font-weight: 700; color: var(--white); font-size: 16px; }
.match-status { font-size: 11px; color: var(--muted); }
.match-live { font-size: 10px; font-weight: 700; color: var(--pink); letter-spacing: .08em; }

.popular-list, .recent-list { list-style: none; }
.popular-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.popular-list li:last-child, .recent-list li:last-child { border-bottom: 0; }
.popular-num { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--accent-2); width: 26px; flex: 0 0 auto; }
.popular-list a { font-family: var(--head); text-transform: uppercase; font-size: 13px; line-height: 1.3; }
.popular-list a:hover, .recent-list a:hover { color: var(--accent); }
.recent-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent-thumb { width: 56px; height: 46px; border-radius: 4px; flex: 0 0 auto; }
.recent-list a { font-family: var(--head); text-transform: uppercase; font-size: 13px; line-height: 1.25; color: var(--white); }
.recent-date { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.player-list, .guild-list { list-style: none; }
.player-row, .guild-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.player-row:last-child, .guild-row:last-child { border-bottom: 0; }
.player-badge { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--white); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.player-info, .guild-info { flex: 1 1 auto; min-width: 0; }
.player-ign, .guild-name { display: block; font-family: var(--head); text-transform: uppercase; font-size: 13px; line-height: 1.3; color: var(--white); }
.player-ign:hover, .guild-name:hover { color: var(--accent); }
.player-role, .guild-tag { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.player-kd, .guild-members { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--accent-2); flex: 0 0 auto; }
.player-empty { font-size: 13px; color: var(--muted); }
.guild-rank { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--accent-2); width: 26px; flex: 0 0 auto; text-align: center; }

.ranking-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ranking-head h4 { font-family: var(--head); text-transform: uppercase; font-size: 16px; color: var(--white); letter-spacing: .04em; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table thead th { text-align: left; font-family: var(--head); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px; background: rgba(255,255,255,.05); }
.ranking-table th.rk-level, .ranking-table td.rk-level { text-align: right; }
.ranking-table th.rk-job, .ranking-table td.rk-job { width: 46px; }
.ranking-table tbody td { padding: 10px; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--white); }
.ranking-table tbody tr:last-child td { border-bottom: 0; }
.rk-name { font-family: var(--head); font-weight: 700; }
.rk-level { font-weight: 700; color: var(--accent-2); }
.rk-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; font-family: var(--head); font-weight: 700; font-size: 12px; color: var(--white); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.rk-empty { text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Top Adventurer ---------- */
.widget-adventurer .widget-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adv-sub { font-size: 12px; color: var(--muted); }
.adv-list { list-style: none; margin: 0; padding: 0; }
.adv-item { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px dashed var(--line); border-radius: 8px; transition: background .15s ease; }
.adv-item:last-child { border-bottom: 0; }
.adv-item:hover { background: rgba(255,255,255,.04); }
.adv-rank { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--muted); width: 26px; text-align: center; flex: 0 0 auto; }
.adv-rank-logo { width: 26px; height: 26px; object-fit: contain; display: inline-block; margin: 0 auto; }
.adv-item.rank-1 .adv-rank { color: #ffd166; }
.adv-item.rank-2 .adv-rank { color: #c0c7d1; }
.adv-item.rank-3 .adv-rank { color: #e08b4c; }
.adv-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--white); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 2px rgba(255,255,255,.06); }
.adv-item.rank-1 .adv-avatar { box-shadow: 0 0 0 2px #ffd166; }
.adv-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adv-name { font-family: var(--head); text-transform: uppercase; font-size: 14px; line-height: 1.2; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-role { font-size: 12px; color: var(--muted); }
.adv-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.adv-level { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--accent-2); }
.adv-flag { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.adv-empty { padding: 14px 10px; text-align: center; font-size: 13px; color: var(--muted); list-style: none; }

.video-thumb, .twitch-thumb { aspect-ratio: 16/9; border-radius: 6px; position: relative; display: grid; place-items: center; margin-bottom: 12px; cursor: pointer; overflow: hidden; }
.video-thumb { background: linear-gradient(135deg, #3b2a63, #1e2a52); }
.twitch-thumb { background: linear-gradient(135deg, #6441a5, #3a1f6e); }
.play-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 18px; cursor: pointer; transition: .2s; }
.video-thumb:hover .play-btn { transform: scale(1.15); }
.video-caption, .twitch-caption { font-family: var(--head); text-transform: uppercase; font-size: 13px; color: var(--white); }
.live-pill { position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.twitch-viewers { position: absolute; bottom: 10px; left: 10px; font-size: 11px; color: #fff; background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 3px; }

.cal-head { text-align: center; font-family: var(--head); text-transform: uppercase; color: var(--white); margin-bottom: 12px; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-day { font-size: 12px; padding: 7px 0; border-radius: 4px; color: var(--text); cursor: default; transition: .2s; }
.cal-day.has-event { background: var(--panel-2); color: var(--accent); font-weight: 700; cursor: pointer; }
.cal-day.has-event:hover { background: var(--accent-2); color: #fff; }
.cal-day.today { background: var(--accent-2); color: #fff; font-weight: 700; }
.cal-legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; font-size: 11px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.dot-today { background: var(--accent-2); }
.dot-event { background: var(--panel-2); border: 1px solid var(--accent); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted);
    transition: .2s;
}
.tag-chip:hover { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }

/* ============ ROSTER ============ */
.roster { padding: 50px 0; background: var(--bg); }
.roster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.player-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: .3s;
    outline: none;
}
.player-card:hover, .player-card:focus { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.player-img { position: relative; aspect-ratio: 3/4; }
.player-role { position: absolute; top: 10px; left: 10px; background: var(--accent-2); color: #fff; font-family: var(--head); text-transform: uppercase; font-size: 10px; padding: 3px 8px; border-radius: 3px; }
.player-flag { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.4); color: #fff; font-family: var(--head); font-size: 10px; padding: 3px 7px; border-radius: 3px; }
.player-info { padding: 14px; text-align: center; }
.player-info .player-name { display: block; font-family: var(--head); text-transform: uppercase; font-size: 18px; color: var(--white); margin: 0; }
.player-info .player-ign { display: block; font-size: 13px; color: var(--accent); font-style: italic; margin: 2px 0 10px; }
.player-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.player-meta li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.player-meta li:first-child { border-top: 0; padding-top: 0; }
.pm-label { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pm-value { font-family: var(--head); text-transform: uppercase; color: var(--white); text-align: right; }
.player-hover {
    position: absolute;
    left: 0; right: 0; bottom: -100%;
    background: linear-gradient(0deg, rgba(28,29,60,.92), rgba(28,29,60,.78));
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: bottom .3s;
}
.player-card:hover .player-hover, .player-card:focus .player-hover { bottom: 0; }
.player-social { display: flex; gap: 10px; }
.player-social a {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    font-size: 11px; font-weight: 700; color: #fff;
    transition: .2s;
}
.player-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ STREAMERS (slider) ============ */
.streamers {
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0 30px;
    overflow: hidden;
}
.streamers-head {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-align: center; margin-bottom: 20px;
}
.streamers-kicker {
    font-family: var(--head); text-transform: uppercase; font-weight: 700;
    letter-spacing: .1em; font-size: 14px; color: var(--accent);
}
.streamers-sub { font-size: 13px; color: var(--muted); }

/* Marquee viewport: fade di kedua sisi */
.streamers-marquee {
    position: relative;
    padding: 14px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.streamers-track {
    display: flex; align-items: center; gap: 16px; width: max-content;
    padding: 6px 0;
    animation: streamers-scroll 38s linear infinite;
    will-change: transform;
}
.streamers-marquee:hover .streamers-track { animation-play-state: paused; }

@keyframes streamers-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* track digandakan 2x */
}

/* Chip streamer (link) */
.streamer-chip {
    display: inline-flex; align-items: center; gap: 12px; flex: none;
    padding: 10px 18px 10px 10px; border-radius: 999px;
    background: var(--panel-2, #f3f4f9); border: 1px solid var(--line);
    text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.streamer-chip:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 10px 26px -12px rgba(108, 92, 231, .6);
}
.streamer-ava {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    font-family: var(--head); font-weight: 700; font-size: 18px; color: #fff;
    background: linear-gradient(135deg, #7c5cf0, #4a2fb0);
}
.streamer-ava--twitch  { background: linear-gradient(135deg, #a970ff, #6441a5); }
.streamer-ava--youtube { background: linear-gradient(135deg, #ff5252, #c4302b); }
.streamer-meta { display: flex; flex-direction: column; line-height: 1.2; }
.streamer-name {
    font-family: var(--head); font-weight: 700; font-size: 16px;
    color: var(--ink); letter-spacing: .01em;
}
.streamer-chip:hover .streamer-name { color: var(--accent); }
.streamer-platform { font-size: 11.5px; color: var(--muted); }
.streamer-live {
    display: inline-flex; align-items: center; gap: 5px; margin-left: 4px;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(239, 68, 68, .12); color: #ef4444;
    font-family: var(--head); font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
}
.streamer-live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
    animation: streamer-live-pulse 1.4s ease-in-out infinite;
}
@keyframes streamer-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.7); }
}

@media (prefers-reduced-motion: reduce) {
    .streamers-track { animation: none; }
    .streamer-live-dot { animation: none; }
    .streamers-marquee { overflow-x: auto; }
}

/* ============ NEWSLETTER ============ */
.newsletter { background: var(--ink); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 20px; flex-wrap: wrap; }
.newsletter-copy h2 { color: #fff; font-size: 26px; }
.newsletter-copy p { color: rgba(255,255,255,.85); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.newsletter-form input {
    background: rgba(255,255,255,.95);
    border: 0;
    border-radius: 3px;
    padding: 12px 16px;
    font-family: var(--body);
    font-size: 15px;
    min-width: 260px;
    color: #1b1629;
}
.newsletter-form input:focus { outline: 2px solid var(--accent); }
.newsletter-form .btn-primary { background: var(--accent); }
.newsletter-msg { position: absolute; bottom: -26px; left: 0; font-size: 13px; color: #fff; font-weight: 600; }
.newsletter-msg.error { color: #ffe08a; }

/* ============ FOOTER ============ */
.brand--footer .brand-text { color: var(--ink); }
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 56px; color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 30px; padding-bottom: 44px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; position: relative; padding-bottom: 10px; color: var(--ink); letter-spacing: .04em; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 2px; background: var(--accent); border-radius: 2px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: 14px; color: var(--muted); transition: .2s; }
.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }
.footer-about p { color: var(--muted); font-size: 14px; margin: 16px 0; }
.brand--footer { padding: 0; margin-bottom: 6px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.footer-social a svg { display: block; transition: transform .2s ease; }
.footer-social a:hover { transform: translateY(-3px); color: #fff; }
.footer-social a:hover svg { transform: scale(1.1); }
.footer-social a:active { transform: translateY(-1px); }
.social-btn--fb:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 8px 18px rgba(24,119,242,.35); }
.social-btn--dc:hover { background: #5865f2; border-color: #5865f2; box-shadow: 0 8px 18px rgba(88,101,242,.35); }
.footer-posts { list-style: none; }
.footer-posts li { display: flex; gap: 12px; margin-bottom: 14px; }
.fp-thumb { width: 60px; height: 50px; border-radius: 8px; flex: 0 0 auto; border: 1px solid var(--line); }
.footer-posts a { font-family: var(--head); text-transform: uppercase; font-size: 13px; line-height: 1.3; color: var(--ink); }
.footer-posts a:hover { color: var(--accent); }
.footer-posts span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 46px; height: 46px;
    border: 0; border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
    z-index: 50;
    box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #5a4bd4; }

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(28,29,60,.55);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 20px 20px;
    animation: fadeIn .25s;
}
.search-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-box { width: 100%; max-width: 600px; position: relative; }
.search-close { position: absolute; top: -40px; right: 0; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }
.search-box h3 { color: #fff; margin-bottom: 14px; }
.search-box input {
    width: 100%;
    background: #fff;
    border: 2px solid var(--accent);
    color: var(--ink);
    padding: 16px 20px;
    font-size: 18px;
    border-radius: 10px;
    font-family: var(--body);
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-results { list-style: none; margin-top: 14px; max-height: 50vh; overflow-y: auto; }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 6px;
    color: var(--text);
    transition: .2s;
}
.search-results a:hover { color: var(--accent); padding-left: 12px; }
.search-results .res-cat { font-family: var(--head); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.search-results .res-empty { color: var(--muted); padding: 16px 6px; }
.search-hint { color: var(--muted); font-size: 13px; margin-top: 12px; text-align: center; }
.search-hint kbd { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; }

body.no-scroll { overflow: hidden; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .main-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-name { font-size: 48px; }
    .roster-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .stat-item:nth-child(2)::after { display: none; }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card--feature { flex-direction: column; }
    .news-card--feature .news-thumb { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
    .news-card--feature .news-body { padding: 18px; }
    .news-card--feature .news-title { font-size: 21px; }
    .mainnav-inner { flex-wrap: wrap; height: auto; min-height: 70px; row-gap: 0; }
    .brand { padding: 0; margin: 0 auto 0 0; order: 1; }
    .nav-toggle { display: block; margin-left: auto; order: 2; }
    .nav-menu { display: none; flex: 0 0 100%; width: 100%; }
    .nav-left { order: 3; }
    .nav-right { order: 4; }
    .nav-right .nav-search { display: block; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #ffffff;
        padding: 6px 0;
    }
    .nav-left.open { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
    .nav-right.open { padding-bottom: 10px; }
    .nav-menu.open li { width: 100%; }
    .nav-menu.open a { display: block; padding: 11px 4px; width: 100%; }
    .nav-left a::after, .nav-right a::after { display: none; }

    /* dropdown on mobile */
    .nav-dropdown { flex-direction: column; align-items: stretch; }
    .nav-dd-trigger { width: 100%; justify-content: space-between; padding: 8px 0; }
    .nav-dd-menu {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 6px 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .nav-dd-menu::before { display: none; }
    .nav-dropdown:hover .nav-dd-menu { max-height: 0; }
    .nav-dropdown.open .nav-dd-menu { max-height: 320px; }
    .nav-dd-menu a { padding: 8px; }
    .news-grid { grid-template-columns: 1fr; }
    .hero-slide { flex-direction: column; align-items: stretch; }
    .hero-player { min-height: 200px; flex-basis: auto; }
    .hero-copy { padding: 30px 0 50px; }
    .hero-name { font-size: 40px; }
    .hero-arrow { width: 38px; height: 38px; font-size: 20px; }
    .roster-grid { grid-template-columns: repeat(2, 1fr); }
    .news-controls { flex-direction: column; align-items: stretch; }
    .news-search input, .news-search input:focus { width: 100%; }
    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { justify-content: center; }
    .server-status .status-text { display: none; }
    .server-status { padding: 4px 7px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 36px; }
    .roster-grid { grid-template-columns: 1fr 1fr; }
    .hero-name { font-size: 34px; }
    .topbar-clock { font-size: 10px; gap: 6px; }
    .clock-label { display: none; }
    .topbar-actions { gap: 10px; }
    .topbar-user { display: none; }
    .clock-date { display: none; }
    .newsletter-form input { min-width: 0; width: 100%; }
    .newsletter-form { flex-direction: column; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ============ LAST GAME RESULT ============ */
.last-result { padding: 40px 0; }
.result-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.result-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 30px;
    border-bottom: 1px solid var(--line);
}
.result-head::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 56px;
    border-radius: 0 4px 4px 0;
    background: var(--green);
}
.result-head h2 { font-size: 24px; font-style: italic; letter-spacing: .02em; }
.result-seeall {
    background: var(--accent-soft);
    color: var(--accent);
    font-style: italic;
    font-size: 12px;
    padding: 10px 22px;
    border-radius: 999px;
}
.result-seeall:hover { background: var(--accent); color: #fff; }

.result-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    background: var(--panel-2);
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .05em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.result-body { padding: 30px; }
.result-league { text-align: center; margin-bottom: 26px; }
.result-league h3 { font-size: 22px; }
.result-stage { display: inline-block; margin-top: 6px; font-size: 15px; color: var(--muted); font-family: var(--body); text-transform: none; }

.result-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 24px;
}
.result-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.result-badge {
    width: 110px; height: 110px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--head);
    font-size: 44px; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--green), #0e8a63);
    box-shadow: 0 10px 26px rgba(16,185,129,.28);
}
.result-badge--alt { background: linear-gradient(135deg, var(--accent), var(--purple)); box-shadow: 0 10px 26px rgba(108,92,231,.28); }
.result-team-name { font-family: var(--head); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.result-team-country { font-size: 14px; color: var(--muted); }

.result-center { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 18px; }
.result-score { display: flex; align-items: center; gap: 14px; font-family: var(--head); font-weight: 700; font-size: 56px; line-height: 1; }
.result-score .score-sep { color: var(--muted); font-size: 40px; }
.result-score .is-win { color: var(--ink); }
.result-score span:not(.is-win) { color: var(--muted); }
.result-status { font-family: var(--head); font-size: 13px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.result-livepill { font-size: 12px; font-weight: 700; color: var(--pink); letter-spacing: .08em; }
.result-play {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}
.result-play:hover { background: var(--accent); color: #fff; transform: scale(1.08); }

.result-stats { border-top: 1px solid var(--line); }
.result-stats-head { text-align: center; padding: 18px 0 6px; }
.result-stats-head span { font-family: var(--head); font-style: italic; font-size: 15px; letter-spacing: .05em; color: var(--ink); text-transform: uppercase; }
.result-stats-body { padding: 14px 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.stat-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 14px; }
.stat-val { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); }
.stat-val--one { text-align: left; }
.stat-val--two { text-align: right; }
.stat-mid { display: flex; flex-direction: column; gap: 6px; }
.stat-label { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: var(--head); }
.stat-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: var(--panel-2); }
.stat-bar-one { background: var(--green); }
.stat-bar-two { background: var(--accent); }

@media (max-width: 768px) {
    .result-head { padding: 20px; flex-wrap: wrap; }
    .result-head h2 { font-size: 20px; }
    .result-subbar { padding: 12px 20px; }
    .result-body { padding: 22px 16px; }
    .result-badge { width: 78px; height: 78px; font-size: 30px; }
    .result-team-name { font-size: 17px; }
    .result-score { font-size: 38px; }
    .result-scoreboard { gap: 8px; }
    .result-stats-body { padding: 14px 16px 24px; }
}

/* ---------- Last Game Result (sidebar widget) ---------- */
.widget-result .widget-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.res-league {
    text-align: center;
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.4;
}
.res-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.res-side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.res-badge {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--head);
    font-size: 22px; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--green), #0e8a63);
    box-shadow: 0 6px 16px rgba(16,185,129,.28);
}
.res-badge--alt { background: linear-gradient(135deg, var(--accent), var(--purple)); box-shadow: 0 6px 16px rgba(108,92,231,.28); }
.res-name {
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}
.res-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.res-score { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1; }
.res-score .res-sep { color: var(--muted); font-size: 22px; }
.res-score .is-win { color: var(--ink); }
.res-score span:not(.is-win):not(.res-sep) { color: var(--muted); }
.res-live { font-size: 10px; font-weight: 700; color: var(--pink); letter-spacing: .08em; }
.res-statetxt { font-family: var(--head); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.res-cta { margin-top: 4px; }

/* ============ RANK PAGE ============ */
.rank-main {
    position: relative;
    min-height: 80vh;
    padding: 60px 0 90px;
    background: var(--bg);
    overflow: hidden;
}
.rank-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 80% -10%, rgba(108,92,231,.10), transparent 60%),
        radial-gradient(680px 340px at 8% 2%, rgba(14,165,183,.08), transparent 60%);
    z-index: 0;
}
.rank-main .container { position: relative; z-index: 1; }

.rank-hero { text-align: center; margin-bottom: 36px; }
.rank-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}
.rank-heading {
    font-size: 46px;
    color: var(--ink);
    letter-spacing: .01em;
}
.rank-sub { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* panel */
.rank-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow);
}

/* tabs */
.rank-tabs {
    position: relative;
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.rank-tab {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 10px;
    cursor: pointer;
    transition: color .25s;
}
.rank-tab:hover { color: var(--ink); }
.rank-tab.active { color: #fff; }
.rank-tab-indicator {
    position: absolute;
    z-index: 0;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    border-radius: 10px;
    background: linear-gradient(135deg, #7c5cf0, #6c5ce7);
    box-shadow: 0 8px 20px rgba(108,92,231,.30);
    transition: transform .35s cubic-bezier(.4,.6,.2,1), width .35s cubic-bezier(.4,.6,.2,1);
}

/* filters */
.rank-filters {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.rank-select { position: relative; }
.rank-select::after {
    content: "";
    position: absolute;
    right: 16px; top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
.rank-select select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    padding: 13px 44px 13px 18px;
    border-radius: 12px;
    min-width: 210px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.rank-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,92,231,.15); }
.rank-select select option { background: #fff; color: var(--ink); }
.rank-search { position: relative; margin-left: auto; }
.rank-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .5; pointer-events: none; }
.rank-search input {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    padding: 13px 16px 13px 38px;
    border-radius: 12px;
    width: 220px;
    transition: border-color .2s, box-shadow .2s, width .2s;
}
.rank-search input::placeholder { color: var(--muted); }
.rank-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,92,231,.15); width: 250px; }

/* table */
.rank-table-wrap { display: none; }
.rank-table-wrap.active { display: block; }
.rank-table { display: flex; flex-direction: column; }
.rank-row {
    display: grid;
    grid-template-columns: 90px 110px 1.6fr 1.1fr 1.1fr 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
}
.rank-row--head {
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    margin-bottom: 6px;
}
.rank-row--head .rc {
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
    color: var(--muted);
}
.rank-table-wrap .rank-row:not(.rank-row--head) {
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .2s;
    animation: rankIn .45s both;
}
@keyframes rankIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rank-table-wrap .rank-row:not(.rank-row--head):hover {
    background: var(--accent-soft);
    border-color: rgba(108,92,231,.25);
    transform: translateX(3px);
}
.rc { color: var(--text); font-size: 15px; }
.rc-score { font-family: var(--head); font-weight: 700; color: var(--ink); }

/* rank medal */
.rank-medal {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    font-family: var(--head);
    font-weight: 700;
    font-size: 18px;
    color: var(--muted);
    background: var(--panel-2);
    border: 1px solid var(--line);
}
.rank-medal--1 { background: linear-gradient(135deg, #ffd34d, #f59e0b); color: #5a3d00; border-color: transparent; box-shadow: 0 8px 20px rgba(245,158,11,.35); font-size: 22px; }
.rank-medal--2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #2a3344; border-color: transparent; box-shadow: 0 8px 20px rgba(148,163,184,.30); }
.rank-medal--3 { background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(234,88,12,.30); }
.rank-medal--plain { color: var(--muted); background: none; border: none; box-shadow: none; }
.rank-medal--logo { padding: 0; overflow: hidden; background: none; border: none; box-shadow: none; }
.rank-medal--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* name + avatar */
.rc-name { display: flex; align-items: center; gap: 14px; }
.rank-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-family: var(--head);
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}
.rank-avatar-dot {
    position: absolute;
    top: -3px; right: -3px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--panel);
}
.rank-name-info { display: flex; flex-direction: column; line-height: 1.2; }
.rank-name { font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.rank-name-sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* guild chip */
.guild-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .05em;
    color: var(--ink);
}
.guild-icon { font-style: normal; font-size: 12px; opacity: .7; }
.guild-chip--none { color: var(--muted); }

.rc-job { font-family: var(--head); color: var(--accent); text-transform: capitalize; font-size: 15px; }

.rank-empty { text-align: center; color: var(--muted); padding: 32px; font-size: 16px; }

@media (max-width: 900px) {
    .rank-heading { font-size: 34px; }
    .rank-search { margin-left: 0; width: 100%; }
    .rank-search input { width: 100%; }
    .rank-select select { min-width: 150px; }
    .rank-row { grid-template-columns: 60px 1.6fr 1fr; }
    .rank-row .rc-race, .rank-row .rc-guild { display: none; }
    .rank-row--head .rc-race, .rank-row--head .rc-guild { display: none; }
}
@media (max-width: 560px) {
    .rank-row { grid-template-columns: 54px 1.6fr; }
    .rank-row .rc-job { display: none; }
    .rank-row--head .rc-job { display: none; }
}

/* ============ GUIDE PAGE ============ */
.guide-main {
    padding: 56px 0 90px;
    position: relative;
    min-height: 80vh;
    background: linear-gradient(180deg, #f3f0ff 0%, var(--bg) 240px);
    overflow: hidden;
}
.guide-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 320px at 12% -6%, rgba(108,92,231,.14), transparent 70%),
        radial-gradient(560px 300px at 92% 4%, rgba(14,165,183,.10), transparent 70%);
    z-index: 0;
}
.guide-main .container { position: relative; z-index: 1; }

/* hero */
.guide-hero { text-align: center; margin-bottom: 40px; }
.guide-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.guide-heading {
    font-family: var(--head);
    font-weight: 700;
    font-size: 48px;
    color: var(--ink);
    letter-spacing: .01em;
    line-height: 1.05;
}
.guide-sub {
    color: var(--muted);
    margin: 14px auto 0;
    font-size: 16px;
    max-width: 620px;
    line-height: 1.6;
}

/* search */
.guide-search {
    position: relative;
    max-width: 560px;
    margin: 28px auto 0;
}
.guide-search-icon {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: .5;
    pointer-events: none;
}
.guide-search input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    padding: 16px 52px 16px 50px;
    box-shadow: 0 10px 30px rgba(28,29,60,.06);
    transition: border-color .2s, box-shadow .2s;
}
.guide-search input::placeholder { color: var(--muted); }
.guide-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(108,92,231,.15);
}
.guide-search-clear {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border: 0;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: .2s;
}
.guide-search-clear:hover { background: var(--accent); color: #fff; }

/* shared bits */
.guide-badge {
    align-self: flex-start;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.guide-badge--easy   { background: #e6f7ee; color: #18794e; }
.guide-badge--medium { background: #fff2e0; color: #b45309; }
.guide-badge--hard   { background: #fde7ee; color: #be123c; }
.guide-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 4px 11px;
}
.guide-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.guide-time i { font-style: normal; font-size: 13px; opacity: .7; }

/* ----- library : tabs + panel ----- */
.guide-lib {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px 10px 0;
    box-shadow: 0 16px 44px rgba(28,29,60,.06);
}
.guide-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: var(--panel-2);
    border-radius: 12px;
}
.guide-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 11px 18px;
    cursor: pointer;
    font-family: var(--head);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .02em;
    color: var(--muted);
    transition: color .25s;
}
.guide-tab-ico { font-size: 16px; line-height: 1; }
.guide-tab:hover { color: var(--ink); }
.guide-tab.active { color: #fff; }
.guide-tab-indicator {
    position: absolute;
    z-index: 0;
    top: 8px; left: 0;
    height: calc(100% - 16px);
    background: var(--accent);
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(108,92,231,.32);
    transition: transform .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
}

.guide-panel-wrap { padding: 26px 18px 28px; }
.guide-panel { display: none; animation: guideFade .35s ease both; }
.guide-panel.active { display: block; }
@keyframes guideFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.guide-section { margin-bottom: 30px; }
.guide-section:last-child { margin-bottom: 0; }
.guide-section-title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 19px;
    color: var(--ink);
    letter-spacing: .02em;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.guide-list { list-style: none; display: flex; flex-direction: column; }
.guide-list-item { border-bottom: 1px dashed var(--line); }
.guide-list-item:last-child { border-bottom: 0; }
.guide-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 14px;
    border-radius: 12px;
    transition: background .2s, padding-left .2s;
}
.guide-link:hover { background: var(--accent-soft); padding-left: 20px; }
.guide-link-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-link-title {
    font-family: var(--head);
    font-weight: 600;
    font-size: 16px;
    color: var(--accent);
    letter-spacing: .01em;
}
.guide-link:hover .guide-link-title { color: var(--accent-2); }
.guide-link-summary { font-size: 13px; color: var(--muted); line-height: 1.5; }
.guide-link-meta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.guide-link-arrow {
    font-family: var(--head);
    font-size: 18px;
    color: var(--muted);
    transform: translateX(-4px);
    opacity: 0;
    transition: transform .2s, opacity .2s, color .2s;
}
.guide-link:hover .guide-link-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }

/* empty */
.guide-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.guide-empty-ico { font-size: 40px; display: block; margin-bottom: 12px; }
.guide-empty p { font-size: 16px; }

/* ----- detail page ----- */
.guide-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 22px;
}
.guide-breadcrumb a { color: var(--muted); transition: color .2s; }
.guide-breadcrumb a:hover { color: var(--accent); }
.guide-breadcrumb .gb-sep { color: var(--line); }
.guide-breadcrumb .gb-current { color: var(--ink); font-weight: 600; }

.guide-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: start;
}
.guide-article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 16px 44px rgba(28,29,60,.06);
}
.guide-article-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.guide-article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.guide-article-title {
    font-family: var(--head);
    font-weight: 700;
    font-size: 36px;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: .01em;
}
.guide-article-summary { color: var(--muted); font-size: 16px; line-height: 1.6; margin-top: 12px; }

.guide-toc {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 30px;
}
.guide-toc-title {
    display: block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 10px;
}
.guide-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.guide-toc a { color: var(--accent); font-weight: 600; font-size: 14px; transition: color .2s; }
.guide-toc a:hover { color: var(--accent-2); text-decoration: underline; }

.guide-article-section { margin-bottom: 26px; scroll-margin-top: 90px; }
.guide-article-section:last-child { margin-bottom: 0; }
.guide-article-h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--head);
    font-weight: 600;
    font-size: 21px;
    color: var(--ink);
    letter-spacing: .01em;
    margin-bottom: 10px;
}
.guide-article-num {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
}
.guide-article-body p { font-size: 15px; color: var(--text); line-height: 1.75; }
.guide-article-foot { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

.guide-related { position: sticky; top: 90px; }
.guide-related-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(28,29,60,.05);
}
.guide-related-title {
    display: block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 14px;
}
.guide-related ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.guide-related li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background .2s;
}
.guide-related li a:hover { background: var(--accent-soft); }
.guide-related .gr-name { font-family: var(--head); font-weight: 500; font-size: 14px; color: var(--ink); }
.guide-related li a:hover .gr-name { color: var(--accent); }
.guide-related .gr-time { font-size: 12px; color: var(--muted); flex: 0 0 auto; }

@media (max-width: 900px) {
    .guide-heading { font-size: 36px; }
    .guide-detail-layout { grid-template-columns: 1fr; gap: 22px; }
    .guide-related { position: static; }
    .guide-article { padding: 26px; }
    .guide-article-title { font-size: 28px; }
}
@media (max-width: 560px) {
    .guide-main { padding: 40px 0 70px; }
    .guide-heading { font-size: 28px; }
    .guide-tab { padding: 9px 12px; font-size: 14px; }
    .guide-link { flex-direction: column; align-items: flex-start; gap: 10px; }
    .guide-link:hover { padding-left: 14px; }
    .guide-link-meta { width: 100%; }
}

/* ============ SHOP PAGE ============ */
.shop-main {
    position: relative;
    min-height: 80vh;
    padding: 60px 0 90px;
    background: var(--bg);
    overflow: hidden;
}
.shop-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(236,72,153,.10), transparent 60%),
        radial-gradient(700px 360px at 6% 0%, rgba(108,92,231,.10), transparent 60%);
    z-index: 0;
}
.shop-main .container { position: relative; z-index: 1; }

.shop-hero { text-align: center; margin-bottom: 34px; }
.shop-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}
.shop-heading { font-size: 46px; color: var(--ink); letter-spacing: .01em; }
.shop-sub { color: var(--muted); margin-top: 12px; font-size: 16px; }

.shop-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow);
}

/* bar: tabs + wallet */
.shop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.shop-tabs {
    position: relative;
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    flex-wrap: wrap;
}
.shop-tab {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: color .25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.shop-tab-ico { font-size: 15px; line-height: 1; }
.shop-tab:hover { color: var(--ink); }
.shop-tab.active { color: #fff; }
.shop-tab-indicator {
    position: absolute;
    z-index: 0;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    border-radius: 10px;
    background: linear-gradient(135deg, #7c5cf0, #6c5ce7);
    box-shadow: 0 8px 20px rgba(108,92,231,.30);
    transition: transform .35s cubic-bezier(.4,.6,.2,1), width .35s cubic-bezier(.4,.6,.2,1);
}

/* wallet */
.shop-wallet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-family: var(--head);
    box-shadow: 0 8px 20px rgba(245,158,11,.30);
}
.shop-wallet .gem-amount { font-size: 18px; font-weight: 700; }
.shop-wallet .gem-label { text-transform: uppercase; font-size: 12px; letter-spacing: .08em; opacity: .92; }
.gem-ico { font-size: 14px; line-height: 1; }
.shop-topup {
    margin-left: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.shop-topup:hover { background: rgba(255,255,255,.4); transform: translateY(-1px); }

/* toolbar: search + sort */
.shop-toolbar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 22px;
}
.shop-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.shop-search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
}
.shop-search input {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    padding: 13px 16px 13px 44px;
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.shop-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,92,231,.15); }

/* grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* card */
.shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.4,.6,.2,1), box-shadow .3s, border-color .3s;
    animation: shopCardIn .4s ease both;
}
.shop-card.is-hidden { display: none; }
.shop-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--card-accent) 55%, var(--line));
    box-shadow: 0 18px 38px rgba(28,29,60,.14);
}
@keyframes shopCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.shop-card.is-pop { animation: shopPop .4s ease; }
@keyframes shopPop {
    0% { transform: translateY(-6px) scale(1); }
    40% { transform: translateY(-6px) scale(1.04); }
    100% { transform: translateY(-6px) scale(1); }
}

/* badge */
.shop-badge {
    position: absolute;
    top: 12px; left: -34px;
    z-index: 3;
    transform: rotate(-45deg);
    width: 130px;
    text-align: center;
    padding: 5px 0;
    font-family: var(--head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.shop-badge--sale { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.shop-badge--new  { background: linear-gradient(135deg, #34d399, #10b981); }
.shop-badge--hot  { background: linear-gradient(135deg, #fb7185, #ef4444); }

/* thumb */
.shop-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 14px 14px 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.shop-card:hover .shop-thumb img { transform: scale(1.07); }
.shop-thumb-ph {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: #fff;
}
.shop-disc {
    position: absolute;
    bottom: 8px; right: 8px;
    background: #ef4444;
    color: #fff;
    font-family: var(--head);
    font-weight: 700;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(239,68,68,.35);
}

/* card body */
.shop-card-body { padding: 14px 16px 4px; flex: 1; }
.shop-card-name {
    font-size: 16px;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
}
.shop-card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* card foot */
.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px 16px;
}
.shop-price { display: flex; flex-direction: column; line-height: 1.1; }
.shop-price-old {
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
}
.shop-price-now {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--head);
    font-weight: 700;
    font-size: 17px;
    color: var(--card-accent, var(--accent));
}
.shop-buy {
    border: 0;
    cursor: pointer;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    padding: 9px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c5cf0, #6c5ce7);
    box-shadow: 0 8px 18px rgba(108,92,231,.25);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.shop-buy:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 24px rgba(108,92,231,.35); }
.shop-buy:active { transform: translateY(0) scale(.97); }

/* quantity stepper */
.shop-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(80,60,160,.22);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(124,92,240,.06);
}
.shop-qty-btn {
    border: 0;
    cursor: pointer;
    width: 28px;
    height: 32px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #5b46c9;
    background: transparent;
    transition: background .15s, color .15s;
}
.shop-qty-btn:hover { background: rgba(124,92,240,.18); color: #4632a8; }
.shop-qty-btn:active { background: rgba(124,92,240,.3); }
.shop-qty-input {
    width: 32px;
    height: 32px;
    border: 0;
    border-left: 1px solid rgba(80,60,160,.2);
    border-right: 1px solid rgba(80,60,160,.2);
    background: transparent;
    color: #2a2350;
    text-align: center;
    font-family: var(--head);
    font-weight: 700;
    font-size: 14px;
    -moz-appearance: textfield;
}
.shop-qty-input::selection { background: rgba(124,92,240,.25); color: #2a2350; }
.shop-qty-input:focus { outline: none; background: rgba(124,92,240,.1); }
.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* empty */
.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
    font-size: 16px;
}

/* toast */
.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 24px);
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font-family: var(--head);
    letter-spacing: .02em;
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    opacity: 0;
    transition: opacity .3s ease, transform .3s cubic-bezier(.4,.6,.2,1);
}
.shop-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.shop-toast-ico { font-size: 17px; }
.shop-toast--ok { background: #15803d; }
.shop-toast--error { background: #b91c1c; }
.shop-buy.is-loading { opacity: .65; cursor: progress; }

/* responsive */
@media (max-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .shop-heading { font-size: 34px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .shop-bar { flex-direction: column; align-items: stretch; }
    .shop-wallet { justify-content: center; }
    .shop-tabs { justify-content: center; }
}
@media (max-width: 440px) {
    .shop-grid { grid-template-columns: 1fr 1fr; }
    .shop-card-desc { display: none; }
    .shop-buy { padding: 8px 12px; font-size: 12px; }
}

/* ============ TERMS PAGE ============ */
.terms-main {
    position: relative;
    min-height: 80vh;
    padding: 60px 0 90px;
    background: var(--bg);
    overflow: hidden;
}
.terms-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(820px 400px at 82% -10%, rgba(108,92,231,.10), transparent 60%),
        radial-gradient(640px 320px at 6% 0%, rgba(14,165,183,.08), transparent 60%);
    z-index: 0;
}
.terms-main .container { position: relative; z-index: 1; }

/* hero */
.terms-hero { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.terms-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}
.terms-heading { font-size: 46px; color: var(--ink); letter-spacing: .01em; }
.terms-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 999px;
}
.terms-updated-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(16,185,129,.18);
}
.terms-intro { color: var(--text); margin-top: 18px; font-size: 16px; line-height: 1.75; }

/* toolbar */
.terms-toolbar { max-width: 540px; margin: 0 auto 26px; }
.terms-search { position: relative; }
.terms-search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
}
.terms-search input {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    padding: 13px 44px 13px 44px;
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.terms-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,92,231,.15); }
.terms-search-clear {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border: 0;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.terms-search-clear:hover { background: var(--accent); color: #fff; }

/* layout */
.terms-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* TOC */
.terms-toc { position: sticky; top: 96px; }
.terms-toc-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.terms-toc-title {
    display: block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 14px;
}
.terms-toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.terms-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    border-left: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}
.terms-toc-num {
    font-family: var(--head);
    font-size: 12px;
    color: var(--muted);
    transition: color .2s;
}
.terms-toc-link:hover { background: var(--panel-2); color: var(--ink); }
.terms-toc-link.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}
.terms-toc-link.active .terms-toc-num { color: var(--accent); }

.terms-toc-progress {
    position: relative;
    height: 4px;
    border-radius: 4px;
    background: var(--panel-2);
    margin: 16px 0 8px;
    overflow: hidden;
}
.terms-toc-progress-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #7c5cf0, #6c5ce7);
    transition: height .15s linear;
}
.terms-toc-progress-label { font-size: 12px; color: var(--muted); }

/* content */
.terms-content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 40px;
    box-shadow: var(--shadow);
}
.terms-section { scroll-margin-top: 110px; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.terms-section:first-child { padding-top: 4px; }
.terms-section:last-of-type { border-bottom: 0; }
.terms-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    color: var(--ink);
    margin-bottom: 18px;
}
.terms-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
}

/* nested lists */
.terms-list { padding-left: 26px; display: flex; flex-direction: column; gap: 10px; }
.terms-list--l0 { list-style: decimal; }
.terms-list--l1 { list-style: circle; margin-top: 10px; }
.terms-list--l2 { list-style: square; margin-top: 8px; }
.terms-li { line-height: 1.7; color: var(--text); padding-left: 4px; }
.terms-li::marker { color: var(--accent); font-weight: 600; }
.terms-list--l1 .terms-li::marker,
.terms-list--l2 .terms-li::marker { color: var(--muted); }
.terms-li-text { transition: color .2s; }

/* search states */
.terms-li.is-dim { opacity: .32; }
.terms-li.is-hit > .terms-li-text { color: var(--ink); }
.terms-mark {
    background: rgba(245,158,11,.28);
    color: var(--ink);
    border-radius: 4px;
    padding: 0 2px;
    font-weight: 600;
}

/* empty */
.terms-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.terms-empty-ico { font-size: 34px; display: block; margin-bottom: 10px; }

/* acknowledge */
.terms-ack {
    margin-top: 30px;
    padding: 22px;
    border-radius: 14px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.terms-ack-check {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    font-size: 15px;
    color: var(--ink);
}
.terms-ack-check input {
    width: 19px; height: 19px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}
.terms-ack-btn { white-space: nowrap; }
.terms-ack-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: auto; }
.terms-ack.shake { animation: termsShake .4s; }
@keyframes termsShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}

/* responsive */
@media (max-width: 900px) {
    .terms-layout { grid-template-columns: 1fr; }
    .terms-toc { position: static; }
    .terms-toc-progress, .terms-toc-progress-label { display: none; }
    .terms-toc ol { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .terms-toc-link { border-left: 0; }
}
@media (max-width: 560px) {
    .terms-heading { font-size: 34px; }
    .terms-content { padding: 24px 20px; }
    .terms-section-title { font-size: 20px; }
    .terms-list { padding-left: 20px; }
}

/* ============ DROPLIST PAGE ============ */
.drop-main {
    padding: 56px 0 90px;
    position: relative;
    min-height: 80vh;
    background: linear-gradient(180deg, #f3f0ff 0%, var(--bg) 240px);
    overflow: hidden;
}
.drop-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 320px at 12% -6%, rgba(108,92,231,.14), transparent 70%),
        radial-gradient(560px 300px at 92% 4%, rgba(14,165,183,.10), transparent 70%);
    z-index: 0;
}
.drop-main .container { position: relative; z-index: 1; }

.drop-hero { text-align: center; margin-bottom: 34px; }
.drop-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.drop-heading { font-family: var(--head); font-weight: 700; font-size: 46px; color: var(--ink); letter-spacing: .01em; }
.drop-sub { color: var(--muted); margin: 12px auto 0; font-size: 16px; max-width: 600px; line-height: 1.6; }

/* panel */
.drop-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 44px rgba(28,29,60,.06);
}

/* toolbar */
.drop-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.drop-search { position: relative; flex: 1 1 280px; }
.drop-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .5; pointer-events: none; }
.drop-search input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    padding: 12px 44px 12px 42px;
    transition: border-color .2s, box-shadow .2s;
}
.drop-search input::placeholder { color: var(--muted); }
.drop-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108,92,231,.15); }
.drop-search-clear {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border: 0; border-radius: 50%;
    background: var(--panel-2); color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; transition: .2s;
}
.drop-search-clear:hover { background: var(--accent); color: #fff; }

.drop-select { position: relative; }
.drop-select::after {
    content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.drop-select select {
    appearance: none; -webkit-appearance: none;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); font-family: var(--body); font-size: 14px; font-weight: 600;
    padding: 12px 38px 12px 16px; min-width: 170px; cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.drop-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,92,231,.15); }

.drop-types { display: flex; flex-wrap: wrap; gap: 6px; }
.drop-type {
    border: 1px solid var(--line); background: var(--panel); color: var(--muted);
    font-family: var(--head); font-weight: 500; font-size: 13px; letter-spacing: .03em;
    padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: .2s;
}
.drop-type:hover { color: var(--ink); border-color: var(--accent); }
.drop-type.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 20px rgba(108,92,231,.28); }

/* monster cards */
.drop-list { display: flex; flex-direction: column; gap: 12px; }
.mob-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.mob-card:hover { border-color: rgba(108,92,231,.35); box-shadow: 0 10px 28px rgba(28,29,60,.07); }
.mob-card.is-open { border-color: rgba(108,92,231,.45); box-shadow: 0 14px 34px rgba(108,92,231,.12); }

.mob-head {
    display: flex; align-items: center; gap: 16px; width: 100%;
    border: 0; background: transparent; cursor: pointer; text-align: left;
    padding: 16px 18px; font-family: var(--body);
}
.mob-avatar {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 20px; color: #fff;
}
.mob-avatar--normal { background: linear-gradient(135deg, #8b93a7, #5d6478); }
.mob-avatar--elite  { background: linear-gradient(135deg, #6c5ce7, #8b5cf6); }
.mob-avatar--boss   { background: linear-gradient(135deg, #f43f5e, #b91c1c); }

.mob-info { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.mob-name { font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: .01em; }
.mob-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); font-weight: 600; }
.mob-meta i { font-style: normal; margin-right: 4px; opacity: .8; }

.mob-side { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.mob-lv { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--accent); }
.mob-type {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .08em;
    font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.mob-type--normal { background: #eef0f5; color: #5d6478; }
.mob-type--elite  { background: var(--accent-soft); color: var(--accent); }
.mob-type--boss   { background: #fde7ee; color: #be123c; }
.mob-count { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mob-toggle {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    background: var(--panel-2); color: var(--accent); font-family: var(--head); font-weight: 700;
    font-size: 19px; line-height: 1; transition: background .25s, color .25s, transform .25s;
}
.mob-card:hover .mob-toggle { background: var(--accent-soft); }
.mob-card.is-open .mob-toggle { background: var(--accent); color: #fff; transform: rotate(180deg); }

/* expandable drop table */
.mob-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mob-body-inner { padding: 0 18px 18px; }
.drop-table { display: flex; flex-direction: column; border-top: 1px dashed var(--line); padding-top: 12px; }
.drop-row {
    display: grid; grid-template-columns: 1.6fr .8fr 1.4fr;
    align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px;
    transition: background .2s;
}
.drop-row--head .dc {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .06em;
    font-size: 11px; font-weight: 700; color: var(--muted);
}
.drop-row:not(.drop-row--head):hover { background: var(--panel-2); }
.drop-row.is-hit { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.dc-item { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 500; font-size: 15px; color: var(--ink); }

.drop-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.drop-dot--common    { background: #9aa3b2; }
.drop-dot--uncommon  { background: #22c55e; }
.drop-dot--rare      { background: #3b82f6; }
.drop-dot--legendary { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,.6); }

.item-tag {
    font-family: var(--head); text-transform: uppercase; letter-spacing: .05em;
    font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}
.item-tag--equip      { background: #eef2ff; color: #4f46e5; }
.item-tag--material   { background: #eef0f5; color: #5d6478; }
.item-tag--gem        { background: #e0f2fe; color: #0369a1; }
.item-tag--consumable { background: #e6f7ee; color: #18794e; }
.item-tag--recipe     { background: #fef3c7; color: #b45309; }
.item-tag--rare       { background: #fde7ee; color: #be123c; }

.dc-rate { display: flex; align-items: center; gap: 10px; }
.rate-bar { flex: 1 1 auto; height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; min-width: 60px; }
.rate-fill { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.rate-fill--common    { background: #9aa3b2; }
.rate-fill--uncommon  { background: #22c55e; }
.rate-fill--rare      { background: #3b82f6; }
.rate-fill--legendary { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.rate-val { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--ink); min-width: 48px; text-align: right; }

/* empty + legend */
.drop-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.drop-empty-ico { font-size: 40px; display: block; margin-bottom: 12px; }
.drop-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
    margin-top: 18px; padding: 14px 20px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    font-size: 13px; color: var(--muted); font-weight: 600;
}
.drop-legend-title { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--ink); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 760px) {
    .drop-heading { font-size: 34px; }
    .drop-search { flex: 1 1 100%; }
    .drop-select select { min-width: 140px; }
    .mob-side { gap: 8px; }
    .mob-count { display: none; }
}
@media (max-width: 560px) {
    .drop-main { padding: 40px 0 70px; }
    .drop-heading { font-size: 28px; }
    .drop-panel { padding: 16px; }
    .mob-meta { gap: 10px; }
    .mob-lv { display: none; }
    .drop-row { grid-template-columns: 1.4fr 1.2fr; }
    .drop-row .dc-type { display: none; }
    .drop-row--head .dc-type { display: none; }
}

/* ============ RACE PROFILE PAGE ============ */
.race-main { padding: 30px 0 70px; }
.race-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 24px; color: var(--muted); }
.race-breadcrumb a { color: var(--accent); transition: .2s; }
.race-breadcrumb a:hover { opacity: .75; }
.race-breadcrumb .rb-sep { color: var(--line); }
.race-breadcrumb .rb-current { color: var(--ink); font-weight: 600; }

.race-hero {
    display: flex;
    gap: 40px;
    align-items: stretch;
    background: linear-gradient(120deg, var(--panel) 0%, var(--accent-soft) 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 50px 0 0;
    overflow: hidden;
    margin-bottom: 40px;
}
.race-hero-figure {
    flex: 0 0 38%;
    align-self: stretch;
    min-height: 380px;
    position: relative;
    border-radius: 8px 0 0 8px;
}
.race-hero-figure--img {
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}
.race-hero-copy { flex: 1; padding: 50px 0; align-self: center; }
.race-tag {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .15em;
    font-size: 13px;
    margin-bottom: 12px;
}
.race-name { font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: .01em; margin-bottom: 14px; color: var(--ink); }
.race-name span { color: var(--accent); }

/* ===== Glowing gradient race names =====
   Setiap race punya identitas warna sendiri. Gradient di-clip ke teks dan
   diberi glow lewat drop-shadow + animasi kilau lembut. */
.race-name--human,
.race-name--human span,
.race-name--elf,
.race-name--elf span,
.race-name--majin,
.race-name--majin span {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% auto;
    animation: race-name-shine 5s linear infinite;
}

/* Human — gradient merah bersinar */
.race-name--human,
.race-name--human span {
    background-image: linear-gradient(100deg, #7a0010 0%, #ff2d3f 35%, #ff7a6b 50%, #ff2d3f 65%, #7a0010 100%);
}

/* Elf — gradient hijau bersinar */
.race-name--elf,
.race-name--elf span {
    background-image: linear-gradient(100deg, #0a5a2a 0%, #2be07a 35%, #b6ffcf 50%, #2be07a 65%, #0a5a2a 100%);
    filter: drop-shadow(0 0 14px rgba(43, 224, 122, .6)) drop-shadow(0 0 28px rgba(43, 224, 122, .32));
}

/* Majin — gradient ungu gelap ke silver cerah */
.race-name--majin,
.race-name--majin span {
    background-image: linear-gradient(100deg, #2a0b45 0%, #6d3bd1 30%, #e9e9f2 50%, #c9cad6 60%, #6d3bd1 80%, #2a0b45 100%);
    filter: drop-shadow(0 0 14px rgba(150, 110, 230, .6)) drop-shadow(0 0 26px rgba(220, 220, 240, .3));
}

@keyframes race-name-shine {
    to { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
    .race-name--human, .race-name--human span,
    .race-name--elf, .race-name--elf span,
    .race-name--majin, .race-name--majin span { animation: none; }
}
.race-role {
    display: inline-block;
    font-family: var(--head);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255,255,255,.6);
    padding: 5px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
}
.race-desc { max-width: 560px; color: var(--text); font-size: 16px; line-height: 1.6; }

.race-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }

.race-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 22px;
}
.race-h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--head);
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: .04em;
    color: var(--ink);
    margin-bottom: 18px;
}
.race-h2-bar { width: 4px; height: 22px; border-radius: 4px; background: var(--accent); flex: 0 0 auto; }
.race-para { color: var(--text); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.race-para:last-child { margin-bottom: 0; }

/* stats */
.race-stats { display: flex; flex-direction: column; gap: 16px; }
.race-stat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.race-stat-label { font-family: var(--head); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; color: var(--ink); }
.race-stat-value { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--accent); }
.race-stat-track { height: 9px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.race-stat-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* strengths & weaknesses */
.race-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.race-sw-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--panel-2); }
.race-sw-title { font-family: var(--head); text-transform: uppercase; font-size: 14px; letter-spacing: .05em; margin-bottom: 12px; display: block; }
.race-sw--pro .race-sw-title { color: #16a34a; }
.race-sw--con .race-sw-title { color: var(--pink); }
.race-sw-card ul { list-style: none; margin: 0; padding: 0; }
.race-sw-card li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; margin-bottom: 9px; color: var(--text); }
.race-sw-card li:last-child { margin-bottom: 0; }
.race-sw--pro li::before { content: "\2714"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.race-sw--con li::before { content: "\2716"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }

/* jobs */
.race-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.race-job { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: .2s; }
.race-job:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(108,92,231,.12); transform: translateY(-2px); }
.race-job-name { display: block; font-family: var(--head); text-transform: uppercase; font-weight: 600; font-size: 15px; color: var(--accent); margin-bottom: 5px; }
.race-job-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* playstyle tip */
.race-tip {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
}

.race-foot { margin-top: 6px; }

/* aside: other races */
.race-aside-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: sticky; top: 90px; }
.race-aside-title { display: block; font-family: var(--head); text-transform: uppercase; font-size: 15px; letter-spacing: .05em; color: var(--ink); margin-bottom: 14px; }
.race-aside-card ul { list-style: none; margin: 0; padding: 0; }
.race-aside-card li { border-bottom: 1px solid var(--line); }
.race-aside-card li:last-child { border-bottom: 0; }
.race-aside-card a { display: block; padding: 12px 0; transition: .2s; }
.race-aside-card a:hover .ro-name { color: var(--accent); }
.ro-name { display: block; font-family: var(--head); text-transform: uppercase; font-weight: 600; font-size: 14px; color: var(--ink); transition: .2s; }
.ro-role { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
    .race-layout { grid-template-columns: 1fr; }
    .race-hero { flex-direction: column; padding: 0 0 30px; }
    .race-hero-figure { flex-basis: auto; min-height: 280px; border-radius: 16px 16px 0 0; }
    .race-hero-copy { padding: 0 24px; }
    .race-name { font-size: 40px; }
    .race-sw, .race-jobs { grid-template-columns: 1fr; }
    .race-aside-card { position: static; }
}

/* ============ NEWS PAGE ============ */
.news-main {
    position: relative;
    min-height: 80vh;
    padding: 60px 0 90px;
    background: var(--bg);
    overflow: hidden;
}
.news-page-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(880px 420px at 84% -10%, rgba(108,92,231,.10), transparent 60%),
        radial-gradient(640px 320px at 6% 0%, rgba(236,72,153,.07), transparent 60%);
    z-index: 0;
}
.news-main .container { position: relative; z-index: 1; }

.news-hero { text-align: center; margin-bottom: 30px; }
.news-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}
.news-heading { font-size: 46px; color: var(--ink); letter-spacing: .01em; }
.news-sub { color: var(--muted); margin-top: 12px; font-size: 16px; max-width: 620px; margin-left: auto; margin-right: auto; }

.news-page-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    box-shadow: var(--shadow);
}
/* sembunyikan judul "Latest News" bawaan partial di halaman news (sudah ada hero) */
.page-news .news-page-panel .section-head { display: none; }

/* breadcrumb */
.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 22px;
}
.news-breadcrumb a:hover { color: var(--accent); }
.nb-sep { color: var(--line); }
.nb-current { color: var(--ink); }

/* detail layout */
.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
.news-article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.news-article-thumb {
    position: relative;
    aspect-ratio: 16 / 6;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
}
.news-article-thumb .news-cat {
    position: absolute;
    top: 16px; left: 16px;
}
.news-article-head { padding: 26px 32px 0; }
.news-article-title { font-size: 32px; color: var(--ink); line-height: 1.15; }
.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}
.news-article-body { padding: 22px 32px; }
.news-article-lead {
    font-size: 18px;
    color: var(--ink);
    line-height: 1.7;
    font-weight: 500;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    margin-bottom: 18px;
}
.news-article-body p { color: var(--text); line-height: 1.8; margin-bottom: 16px; font-size: 16px; }
.news-article-placeholder { color: var(--muted); font-style: italic; }
.news-article-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 32px 28px;
}
.news-share { display: flex; align-items: center; gap: 8px; }
.news-share-label { font-size: 13px; color: var(--muted); }
.news-share-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
    font-family: var(--head);
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}
.news-share-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* related */
.news-related-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 96px;
}
.news-related-title {
    display: block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 14px;
}
.news-related-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.news-related-card li a {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    transition: background .18s;
}
.news-related-card li a:hover { background: var(--panel-2); }
.nr-thumb {
    flex: 0 0 auto;
    width: 60px; height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
}
.nr-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nr-cat {
    align-self: flex-start;
    font-family: var(--head);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 2px 7px;
    border-radius: 6px;
}
.nr-name {
    font-family: var(--head);
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-related-card li a:hover .nr-name { color: var(--accent); }
.nr-date { font-size: 11px; color: var(--muted); }

@media (max-width: 900px) {
    .news-detail-layout { grid-template-columns: 1fr; }
    .news-related-card { position: static; }
}
@media (max-width: 560px) {
    .news-heading { font-size: 34px; }
    .news-article-title { font-size: 24px; }
    .news-article-head, .news-article-body, .news-article-foot { padding-left: 20px; padding-right: 20px; }
}

/* ============ COMMUNITY PAGE ============ */
.comm-main {
    position: relative;
    min-height: 80vh;
    padding: 60px 0 90px;
    background: var(--bg);
    overflow: hidden;
}
.comm-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 440px at 80% -12%, rgba(108,92,231,.12), transparent 60%),
        radial-gradient(700px 360px at 8% 0%, rgba(14,165,183,.08), transparent 60%);
    z-index: 0;
}
.comm-main .container { position: relative; z-index: 1; }

.comm-hero { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.comm-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}
.comm-heading { font-size: 46px; color: var(--ink); }
.comm-sub { color: var(--muted); margin-top: 12px; font-size: 16px; }

.comm-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.comm-stat {
    flex: 1 1 140px;
    max-width: 200px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 14px;
    box-shadow: var(--shadow);
}
.comm-stat-num {
    font-family: var(--head);
    font-weight: 700;
    font-size: 30px;
    color: var(--accent);
    line-height: 1;
}
.comm-stat-suffix { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--accent); }
.comm-stat-label { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* channels */
.comm-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}
.comm-channel {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.comm-channel:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(28,29,60,.14); }
.comm-channel-ico {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
}
.comm-channel--discord .comm-channel-ico { background: linear-gradient(135deg, #7289da, #5865f2); }
.comm-channel--facebook .comm-channel-ico { background: linear-gradient(135deg, #4267b2, #1877f2); }
.comm-channel--forum .comm-channel-ico { background: linear-gradient(135deg, #7c5cf0, #6c5ce7); }
.comm-channel--discord:hover { border-color: #5865f2; }
.comm-channel--facebook:hover { border-color: #1877f2; }
.comm-channel--forum:hover { border-color: var(--accent); }
.comm-channel-name { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.comm-channel-desc { color: var(--text); font-size: 14.5px; line-height: 1.6; flex: 1; }
.comm-channel-meta {
    display: inline-block;
    margin: 16px 0;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 12px;
    color: var(--muted);
}

/* section heads */
.comm-section-head { text-align: center; margin-bottom: 26px; }
.comm-section-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 8px;
}
.comm-section-title { font-size: 30px; color: var(--ink); }

/* highlights */
.comm-highlights { margin-bottom: 56px; }
.comm-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.comm-highlight {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.comm-highlight:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.comm-highlight-ico {
    display: inline-grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    font-size: 26px;
    margin-bottom: 14px;
}
.comm-highlight h3 { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.comm-highlight p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* newsletter block */
.comm-newsletter {
    background: linear-gradient(135deg, #6c5ce7, #7c5cf0);
    border-radius: 20px;
    padding: 38px;
    margin-bottom: 56px;
    box-shadow: 0 18px 40px rgba(108,92,231,.30);
}
.comm-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.comm-newsletter-copy h2 { color: #fff; font-size: 26px; }
.comm-newsletter-copy p { color: rgba(255,255,255,.85); margin-top: 6px; max-width: 460px; }
.comm-newsletter .newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.comm-newsletter .newsletter-form input {
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    min-width: 240px;
    font-family: var(--body);
    font-size: 15px;
    background: #fff;
    color: var(--ink);
}
.comm-newsletter .newsletter-form .btn-primary { background: var(--ink); }
.comm-newsletter .newsletter-form .btn-primary:hover { background: #11121d; }
.comm-newsletter .newsletter-msg {
    flex-basis: 100%;
    font-size: 13px;
    color: #fff;
    min-height: 16px;
}

/* faq */
.comm-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comm-faq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.comm-faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow); }
.comm-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    font-family: var(--head);
    font-size: 16px;
    color: var(--ink);
    list-style: none;
}
.comm-faq-item summary::-webkit-details-marker { display: none; }
.comm-faq-caret {
    flex: 0 0 auto;
    width: 9px; height: 9px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform .25s;
}
.comm-faq-item[open] .comm-faq-caret { transform: rotate(-135deg); }
.comm-faq-answer { padding: 0 22px 20px; }
.comm-faq-answer p { color: var(--text); line-height: 1.7; font-size: 15px; }

@media (max-width: 900px) {
    .comm-channels { grid-template-columns: 1fr; }
    .comm-highlight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .comm-heading { font-size: 34px; }
    .comm-section-title { font-size: 24px; }
    .comm-highlight-grid { grid-template-columns: 1fr; }
    .comm-newsletter { padding: 26px 20px; }
    .comm-newsletter-inner { flex-direction: column; text-align: center; }
    .comm-newsletter .newsletter-form { justify-content: center; }
    .comm-newsletter .newsletter-form input { min-width: 0; width: 100%; }
}

/* ============ AUTH MODALS (Sign In / Register) ============ */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}
.auth-modal.is-open { visibility: visible; opacity: 1; }
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 21, 38, .55);
    backdrop-filter: blur(4px);
}
.auth-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(20, 21, 38, .35);
    padding: 34px 34px 28px;
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .3s cubic-bezier(.4,.6,.2,1), opacity .3s ease;
}
.auth-modal.is-open .auth-modal-dialog { transform: translateY(0) scale(1); opacity: 1; }

.auth-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}
.auth-modal-close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }

.auth-modal-head { text-align: center; margin-bottom: 22px; }
.auth-modal-mark {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c5cf0, #6c5ce7);
    color: #fff;
    font-family: var(--head);
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(108,92,231,.30);
}
.auth-modal-logo {
    display: block;
    width: auto;
    height: 52px;
    max-width: 180px;
    margin: 0 auto 14px;
    object-fit: contain;
}
.auth-modal-title { font-size: 24px; color: var(--ink); }
.auth-modal-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

.auth-modal .auth-error {
    background: rgba(239,68,68,.10);
    border: 1px solid rgba(239,68,68,.30);
    color: #dc2626;
    font-size: 13.5px;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* form fields (scoped to modal so it won't touch the standalone auth pages) */
.auth-modal-form { display: flex; flex-direction: column; gap: 15px; }
.auth-modal .auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-modal .auth-label {
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 12px;
    color: var(--text);
}
.auth-modal .auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-modal .auth-input-ico {
    position: absolute;
    left: 14px;
    font-size: 15px;
    color: var(--muted);
    pointer-events: none;
}
.auth-modal .auth-input-wrap input {
    width: 100%;
    background: var(--panel);
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 12px 44px 12px 40px;
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.auth-modal .auth-input-wrap input::placeholder { color: var(--muted); }
.auth-modal .auth-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,92,231,.14);
}
.auth-modal .auth-toggle {
    position: absolute;
    right: 8px;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.auth-modal .auth-toggle:hover { color: var(--accent); background: var(--panel-2); }
.auth-modal .auth-toggle.is-on { color: var(--accent); }

/* validation states */
.auth-modal .auth-field.is-valid .auth-input-wrap input { border-color: var(--green); }
.auth-modal .auth-field.is-invalid .auth-input-wrap input { border-color: #ef4444; }
.auth-modal .auth-hint { font-size: 12px; min-height: 14px; color: var(--muted); }
.auth-modal .auth-field.is-valid .auth-hint { color: var(--green); }
.auth-modal .auth-field.is-invalid .auth-hint { color: #ef4444; }
.auth-modal .auth-caps { font-size: 12px; color: #d97706; }

/* strength meter */
.auth-modal .auth-strength { display: flex; align-items: center; gap: 10px; }
.auth-modal .auth-strength-bars { display: flex; gap: 4px; flex: 1; }
.auth-modal .auth-strength-bars span {
    height: 5px;
    flex: 1;
    border-radius: 3px;
    background: var(--line);
    transition: background .25s;
}
.auth-modal .auth-strength-label { font-size: 12px; color: var(--muted); min-width: 42px; text-align: right; }
.auth-modal [data-strength-meter][data-level="1"] .auth-strength-bars span:nth-child(-n+1) { background: #ef4444; }
.auth-modal [data-strength-meter][data-level="2"] .auth-strength-bars span:nth-child(-n+2) { background: #f59e0b; }
.auth-modal [data-strength-meter][data-level="3"] .auth-strength-bars span:nth-child(-n+3) { background: #3b82f6; }
.auth-modal [data-strength-meter][data-level="4"] .auth-strength-bars span { background: var(--green); }

/* checklist */
.auth-modal .auth-checklist { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.auth-modal .auth-checklist li { display: flex; align-items: center; gap: 6px; transition: color .2s; }
.auth-modal .auth-checklist li.is-met { color: var(--green); }
.auth-modal .auth-checklist .check-ico { font-size: 12px; }
.auth-modal .auth-checklist li.is-met .check-ico::before { content: "\2713"; }
.auth-modal .auth-checklist li.is-met .check-ico { font-size: 0; }
.auth-modal .auth-checklist li.is-met .check-ico::before { font-size: 12px; }

/* terms + row */
.auth-modal .auth-terms { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.auth-modal .auth-terms input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.auth-modal .auth-terms.is-invalid { color: #ef4444; }
.auth-modal .auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.auth-modal .auth-remember { display: flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }
.auth-modal .auth-remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.auth-modal .auth-link { color: var(--accent); font-weight: 600; }
.auth-modal .auth-link:hover { text-decoration: underline; }
.auth-modal .auth-link-muted { color: var(--muted); font-weight: 500; }

/* submit + spinner */
.auth-modal .auth-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
.auth-modal .auth-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: authSpin .7s linear infinite;
}
.auth-modal .auth-submit.is-loading .auth-spinner { display: inline-block; }
.auth-modal .auth-submit.is-loading { opacity: .85; pointer-events: none; }
@keyframes authSpin { to { transform: rotate(360deg); } }

/* switch link */
.auth-modal-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-modal-switch button {
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: var(--accent);
    padding: 0;
}
.auth-modal-switch button:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .auth-modal { padding: 20px 14px; }
    .auth-modal-dialog { padding: 28px 22px 24px; }
    .auth-modal-title { font-size: 21px; }
}

/* ============ STREAMERS PAGE ============ */
.streamer-main { position: relative; padding: 60px 0 80px; overflow: hidden; }
.streamer-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 15% 0%, rgba(124, 92, 240, .14), transparent 70%),
        radial-gradient(55% 45% at 90% 10%, rgba(255, 61, 127, .10), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.streamer-main .container { position: relative; z-index: 1; }

.streamer-hero { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.streamer-kicker {
    display: inline-block;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}
.streamer-heading { font-family: var(--head); font-size: 42px; line-height: 1.1; color: var(--ink); margin-bottom: 14px; }
.streamer-sub { color: var(--text); font-size: 16px; line-height: 1.6; }

.streamer-live-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 61, 127, .12);
    color: #e11d48;
    font-family: var(--head);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .04em;
}
.streamer-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .6);
    animation: streamer-pulse 1.8s infinite;
}
@keyframes streamer-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.streamer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    margin-bottom: 56px;
}
.streamer-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.streamer-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}
.streamer-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-family: var(--head);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
}
.streamer-badge .streamer-live-dot { background: #fff; box-shadow: none; animation: none; }

.streamer-card-head { display: flex; align-items: center; gap: 12px; }
.streamer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex: 0 0 auto;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2, #ff3d7f));
    color: #fff;
    font-family: var(--head);
    font-weight: 700;
    font-size: 18px;
}
.streamer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.streamer-id { flex: 1; min-width: 0; }
.streamer-name { font-family: var(--head); font-size: 18px; color: var(--ink); margin: 0; }
.streamer-handle { font-size: 13px; color: var(--muted); }
.streamer-platform {
    font-family: var(--head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 7px;
    color: #fff;
    flex: 0 0 auto;
}
.streamer-platform--twitch { background: #9146ff; }
.streamer-platform--youtube { background: #ff0000; }
.streamer-platform--facebook { background: #1877f2; }

.streamer-tagline { color: var(--text); font-size: 14px; line-height: 1.55; flex: 1; }

.streamer-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.streamer-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--line);
}

.streamer-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}
.streamer-followers { font-size: 13px; color: var(--muted); font-weight: 600; }
.streamer-cta { padding: 8px 16px; font-size: 13px; }

.streamer-apply {
    background: linear-gradient(135deg, #6c5ce7, #7c5cf0);
    border-radius: 20px;
    padding: 34px 36px;
    box-shadow: 0 18px 40px rgba(108, 92, 231, .30);
}
.streamer-apply-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.streamer-apply h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.streamer-apply p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 520px; }
.streamer-apply .btn-primary { background: #fff; color: var(--ink); flex: 0 0 auto; }
.streamer-apply .btn-primary:hover { background: #f1f1f6; }

@media (max-width: 640px) {
    .streamer-heading { font-size: 32px; }
    .streamer-apply { padding: 26px 22px; }
    .streamer-apply-inner { flex-direction: column; text-align: center; }
}
