@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700;800&family=Noto+Serif+Thai:wght@500;600;700&display=swap');

:root {
    --ink: #071326;
    --ink-deep: #030916;
    --ink-soft: #0c2038;
    --panel: rgba(9, 28, 51, .82);
    --panel-solid: #0a1c33;
    --white: #f7fbff;
    --muted: #9fb2ca;
    --gold: #f4cc78;
    --gold-light: #fff0bd;
    --cyan: #73ddf6;
    --pink: #ff9cc7;
    --violet: #9f92ff;
    --green: #70efba;
    --line: rgba(179, 211, 241, .14);
    --max: 1480px;
    --serif: 'Noto Serif Thai', Georgia, serif;
    --sans: 'Noto Sans Thai', Tahoma, sans-serif;
    --display: 'Chakra Petch', 'Noto Sans Thai', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink-deep); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--white); background: var(--ink-deep); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
::selection { color: #09111e; background: var(--gold); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 12px 18px; border-radius: 0 0 10px 10px; color: #08111f; background: var(--gold-light); font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 0; }
.site-noise { position: fixed; inset: 0; z-index: 50; opacity: .12; pointer-events: none; background-image: radial-gradient(circle at 17% 23%, rgba(255,255,255,.2) 0 1px, transparent 1.5px), radial-gradient(circle at 74% 61%, rgba(115,221,246,.18) 0 1px, transparent 1.5px), radial-gradient(circle at 42% 82%, rgba(244,204,120,.16) 0 1px, transparent 1.5px); background-size: 89px 83px, 131px 127px, 173px 167px; }
.section-shell { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }

/* Navigation */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: 94px; display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); padding: 0 clamp(24px, 5vw, 84px); border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(4,12,29,.86), rgba(4,12,29,.45)); backdrop-filter: blur(18px) saturate(130%); transition: height .25s, background .25s, box-shadow .25s; }
.site-header::after { content: ''; position: absolute; left: 5%; right: 5%; bottom: -1px; height: 1px; opacity: .65; background: linear-gradient(90deg, transparent, rgba(244,204,120,.75), rgba(115,221,246,.55), transparent); }
.site-header.scrolled { height: 74px; background: rgba(4,12,29,.96); box-shadow: 0 18px 55px rgba(0,0,0,.35); }
.brand-logo { width: 154px; height: 82px; flex: 0 0 auto; display: flex; align-items: center; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 15px rgba(0,0,0,.4)); transition: .25s; }
.site-header.scrolled .brand-logo { width: 130px; height: 64px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.main-nav a { position: relative; padding: 14px 16px; color: #c4d1e2; font-size: 14px; font-weight: 600; }
.main-nav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 1px; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--pink)); box-shadow: 0 0 10px var(--gold); transition: .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.mobile-member-link { display: none !important; }
.member-button { position: relative; min-width: 178px; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,235,177,.62); border-radius: 8px; color: #17120a; background: linear-gradient(135deg, #fff1bd 0%, #f2ca73 50%, #c99138 100%); box-shadow: 0 12px 30px rgba(186,129,38,.25), inset 0 1px rgba(255,255,255,.7); }
.member-button::after { content: ''; position: absolute; top: -80%; bottom: -80%; left: -40%; width: 28%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); animation: shine 4.5s ease-in-out infinite; }
.member-button span { font-size: 15px; font-weight: 800; line-height: 1; }
.member-button small { margin-top: 4px; font: 600 9px/1 var(--display); letter-spacing: 1.7px; }
.menu-toggle { display: none; border: 1px solid rgba(244,204,120,.3); border-radius: 9px; color: var(--gold); background: rgba(255,255,255,.04); }
@keyframes shine { 0%, 65% { left: -45%; } 100% { left: 140%; } }

