:root {
  --ink: #050b12;
  --navy: #07131f;
  --panel: #0b1a29;
  --panel-2: #10283a;
  --ice: #78dcff;
  --ice-bright: #c8f4ff;
  --blue: #1687c9;
  --line: rgba(151, 222, 247, .18);
  --muted: #91a9b7;
  --text: #effaff;
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scrollbar-gutter: stable both-edges; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--ink); font: 16px/1.6 var(--body); overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background: radial-gradient(circle at 15% 30%, rgba(24, 130, 183, .13), transparent 28%), radial-gradient(circle at 85% 70%, rgba(84, 208, 245, .08), transparent 24%), #050b12;
}

.snow { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.snow::before, .snow::after { content: ""; position: absolute; inset: -121px 0; will-change: background-position; }
.snow::before { opacity: .2; background-image: radial-gradient(circle, #d8f8ff 0 1px, transparent 1.6px); background-size: 74px 74px; background-position: 0 0; animation: snow-fall-near 12s linear infinite; }
.snow::after { opacity: .13; background-image: radial-gradient(circle, #8fddf7 0 1px, transparent 1.6px); background-size: 121px 121px; background-position: 30px 0; animation: snow-fall-far 22s linear infinite; }
@keyframes snow-fall-near { to { background-position: 0 740px; } }
@keyframes snow-fall-far { to { background-position: 30px 726px; } }

.site-header { height: 86px; position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding: 0 clamp(20px, 5vw, 80px); background: linear-gradient(180deg, rgba(4, 12, 20, .98), rgba(4, 12, 20, .86)); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-family: var(--display); letter-spacing: .09em; line-height: 1; }
.brand-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; aspect-ratio: 1; border-radius: 50%; background: #07131f; box-shadow: 0 0 18px rgba(95, 205, 242, .28); overflow: hidden; transition: transform .28s ease, box-shadow .28s ease, filter .28s ease; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transition: filter .28s ease; }
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { z-index: 4; transform: scale(1.18) translateY(-1px); box-shadow: 0 0 10px rgba(202, 247, 255, .95), 0 0 28px rgba(92, 216, 255, .82), 0 0 55px rgba(37, 143, 210, .55); filter: brightness(1.18); animation: logo-glow 1.1s ease-in-out infinite alternate; }
.brand:hover .brand-mark img, .brand:focus-visible .brand-mark img { filter: brightness(1.22) contrast(1.08); }
@keyframes logo-glow { from { box-shadow: 0 0 9px rgba(202, 247, 255, .8), 0 0 24px rgba(92, 216, 255, .68), 0 0 42px rgba(37, 143, 210, .42); } to { box-shadow: 0 0 15px rgba(226, 252, 255, 1), 0 0 38px rgba(92, 216, 255, .95), 0 0 68px rgba(37, 143, 210, .62); } }
.brand strong, .brand em { display: block; font-style: normal; }
.brand strong { font-size: .65rem; color: #8ea7b8; }
.brand em { margin-top: 6px; font-size: 1rem; color: var(--ice-bright); }
.main-nav { display: flex; align-self: stretch; justify-content: center; }
.nav-link { position: relative; min-width: 108px; padding: 0 16px; border: 0; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .76rem; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: 0; height: 2px; background: var(--ice); box-shadow: 0 0 14px var(--ice); transform: scaleX(0); transition: transform .25s ease; }
.nav-link:hover, .nav-link.active { color: var(--ice-bright); }
.nav-link.active::after { transform: scaleX(1); }
.logout-link { color: #efa8a8; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 24px; }
.language-switch { display: flex; align-items: center; gap: 10px; }
.language-switch > span { color: #66808f; font-size: .56rem; font-weight: 800; letter-spacing: .16em; }
.language-switch > div { display: flex; padding: 3px; border: 1px solid rgba(132, 222, 250, .2); background: rgba(7, 25, 38, .72); }
.language-switch button { min-width: 34px; height: 28px; padding: 0 8px; border: 0; color: #6f8998; background: transparent; cursor: pointer; font-size: .65rem; font-weight: 800; letter-spacing: .08em; }
.language-switch button:hover, .language-switch button.active { color: #04101a; background: linear-gradient(135deg, var(--ice-bright), #42bfea); }
[data-language-content][hidden] { display: none !important; }
.server-status { display: flex; align-items: center; gap: 10px; }
.server-status span:last-child { display: grid; line-height: 1.2; }
.server-status small { font-size: .58rem; letter-spacing: .18em; color: #6f8796; }
.server-status strong { margin-top: 3px; font-size: .72rem; color: #74ebbd; letter-spacing: .12em; }
.status-pulse { width: 9px; height: 9px; border-radius: 50%; background: #62e8b4; box-shadow: 0 0 0 5px rgba(98, 232, 180, .1), 0 0 16px #62e8b4; }

.view { min-height: 100vh; }
.hero { min-height: 820px; position: relative; display: flex; align-items: center; isolation: isolate; padding: 138px clamp(24px, 8vw, 140px) 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, #05101b 0%, rgba(5, 16, 27, .82) 38%, rgba(5, 16, 27, .08) 74%), linear-gradient(0deg, #050b12 0%, transparent 32%); }
.hero-art { position: absolute; inset: 0; z-index: -4; background: url("glacium-hero.png") center 17% / cover no-repeat, radial-gradient(circle at 72% 34%, #17628a, #06101a 58%); filter: saturate(.92) contrast(1.06); transform: scale(1.02); }
.hero-fade { position: absolute; inset: auto 0 0; height: 220px; z-index: -1; background: linear-gradient(transparent, var(--ink)); }
.hero-content { width: min(660px, 100%); position: relative; z-index: 2; }
.eyebrow { margin: 0 0 18px; color: var(--ice); font-size: .72rem; font-weight: 800; letter-spacing: .32em; }
.hero h1, .inner-page h1 { margin: 0; color: #f3fcff; font: 800 clamp(3.25rem, 6.5vw, 6.8rem)/.91 var(--display); letter-spacing: -.045em; -webkit-text-stroke: .35px rgba(220, 249, 255, .72); text-shadow: 0 2px 0 #385e73, 0 8px 18px rgba(0,0,0,.68), 0 0 30px rgba(93, 211, 248, .12); }
.hero h1 span, .inner-page h1 span { display: inline-block; color: var(--ice-bright); background: linear-gradient(180deg, #fff 0%, #defaff 22%, #78d9fa 52%, #d7f8ff 70%, #3197c2 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: .6px rgba(223, 250, 255, .88); filter: drop-shadow(0 2px 0 #174e69) drop-shadow(0 0 10px rgba(115, 224, 255, .44)) drop-shadow(0 8px 18px rgba(0,0,0,.46)); }
.hero-copy { width: min(570px, 100%); margin: 28px 0 0; color: #b7cbd6; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.primary-button, .ghost-button { min-height: 52px; padding: 0 28px; border: 1px solid transparent; cursor: pointer; font-family: var(--display); letter-spacing: .1em; font-size: .78rem; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.primary-button { color: #03131e; border-color: rgba(225, 251, 255, .8); background: linear-gradient(160deg, #f1fdff 0%, #a7eaff 32%, #4fc1e9 68%, #2b8fbb 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -10px 22px rgba(5, 76, 108, .14), 0 10px 34px rgba(58, 183, 229, .23); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.ghost-button { color: #d9f8ff; border-color: rgba(161, 230, 252, .38); background: linear-gradient(145deg, rgba(24, 69, 91, .76), rgba(5, 24, 37, .88)); box-shadow: inset 0 1px 0 rgba(221, 249, 255, .12), inset 0 -12px 24px rgba(3, 11, 18, .26); text-shadow: 0 0 12px rgba(117, 222, 255, .35); }
.primary-button:hover, .ghost-button:hover { transform: translateY(-2px); border-color: rgba(214, 249, 255, .82); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 34px rgba(58, 183, 229, .4), 0 0 20px rgba(104, 216, 250, .13); }
.world-stats { display: flex; gap: 0; margin: 58px 0 0; }
.world-stats div { min-width: 138px; padding: 4px 25px; border-left: 1px solid rgba(137, 212, 239, .2); }
.world-stats div:first-child { padding-left: 0; border-left: 0; }
.world-stats dt { color: var(--ice-bright); font: 700 1.45rem var(--display); }
.world-stats dd { margin: 3px 0 0; color: #768f9e; font-size: .62rem; letter-spacing: .15em; }

.announcements-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 58px 270px 110px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font: 700 clamp(2rem, 3vw, 3.2rem) var(--display); }
.section-heading > p { max-width: 340px; color: var(--muted); font-size: .9rem; text-align: right; }
.announcement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.announcement-card { min-height: 420px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(14, 37, 54, .92), rgba(6, 18, 29, .98)); overflow: hidden; transition: border-color .25s, transform .25s; }
.announcement-card:hover, .announcement-card:target { transform: translateY(-4px); border-color: rgba(119, 219, 252, .52); }
.announcement-card.featured { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: 42% 1fr; }
.announcement-visual { position: relative; min-height: 190px; overflow: hidden; background: radial-gradient(circle at 25% 30%, rgba(116, 225, 255, .32), transparent 30%), linear-gradient(145deg, #164a67, #07131f 74%); }
.announcement-visual::before, .announcement-visual::after { content: ""; position: absolute; inset: -30%; border: 1px solid rgba(160, 230, 250, .12); transform: rotate(35deg); }
.announcement-visual::after { inset: -60% -15%; transform: rotate(-25deg); }
.announcement-visual span { position: absolute; right: 18px; bottom: -23px; color: rgba(201, 244, 255, .08); font: 800 7rem var(--display); line-height: 1; }
.visual-event { background-color: #0f3550; background-image: radial-gradient(circle at 75% 20%, rgba(120, 214, 255, .28), transparent 27%), linear-gradient(140deg, rgba(24, 81, 108, .7), #07131f); }
.visual-maintenance { background-color: #0d2738; background-image: linear-gradient(115deg, rgba(94, 181, 214, .2), transparent 40%), repeating-linear-gradient(135deg, transparent 0 20px, rgba(126, 213, 243, .035) 20px 21px); }
.visual-guide { background-color: #123b4f; background-image: radial-gradient(circle at 30% 40%, rgba(90, 217, 230, .18), transparent 34%), linear-gradient(155deg, #17475c, #06101a 72%); }
.visual-community { background-color: #0d2d41; background-image: linear-gradient(45deg, rgba(95, 198, 234, .1) 25%, transparent 25% 75%, rgba(95, 198, 234, .1) 75%), linear-gradient(45deg, rgba(95, 198, 234, .1) 25%, transparent 25% 75%, rgba(95, 198, 234, .1) 75%); background-size: 34px 34px; background-position: 0 0, 17px 17px; }
.announcement-body { padding: 25px 27px 28px; }
.featured .announcement-body { align-self: center; padding: 35px 38px; }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.meta time { color: #658091; font-size: .71rem; }
.tag { padding: 4px 8px; border: 1px solid rgba(124, 218, 248, .23); color: var(--ice); background: rgba(31, 127, 169, .1); font-size: .58rem; font-weight: 800; letter-spacing: .11em; }
.tag.event { color: #8cf2d0; }.tag.maintenance { color: #f5cf87; }.tag.guide { color: #c9b6ff; }.tag.community { color: #f1aee2; }
.announcement-body h3 { margin: 18px 0 10px; font: 700 1.42rem/1.25 var(--display); }
.announcement-body > p, .announcement-detail p { margin: 0; color: var(--muted); font-size: .88rem; }
.read-more { margin-top: 20px; padding: 0; border: 0; color: var(--ice-bright); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.read-more span { display: inline-block; margin-left: 7px; transition: transform .2s; }.read-more:hover span { transform: translateX(5px); }
.announcement-detail { padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); }

.floating-news { position: fixed; z-index: 30; right: clamp(18px, 3.2vw, 55px); top: 50%; width: 252px; transform: translateY(-42%); border: 1px solid rgba(138, 221, 248, .2); background: rgba(6, 18, 28, .93); box-shadow: 0 24px 70px rgba(0,0,0,.44); backdrop-filter: blur(14px); }
.floating-title { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; border-bottom: 1px solid var(--line); color: var(--ice-bright); font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
.floating-title small { color: #5f7b8c; font-size: .56rem; }
.floating-news nav { display: grid; }
.floating-news a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(134, 217, 244, .09); transition: background .2s, color .2s; }
.floating-news a:last-child { border: 0; }
.floating-news a:hover { background: rgba(53, 164, 207, .12); }
.mini-index { color: #47778e; font: 700 .78rem var(--display); }
.floating-news a > span:last-child { display: grid; min-width: 0; }
.floating-news strong { overflow: hidden; color: #d7e8ef; font-size: .72rem; white-space: nowrap; text-overflow: ellipsis; }
.floating-news small { color: #627c8b; font-size: .58rem; }

.inner-page { padding: 150px 7vw 100px; background: radial-gradient(circle at 15% 40%, rgba(21, 120, 162, .2), transparent 34%), linear-gradient(120deg, #06101a, #071723); }
.inner-panel, .download-panel { width: min(1100px, 100%); min-height: 620px; margin: 0 auto; padding: clamp(30px, 6vw, 75px); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(14, 38, 55, .93), rgba(5, 15, 24, .97)); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.inner-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); gap: clamp(36px, 5vw, 70px); align-items: center; }
.inner-panel > * { min-width: 0; }
.form-intro p { max-width: 470px; color: var(--muted); }
#login-view .form-intro h1 { font-size: clamp(2.8rem, 4.7vw, 4.65rem); line-height: .96; letter-spacing: -.035em; }
.form-intro ul { margin: 30px 0 0; padding: 0; list-style: none; color: #9fb4c0; }
.form-intro li { margin: 10px 0; padding-left: 22px; position: relative; font-size: .88rem; }
.form-intro li::before { content: "✦"; position: absolute; left: 0; color: var(--ice); }
.portal-form { display: grid; justify-self: end; width: 100%; max-width: 400px; gap: 15px; padding: 25px; border: 1px solid rgba(136, 219, 247, .16); background: rgba(4, 14, 23, .56); }
.portal-form label { display: grid; gap: 7px; color: #afc4cf; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.portal-form input:not([type="checkbox"]) { width: 100%; min-height: 48px; padding: 0 14px; color: var(--text); border: 1px solid rgba(143, 217, 242, .18); outline: 0; background: rgba(12, 35, 50, .65); }
.portal-form input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(83, 196, 233, .1); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 50px !important; }
.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; color: #80a9bc; background: transparent; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--ice-bright); outline: 1px solid rgba(123, 220, 249, .35); }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.password-rules { padding: 15px 17px; border: 1px solid rgba(130, 216, 244, .14); background: rgba(10, 31, 45, .5); }
.password-rules > strong { color: #bed1da; font-size: .76rem; }
.password-rules ul { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 15px; margin: 9px 0 0; padding: 0; list-style: none; }
.password-rules li { position: relative; padding-left: 17px; color: #718c9a; font-size: .7rem; }
.password-rules li::before { content: "×"; position: absolute; left: 0; color: #bf7777; font-weight: 800; }
.password-rules li.met { color: #9bcdb9; }
.password-rules li.met::before { content: "✓"; color: #6cdaa9; }
.compact-rules li { color: #9bcdb9; }
.compact-rules li::before { content: "✓"; color: #6cdaa9; }
.credential-security-note { margin: -2px 0 2px; padding: 11px 13px; border-left: 2px solid rgba(120, 220, 255, .65); color: #9eb8c6; background: rgba(9, 31, 45, .56); font-size: .76rem; line-height: 1.55; }
.security-guard-toast { position: fixed; right: 22px; bottom: 22px; z-index: 1000; max-width: min(360px, calc(100vw - 44px)); padding: 13px 16px; border: 1px solid rgba(120, 220, 255, .38); color: var(--ice-bright); background: rgba(4, 17, 27, .96); box-shadow: 0 12px 38px rgba(0, 0, 0, .42), 0 0 22px rgba(58, 183, 229, .13); font-size: .8rem; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.security-guard-toast.visible { opacity: 1; transform: translateY(0); }
.captcha-box { display: grid; gap: 12px; padding: 17px; border: 1px solid rgba(122, 220, 250, .2); background: rgba(4, 17, 27, .72); }
.captcha-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.captcha-heading span { color: var(--ice); font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.captcha-heading small { color: #66808f; font-size: .65rem; }
.captcha-challenge { display: grid; grid-template-columns: 1fr auto; min-height: 58px; border: 1px solid rgba(128, 219, 248, .18); background: repeating-linear-gradient(-22deg, rgba(109, 203, 232, .06) 0 3px, transparent 3px 13px), #081f2e; overflow: hidden; }
.captcha-code { display: grid; place-items: center; color: var(--ice-bright); font: 800 1.65rem var(--display); letter-spacing: .34em; text-shadow: 2px 2px 0 #0c4a68, -2px -1px 0 rgba(255,255,255,.14); transform: skewX(-8deg); user-select: none; }
.captcha-code img { display: block; width: 100%; height: 100%; object-fit: cover; }
.captcha-refresh { width: 55px; border: 0; border-left: 1px solid rgba(128, 219, 248, .18); color: var(--ice); background: rgba(22, 88, 118, .22); cursor: pointer; font-size: 1.45rem; }
.captcha-refresh:hover { background: rgba(34, 123, 159, .3); }
.captcha-verify { width: 100%; min-height: 44px; }
.captcha-message { min-height: 21px; margin: 0; }
.captcha-message.success { color: #73deb0; }
.registration-email-verification { display: grid; gap: 17px; padding: 24px; border: 1px solid rgba(136, 226, 252, .3); background: linear-gradient(145deg, rgba(15, 52, 72, .78), rgba(4, 19, 30, .92)); box-shadow: inset 0 1px 0 rgba(226, 251, 255, .08), 0 16px 38px rgba(0,0,0,.2); }
.registration-email-verification[hidden] { display: none !important; }
#register-form.email-verification-active > :not(#register-email-verification) { display: none !important; }
.registration-email-summary { margin: 0; color: #a9c3cf; font-size: .84rem; line-height: 1.65; }
.registration-email-summary strong { color: var(--ice-bright); overflow-wrap: anywhere; }
.registration-email-actions { display: flex; justify-content: space-between; gap: 18px; }
.registration-email-actions .text-button { font-size: .72rem; }
.primary-button:disabled { color: #657985; background: #273845; box-shadow: none; cursor: not-allowed; transform: none; }
.checkbox-row { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; font-weight: 500 !important; }
.checkbox-row input { accent-color: var(--ice); margin-top: 4px; }
.inline-link { display: inline; padding: 0; border: 0; color: var(--ice-bright); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.full { width: 100%; }
.form-message { min-height: 24px; margin: 4px 0 0; color: #86dff8; font-size: .8rem; }
.form-message.error { color: #ff9d9d; }
.text-button { padding: 3px; border: 0; color: #89b7ca; background: transparent; cursor: pointer; font-size: .78rem; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ice-bright); }
.recovery-button { margin-top: -4px; color: var(--ice-bright); font-weight: 700; }
.download-panel { text-align: center; }
.download-lead { width: min(620px, 100%); margin: 22px auto 44px; color: var(--muted); }
.download-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; width: min(850px, 100%); margin: auto; padding: 26px 30px; text-align: left; border: 1px solid rgba(132, 222, 250, .24); background: rgba(8, 27, 41, .72); }
.download-icon { display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid rgba(126, 219, 247, .35); color: var(--ice); background: #0c2b40; font-size: 2rem; }
.download-card small { color: var(--ice); font-size: .62rem; letter-spacing: .15em; }.download-card h2 { margin: 3px 0; font: 700 1.4rem var(--display); }.download-card p { margin: 0; color: #718a99; font-size: .75rem; }
.file-badge { padding: 9px 12px; border: 1px solid rgba(124, 220, 249, .25); color: var(--ice-bright); background: rgba(44, 143, 181, .1); font-size: .65rem; font-weight: 800; letter-spacing: .09em; white-space: nowrap; }
.mirror-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; width: min(850px, 100%); margin: 18px auto 0; }
.mirror-button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 1px 12px; align-items: center; min-height: 80px; padding: 14px 16px; border: 1px solid var(--line); color: #d6e8ef; background: rgba(7, 25, 38, .72); cursor: pointer; text-align: left; transition: transform .2s, border-color .2s, background .2s; }
.mirror-button:hover { transform: translateY(-2px); border-color: rgba(117, 220, 252, .5); background: rgba(15, 49, 69, .8); }
.mirror-button > span { grid-row: 1 / 3; color: #467f98; font: 700 1.05rem var(--display); }
.mirror-button strong { font-size: .78rem; }.mirror-button small { color: #627e8e; font-size: .58rem; letter-spacing: .1em; }
.requirements { width: min(850px, 100%); margin: 45px auto 0; text-align: left; }
.requirements h3 { font: 700 .95rem var(--display); letter-spacing: .08em; }
.requirements dl { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; border: 1px solid var(--line); }
.requirements dl div { display: flex; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.requirements dl div:nth-child(odd) { border-right: 1px solid var(--line); }.requirements dl div:nth-last-child(-n+2) { border-bottom: 0; }
.requirements dt { color: #78909e; font-size: .73rem; }.requirements dd { margin: 0; color: #c5d6df; font-size: .73rem; }

.compact-panel { min-height: 570px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; width: max-content; }
.account-panel, .legal-panel, .support-panel { width: min(1120px, 100%); margin: 0 auto; padding: clamp(30px, 6vw, 76px); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(14, 38, 55, .95), rgba(5, 15, 24, .98)); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.account-heading { display: flex; align-items: center; gap: 28px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.avatar-mark { display: grid; flex: 0 0 auto; place-items: center; width: 94px; aspect-ratio: 1; border-radius: 50%; background: #07131f; box-shadow: 0 0 28px rgba(85, 202, 240, .24); overflow: hidden; }
.avatar-mark img { width: 100%; height: 100%; object-fit: cover; }
.account-heading .eyebrow { margin-bottom: 7px; }
.account-heading h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
.account-heading p:last-child { margin: 10px 0 0; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.profile-grid article { padding: 25px; border: 1px solid var(--line); background: rgba(7, 25, 38, .62); }
.profile-grid small, .coin-status small { color: var(--ice); font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.profile-grid strong { display: block; margin-top: 12px; color: var(--ice-bright); font: 700 1.5rem var(--display); }
.profile-grid p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.profile-notice, .policy-note { margin-top: 24px; padding: 17px 20px; border-left: 3px solid var(--ice); color: #9cb6c4; background: rgba(40, 139, 175, .08); font-size: .84rem; }
.profile-action-list { display: grid; gap: 12px; margin-top: 32px; }
.profile-action-toggle { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: 100%; min-height: 76px; padding: 14px 18px 14px 22px; border: 1px solid rgba(136, 219, 247, .18); color: #a9c1cc; background: linear-gradient(100deg, rgba(11, 38, 55, .86), rgba(5, 18, 29, .94)); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, box-shadow .2s; }
.profile-action-toggle:hover, .profile-action-toggle.active { border-color: rgba(116, 219, 251, .5); background: linear-gradient(100deg, rgba(18, 58, 79, .9), rgba(6, 24, 37, .96)); box-shadow: 0 0 24px rgba(60, 177, 217, .1); }
.profile-action-toggle > span:first-child { display: grid; gap: 3px; }
.profile-action-toggle small { color: #5f8395; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.profile-action-toggle strong { color: var(--ice-bright); font: 700 1rem var(--display); letter-spacing: .05em; }
.profile-toggle-arrow { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(125, 219, 248, .22); color: var(--ice); background: rgba(25, 91, 118, .18); font-size: 1.15rem; font-weight: 800; }
.password-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 65px); margin-top: 32px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); background: rgba(5, 19, 30, .7); }
.profile-action-panel.password-card { margin-top: 0; }
.profile-action-panel[hidden] { display: none !important; }
.password-heading .eyebrow { margin-bottom: 7px; }
.password-heading h2 { margin: 0 0 15px; color: var(--ice-bright); font: 700 clamp(1.55rem, 3vw, 2.3rem) var(--display); }
.password-heading > p:last-child { margin: 0; color: var(--muted); }
.password-heading > p:first-child { margin-top: 0; color: var(--muted); }
.security-form { display: grid; gap: 16px; align-content: start; }
.security-form label { display: grid; gap: 7px; color: #afc4cf; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.security-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(143, 217, 242, .18); outline: 0; color: var(--text); background: rgba(12, 35, 50, .65); }
.security-form input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(83, 196, 233, .1); }
.security-form input[readonly] { color: #89a4b2; border-color: rgba(143, 217, 242, .12); background: rgba(5, 17, 27, .82); cursor: not-allowed; user-select: none; }
.locked-label { justify-self: end; margin-top: -22px; color: #6f91a1; font-size: .58rem; letter-spacing: .12em; }
.security-form .password-field { width: 100%; }
.security-form .primary-button { width: 100%; }
.security-message { margin-bottom: 0; }
.verification-form { grid-column: 2; padding-top: 22px; border-top: 1px solid var(--line); }
.verification-label { display: flex; align-items: center; gap: 10px; }
.verification-label span { padding: 4px 8px; border: 1px solid rgba(126, 220, 249, .25); color: var(--ice); font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.verification-label strong { color: #c9dce5; font-size: .82rem; }
.email-change-card { margin-top: 0; }
.coin-cost { display: flex; align-items: center; gap: 15px; margin-top: 24px; padding: 16px; border: 1px solid rgba(130, 216, 244, .16); background: rgba(10, 31, 45, .55); }
.small-coin { width: 48px !important; height: 48px !important; font-size: 1.2rem !important; }
.coin-cost div { display: grid; gap: 2px; }
.coin-cost small { color: var(--ice); font-size: .6rem; font-weight: 800; letter-spacing: .13em; }
.coin-cost strong { color: var(--ice-bright); font: 700 .88rem var(--display); }
.coin-cost p { margin: 0 !important; color: #7993a1 !important; font-size: .68rem; }
.balance-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid rgba(132, 222, 250, .18); color: #8da8b6; background: rgba(7, 25, 38, .62); font-size: .75rem; }
.balance-line strong { color: var(--ice-bright); }
.coin-status { display: flex; align-items: center; gap: 24px; width: min(680px, 100%); margin: 0 auto 30px; padding: 28px; border: 1px solid var(--line); background: rgba(7, 25, 38, .62); text-align: left; }
.coin-symbol { display: grid; flex: 0 0 auto; place-items: center; width: 72px; height: 72px; border: 2px solid #8de7ff; border-radius: 50%; color: #04121c; background: linear-gradient(145deg, #e0faff, #49bce6); box-shadow: 0 0 28px rgba(87, 201, 238, .28); font: 800 2rem var(--display); }
.coin-status h2 { margin: 4px 0; font: 700 1.65rem var(--display); }.coin-status p { margin: 0; color: var(--muted); }

.rank-page { padding-top: 130px; }
.rank-panel { width: min(1180px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(13, 38, 55, .96), rgba(4, 14, 23, .99)); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.rank-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.rank-heading .eyebrow { margin-bottom: 8px; }
.rank-heading h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.rank-heading > p { max-width: 420px; margin: 0 0 8px; color: var(--muted); text-align: right; }
.rank-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border: 1px solid rgba(129, 221, 250, .2); background: rgba(4, 16, 26, .72); }
.rank-tab { position: relative; min-height: 62px; padding: 0 20px; border: 0; border-right: 1px solid rgba(129, 221, 250, .14); color: #718d9c; background: transparent; cursor: pointer; font: 700 .86rem var(--display); letter-spacing: .08em; transition: color .2s, background .2s, box-shadow .2s; }
.rank-tab:last-child { border-right: 0; }
.rank-tab:hover { color: var(--ice-bright); background: rgba(45, 146, 184, .08); }
.rank-tab.active { color: #04121c; background: linear-gradient(135deg, #d8f9ff, #55c6ec); box-shadow: 0 0 30px rgba(76, 193, 231, .18); }
.rank-board { margin-top: 18px; border: 1px solid rgba(129, 221, 250, .18); background: rgba(3, 13, 22, .56); }
.rank-board-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding: 0 20px; border-bottom: 1px solid rgba(129, 221, 250, .14); color: #7893a1; font-size: .76rem; }
.rank-board-meta > div { display: flex; align-items: center; gap: 12px; }
.rank-board-meta strong { color: var(--ice-bright); font: 700 .78rem var(--display); letter-spacing: .06em; }
.rank-table-wrap { overflow-x: auto; scrollbar-color: #2e7896 #06121c; }
.rank-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.rank-table th { height: 50px; padding: 0 16px; color: #668594; background: rgba(15, 48, 67, .5); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.rank-table th:first-child, .rank-table td:first-child { width: 74px; text-align: center; }
.rank-table th:nth-child(2), .rank-table td:nth-child(2) { width: 92px; text-align: center; }
.rank-table td { height: 66px; padding: 0 16px; border-top: 1px solid rgba(129, 221, 250, .1); color: #aac0ca; font-size: .84rem; }
.rank-table tbody tr { transition: background .2s; }
.rank-table tbody tr:hover { background: rgba(52, 158, 197, .08); }
.rank-position { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(119, 214, 244, .2); color: #63889a; background: #091d2a; font: 700 .77rem var(--display); }
.rank-table tr.podium-1 .rank-position { color: #271900; border-color: #f4d684; background: linear-gradient(145deg, #fff1ad, #dcae42); box-shadow: 0 0 20px rgba(239, 194, 80, .24); }
.rank-table tr.podium-2 .rank-position { color: #172027; border-color: #cbd9e0; background: linear-gradient(145deg, #f2f8fa, #9eafb8); }
.rank-table tr.podium-3 .rank-position { color: #261308; border-color: #d69d78; background: linear-gradient(145deg, #e7b48f, #a86842); }
.rank-level { color: var(--ice-bright); font: 700 .85rem var(--display); }
.rank-name { color: #eefaff; font-weight: 700; }
.rank-value { color: #86def8; font-weight: 800; }
.clan-badge { display: inline-flex; min-width: 80px; justify-content: center; padding: 5px 9px; border: 1px solid rgba(126, 218, 248, .2); color: #96c7d8; background: rgba(29, 96, 122, .16); font-size: .7rem; font-weight: 700; }
.clan-badge[data-clan="Serpent"] { color: #b9e6cc; border-color: rgba(116, 220, 164, .2); background: rgba(38, 126, 78, .13); }
.clan-badge[data-clan="Tiger"] { color: #edd19c; border-color: rgba(232, 187, 102, .2); background: rgba(138, 91, 28, .13); }
.rank-pagination { display: grid; grid-template-columns: repeat(10, minmax(44px, 1fr)); gap: 8px; margin-top: 20px; }
.rank-page-button { min-height: 44px; border: 1px solid rgba(129, 221, 250, .18); color: #6f8d9d; background: rgba(7, 25, 38, .72); cursor: pointer; font-weight: 800; transition: color .2s, border-color .2s, background .2s; }
.rank-page-button:hover { color: var(--ice-bright); border-color: rgba(129, 221, 250, .5); }
.rank-page-button.active { color: #04121c; border-color: var(--ice); background: var(--ice); box-shadow: 0 0 18px rgba(82, 202, 240, .2); }
.rank-demo-note { margin: 20px 0 0; padding: 15px 18px; border-left: 2px solid rgba(120, 220, 255, .65); color: #7f9ba9; background: rgba(9, 31, 45, .5); font-size: .78rem; }

.legal-page { padding-top: 130px; }
.legal-panel h1 { font-size: clamp(2.5rem, 5.8vw, 5.5rem); }
.legal-intro { max-width: 800px; margin: 25px 0 45px; color: #a9bfca; font-size: 1rem; }
.rule-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: rules; }
.rule-list > li { position: relative; padding: 27px 28px 27px 84px; border: 1px solid var(--line); background: rgba(6, 23, 35, .65); counter-increment: rules; }
.rule-list > li::before { content: counter(rules, decimal-leading-zero); position: absolute; top: 24px; left: 24px; color: #3f839e; font: 700 1.2rem var(--display); }
.rule-list h2, .policy-grid h2, .copyright-box h2 { margin: 0 0 14px; color: var(--ice-bright); font: 700 1.05rem/1.45 var(--display); }
.rule-list p { margin: 7px 0; color: #a8bec9; }
.rule-list p + p { color: #d4e2e8; }
.sanction { margin-top: 15px; padding: 13px 15px; border-left: 2px solid #f0c67f; color: #c9d5da; background: rgba(224, 174, 87, .07); font-size: .88rem; }
.sanction > span { display: block; }
.sanction strong { color: #f0c67f; }
.acceptance-note { margin-top: 25px; padding: 24px; border: 1px solid rgba(112, 222, 255, .32); color: #c6dbe4; background: linear-gradient(90deg, rgba(33, 128, 165, .15), rgba(7, 24, 36, .38)); text-align: center; }
.acceptance-note strong { color: var(--ice-bright); }
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.policy-grid section { position: relative; min-height: 235px; padding: 26px; border: 1px solid var(--line); background: rgba(6, 23, 35, .65); overflow: hidden; }
.policy-grid section > span { position: absolute; right: 17px; top: 7px; color: rgba(164, 231, 252, .08); font: 800 3.7rem var(--display); }
.policy-grid h2 { position: relative; padding-right: 45px; }.policy-grid p, .copyright-box p { position: relative; margin: 0; color: #a7bdc8; }
.copyright-box { margin-top: 20px; padding: 27px 29px; border: 1px solid rgba(238, 195, 111, .28); background: rgba(173, 121, 39, .07); }
.copyright-box h2 { color: #f1cf8f; }

.support-panel { min-height: 610px; text-align: center; }
.support-panel > p:not(.eyebrow):not(.support-url) { max-width: 680px; margin: 25px auto 40px; color: var(--muted); font-size: 1rem; }
.support-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0 auto 36px; }
.support-steps > div { padding: 28px 20px; border: 1px solid var(--line); background: rgba(6, 23, 35, .62); }
.support-steps span { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 17px; border: 1px solid rgba(122, 220, 250, .36); color: var(--ice); font: 700 .9rem var(--display); }
.support-steps strong { color: var(--ice-bright); font: 700 .92rem var(--display); }.support-steps p { margin: 9px 0 0; color: var(--muted); font-size: .82rem; }
.discord-button { margin: 0 auto; }
.support-url { margin: 15px 0 0; color: #6f8b9a; font-size: .8rem; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px clamp(24px, 6vw, 90px); border-top: 1px solid var(--line); background: #03090f; color: #526a78; font-size: .68rem; }
.footer-brand { transform: scale(.8); transform-origin: left center; }
footer > div { display: flex; gap: 20px; }
.footer-links button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: inherit; }
.footer-links button:hover { color: var(--ice); }

@media (max-width: 1180px) {
  .announcements-section { padding-right: 0; }
  .floating-news { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; gap: 20px; padding-inline: 24px; }
  .header-tools { gap: 0; }
  .server-status { display: none; }
  .main-nav { justify-self: end; }
  .nav-link { min-width: auto; padding-inline: 13px; }
}
@media (max-width: 980px) {
  .inner-panel { grid-template-columns: 1fr; max-width: 760px; gap: 34px; }
  .portal-form { justify-self: center; max-width: 440px; }
  .form-intro { width: min(560px, 100%); margin-inline: auto; text-align: center; }
  .form-intro p { margin-inline: auto; }
  .form-intro ul { display: inline-grid; text-align: left; }
}
@media (max-width: 840px) {
  .site-header { height: 118px; grid-template-columns: 1fr; grid-template-rows: 54px 64px; gap: 0; padding: 0; }
  .site-header .brand { justify-self: center; align-self: end; }
  .header-tools { position: absolute; top: 12px; right: 12px; }
  .language-switch > span { display: none; }
  .site-header .brand strong, .site-header .brand em { display: block; }
  .main-nav { width: 100%; justify-self: stretch; justify-content: flex-start; overflow-x: auto; padding: 0 10px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; min-width: max-content; padding-inline: 16px; font-size: .7rem; }
  .hero { min-height: 800px; padding: 165px 24px 70px; align-items: end; }
  .hero::before { background: linear-gradient(0deg, #050b12 4%, rgba(5, 16, 27, .74) 64%, rgba(5, 16, 27, .18)); }
  .hero-art { background-position: 62% center; opacity: .8; }
  .announcement-grid, .announcement-card.featured { display: grid; grid-template-columns: 1fr; }
  .announcement-card.featured { grid-column: auto; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .inner-page h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .inner-page { padding-top: 150px; }
  .download-card { grid-template-columns: auto 1fr; }
  .file-badge { grid-column: 1 / -1; text-align: center; }
  .mirror-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid, .policy-grid, .support-steps { grid-template-columns: 1fr; }
  .password-card { grid-template-columns: 1fr; }
  .verification-form { grid-column: 1; }
  .policy-grid section { min-height: auto; }
  .rank-heading { align-items: start; flex-direction: column; }
  .rank-heading > p { text-align: left; }
  footer { flex-direction: column; text-align: center; } .footer-brand { transform-origin: center; } footer > div { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 560px) {
  .nav-link { padding: 0 13px; font-size: .67rem; }
  .brand-mark { width: 39px; }
  .hero h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .hero-copy { font-size: .9rem; }
  .hero-actions { display: grid; }
  .world-stats div { min-width: 0; flex: 1; padding: 4px 12px; }
  .world-stats dt { font-size: 1rem; }.world-stats dd { font-size: .5rem; }
  .announcements-section { width: min(100% - 28px, 1180px); }
  .announcement-body, .featured .announcement-body { padding: 24px 20px; }
  .inner-page { padding: 145px 14px 60px; }
  .inner-panel, .download-panel { padding: 28px 18px; }
  .portal-form { max-width: 100%; padding: 22px 16px; }
  .password-rules ul { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; text-align: center; }.download-icon { margin: auto; }
  .mirror-grid { grid-template-columns: 1fr; }
  .requirements dl { grid-template-columns: 1fr; }.requirements dl div, .requirements dl div:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }.requirements dl div:last-child { border-bottom: 0; }
  .account-heading, .coin-status { align-items: flex-start; flex-direction: column; }
  .avatar-mark { width: 74px; }
  .rank-page { padding-top: 145px; }
  .rank-panel { padding: 26px 14px; }
  .rank-tabs { grid-template-columns: 1fr; }
  .rank-tab { min-height: 48px; border-right: 0; border-bottom: 1px solid rgba(129, 221, 250, .14); }
  .rank-tab:last-child { border-bottom: 0; }
  .rank-board-meta { align-items: flex-start; flex-direction: column; gap: 6px; padding: 13px 15px; }
  .rank-pagination { grid-template-columns: repeat(5, 1fr); }
  .rule-list > li { padding: 66px 19px 22px; }
  .rule-list > li::before { top: 20px; left: 19px; }
  .legal-panel h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); line-height: 1.05; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .snow::before, .snow::after, .brand-mark { animation: none !important; } * { transition: none !important; } }
