:root {
    color-scheme: dark;
    --bg: #0c0d12; --panel: #13141c; --surface: #191a26; --line: #272835;
    --text: #f2f0f9; --muted: #9b9bad; --dim: #797b91; --accent: #ac8cff;
    --accent-soft: #a080ff12; --accent-line: #a080ff2e; --glow: #9270eb18;
    --discord: #5865f2; --discord-hover: #6975ff; --shadow: 0 24px 80px #0003;
}
[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f5fa; --panel: #ffffff; --surface: #f1eff8; --line: #e4e1ee;
    --text: #262236; --muted: #68647b; --dim: #79758b; --accent: #7850d2;
    --accent-soft: #7952d70c; --accent-line: #7952d730; --glow: #9270eb10;
    --discord: #4e5ade; --discord-hover: #424ed0; --shadow: 0 24px 80px #38206009;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; scrollbar-color: #71698355 transparent; scrollbar-width: thin; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; color: var(--text); background: var(--bg); font: 14px/1.7 "Pretendard","Segoe UI","Malgun Gothic",sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -.2px; }
a { color: inherit; text-decoration: none; } button { font: inherit; cursor: pointer; }
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
button,a,summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #a080ff44; }
[hidden] { display: none !important; }
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 10% 30%,var(--glow),transparent 55%),radial-gradient(ellipse at 95% 85%,var(--glow),transparent 45%); }
.ambient::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--accent-line) 1px,transparent 1px),linear-gradient(90deg,var(--accent-line) 1px,transparent 1px); background-size: 80px 80px; opacity: .12; mask-image: linear-gradient(to bottom,#000,transparent 75%); }
.site-header,.site-footer { width: min(1440px,100%); margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 106px; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 41px; flex-shrink: 0; color: #fff; background: linear-gradient(135deg,#b598ff,#7450d4); clip-path: polygon(50% 0,94% 18%,88% 68%,50% 100%,12% 68%,6% 18%); font-size: 23px; font-weight: 800; line-height: 1; }
.brand-name { font-size: 21px; font-weight: 750; letter-spacing: -.7px; line-height: 1.3; }
.brand-caption { display: block; font-size: 8px; letter-spacing: 2.4px; font-weight: 500; color: var(--dim); margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 25px; }
.docs-link { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.docs-link svg { width: 14px; height: 14px; }.docs-link:hover { color: var(--accent); }
.theme-toggle { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); transition: color .2s,border-color .2s; }
.theme-toggle svg { width: 19px; height: 19px; }.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); }
.theme-moon { display: none; }[data-theme="light"] .theme-moon { display: block; }[data-theme="light"] .theme-sun { display: none; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 28px; padding-bottom: 28px; color: var(--dim); font-size: 10px; }
.site-footer>span:last-child { font: 9px/1.7 "Consolas",monospace; letter-spacing: 1.2px; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 2px; font-weight: 600; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; border: 1px solid var(--accent); border-radius: 8px; background: var(--panel); padding: 10px 15px; }.skip-link:focus { top: 16px; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--accent-soft); }

