:root {
  color-scheme: dark;
  --background: #080e1a;
  --card: #111b2c;
  --card-deep: #0d1626;
  --line: rgba(205,218,236,.115);
  --line-strong: rgba(212,181,120,.26);
  --gold: #e1b976;
  --gold-light: #f0cf94;
  --text: #f0f2f7;
  --muted: #94a4ba;
  --green: #7bd4b1;
  --danger: #ef9b91;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; min-height:100vh; font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif; background: var(--background); color:var(--text); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.5; }
h1,h2,h3,p { margin-top:0; }
h1 { letter-spacing:-.055em; }
p { line-height:1.7; }
code,pre { font-family: "SFMono-Regular",Consolas,Monaco,monospace; }
:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ambient { position:absolute; pointer-events:none; z-index:-1; filter:blur(20px); }
.ambient-a { width:min(65vw,880px); height:800px; top:-390px; left:-100px; background:radial-gradient(ellipse,rgba(32,70,109,.23),transparent 72%); }
.ambient-b { width:750px; height:700px; top:210px; right:-350px; background:radial-gradient(ellipse,rgba(135,89,40,.09),transparent 73%); }
.shell { max-width:1180px; margin:0 auto; padding-left:30px; padding-right:30px; }
.site-header { position:relative; z-index:5; border-bottom:1px solid var(--line); background:rgba(9,15,26,.89); backdrop-filter: blur(16px); }
.nav-wrap { min-height:90px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.brand { display:inline-flex; align-items:center; gap:14px; }
.brand-mark { width:45px; height:45px; display:grid; place-items:center; border:1px solid rgba(232,183,111,.55); border-radius:13px; color:var(--gold-light); font:bold 25px Georgia,serif; position:relative; box-shadow:inset 0 0 16px rgba(234,177,95,.08); }
.brand-mark span { position:absolute; right:6px; top:2px; font:12px sans-serif; }
.brand-copy { display:flex; flex-direction:column; gap:3px; }
.brand-copy strong { color:#f5ead9; font-size:17px; letter-spacing:.16em; }
.brand-copy small { font-size:9px; letter-spacing:.20em; color:var(--muted); }
.site-header nav { display:flex; align-items:center; gap:30px; }
.nav-link { font-size:14px; font-weight:600; color:#aab7c8; padding:12px 0; transition:color .2s; }
.nav-link:hover,.nav-link.active { color:var(--gold-light); }
.content { min-height:calc(100vh - 180px); }
.site-footer { border-top:1px solid var(--line); margin-top:80px; color:#8091a9; }
.footer-row { display:flex; gap:20px; flex-wrap:wrap; justify-content:space-between; padding-top:30px; padding-bottom:30px; font-size:11px; letter-spacing:.09em; }
.muted { color:var(--muted); }
.overline { margin-bottom:13px; color:var(--gold); font-size:11px; letter-spacing:.19em; font-weight:750; }
.separator { color:#53647b; margin:0 12px; }
.tiny-star { color:var(--gold); margin-right:7px; }
.btn { display:inline-flex; justify-content:center; align-items:center; gap:20px; padding:16px 24px; min-height:53px; border-radius:9px; border:1px solid transparent; font-weight:750; font-size:14px; transition:all .2s ease; }
.btn-primary { color:#172333; background:linear-gradient(125deg,#e7bb7d,#efd39f); box-shadow:0 9px 35px rgba(198,142,66,.15); }
.btn-primary:hover { background:linear-gradient(125deg,#f1cb90,#f8ddb0); transform:translateY(-1px); box-shadow:0 12px 38px rgba(198,142,66,.2); }
.btn-outline { background:rgba(26,37,55,.65); border-color:rgba(227,194,139,.29); color:var(--text); }
.btn-outline:hover { border-color:var(--gold); background:rgba(30,42,60,.85); }
.btn-full { width:100%; }
.panel { background:linear-gradient(160deg,rgba(23,36,57,.97),rgba(14,24,40,.98)); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 16px 50px rgba(0,0,0,.14); }
.hero { min-height:510px; position:relative; display:flex; flex-direction:column; justify-content:center; padding:76px 0 55px; isolation:isolate; }
.hero > *:not(.hero-ornament) { position:relative; z-index:2; }
.eyebrow { font-size:11px; font-weight:750; letter-spacing:.22em; color:#b8c7d6; margin-bottom:28px; }
.hero h1 { font-size:clamp(45px,5.5vw,78px); line-height:1.23; margin-bottom:25px; font-weight:750; }
.hero h1 em, .intro-aside h1 em, .admin-heading h1 em { font-style:normal; background:linear-gradient(120deg,#e5b575,#f5d7a7); background-clip:text; -webkit-text-fill-color:transparent; }
.hero-sub { font-size:15px; line-height:1.9; color:#aebbd0; max-width:650px; margin-bottom:32px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.hero-ornament { position:absolute; right:3%; top:32px; width:385px; height:420px; opacity:.7; z-index:0; }
.orb { width:100%; aspect-ratio:1; border:1px solid rgba(211,165,90,.24); border-radius:50%; display:grid; place-items:center; background:radial-gradient(circle,rgba(182,127,57,.12),rgba(14,27,44,.07) 35%,transparent 63%); box-shadow:inset 0 0 55px rgba(212,169,87,.08),0 0 115px rgba(38,73,109,.18); position:relative; }
.orb:before,.orb:after { content:""; position:absolute; inset:28px; border:1px dashed rgba(211,170,102,.23); border-radius:50%; transform:rotate(25deg); }
.orb:after { inset:72px; border-style:solid; border-color:rgba(211,170,102,.21); transform:rotate(-20deg); }
.orb-core { color:rgba(229,188,119,.43); font: bold 190px Georgia,serif; text-shadow:0 0 60px rgba(243,190,91,.12); }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:15px; margin-bottom:22px; }
.section-head h2,.connect-panel h2 { font-size:25px; margin:0; letter-spacing:-.03em; }
.section-head > p { font-size:12px; margin:0 0 3px; }
.status-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.status-panel { padding:28px; min-height:225px; display:flex; flex-direction:column; }
.status-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.icon-square { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid rgba(223,189,132,.22); border-radius:9px; color:#dfb777; font-size:12px; font-weight:700; }
.chip { display:inline-flex; align-items:center; gap:8px; border-radius:99px; border:1px solid rgba(255,255,255,.11); padding:6px 11px; text-transform:uppercase; letter-spacing:.10em; font-size:10px; font-weight:780; color:#adbbca; background:rgba(255,255,255,.035); white-space:nowrap; }
.chip i { display:inline-block; width:6px; height:6px; border-radius:50%; background:#8b99a9; }
.chip.online { color:#94e1c2; background:rgba(53,136,106,.12); border-color:rgba(65,173,128,.23); }
.chip.online i { background:#83dfad; box-shadow:0 0 9px rgba(131,223,173,.55); }
.chip.offline { color:#f1aba3; }
.chip.offline i { background:#dd7c76; }
.chip.neutral { color:#e7c495; border-color:rgba(232,183,111,.2); }
.status-panel h3 { font-size:19px; font-weight:690; letter-spacing:-.02em; margin-bottom:5px; }
.status-panel > p { color:#8ca0b8; font-size:12px; margin-bottom:auto; }
.status-foot { display:flex; justify-content:space-between; align-items:baseline; border-top:1px solid var(--line); margin-top:22px; padding-top:16px; }
.status-foot span { color:#8191aa; font-size:10px; letter-spacing:.1em; }
.status-foot strong { font-size:16px; color:#dfc9a3; font-weight:740; letter-spacing:.04em; }
.accent-panel { background:linear-gradient(145deg,rgba(38,40,53,.98),rgba(28,31,44,.98)); }
.connect-panel { margin-top:36px; display:flex; align-items:center; gap:32px; justify-content:space-between; border:1px solid var(--line-strong); border-radius:var(--radius); padding:30px 35px; background:linear-gradient(115deg,rgba(36,43,60,.8),rgba(23,33,48,.9)); }
.connect-panel p:last-child { font-size:13px; max-width:520px; margin:13px 0 0; }
.copy-box { display:flex; align-items:center; gap:15px; background:#0a1422; padding:13px 14px 13px 18px; border:1px solid rgba(221,183,117,.21); border-radius:10px; white-space:nowrap; }
.copy-box code { font-size:13px; color:#efd39f; }
.copy-btn { background:#29374c; color:#d6e0ed; border:0; border-radius:6px; padding:8px 13px; font-size:12px; }
.copy-btn:hover { background:#344965; }
.bottom-note { text-align:center; color:#8296af; font-size:13px; padding-top:36px; }
.bottom-note a { color:var(--gold); }
.breadcrumbs { display:flex; align-items:center; gap:10px; font-size:12px; color:#8294aa; padding:30px 0 42px; }
.breadcrumbs strong { color:#d6dfed; font-weight:550; }
.form-layout { display:grid; grid-template-columns:1fr minmax(350px,490px); gap:70px; align-items:start; padding:18px 0 35px; }
.intro-aside { padding-top:26px; }
.intro-aside h1,.login-intro h1 { font-size:clamp(39px,4.3vw,60px); line-height:1.25; margin-bottom:22px; }
.intro-aside > p:not(.overline),.login-intro > p:not(.overline) { color:var(--muted); font-size:15px; max-width:450px; margin-bottom:35px; }
.side-guide { display:flex; gap:15px; padding:22px 0; border-top:1px solid var(--line); max-width:440px; }
.side-guide strong { display:block; color:#e9e5df; font-size:14px; margin-bottom:4px; }
.side-guide p { margin:0; color:var(--muted); font-size:12px; line-height:1.8; }
.side-guide .icon-square { flex:none; }
.form-card { padding:34px 36px; }
.form-card-head { margin-bottom:27px; border-bottom:1px solid var(--line); padding-bottom:23px; }
.form-card h2 { font-size:26px; margin-bottom:8px; letter-spacing:-.035em; }
.form-card-head p:last-child,.login-tip { margin:0; color:var(--muted); font-size:13px; }
form label { display:block; margin:19px 0 9px; color:#dfe6ef; font-size:13px; font-weight:620; }
.req { color:var(--gold); }
form input:not([type=hidden]),form textarea,form select, .search-field,.category-filter { width:100%; border:1px solid rgba(168,187,211,.17); background:#0b1728; color:#f3f4fa; padding:13px 15px; border-radius:8px; outline:0; transition:border-color .15s,box-shadow .15s; }
form input::placeholder,textarea::placeholder,.search-field::placeholder { color:#60758e; }
form input:focus,form textarea:focus,form select:focus,.search-field:focus,.category-filter:focus { border-color:rgba(224,181,115,.7); box-shadow:0 0 0 3px rgba(224,181,115,.09); }
form input:focus-visible,form textarea:focus-visible,.search-field:focus-visible { outline:0; }
form .helper { color:#8495a8; font-size:11px; margin:7px 0 0; }
.form-card form .btn { margin-top:25px; }
.privacy-note { color:#788ba4; font-size:11px; line-height:1.8; margin:16px 0 0; }
.captcha-row { display:flex; gap:13px; }
.captcha-math { flex:1; min-width:130px; display:flex; align-items:center; justify-content:center; border:1px dashed rgba(226,185,126,.35); border-radius:9px; background:#111d2f; color:var(--gold-light); font-family:monospace; font-weight:700; font-size:17px; }
.captcha-row input { width:125px !important; }
.notice { padding:13px 16px; margin-bottom:20px; border-radius:8px; font-size:13px; line-height:1.6; }
.notice.error { background:rgba(147,57,56,.13); border:1px solid rgba(218,99,91,.30); color:#f1b4ad; }
.notice.good { background:rgba(47,136,104,.12); border:1px solid rgba(87,192,145,.28); color:#9be4c3; }
.login-layout { min-height:570px; display:grid; grid-template-columns:1fr minmax(350px,460px); align-items:center; gap:85px; padding:38px 0 30px; }
.login-intro { max-width:480px; }
.admin-emblem { height:75px; width:75px; display:grid; place-items:center; font-size:39px; color:var(--gold); border-radius:21px; border:1px solid var(--line-strong); background:linear-gradient(130deg,#23354d,#172235); margin-bottom:33px; }
.login-intro h1 { font-size:54px; }
.login-card > p.overline { margin-bottom:10px; }
.login-card .btn { margin-top:24px; }
.admin-heading { display:flex; justify-content:space-between; align-items:end; gap:30px; padding:15px 0 34px; }
.admin-heading h1 { font-size:clamp(32px,3.5vw,48px); line-height:1.2; margin-bottom:11px; }
.admin-heading p:last-child { color:#94a4ba; font-size:13px; margin:0; }
.admin-heading-right { display:flex; align-items:center; gap:23px; }
.link-button { color:#b3bfd0; background:none; border:0; padding:8px 0; font-size:13px; }
.link-button:hover { color:var(--gold); }
.console-summary { display:grid; grid-template-columns:1.45fr .7fr 1fr auto; align-items:center; gap:22px; background:linear-gradient(100deg,#202b3d,#152238); border:1px solid var(--line); border-radius:var(--radius); padding:23px 26px; margin-bottom:22px; }
.console-summary > div { display:flex; flex-direction:column; gap:8px; }
.summary-label { font-size:10px; letter-spacing:.12em; color:#97a7ba; }
.console-summary strong { font-size:13px; color:#f3e9d8; }
.small-link { color:var(--gold); border:1px solid var(--line-strong); border-radius:8px; padding:10px 12px; text-align:center; font-size:12px; white-space:nowrap; }
.small-link:hover { background:rgba(224,181,115,.1); }
.admin-layout { display:grid; grid-template-columns:minmax(330px, .92fr) minmax(440px, 1.08fr); gap:22px; align-items:start; }
.catalog-panel { padding:26px; }
.catalog-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.catalog-header h2,.execute-panel h2 { font-size:23px; letter-spacing:-.03em; margin:0; }
.count-pill { padding:7px 12px; color:var(--gold); border:1px solid var(--line-strong); border-radius:7px; font-size:13px; }
.search-field { margin-bottom:10px; }
.category-filter { margin-bottom:14px; font-size:13px; }
.command-list { display:flex; flex-direction:column; gap:7px; max-height:620px; overflow:auto; padding-right:3px; scrollbar-width:thin; }
.command-card { text-align:left; border:1px solid rgba(193,211,233,.1); background:#101d31; border-radius:8px; display:flex; flex-direction:column; gap:5px; padding:16px; color:inherit; width:100%; transition:all .16s; }
.command-card:hover,.command-card.selected { background:#1c304a; border-color:rgba(221,184,126,.45); }
.command-title { color:#f0d09b; font-family:Consolas,Monaco,monospace; font-size:13px; font-weight:730; }
.command-meta { color:#a1b2c7; font-size:11px; }
.command-description { color:#71859b; line-height:1.5; font-size:11px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.risk-dot { display:inline-grid; place-items:center; height:16px; width:16px; margin-left:7px; border-radius:4px; background:rgba(194,83,74,.15); color:#f4a49d; border:1px solid rgba(194,83,74,.3); font-family:sans-serif; font-size:10px; }
.catalog-empty { font-size:12px; color:var(--muted); text-align:center; padding:20px 8px; }
.console-column { display:flex; flex-direction:column; gap:19px; }
.execute-panel { padding:28px; }
.execute-panel > p.muted { font-size:13px; margin:12px 0 20px; }
.execute-panel label { margin-top:18px; }
.execute-panel textarea { min-height:100px; resize:vertical; font-family:Consolas,Monaco,monospace; font-size:13px; line-height:1.7; }
.command-hint { display:flex; gap:12px; padding:14px; color:#98aac1; font-size:11px; background:rgba(76,110,148,.12); border-radius:8px; margin-top:14px; line-height:1.7; }
.command-hint.warning { color:#efc1a4; background:rgba(153,84,57,.14); }
.hint-icon { display:inline-grid; place-items:center; width:20px; height:20px; border:1px solid rgba(170,191,216,.24); border-radius:50%; flex:none; }
.danger-details { border:1px solid rgba(219,159,116,.20); border-radius:9px; padding:15px 16px; margin-top:14px; background:rgba(97,63,57,.08); }
.danger-details summary { cursor:pointer; font-size:12px; color:#dfbba0; font-weight:750; }
.danger-details p { font-size:11px; color:#a99295; margin:13px 0 0; }
.danger-details label { font-size:11px; }
.execute-panel button.btn { margin-top:17px; }
.output-panel { padding:25px 28px; }
.output-heading { display:flex; justify-content:space-between; align-items:center; }
.terminal-dot { width:7px; height:7px; background:#78d7b1; border-radius:50%; }
.terminal-placeholder { min-height:120px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; }
.terminal-placeholder p { color:#a4b4c8; font-size:12px; margin:5px 0; }
.terminal-placeholder small { color:#687c93; font-size:11px; }
.terminal-chevron { font:26px monospace; color:#99b6cf; }
.terminal-output { white-space:pre-wrap; word-break:break-word; max-height:430px; overflow:auto; color:#cde0d6; background:#091323; border:1px solid var(--line); padding:18px; border-radius:8px; font-size:12px; line-height:1.7; }
.admin-security-note { display:flex; gap:12px; align-items:flex-start; padding:0 8px; color:#7e91aa; }
.admin-security-note > span { margin-top:1px; }
.admin-security-note strong { font-size:12px; font-weight:650; color:#b4c2d4; }
.admin-security-note p { font-size:11px; margin:5px 0 0; }
.error-page { text-align:center; padding:110px 20px 85px; max-width:600px; margin:0 auto; }
.error-page h1 { font-size:42px; }
.error-page p:not(.overline) { color:var(--muted); margin-bottom:26px; }
@media (max-width:1000px) {
  .hero-ornament { right:0; opacity:.34; }
  .form-layout,.login-layout { gap:32px; }
  .admin-layout { grid-template-columns:minmax(290px,1fr) minmax(370px,1fr); gap:16px; }
  .console-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* Home live player counter */
.player-count-panel { border-color:rgba(84,188,139,.22); }
.player-count-value { font-size:24px !important; color:#99e2b8 !important; font-variant-numeric:tabular-nums; }
@media (max-width:1050px) {
  .status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .shell { padding-left:18px; padding-right:18px; }
  .nav-wrap { min-height:78px; }
  .site-header nav { gap:14px; }
  .nav-link { font-size:12px; }
  .brand-copy strong { font-size:14px; }
  .brand-copy small { font-size:8px; }
  .brand-mark { width:39px; height:39px; font-size:22px; }
  .hero { min-height:490px; padding:70px 0 40px; }
  .hero-ornament { width:290px; height:340px; right:-50px; top:45px; opacity:.22; }
  .hero h1 { font-size:clamp(41px,9vw,64px); }
  .hero-sub br { display:none; }
  .status-grid { grid-template-columns:1fr; }
  .status-panel { min-height:185px; }
  .connect-panel { flex-direction:column; align-items:flex-start; padding:23px; }
  .copy-box { width:100%; justify-content:space-between; white-space:normal; }
  .copy-box code { overflow-wrap:anywhere; }
  .form-layout,.login-layout,.admin-layout { grid-template-columns:1fr; gap:25px; }
  .form-layout { padding-top:0; }
  .intro-aside { padding-top:0; }
  .intro-aside > p:not(.overline) { margin-bottom:22px; }
  .login-layout { padding-top:65px; }
  .login-intro h1 { font-size:43px; }
  .form-card { padding:25px 23px; }
  .admin-heading { align-items:flex-start; flex-direction:column; }
  .admin-heading-right { width:100%; justify-content:space-between; }
  .console-summary { grid-template-columns:repeat(2,minmax(0,1fr)); padding:22px; }
  .catalog-panel,.execute-panel,.output-panel { padding:22px; }
  .command-list { max-height:400px; }
  .footer-row { justify-content:center; text-align:center; }
}
@media (max-width:400px) {
  .site-header nav { gap:10px; }
  .brand-copy small { display:none; }
  .brand-mark { width:36px; height:36px; }
  .hero-actions .btn { width:100%; }
  .captcha-row { flex-wrap:wrap; }
  .captcha-row > * { min-height:49px; }
}

.site-logout-form{display:inline-flex;align-items:center;margin:0;padding:0;}
.site-logout-button{background:none;border:0;font-size:12px;}
@media(max-width:760px){.site-logout-button{font-size:11px;}}