/* Hero */
.hero { position: relative; min-height: 980px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; z-index: -1; height: 260px; background: linear-gradient(transparent, var(--ink-deep)); }
.hero-backdrop { position: absolute; inset: 0; z-index: -3; background: url('../celestial-kingdom-hero.png') 66% center / cover no-repeat; animation: heroBreath 18s ease-in-out infinite alternate; }
.hero-backdrop::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,9,22,.98) 0%, rgba(5,17,38,.82) 30%, rgba(5,17,38,.12) 65%, rgba(3,9,22,.16)), linear-gradient(180deg, rgba(3,9,22,.18), transparent 60%, #030916 100%); }
.hero-backdrop::after { content: ''; position: absolute; inset: 0; opacity: .24; background: radial-gradient(circle at 8% 35%, rgba(115,221,246,.25), transparent 28%), radial-gradient(circle at 55% 18%, rgba(255,156,199,.17), transparent 22%); }
@keyframes heroBreath { to { transform: scale(1.025); } }
.hero-content { width: min(var(--max), calc(100% - 64px)); margin: 90px auto 0; position: relative; z-index: 2; }
.hero-brand { width: 240px; height: 128px; margin-bottom: 8px; display: flex; justify-content: flex-start; }
.hero-brand img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0,0,0,.36)); }
.kicker { margin: 0; color: var(--cyan); font: 600 11px/1.5 var(--display); letter-spacing: 3px; text-transform: uppercase; }
.hero-content > .kicker { display: flex; align-items: center; gap: 13px; }
.hero-content > .kicker span { width: 38px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.hero h1 { max-width: 850px; margin: 22px 0 24px; color: #f7fbff; font: 600 clamp(54px, 6.5vw, 96px)/1.08 var(--serif); letter-spacing: -2.6px; text-shadow: 0 12px 45px rgba(0,0,0,.4); }
.hero h1 em, .section-heading h2 em, .world-copy h2 em, .community-copy h2 em, .final-cta h2 em { color: var(--gold-light); font-style: normal; text-shadow: 0 0 35px rgba(244,204,120,.18); }
.hero-lead { max-width: 680px; margin: 0; color: #b8c9dc; font-size: 17px; line-height: 1.85; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.button { min-height: 64px; padding: 10px 24px; display: inline-grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; transition: transform .22s, filter .22s, box-shadow .22s, border-color .22s; }
.button span, .button b { display: block; }
.button span { font-size: 16px; font-weight: 800; }
.button b { margin-top: 3px; font: 600 9px/1 var(--display); letter-spacing: 1.5px; opacity: .72; }
.button i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: 22px; }
.button:hover { transform: translateY(-4px); }
.button-primary { min-width: 238px; color: #19130a; border-color: #fff1bd; background: linear-gradient(135deg, #fff3c3, #f1c86f 56%, #c88c31); box-shadow: 0 16px 38px rgba(200,140,49,.25), inset 0 1px rgba(255,255,255,.7); }
.button-primary:hover { filter: brightness(1.07); box-shadow: 0 20px 48px rgba(212,156,60,.38); }
.button-ghost { min-width: 210px; color: #e9f7ff; border-color: rgba(115,221,246,.35); background: rgba(6,27,50,.55); backdrop-filter: blur(10px); }
.button-ghost:hover { border-color: rgba(115,221,246,.75); background: rgba(9,43,70,.72); box-shadow: 0 15px 35px rgba(0,0,0,.2); }
.hero-status { width: max-content; margin-top: 28px; padding: 8px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(112,239,186,.2); border-radius: 99px; color: #9eb2c8; background: rgba(3,18,33,.44); font: 600 10px/1 var(--display); letter-spacing: 1.1px; }
.hero-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2s infinite; }
.hero-status strong { color: var(--green); }
@keyframes pulse { 50% { opacity: .45; } }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(115,221,246,.13); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 640px; height: 640px; right: 10%; top: 14%; box-shadow: inset 0 0 55px rgba(115,221,246,.04); }
.orbit-two { width: 440px; height: 440px; right: 16%; top: 24%; border-color: rgba(255,156,199,.11); }
.scroll-cue { position: absolute; left: 50%; bottom: 55px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #9db0c6; transform: translateX(-50%); }
.scroll-cue span { width: 1px; height: 48px; background: linear-gradient(transparent, var(--gold)); animation: scrollLine 2s infinite; }
.scroll-cue small { font: 600 8px/1 var(--display); letter-spacing: 2px; }
@keyframes scrollLine { 50% { transform: scaleY(.55); transform-origin: bottom; } }

/* Realm strip */
.realm-strip { position: relative; z-index: 4; width: min(var(--max), calc(100% - 64px)); margin: -42px auto 0; min-height: 128px; display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); border: 1px solid rgba(184,218,247,.17); border-radius: 14px; background: linear-gradient(145deg, rgba(11,34,59,.96), rgba(6,21,40,.96)); box-shadow: 0 28px 70px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(16px); }
.realm-strip::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 0 50%, rgba(115,221,246,.09), transparent 30%); }
.realm-label, .realm-stat { position: relative; padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.realm-label { padding-left: 38px; }
.realm-label i { position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; background: linear-gradient(var(--cyan), var(--pink)); box-shadow: 0 0 18px rgba(115,221,246,.4); }
.realm-label span, .realm-stat span { color: #778ca5; font: 600 8px/1 var(--display); letter-spacing: 1.6px; }
.realm-label strong { margin-top: 8px; font-size: 17px; }
.realm-stat { align-items: center; text-align: center; border-left: 1px solid var(--line); }
.realm-stat small { color: #8ea4bb; font-size: 12px; }
.realm-stat b { margin: 4px 0 5px; color: var(--gold-light); font: 700 30px/1 var(--display); }

/* Sections */
.portal-section { padding-block: 145px 150px; }
.section-heading { margin-bottom: 54px; display: grid; grid-template-columns: .8fr 1.35fr .8fr; align-items: end; gap: 48px; }
.section-heading > div { display: flex; align-items: center; gap: 18px; }
.section-index { color: rgba(244,204,120,.42); font: 600 34px/1 var(--display); }
.section-heading h2, .world-copy h2, .community-copy h2, .final-cta h2 { margin: 0; font: 600 clamp(39px, 4.2vw, 64px)/1.22 var(--serif); letter-spacing: -1.3px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.portal-grid { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 14px; }
.portal-card { position: relative; min-height: 340px; padding: 32px 28px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(155deg, rgba(13,41,69,.88), rgba(6,21,39,.94)); box-shadow: 0 20px 55px rgba(0,0,0,.19), inset 0 1px rgba(255,255,255,.03); transition: transform .28s, border-color .28s, box-shadow .28s; }
.portal-card::before { content: ''; position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 20% 0, rgba(115,221,246,.14), transparent 42%), linear-gradient(145deg, rgba(255,156,199,.06), transparent); transition: opacity .28s; }
.portal-card::after { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(244,204,120,.55), transparent); }
.portal-card:hover { z-index: 2; transform: translateY(-9px); border-color: rgba(244,204,120,.42); box-shadow: 0 30px 75px rgba(0,0,0,.32), 0 0 38px rgba(115,221,246,.06); }
.portal-card:hover::before { opacity: 1; }
.portal-card-main { background: radial-gradient(circle at 15% 10%, rgba(255,156,199,.12), transparent 35%), linear-gradient(155deg, rgba(19,49,76,.94), rgba(8,24,44,.96)); }
.portal-number { position: absolute; top: 23px; right: 25px; color: rgba(164,192,220,.32); font: 600 12px/1 var(--display); letter-spacing: 1px; }
.portal-glyph { position: relative; width: 57px; height: 57px; margin-bottom: 50px; display: grid; place-items: center; border: 1px solid rgba(244,204,120,.3); border-radius: 50%; color: var(--gold-light); background: rgba(244,204,120,.06); box-shadow: inset 0 0 18px rgba(244,204,120,.04); font-style: normal; font-size: 23px; }
.portal-card small { position: relative; color: var(--cyan); font: 600 9px/1 var(--display); letter-spacing: 1.6px; }
.portal-card h3 { position: relative; margin: 9px 0 8px; color: #fff5d3; font: 600 25px/1.25 var(--serif); }
.portal-card p { position: relative; margin: 0; color: #92a7bd; font-size: 13px; line-height: 1.7; }
.portal-card > b { position: relative; margin-top: auto; padding-top: 22px; color: #d6e5f1; font-size: 13px; }
.portal-card > b span { margin-left: 8px; color: var(--gold); transition: margin .2s; }
.portal-card:hover > b span { margin-left: 15px; }

/* World */
.world-showcase { position: relative; min-height: 950px; display: flex; align-items: center; overflow: hidden; background: #061426; }
.world-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,10,23,.96) 0%, rgba(4,15,31,.63) 42%, rgba(3,10,23,.28) 69%, rgba(3,10,23,.72)), linear-gradient(180deg, var(--ink-deep), transparent 22%, transparent 72%, var(--ink-deep)), url('../grand-fantasia-world.jpg') center / cover no-repeat; filter: saturate(.85) contrast(1.05); }
.world-image::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 75% 35%, rgba(115,221,246,.18), transparent 32%), radial-gradient(circle at 65% 70%, rgba(255,156,199,.12), transparent 28%); }
.world-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .86fr; gap: clamp(70px, 9vw, 150px); align-items: center; }
.world-copy { max-width: 650px; }
.world-copy h2 { margin: 18px 0 24px; }
.world-copy > p:not(.kicker) { color: #b3c4d5; font-size: 16px; line-height: 1.9; }
.text-link { width: max-content; margin-top: 25px; padding-bottom: 7px; display: inline-flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(244,204,120,.45); color: var(--gold-light); font-weight: 700; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(6px); }
.feature-stack { display: grid; gap: 13px; }
.feature-card { min-height: 148px; padding: 25px 28px; display: grid; grid-template-columns: 55px 1fr; gap: 22px; align-items: center; border: 1px solid rgba(177,211,239,.14); border-radius: 13px; background: linear-gradient(135deg, rgba(10,35,61,.82), rgba(7,23,43,.66)); box-shadow: 0 18px 45px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.03); backdrop-filter: blur(14px); transition: transform .25s, border-color .25s; }
.feature-card:hover { transform: translateX(-9px); border-color: rgba(115,221,246,.35); }
.feature-card > span { color: rgba(244,204,120,.55); font: 600 29px/1 var(--display); }
.feature-card small { color: var(--cyan); font: 600 8px/1 var(--display); letter-spacing: 1.5px; }
.feature-card h3 { margin: 7px 0 4px; color: #fff2c9; font: 600 20px/1.3 var(--serif); }
.feature-card p { margin: 0; color: #8fa5bc; font-size: 13px; line-height: 1.55; }

/* Rankings and news */
.chronicle-section { padding-block: 145px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; }
.ranking-panel, .news-panel { padding: 38px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(12,36,62,.84), rgba(6,20,38,.92)); box-shadow: 0 28px 70px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.03); }
.panel-head { min-height: 76px; margin-bottom: 24px; padding-bottom: 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 8px 0 0; color: #fff0c3; font: 600 31px/1.2 var(--serif); }
.panel-head > a { color: var(--cyan); font-size: 12px; font-weight: 700; }
.ranking-list { display: grid; gap: 7px; }
.ranking-row { min-height: 70px; padding: 10px 15px; display: grid; grid-template-columns: 40px 44px 1fr auto; gap: 14px; align-items: center; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.025); transition: .2s; }
a.ranking-row:hover { border-color: rgba(244,204,120,.22); background: rgba(244,204,120,.05); transform: translateX(4px); }
.rank-number { color: rgba(244,204,120,.72); font: 600 14px/1 var(--display); }
.ranking-row:first-child .rank-number { color: var(--gold-light); font-size: 18px; text-shadow: 0 0 14px rgba(244,204,120,.45); }
.rank-avatar { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(115,221,246,.22); border-radius: 50%; color: #d9f8ff; background: linear-gradient(135deg, rgba(115,221,246,.16), rgba(159,146,255,.15)); font: 600 16px/1 var(--serif); }
.rank-name strong, .rank-name small, .rank-level small, .rank-level b { display: block; }
.rank-name strong { font-size: 14px; }
.rank-name small { margin-top: 4px; color: #7389a0; font: 600 8px/1 var(--display); letter-spacing: 1px; }
.rank-level { text-align: right; }
.rank-level small { color: #6f879f; font: 600 7px/1 var(--display); letter-spacing: 1.2px; }
.rank-level b { margin-top: 4px; color: var(--gold-light); font: 600 19px/1 var(--display); }
.is-placeholder { opacity: .5; }
.news-feature { min-height: 220px; padding: 28px; display: block; border: 1px solid rgba(115,221,246,.15); border-radius: 12px; background: radial-gradient(circle at 90% 5%, rgba(115,221,246,.11), transparent 35%), rgba(6,24,44,.7); transition: .25s; }
.news-feature:hover { transform: translateY(-4px); border-color: rgba(244,204,120,.3); }
.news-tag { margin-right: 12px; padding: 5px 8px; border-radius: 4px; color: #0b1727; background: var(--gold); font: 700 8px/1 var(--display); letter-spacing: 1px; }
.news-feature > small { color: #738aa1; font-size: 10px; }
.news-feature h3 { max-width: 480px; margin: 20px 0 9px; color: #fff1c6; font: 600 23px/1.42 var(--serif); }
.news-feature p { margin: 0 0 20px; color: #8da4ba; font-size: 13px; line-height: 1.65; }
.news-feature > b { color: var(--cyan); font-size: 12px; }
.news-row { min-height: 82px; padding: 15px 13px; display: grid; grid-template-columns: 70px 1fr auto; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); transition: .2s; }
.news-row:hover { padding-left: 19px; background: rgba(255,255,255,.018); }
.news-row > span { color: var(--pink); font: 600 8px/1 var(--display); letter-spacing: 1px; }
.news-row h3 { margin: 0; color: #e7eff8; font-size: 13px; }
.news-row small { display: block; margin-top: 5px; color: #7389a0; font-size: 10px; }
.news-row > b { color: var(--gold); }

/* Community */
.community-section { position: relative; overflow: hidden; padding-block: 130px; border-block: 1px solid rgba(159,146,255,.13); background: radial-gradient(circle at 15% 30%, rgba(102,112,255,.18), transparent 30%), linear-gradient(145deg, #09172d, #060f22); }
.community-section[hidden] { display: none; }
.community-glow { position: absolute; right: -10%; top: -45%; width: 800px; height: 800px; border: 1px solid rgba(159,146,255,.11); border-radius: 50%; box-shadow: inset 0 0 120px rgba(159,146,255,.05), 0 0 80px rgba(159,146,255,.03); }
.community-inner { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.community-copy h2 { margin: 18px 0 22px; }
.community-copy > p:not(.kicker) { max-width: 570px; color: #9eafc4; font-size: 15px; line-height: 1.85; }
.discord-button { margin-top: 24px; min-width: 250px; color: #fff; border-color: rgba(180,185,255,.4); background: linear-gradient(135deg, #7788ef, #5865db); box-shadow: 0 18px 40px rgba(60,70,190,.25); }
.discord-button:hover { box-shadow: 0 23px 55px rgba(70,82,210,.38); }
.discord-shell { overflow: hidden; border: 1px solid rgba(159,146,255,.23); border-radius: 15px; background: #0d1630; box-shadow: 0 30px 75px rgba(0,0,0,.32); }
.discord-shell header { min-height: 67px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); background: linear-gradient(135deg, rgba(95,105,222,.22), rgba(10,19,42,.9)); }
.discord-shell header span { color: #b7bfff; font: 600 9px/1 var(--display); letter-spacing: 1.4px; }
.discord-shell header i { width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.discord-shell header b { font-size: 13px; }
.discord-frame { min-height: 500px; display: grid; place-items: center; color: #7e8ca8; text-align: center; }
.discord-frame iframe { display: block; width: 100%; height: 500px; }

/* Final CTA and footer */
.final-cta { position: relative; min-height: 650px; padding: 120px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 55%, rgba(115,221,246,.12), transparent 30%), radial-gradient(circle at 50% 50%, rgba(244,204,120,.06), transparent 48%), #030916; }
.final-cta::before, .final-cta::after { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(115,221,246,.08); border-radius: 50%; }
.final-cta::after { width: 390px; height: 390px; border-color: rgba(255,156,199,.08); }
.final-crest { position: relative; z-index: 1; width: 76px; height: 76px; margin-bottom: 24px; display: grid; place-items: center; border: 1px solid rgba(244,204,120,.3); border-radius: 50%; color: var(--gold); background: rgba(244,204,120,.05); box-shadow: 0 0 45px rgba(244,204,120,.08); font-size: 26px; }
.final-cta > * { position: relative; z-index: 2; }
.final-cta h2 { margin: 18px 0 16px; }
.final-cta > p:not(.kicker) { margin: 0; color: var(--muted); }
.final-cta > div:last-child { margin-top: 30px; display: flex; align-items: center; gap: 30px; }
.final-cta .text-link { margin-top: 0; }
.site-footer { min-height: 190px; padding: 35px max(32px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 26px; border-top: 1px solid var(--line); background: #020712; }
.footer-logo { width: 82px; height: 82px; display: block; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.site-footer strong { color: #dce8f4; font: 600 12px/1 var(--display); letter-spacing: 1.4px; }
.site-footer p { margin: 7px 0 0; color: #71849a; font-size: 12px; }
.site-footer nav { display: flex; gap: 25px; color: #9dafc3; font-size: 12px; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer > small { grid-column: 2 / 4; color: #42536a; font: 600 8px/1 var(--display); letter-spacing: 1.2px; }

/* Motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.portal-card:nth-child(2), .feature-card:nth-child(2) { transition-delay: .07s; }
.portal-card:nth-child(3), .feature-card:nth-child(3) { transition-delay: .14s; }
.portal-card:nth-child(4) { transition-delay: .21s; }

/* Responsive */
@media (max-width: 1180px) {
    .site-header { gap: 15px; padding-inline: 24px; }
    .main-nav a { padding-inline: 10px; font-size: 13px; }
    .member-button { min-width: 150px; }
    .hero { min-height: 900px; }
    .section-heading { grid-template-columns: .7fr 1.3fr; }
    .section-heading > p { grid-column: 2; }
    .portal-grid { grid-template-columns: repeat(2, 1fr); }
    .world-content { gap: 60px; }
    .chronicle-section { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .section-shell, .hero-content, .realm-strip { width: min(100% - 32px, var(--max)); }
    .site-header, .site-header.scrolled { height: 72px; padding-inline: 15px; }
    .brand-logo, .site-header.scrolled .brand-logo { width: 112px; height: 62px; }
    .member-button { display: none; }
    .menu-toggle { width: 44px; height: 44px; margin-left: auto; display: grid; place-items: center; font-size: 20px; }
    .main-nav { position: absolute; top: calc(100% + 9px); left: 12px; right: 12px; margin: 0; padding: 12px; display: none; flex-direction: column; align-items: stretch; border: 1px solid rgba(244,204,120,.2); border-radius: 13px; background: rgba(5,15,32,.98); box-shadow: 0 26px 60px rgba(0,0,0,.48); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 15px; font-size: 14px; }
    .main-nav a::after { display: none; }
    .mobile-member-link { margin-top: 6px; display: flex !important; align-items: center; justify-content: center; color: #181209 !important; background: linear-gradient(135deg, #fff0b7, #dca848); }
    .hero { min-height: 900px; align-items: flex-end; padding-bottom: 130px; }
    .hero-backdrop { background-position: 68% center; }
    .hero-backdrop::before { background: linear-gradient(90deg, rgba(3,9,22,.94), rgba(5,17,38,.5) 64%, rgba(3,9,22,.25)), linear-gradient(180deg, rgba(3,9,22,.2), rgba(3,9,22,.32) 50%, #030916 100%); }
    .hero-content { margin-top: 100px; }
    .hero-brand { width: 190px; height: 104px; }
    .hero h1 { font-size: clamp(49px, 10vw, 70px); }
    .scroll-cue { display: none; }
    .realm-strip { margin-top: -45px; grid-template-columns: repeat(2, 1fr); }
    .realm-label { grid-column: 1 / -1; min-height: 98px; }
    .realm-stat { min-height: 102px; }
    .realm-stat:nth-of-type(odd) { border-left: 0; }
    .portal-section { padding-block: 105px; }
    .section-heading { grid-template-columns: 1fr; gap: 22px; }
    .section-heading > p { grid-column: auto; }
    .world-showcase { min-height: 1100px; }
    .world-content { grid-template-columns: 1fr; gap: 55px; }
    .community-inner { grid-template-columns: 1fr; gap: 50px; }
    .community-section { padding-block: 90px; }
    .site-footer { grid-template-columns: 70px 1fr; }
    .site-footer nav { grid-column: 1 / -1; flex-wrap: wrap; }
    .site-footer > small { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .hero { min-height: 830px; padding-bottom: 100px; }
    .hero-backdrop { background-position: 72% center; }
    .hero-content { width: calc(100% - 28px); }
    .hero-brand { width: 150px; height: 88px; }
    .hero-content > .kicker { font-size: 8px; letter-spacing: 1.8px; }
    .hero h1 { margin-block: 16px 19px; font-size: 44px; letter-spacing: -1.3px; }
    .hero-lead { font-size: 14px; line-height: 1.75; }
    .hero-actions { display: grid; }
    .hero-actions .button { width: 100%; }
    .hero-status { margin-top: 20px; }
    .realm-strip { width: calc(100% - 22px); }
    .realm-label, .realm-stat { padding: 20px 16px; }
    .realm-stat b { font-size: 25px; }
    .section-shell { width: calc(100% - 26px); }
    .portal-section { padding-block: 85px; }
    .section-heading { margin-bottom: 35px; }
    .section-heading h2, .world-copy h2, .community-copy h2, .final-cta h2 { font-size: 37px; }
    .portal-grid { grid-template-columns: 1fr; }
    .portal-card { min-height: 290px; }
    .world-showcase { min-height: 1190px; }
    .world-image { background-position: 60% center; }
    .feature-card { padding: 20px; grid-template-columns: 42px 1fr; gap: 13px; }
    .chronicle-section { padding-block: 85px; }
    .ranking-panel, .news-panel { padding: 22px 15px; }
    .ranking-row { grid-template-columns: 29px 40px 1fr auto; gap: 8px; padding-inline: 8px; }
    .rank-avatar { width: 38px; height: 38px; }
    .rank-name strong { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .news-feature { padding: 22px; }
    .community-section { padding-block: 75px; }
    .discord-shell { display: none; }
    .final-cta { min-height: 580px; padding-inline: 18px; }
    .final-cta > div:last-child { width: 100%; flex-direction: column; }
    .final-cta .button { width: 100%; }
    .site-footer { padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Compact premium portal menu — replaces the oversized information cards */
.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.portal-card{min-height:148px;padding:22px 24px;display:grid;grid-template-columns:66px minmax(0,1fr) 46px;gap:20px;align-items:center;background:linear-gradient(135deg,rgba(12,40,68,.94),rgba(6,22,42,.96))}
.portal-card::after{left:24px;right:24px}.portal-card-main{background:radial-gradient(circle at 0 50%,rgba(244,204,120,.12),transparent 28%),linear-gradient(135deg,rgba(17,47,75,.96),rgba(7,24,44,.97))}
.portal-card .portal-glyph{width:62px;height:62px;margin:0;border-radius:17px;font-size:22px;box-shadow:inset 0 0 22px rgba(244,204,120,.05),0 12px 28px rgba(0,0,0,.16)}
.portal-copy{position:relative;min-width:0}.portal-card .portal-copy small{color:var(--cyan);font:600 9px/1 var(--display);letter-spacing:1.6px}.portal-card .portal-copy h3{margin:7px 0 4px;color:#fff2c9;font:600 23px/1.25 var(--serif)}.portal-card .portal-copy p{margin:0;color:#8fa5bc;font-size:12px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portal-card>b.portal-arrow{position:relative;width:44px;height:44px;margin:0;padding:0;display:grid;place-items:center;justify-self:end;border:1px solid rgba(179,211,241,.15);border-radius:50%;color:var(--gold-light);background:rgba(255,255,255,.025);font:500 19px/1 var(--display);transition:transform .25s,border-color .25s,background .25s}
.portal-card:hover{transform:translateY(-5px)}.portal-card:hover>b.portal-arrow{transform:rotate(45deg);border-color:rgba(244,204,120,.5);background:rgba(244,204,120,.08)}
@media(max-width:820px){.portal-grid{grid-template-columns:1fr}.portal-card{min-height:132px}}
@media(max-width:480px){.portal-card{padding:18px;grid-template-columns:54px minmax(0,1fr) 38px;gap:13px}.portal-card .portal-glyph{width:52px;height:52px;border-radius:14px}.portal-card .portal-copy h3{font-size:20px}.portal-card>b.portal-arrow{width:36px;height:36px}.portal-card .portal-copy p{white-space:normal;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}}