/* Entry screen: an indeterminate transition, not a simulated server check. */
.entry-main { width: 100%; margin: auto; padding: 28px 24px 42px; }
.arrival-card { width: min(510px,100%); margin: auto; padding: 44px 44px 32px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(ellipse at 50% 0%,var(--glow),transparent 65%),var(--panel); box-shadow: var(--shadow); text-align: center; position: relative; animation: settle-in .6s ease both; }
.arrival-card::before { content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: .6; }
.arrival-mark { width: 110px; height: 110px; display: grid; place-items: center; position: relative; margin: 0 auto 26px; }
.arrival-mark::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); box-shadow: 0 0 0 10px var(--accent-soft); }
.arrival-mark .brand-mark { width: 43px; height: 49px; font-size: 28px; }
.arrival-orbit { position: absolute; inset: 0; border: 1px solid transparent; border-top-color: var(--accent-line); border-right-color: var(--accent-line); border-radius: 50%; animation: orbit 5s linear infinite; }
.arrival-orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); left: 17px; top: 12px; box-shadow: 0 0 12px var(--accent); }
.arrival-card .eyebrow { font-size: 9px; margin-bottom: 15px; }
.arrival-card h1 { font-size: clamp(27px,4vw,35px); line-height: 1.45; letter-spacing: -1.3px; font-weight: 650; }.arrival-card h1 span { color: var(--accent); }
.arrival-description { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.transfer-state { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 28px; }
.transfer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }.transfer-heading>span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.transfer-label { font: 8px/1.7 "Consolas",monospace; letter-spacing: .6px; color: var(--dim); }
.transfer-track { height: 3px; margin-top: 14px; background: var(--line); border-radius: 4px; overflow: hidden; }.transfer-track>span { display: block; height: 100%; width: 42%; background: linear-gradient(90deg,transparent,var(--accent),transparent); animation: transfer 1.7s ease-in-out infinite; }
.continue-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; padding: 10px 16px; margin-top: 20px; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 8px; background: var(--accent-soft); transition: border-color .2s,background .2s; }.continue-link svg { width: 16px; height: 16px; }.continue-link:hover { border-color: var(--accent); }
.arrival-hint { font-size: 10px; color: var(--dim); margin-top: 12px; }
.entry-topics { display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--dim); font-size: 10px; margin-top: 24px; }.entry-topics span+span::before { content: "/"; margin-right: 20px; opacity: .45; }

