:root {
    --bg: #070708;
    --bg-soft: #0d0d10;
    --panel: rgba(19, 19, 23, .82);
    --panel-solid: #111115;
    --ink: #f5f1ea;
    --muted: #9f9aa0;
    --line: rgba(255, 255, 255, .11);
    --line-strong: rgba(255, 255, 255, .22);
    --red: #d72f29;
    --red-bright: #f04a3f;
    --gold: #d8b36a;
    --header-h: 82px;
    --page: min(1320px, calc(100vw - 80px));
    --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; transform: translateY(-140%); padding: 10px 14px; background: white; color: black; }
.skip-link:focus { transform: none; }
.noise { position: fixed; z-index: 1000; inset: 0; opacity: .035; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }

.site-header { position: fixed; z-index: 900; top: 0; left: 0; right: 0; height: var(--header-h); display: grid; grid-template-columns: 205px 1fr auto; align-items: center; gap: 28px; padding: 0 max(32px, calc((100vw - 1460px) / 2)); border-bottom: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(5,5,7,.86), rgba(5,5,7,.28)); transition: height .35s var(--ease), background .35s var(--ease), backdrop-filter .35s var(--ease); }
.site-header.scrolled, .inner-page .site-header { height: 68px; background: rgba(7,7,9,.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand img { width: 43px; height: 43px; object-fit: contain; filter: drop-shadow(0 5px 16px rgba(222,48,37,.25)); }
.brand span { display: flex; align-items: baseline; letter-spacing: .19em; font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.brand b { font-weight: 500; }
.brand em { color: var(--red-bright); font-size: 21px; font-style: normal; font-weight: 800; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(19px, 2vw, 38px); }
.main-nav a { position: relative; padding: 26px 0; color: #b8b4b8; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: color .25s ease; }
.main-nav a::after { position: absolute; content: ""; left: 50%; bottom: 19px; width: 0; height: 1px; background: var(--red-bright); transform: translateX(-50%); transition: width .28s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: white; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.text-action { border: 0; background: none; padding: 10px 0; color: #d8d4d3; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.text-action:hover { color: white; }
.header-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border: 1px solid rgba(231,72,61,.7); background: linear-gradient(135deg, rgba(215,47,41,.24), rgba(215,47,41,.07)); color: white; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: .25s ease; }
.header-cta:hover { border-color: var(--red-bright); background: var(--red); box-shadow: 0 10px 35px rgba(215,47,41,.23); transform: translateY(-1px); }
.language-picker { position: relative; }
.language-picker summary { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; color: #d5d1ce; cursor: pointer; list-style: none; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker[open] summary { border-color: var(--red-bright); color: white; }
.language-menu { position: absolute; top: 49px; right: 0; width: 190px; padding: 8px; border: 1px solid var(--line); background: rgba(12,12,15,.97); box-shadow: 0 25px 70px rgba(0,0,0,.55); }
.language-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 11px; color: #aaa6aa; font-size: 12px; transition: .2s ease; }
.language-menu a:hover, .language-menu a.selected { background: rgba(255,255,255,.06); color: white; }
.language-menu span { width: 30px; color: var(--gold); font-size: 10px; font-weight: 900; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: .25s ease; }

.hero { position: relative; min-height: max(780px, 100svh); display: flex; align-items: center; overflow: hidden; background: #09090b; }
.hero-image, .hero-vignette { position: absolute; inset: 0; }
.hero-image { background-image: url("hero-2026.webp"); background-position: center; background-size: cover; transform: scale(1.025); animation: hero-breathe 14s ease-in-out infinite alternate; }
.hero-vignette { background: linear-gradient(90deg, rgba(4,4,6,.98) 0%, rgba(4,4,6,.84) 24%, rgba(4,4,6,.23) 54%, rgba(4,4,6,.42) 100%), linear-gradient(0deg, #070708 0%, rgba(7,7,8,.05) 28%, rgba(7,7,8,.25) 100%); }
.hero::after { position: absolute; content: ""; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); }
@keyframes hero-breathe { from { transform: scale(1.025) translate3d(0,0,0); } to { transform: scale(1.07) translate3d(-.4%, -.4%, 0); } }
.hero-content { position: relative; z-index: 3; width: var(--page); margin: 50px auto 0; }
.hero-content > * { max-width: 640px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow > span { width: 30px; height: 1px; background: currentColor; }
.hero h1, .section-heading h2, .world-intro h2, .final-cta h2, .interior-heading h1, .login-dialog h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.hero h1 { max-width: 720px; font-size: clamp(52px, 6.3vw, 94px); }
.hero-copy { max-width: 610px; margin: 27px 0 0; color: #c1bcc0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-height: 54px; padding: 0 25px; border: 1px solid transparent; cursor: pointer; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; transition: transform .28s var(--ease), border-color .28s ease, background .28s ease, box-shadow .28s ease; }
.button::before { position: absolute; content: ""; inset: 4px; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.button-primary { background: linear-gradient(135deg, var(--red-bright), #a91716); color: white; box-shadow: 0 18px 50px rgba(215,47,41,.22); }
.button-primary:hover { color: white; transform: translateY(-3px); box-shadow: 0 23px 65px rgba(215,47,41,.34); }
.button-primary b { font-size: 17px; }
.button-ghost { border-color: var(--line-strong); background: rgba(10,10,13,.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #e9e5e2; }
.button-ghost:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); color: white; transform: translateY(-3px); }
.play-mark { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; font-size: 8px; text-indent: 2px; }
.hero-facts { display: flex; gap: 38px; margin: 43px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.hero-facts strong { color: white; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.hero-facts span { max-width: 66px; color: #8d898e; font-size: 9px; font-weight: 800; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.scroll-cue { position: absolute; z-index: 4; right: max(30px, calc((100vw - 1460px)/2)); bottom: 74px; display: flex; align-items: center; gap: 11px; color: #77737a; font-size: 8px; font-weight: 800; letter-spacing: .23em; transform: rotate(90deg); transform-origin: right center; }
.scroll-cue span { width: 42px; height: 1px; overflow: hidden; background: rgba(255,255,255,.18); }
.scroll-cue span::after { display: block; content: ""; width: 50%; height: 100%; background: var(--red-bright); animation: scroll-line 2s ease-in-out infinite; }
@keyframes scroll-line { 0% { transform: translateX(-110%); } 100% { transform: translateX(220%); } }
.ember-field { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.ember { position: absolute; bottom: -20px; width: 2px; height: 2px; border-radius: 50%; background: #ff7656; box-shadow: 0 0 7px #d72f29; opacity: 0; animation: ember-rise var(--duration) linear var(--delay) infinite; }
@keyframes ember-rise { 0% { transform: translate3d(0,0,0); opacity: 0; } 12% { opacity: .8; } 100% { transform: translate3d(var(--drift), -85vh, 0); opacity: 0; } }

.live-strip { position: relative; z-index: 5; width: var(--page); min-height: 116px; margin: -38px auto 0; display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); border: 1px solid var(--line); background: rgba(14,14,17,.9); box-shadow: 0 25px 80px rgba(0,0,0,.38); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.live-strip > div { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.live-strip > div:last-child { border-right: 0; }
.live-mark { gap: 10px; }
.live-mark i { width: 7px; height: 7px; border-radius: 50%; background: #4ae38c; box-shadow: 0 0 16px #4ae38c; animation: pulse 1.8s ease infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 4px #4ae38c; } }
.live-mark span, .live-mark strong { font-size: 10px; letter-spacing: .16em; }
.live-mark span { color: var(--muted); }
.live-mark strong { color: #61e99a; }
.live-stat { flex-direction: column; }
.live-stat strong { font-family: Georgia, serif; font-size: 29px; font-weight: 400; line-height: 1; }
.live-stat span { margin-top: 8px; color: #77737a; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.section { width: var(--page); margin: 0 auto; padding: 140px 0; }
.section-heading { max-width: 790px; margin-bottom: 58px; }
.section-heading h2, .world-intro h2 { font-size: clamp(42px, 5vw, 72px); }
.section-heading.split { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; }
.section-heading.split > p { max-width: 510px; margin: 0 0 4px; color: var(--muted); font-size: 17px; }
.journey-section { padding-top: 170px; }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.journey-card { position: relative; min-height: 310px; padding: 42px 38px; overflow: hidden; border: 1px solid var(--line); border-right: 0; background: linear-gradient(140deg, rgba(255,255,255,.035), transparent 60%); transition: background .35s ease, border-color .35s ease, transform .35s var(--ease); }
.journey-card:last-child { border-right: 1px solid var(--line); }
.journey-card::after { position: absolute; content: ""; width: 190px; height: 190px; right: -70px; bottom: -80px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; transition: transform .5s var(--ease), border-color .5s ease; }
.journey-card:hover { z-index: 2; border-color: rgba(215,47,41,.65); background: linear-gradient(140deg, rgba(215,47,41,.1), transparent 65%); transform: translateY(-7px); }
.journey-card:hover::after { border-color: rgba(215,47,41,.3); transform: scale(1.35); }
.journey-card em { color: #5f5b61; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .16em; }
.journey-card > i { display: grid; place-items: center; width: 54px; height: 54px; margin: 32px 0 27px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 22px; font-style: normal; }
.journey-card h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.journey-card p { max-width: 315px; margin: 0; color: var(--muted); font-size: 14px; }
.journey-card > b { position: absolute; right: 32px; top: 36px; color: #77737a; font-size: 18px; transition: color .2s ease, transform .2s ease; }
.journey-card:hover > b { color: var(--red-bright); transform: translate(3px,-3px); }

.classes-section { width: 100%; padding-left: max(40px, calc((100vw - 1320px)/2)); padding-right: max(40px, calc((100vw - 1320px)/2)); background: radial-gradient(circle at 50% 20%, rgba(141,32,28,.15), transparent 36%), linear-gradient(#070708, #0b0b0e 28%, #070708); }
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; perspective: 1200px; }
.class-card { position: relative; min-height: 580px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #151519, #0b0b0d); transform-style: preserve-3d; transition: transform .22s ease-out, border-color .3s ease, box-shadow .3s ease; }
.class-card::before { position: absolute; z-index: 1; content: ""; inset: 0; background: linear-gradient(180deg, transparent 37%, rgba(7,7,9,.2) 55%, rgba(7,7,9,.97) 92%); }
.class-card::after { position: absolute; z-index: 3; content: ""; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(.15); transform-origin: left; transition: transform .4s var(--ease); }
.class-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.class-card:hover::after { transform: scaleX(1); }
.class-glow { position: absolute; width: 360px; height: 360px; left: 50%; top: 18%; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(75px); transform: translateX(-50%); transition: opacity .3s ease, transform .5s var(--ease); }
.class-card:hover .class-glow { opacity: .25; transform: translateX(-50%) scale(1.15); }
.class-card img { position: absolute; z-index: 2; top: 36px; left: 50%; height: 78%; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 22px 25px rgba(0,0,0,.5)); transform: translateX(-50%) translateZ(25px) scale(1.12); transition: filter .35s ease, transform .45s var(--ease); }
.class-card:hover img { filter: drop-shadow(0 30px 35px rgba(0,0,0,.65)); transform: translateX(-50%) translateY(-7px) translateZ(38px) scale(1.16); }
.class-copy { position: absolute; z-index: 4; left: 30px; right: 30px; bottom: 28px; transform: translateZ(42px); }
.class-copy span { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.class-copy h3 { margin: 4px 0 7px; font-family: Georgia, serif; font-size: 32px; font-weight: 400; }
.class-copy p { margin: 0; color: #8f8b91; font-size: 12px; line-height: 1.55; }

.world-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.world-intro { position: sticky; top: 130px; }
.world-intro > p:not(.eyebrow) { max-width: 500px; color: var(--muted); font-size: 17px; }
.inline-link { display: inline-flex; gap: 12px; margin-top: 22px; padding-bottom: 8px; border-bottom: 1px solid rgba(215,47,41,.55); color: white; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.inline-link b { color: var(--red-bright); }
.system-stack { display: grid; gap: 14px; }
.system-card { position: relative; min-height: 180px; display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 23px; padding: 30px 33px; overflow: hidden; border: 1px solid var(--line); background: #0d0d10; transition: border-color .35s ease, transform .35s var(--ease); }
.system-card::before { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.97) 0%, rgba(10,10,12,.88) 52%, rgba(10,10,12,.35)), var(--system-image) center/cover; opacity: .7; transform: scale(1.03); transition: transform .6s var(--ease), opacity .4s ease; }
.system-card > * { position: relative; z-index: 1; }
.system-card > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 10px; font-weight: 900; }
.system-card h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.system-card p { max-width: 510px; margin: 0; color: #aaa6aa; font-size: 13px; }
.system-card > b { font-size: 20px; color: #8f8a8e; }
.system-card:hover { border-color: rgba(215,47,41,.55); transform: translateX(-9px); }
.system-card:hover::before { opacity: .9; transform: scale(1.09); }
.system-card:hover > b { color: var(--red-bright); }

.ranking-section { border-top: 1px solid var(--line); }
.ranking-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ranking-panel { border: 1px solid var(--line); background: linear-gradient(150deg, rgba(255,255,255,.035), transparent 55%); }
.ranking-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 29px 32px; border-bottom: 1px solid var(--line); }
.ranking-panel header span { color: var(--red-bright); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.ranking-panel h3 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 29px; font-weight: 400; }
.ranking-panel header a { color: #8f8a8f; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ranking-panel header a:hover { color: white; }
.ranking-list { min-height: 315px; padding: 14px 30px 26px; counter-reset: rank; }
.ranking-list > ul { counter-increment: rank; min-height: 52px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; margin: 0; padding: 0; border-bottom: 1px solid rgba(255,255,255,.07); list-style: none; }
.ranking-list > ul::before { content: "0" counter(rank); color: #68646b; font-family: Georgia, serif; font-size: 18px; }
.ranking-list ul li { margin: 0; padding: 0; color: #aaa5aa; font-size: 12px; list-style: none; }
.ranking-list ul li:first-child { color: #f1ede8; font-weight: 700; }
.ranking-list img { width: 22px; height: 14px; object-fit: contain; }
.ranking-list .light, .ranking-list .first { color: inherit !important; }
.empty-state { padding: 90px 0; text-align: center; color: #5d5960; }

.final-cta { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(176,34,29,.16), transparent 35%), #08080a; text-align: center; }
.final-cta > div:not(.final-rings) { position: relative; z-index: 2; display: grid; justify-items: center; }
.final-cta img { width: 86px; height: 86px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 0 30px rgba(215,47,41,.3)); }
.final-cta h2 { max-width: 760px; font-size: clamp(44px, 5vw, 72px); }
.final-cta p { margin: 21px 0 30px; color: var(--muted); }
.final-rings { position: absolute; width: min(820px, 90vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.05); border-radius: 50%; }
.final-rings::before, .final-rings::after { position: absolute; content: ""; inset: 13%; border: 1px solid rgba(255,255,255,.045); border-radius: inherit; }
.final-rings::after { inset: 29%; border-color: rgba(215,47,41,.12); }

.site-footer { width: var(--page); min-height: 125px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px; color: #77737a; font-size: 11px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; color: #aaa6aa; }
.site-footer nav a:hover { color: white; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand span { font-size: 12px; }
.footer-brand em { font-size: 17px; }
.site-footer small { color: #5f5b62; }

.interior-shell { min-height: calc(100vh - 125px); width: var(--page); margin: 0 auto; padding: 150px 0 100px; }
.interior-heading { margin: 20px 0 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.interior-heading h1 { font-size: clamp(42px, 5vw, 68px); }
.legacy-content { color: #d2ced1; }
.legacy-content .col-2, .legacy-content .col-1, .legacy-content .col-3 { float: none !important; width: 100% !important; margin: 0 !important; }
.legacy-content .content, .legacy-content .modul-box, .legacy-content .input-data-box, .legacy-content .wideMainContent { width: 100% !important; min-height: 0 !important; margin: 0 0 20px !important; padding: 0 !important; background: none !important; }
.legacy-content .content-bg, .legacy-content .content-bg-bottom, .legacy-content .modul-box-bg, .legacy-content .modul-box-bg-bottom { width: 100% !important; min-height: 0 !important; padding: 0 !important; background: none !important; }
.legacy-content .banner, .legacy-content .shadow, .legacy-content #slidedom { display: none !important; }
.legacy-content h1, .legacy-content h2, .legacy-content h3, .legacy-content h4 { color: white; font-family: Georgia, serif; font-weight: 400; }
.legacy-content h3 { margin: 28px 0 18px; font-size: 28px; }
.legacy-content form, .legacy-content .form-login, .legacy-content .input-data-box, .legacy-content table { max-width: 980px; }
.legacy-content input[type=text], .legacy-content input[type=email], .legacy-content input[type=password], .legacy-content input[type=number], .legacy-content textarea, .legacy-content select { width: 100%; max-width: 620px; min-height: 48px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 0; outline: 0; background: #111115; color: white; }
.legacy-content input:focus, .legacy-content textarea:focus, .legacy-content select:focus { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(215,47,41,.12); }
.legacy-content input[type=submit], .legacy-content button, .legacy-content .btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid rgba(215,47,41,.7); border-radius: 0; background: #a9211d; color: white; font-weight: 800; }
.legacy-content a { color: #dfba72; }
.legacy-content table { width: 100%; border-collapse: collapse; background: #0d0d10; }
.legacy-content th, .legacy-content td { padding: 14px 16px !important; border: 1px solid var(--line) !important; color: #c9c4c8; }
.legacy-content th { color: white; background: #151519; text-align: left; }
.legacy-content .alert { border-radius: 0; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,2,3,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.login-dialog { position: relative; z-index: 1; width: min(480px, 100%); padding: 48px; overflow: hidden; border: 1px solid var(--line-strong); background: radial-gradient(circle at 100% 0, rgba(215,47,41,.17), transparent 40%), #101013; box-shadow: 0 40px 120px rgba(0,0,0,.65); animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.login-dialog > img { width: 64px; height: 64px; margin-bottom: 25px; object-fit: contain; }
.login-dialog h2 { margin-bottom: 28px; font-size: 42px; }
.modal-close { position: absolute; top: 17px; right: 17px; width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 24px; line-height: 1; }
.modal-close:hover { border-color: var(--red-bright); }
.login-dialog form { display: grid; gap: 17px; }
.login-dialog label span { display: block; margin-bottom: 7px; color: #9c979d; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-dialog input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line-strong); outline: 0; background: rgba(255,255,255,.035); color: white; }
.login-dialog input:focus { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(215,47,41,.11); }
.login-dialog .button { width: 100%; margin-top: 6px; }
.login-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; color: #aaa5aa; font-size: 11px; }
.login-links a:hover { color: white; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
    :root { --page: min(100% - 48px, 1080px); }
    .site-header { grid-template-columns: auto 1fr auto; padding: 0 24px; }
    .main-nav { gap: 18px; }
    .main-nav a { font-size: 10px; }
    .text-action { display: none; }
    .class-grid { grid-template-columns: repeat(2, 1fr); }
    .class-card { min-height: 600px; }
    .world-section { gap: 55px; }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; --page: calc(100% - 32px); }
    .site-header { grid-template-columns: 1fr auto auto; gap: 11px; }
    .menu-toggle { display: block; grid-column: 2; }
    .header-actions { grid-column: 3; gap: 8px; }
    .header-cta { display: none; }
    .main-nav { position: fixed; top: 68px; left: 0; right: 0; display: grid; align-content: start; justify-content: stretch; gap: 0; padding: 20px 24px 32px; border-bottom: 1px solid var(--line); background: rgba(7,7,9,.98); transform: translateY(-130%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; }
    .main-nav.open { transform: none; visibility: visible; }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12px; }
    .main-nav a::after { display: none; }
    .hero { min-height: 780px; align-items: end; padding-bottom: 110px; }
    .hero-image { background-position: 61% center; }
    .hero-vignette { background: linear-gradient(0deg, rgba(5,5,7,.99) 0%, rgba(5,5,7,.78) 44%, rgba(5,5,7,.28) 100%), linear-gradient(90deg, rgba(5,5,7,.72), transparent 80%); }
    .hero-content { margin-top: 0; }
    .hero-content > * { max-width: 620px; }
    .scroll-cue { display: none; }
    .live-strip { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
    .live-mark { grid-column: 1 / -1; min-height: 54px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
    .live-stat { min-height: 82px; }
    .section { padding: 105px 0; }
    .journey-grid { grid-template-columns: 1fr; }
    .journey-card { min-height: 250px; border-right: 1px solid var(--line); border-bottom: 0; }
    .journey-card:last-child { border-bottom: 1px solid var(--line); }
    .section-heading.split { grid-template-columns: 1fr; gap: 26px; }
    .world-section { grid-template-columns: 1fr; }
    .world-intro { position: static; }
    .ranking-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr auto; padding: 30px 0; }
    .site-footer > p, .site-footer > nav { display: none; }
}

@media (max-width: 620px) {
    .site-header { padding: 0 16px; }
    .brand span { display: none; }
    .brand img { width: 39px; height: 39px; }
    .hero { min-height: 760px; padding-bottom: 66px; }
    .hero-image { background-position: 60% center; opacity: .92; }
    .hero h1 { font-size: clamp(46px, 14vw, 66px); }
    .hero-copy { font-size: 15px; line-height: 1.65; }
    .hero-actions { display: grid; }
    .button { width: 100%; }
    .hero-facts { gap: 18px; justify-content: space-between; }
    .hero-facts li { grid-template-columns: 1fr; gap: 1px; }
    .hero-facts strong { font-size: 21px; }
    .hero-facts span { font-size: 8px; }
    .live-strip { width: 100%; grid-template-columns: repeat(2, 1fr); }
    .live-stat { border-bottom: 1px solid var(--line); }
    .live-stat:nth-child(3), .live-stat:nth-child(5) { border-right: 0; }
    .section { padding: 82px 0; }
    .section-heading { margin-bottom: 38px; }
    .section-heading h2, .world-intro h2 { font-size: 42px; }
    .journey-section { padding-top: 100px; }
    .journey-card { padding: 31px 26px; }
    .classes-section { padding-left: 16px; padding-right: 16px; }
    .class-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: none; }
    .class-grid::-webkit-scrollbar { display: none; }
    .class-card { flex: 0 0 84vw; min-height: 560px; scroll-snap-align: center; }
    .system-card { min-height: 210px; grid-template-columns: 42px 1fr; padding: 25px 22px; }
    .system-card > b { display: none; }
    .system-card h3 { font-size: 25px; }
    .ranking-panel > header { padding: 24px 20px; }
    .ranking-list { padding: 8px 18px 22px; }
    .final-cta { min-height: 540px; padding: 70px 18px; }
    .login-dialog { padding: 38px 24px 28px; }
    .interior-shell { padding-top: 112px; }
    .legacy-content table { display: block; overflow-x: auto; }
}

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

/* Active navigation is communicated by typography only. */
.main-nav a::after,
.main-nav a.active::after {
    content: none !important;
    display: none !important;
}

/* High-contrast navigation: readable without relying on a red underline. */
.site-header .main-nav a {
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #d7d3d2;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .105em;
    line-height: 1;
    opacity: 1;
    text-shadow: 0 1px 12px rgba(0,0,0,.9);
}
.site-header .main-nav a:hover {
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.055);
    color: #fff;
}
.site-header .main-nav a.active {
    border-color: rgba(216,186,120,.24);
    background: linear-gradient(135deg, rgba(216,186,120,.15), rgba(216,186,120,.055));
    color: #fff;
    box-shadow: inset 0 1px rgba(255,255,255,.055), 0 8px 24px rgba(0,0,0,.18);
}
@media (min-width: 1381px) {
    .site-header .main-nav {
        gap: 3px;
        padding: 5px;
        border: 1px solid rgba(255,255,255,.075);
        border-radius: 17px;
        background: rgba(255,255,255,.022);
        box-shadow: inset 0 1px rgba(255,255,255,.025);
    }
}

/* Header safety net for narrow laptops, zoomed browsers and stale premium CSS. */
@media (min-width: 901px) and (max-width: 1380px) {
    .site-header {
        left: 10px;
        right: 10px;
        width: auto;
        display: flex;
        gap: 10px;
        padding: 0 18px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 22px;
        background: rgba(7,7,9,.9);
        backdrop-filter: blur(22px);
    }
    .site-header .brand { order: 1; }
    .site-header .header-actions { order: 2; margin-left: auto; }
    .site-header .menu-toggle { display: block; order: 3; flex: 0 0 42px; border-radius: 14px; }
    .site-header .main-nav {
        position: fixed;
        top: 88px;
        left: 20px;
        right: 20px;
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 22px;
        background: rgba(8,8,11,.98);
        box-shadow: 0 35px 100px rgba(0,0,0,.68);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
    }
    .site-header .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .site-header .main-nav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        font-size: 10px;
    }
}