/* Login: member introduction and the existing Discord OAuth action. */
.login-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); align-items: center; gap: clamp(40px,6vw,100px); width: min(1190px,100%); padding: 50px 48px 70px; margin: auto; }
.welcome-panel { min-width: 0; animation: settle-in .65s ease both; }
.welcome-eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent); font-size: 10px; letter-spacing: 2px; margin-bottom: 24px; font-weight: 550; }
.welcome-panel h1 { font-size: clamp(32px,3.7vw,49px); font-weight: 700; letter-spacing: -2px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.welcome-panel h1 span { color: var(--accent); }
.welcome-description { margin-top: 20px; font-size: 14px; color: var(--muted); line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.welcome-features { margin-top: 35px; display: grid; gap: 3px; }
.welcome-feature { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }.welcome-feature:last-child { border-bottom: 0; }
.feature-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; color: var(--accent); }
.feature-icon svg { width: 20px; height: 20px; }
.welcome-feature h2 { font-size: 14px; line-height: 1.6; font-weight: 550; }.welcome-feature p { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.7; }
.feature-index { margin-left: auto; padding-left: 8px; font: 10px/1.5 "Consolas",monospace; color: var(--dim); }
.welcome-signature { display: flex; align-items: center; gap: 12px; color: var(--dim); font: 8px/1.5 "Consolas",monospace; letter-spacing: 1.3px; margin-top: 32px; }.signature-line { display: block; width: 32px; height: 1px; background: var(--accent-line); }
.login-panel { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 30px; background: radial-gradient(ellipse at 85% 0%,var(--glow),transparent 50%),var(--panel); box-shadow: var(--shadow); position: relative; animation: settle-in .65s .08s ease both; scroll-margin-top: 24px; }
.login-panel::before { content: ""; position: absolute; left: 25%; right: 25%; top: -1px; height: 1px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: .5; }
.login-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 38px; }.login-panel-top .eyebrow { font-size: 9px; letter-spacing: 1.7px; }.panel-label { font: 8px/1.5 "Consolas",monospace; color: var(--dim); letter-spacing: 1px; }
.login-emblem { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: #5865f214; border: 1px solid #6875ed33; color: #919bff; margin-bottom: 23px; }.login-emblem .discord-icon { width: 29px; height: 29px; }[data-theme="light"] .login-emblem { color: var(--discord); }
.login-panel h2 { font-size: 25px; letter-spacing: -.8px; line-height: 1.5; font-weight: 650; }.login-description { font-size: 13px; line-height: 1.85; color: var(--muted); margin-top: 10px; }
.discord-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 17px; margin-top: 28px; border-radius: 10px; border: 1px solid #a4abff33; background: var(--discord); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 5px 24px #5865f21f; transition: background .2s,box-shadow .2s,transform .2s; }
.discord-btn>.discord-icon { width: 21px; height: 21px; }.discord-btn:hover { background: var(--discord-hover); box-shadow: 0 8px 24px #5865f234; transform: translateY(-1px); }.discord-btn:active { transform: none; }.discord-btn[aria-disabled="true"] { opacity: .75; cursor: wait; }
.button-arrow { margin-left: auto; }.button-arrow svg { width: 17px; height: 17px; }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid #ffffff44; border-top-color: #fff; border-radius: 50%; margin-left: auto; animation: orbit .9s linear infinite; }.discord-btn.is-loading .button-arrow { display: none; }.discord-btn.is-loading .button-spinner { display: block; }
.login-route-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 13px; color: var(--dim); font-size: 10px; }.login-route-note svg { width: 13px; height: 13px; }
.login-feedback { margin-top: 14px; padding: 11px 13px; color: var(--accent); background: var(--accent-soft); border-radius: 8px; border: 1px solid var(--accent-line); font-size: 11px; }
.login-help { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 12px; }.login-help details+details { border-top: 1px solid var(--line); }
.login-help summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 13px 0; font-size: 12px; color: var(--muted); }.login-help summary::-webkit-details-marker { display: none; }.login-help summary:hover { color: var(--text); }
.summary-plus { width: 12px; height: 12px; position: relative; flex-shrink: 0; }.summary-plus::before,.summary-plus::after { content: ""; position: absolute; top: 5px; left: 1px; width: 10px; height: 1px; background: currentColor; }.summary-plus::after { transform: rotate(90deg); }details[open] .summary-plus::after { transform: none; }
.login-help details[open] summary { color: var(--text); }.login-help p { padding: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.panel-footer { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; }.small-mark { width: 16px; height: 18px; font-size: 10px; opacity: .8; }
.script-required { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.script-required-card { max-width: 490px; width: 100%; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }.script-required-card .brand-mark { margin-bottom: 28px; }.script-required-card .eyebrow { margin-bottom: 12px; }.script-required-card h1 { font-size: clamp(22px,4vw,27px); line-height: 1.5; letter-spacing: -.7px; margin-bottom: 14px; }.script-required-card>p:last-child { color: var(--muted); font-size: 13px; line-height: 1.9; }
@keyframes settle-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes transfer { from { transform: translateX(-110%); } to { transform: translateX(340%); } }
@media (max-width: 1050px) {
    .login-layout { gap: 42px; padding: 38px 32px 50px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .site-header,.site-footer { padding-left: 32px; padding-right: 32px; }.login-panel { padding: 26px; }.welcome-panel h1 { font-size: 36px; }.welcome-description { font-size: 13px; }.feature-index { display: none; }
}
@media (max-width: 780px) {
    .site-header { min-height: 88px; }.login-layout { max-width: 560px; grid-template-columns: minmax(0,1fr); gap: 30px; padding: 22px 24px 36px; }
    .welcome-panel { text-align: center; }.welcome-eyebrow { justify-content: center; margin-bottom: 14px; }.welcome-panel h1 { font-size: clamp(29px,5.5vw,38px); letter-spacing: -1.3px; }.welcome-description { margin-top: 12px; }.welcome-signature { display: none; }
    .welcome-features { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 24px; }.welcome-feature { flex-direction: column; gap: 10px; padding: 14px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }.welcome-feature:last-child { border: 1px solid var(--line); }.welcome-feature h2 { font-size: 10px; word-break: keep-all; }.welcome-feature p { display: none; }.feature-icon { width: 33px; height: 33px; border-radius: 9px; }.feature-icon svg { width: 17px; height: 17px; }
    .login-panel { padding: 28px; }.login-panel-top { margin-bottom: 27px; }
}
@media (max-width: 480px) {
    .site-header,.site-footer { padding-left: 20px; padding-right: 20px; }.site-header { gap: 12px; min-height: 80px; }.brand { gap: 9px; }.brand-mark { width: 30px; height: 35px; font-size: 20px; }.brand-name { font-size: 18px; }.brand-caption { font-size: 7px; letter-spacing: 1.9px; }.header-actions { gap: 13px; }.docs-link { font-size: 10px; gap: 4px; }.docs-link svg { width: 12px; height: 12px; }.theme-toggle { width: 32px; height: 32px; }
    .site-footer { font-size: 9px; padding-top: 20px; padding-bottom: 22px; }.site-footer>span:last-child { font-size: 8px; letter-spacing: .5px; }
    .entry-main { padding: 18px 18px 28px; }.arrival-card { padding: 32px 24px 27px; border-radius: 18px; }.arrival-mark { margin-bottom: 20px; }.arrival-mark .brand-mark { width: 43px; height: 49px; font-size: 28px; }.transfer-label { display: none; }.transfer-heading { justify-content: center; }.arrival-hint { font-size: 10px; }
    .login-layout { padding: 16px 18px 30px; gap: 24px; }.welcome-eyebrow { font-size: 8px; }.welcome-description { font-size: 12px; }.login-panel { padding: 25px 22px; border-radius: 17px; }.login-panel h2 { font-size: 23px; }.panel-label { font-size: 7px; }.login-description { font-size: 12px; }.discord-btn { font-size: 12px; gap: 9px; }.small-mark { width: 16px; height: 18px; font-size: 10px; }
    .script-required-card { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { animation: none !important; transition: none !important; }
    .transfer-track>span { width: 100%; opacity: .6; }
}

/* Shared branding for the member entrance and Discord login. */
:root{--bg:#080d16;--panel:#101a29;--surface:#152338;--line:#25354b;--text:#f6f5ef;--muted:#9daabc;--dim:#8495af;--accent:#edbc6c;--accent-soft:#edbc6c0c;--accent-line:#edbc6c35;--glow:#256bb521}
[data-theme="light"]{--bg:#f8f6f0;--panel:#fffdf8;--surface:#f0eee7;--line:#e1ddd2;--text:#242e40;--muted:#606d7f;--dim:#6a778a;--accent:#95651a;--accent-soft:#ba8e310d;--accent-line:#ba8e3135;--glow:#377cb313}
img.brand-mark{clip-path:none;background:none;object-fit:contain;width:48px;height:48px;filter:drop-shadow(0 3px 10px #edbc6c18)}
.arrival-mark img.brand-mark{width:78px;height:78px;position:relative}.panel-footer img.small-mark{width:24px;height:24px}
.site-header{min-height:100px;border-bottom:1px solid var(--line)}.brand-name{letter-spacing:.3px}.brand-caption{letter-spacing:2px}.ambient{background:radial-gradient(ellipse at 10% 30%,var(--glow),transparent 55%),radial-gradient(ellipse at 90% 80%,var(--accent-soft),transparent 50%)}
.arrival-card,.login-panel{border-radius:8px;box-shadow:0 30px 90px #0002}.arrival-card{border-color:var(--accent-line)}.login-panel{padding:38px;background:linear-gradient(145deg,var(--surface),var(--panel));border-color:var(--accent-line)}.welcome-panel h1{font-size:clamp(36px,4vw,58px);line-height:1.25;letter-spacing:-2px}.welcome-description{margin-top:25px}.welcome-feature{border-radius:5px}.discord-btn,.theme-toggle{border-radius:5px}.site-footer{border-top:1px solid var(--line)}
@media(max-width:600px){img.brand-mark{width:40px;height:40px}.arrival-mark img.brand-mark{width:65px;height:65px}.login-panel{padding:28px 22px}.welcome-panel h1{font-size:36px}}
