/* 크로나피스 홈페이지. 색·글꼴은 런처(Themes/Lapis.xaml)와 맞춘다. CSP 때문에 인라인 style 은 쓰지 않는다. */
:root {
  --bg: #07080d; --card: #0f121b; --card2: #131726; --line: #c99a4533; --line2: #ffffff12;
  --gold: #C99A45; --gold-l: #F4E2A6; --lapis: #2A4FB8; --glow: #4C7BFF;
  --text: #E8DCC0; --muted: #9C9282; --faint: #6C6658; --on: #6FD38A; --off: #E0533D; --warn: #E5A35A;
  --title: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", Batang, serif;
  --body: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
/* 한국어 글꼴은 가나가 없고 한자 모양도 달라, 일본어·대만어 화면은 그 나라 글꼴을 먼저 쓴다. */
:root:lang(ja) {
  --title: "Palatino Linotype", "Book Antiqua", Georgia, "Yu Mincho", "MS PMincho", serif;
  --body: "Segoe UI", "Yu Gothic UI", "Meiryo", "Hiragino Sans", sans-serif;
}
:root:lang(zh-Hant-TW) {
  --title: "Palatino Linotype", "Book Antiqua", Georgia, "PMingLiU", serif;
  --body: "Segoe UI", "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.55; overflow-x: hidden;
  background-image: radial-gradient(900px 500px at 15% -10%, #14204a55, transparent 70%), radial-gradient(700px 400px at 100% 0, #2a1a0844, transparent 70%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.defs { position: absolute; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }

/* ---------- 머리 ---------- */
.util { border-bottom: 1px solid var(--line2); font-size: 12.5px; color: var(--muted); }
.util .wrap { display: flex; justify-content: flex-end; gap: 18px; height: 34px; align-items: center; }
.util a:hover { color: var(--gold-l); }
.util .lang { display: flex; gap: 4px; }
.util .lang button { padding: 1px 7px; border-radius: 3px; color: var(--muted); font-size: 12.5px; }
.util .lang button.on { background: #ffffff14; color: var(--text); }
.util-links { display: flex; gap: 16px; }
header.site { position: sticky; top: 0; z-index: 50; background: #07080de6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; height: 62px; gap: 34px; position: relative; }
.logo { font-family: var(--title); font-weight: 700; letter-spacing: 2px; background: linear-gradient(#FFF3C8, #E9C877 45%, #A97A2E); -webkit-background-clip: text; background-clip: text; color: transparent; }
header .logo { font-size: 24px; }
.logo.small { font-size: 18px; }
nav.main { display: flex; gap: 4px; font-size: 15px; height: 100%; }
nav.main > a, nav.main > .soon { display: flex; align-items: center; padding: 0 14px; color: #d4cab2; border-bottom: 2px solid transparent; height: 100%; }
nav.main > a:hover { color: var(--gold-l); }
nav.main > a.on { color: var(--gold-l); border-color: var(--gold); }
nav.main > .soon { color: var(--faint); cursor: default; }
nav.main small { font-size: 10.5px; color: var(--faint); margin-left: 5px; border: 1px solid #ffffff22; border-radius: 3px; padding: 0 4px; }
.hd-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; place-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 6px; font-size: 14px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; cursor: pointer; }
.btn.gold { color: #2a1a05; background: linear-gradient(#FBE6A8, #D9A94E 48%, #B07D2C 52%, #E0B860); border-color: #FFF0C0; box-shadow: 0 0 0 1px #6E4A1A, 0 0 20px #c99a4540; }
.btn.gold:hover { filter: brightness(1.08); }
.btn.line { border-color: #c99a4566; background: #ffffff06; }
.btn.line:hover { background: #c99a4518; }
.btn.discord { background: #5865F2; color: #fff; }
.btn.white { background: #fff; color: #3a40b8; }
.btn.big { height: 52px; font-size: 16.5px; }
.btn.w { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #2A4FB8, #0E1F5C); border: 1px solid var(--gold); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--gold-l); position: relative; flex: none; text-transform: uppercase; }
.avatar .nb { position: absolute; right: -3px; top: -3px; min-width: 15px; height: 15px; border-radius: 8px; background: #D9453B; color: #fff; font-size: 10px; display: grid; place-items: center; border: 2px solid var(--bg); padding: 0 2px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on); box-shadow: 0 0 8px var(--on); display: inline-block; margin-right: 7px; }
.dot.off { background: var(--off); box-shadow: 0 0 8px var(--off); }
.dot.unknown { background: var(--faint); box-shadow: none; }
.cat { font-size: 11.5px; padding: 0 7px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; display: inline-block; line-height: 1.6; }
.c-1 { color: #E9C877; } .c-2 { color: #7FA2FF; } .c-3 { color: #E58FB4; }
.k-1 { color: #8FD3C0; } .k-2 { color: #E9C877; } .k-3 { color: #E58FB4; }
.new { font-size: 10px; font-weight: 700; color: #fff; background: #D9453B; border-radius: 3px; padding: 0 4px; line-height: 1.5; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line2); border-radius: 10px; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ch h3 { font-family: var(--title); font-size: 19px; color: var(--gold-l); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ch a { font-size: 13px; color: var(--muted); }
.ch a:hover { color: var(--gold-l); }
.gem { width: 9px; height: 14px; background: linear-gradient(135deg, #7FA2FF, #2A4FB8 50%, #0E1F5C); clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%); filter: drop-shadow(0 0 5px #4c7bff); display: inline-block; }
.empty { color: var(--faint); font-size: 14px; padding: 18px 4px; text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------- 포털 2단 ---------- */
.portal { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 18px; margin-top: 22px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 14px; }
.side .card { padding: 18px; }
.side h4 { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 10px; letter-spacing: .5px; }
.dl { background: radial-gradient(120% 80% at 50% 0%, #22357e, #0f121b 70%) !important; border-color: var(--line) !important; text-align: center; position: relative; overflow: hidden; }
.dl::before { content: ""; position: absolute; inset: 6px; border: 1px solid #c99a4522; border-radius: 7px; pointer-events: none; }
.dl .logo { font-size: 30px; }
.dl .sub { font-family: var(--title); letter-spacing: 4px; font-size: 10.5px; color: #AFC3F0; margin-top: 2px; }
.dl .btn { margin-top: 18px; }
.dl .dl-client { display: block; margin-top: 10px; font-size: 13px; color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; }
.client-hint { margin-top: 14px; font-size: 13px; }
.dl small { display: block; font-size: 12px; color: var(--faint); margin-top: 8px; }
.kv { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 5px 0; gap: 10px; }
.kv span:first-child { color: var(--muted); }
.kv + .kv { border-top: 1px dashed #ffffff10; }
.inp { width: 100%; height: 42px; border-radius: 6px; background: #0a0c12; border: 1px solid #ffffff22; padding: 0 12px; outline: none; }
.inp:focus { border-color: var(--gold); }
.inp + .inp { margin-top: 8px; }
.side form .btn { margin-top: 10px; }
.side-links { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 10px; color: var(--muted); }
.form-error { color: #F09A8A; font-size: 13px; margin-top: 8px; }
.captcha { min-height: 65px; }
.signup-form { max-width: 520px; }
.acct { display: flex; align-items: center; gap: 10px; }
.acct b { font-size: 15px; display: block; }
.acct small { font-size: 12px; color: var(--faint); }
.acct .out { margin-left: auto; font-size: 12px; color: var(--muted); }
.chars { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 10px; }
.charrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: #ffffff06; font-size: 13.5px; }
.charrow small { color: var(--faint); margin-left: auto; }
.jobic { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.job-1 { background: #7a2e2e55; color: #F0A0A0; } .job-2 { background: #2e5a7a55; color: #A0D0F0; }
.job-3 { background: #5a2e7a55; color: #D0A0F0; } .job-4 { background: #2e7a4455; color: #A0F0B8; }
.alert { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 6px; background: #2A4FB822; border: 1px solid #4c7bff44; font-size: 13px; }
.alert svg { color: #9FB8FF; }

/* ---------- 배너 ---------- */
.banner { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 8.2; min-height: 300px; border: 1px solid var(--line); background: #0b0d14; }
.banner .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .9s, transform 6s linear; transform: scale(1.04); }
.banner .slide.on { opacity: 1; transform: scale(1); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000e 0%, #0000 55%), linear-gradient(90deg, #000b, #0000 55%); pointer-events: none; }
.banner .txt { position: absolute; left: 34px; bottom: 62px; right: 34px; z-index: 2; max-width: 600px; }
.banner h2 { font-family: var(--title); font-size: clamp(26px, 3.6vw, 42px); margin: 10px 0 6px; line-height: 1.15; text-shadow: 0 2px 14px #000; }
.banner p { color: #ddd2b9; text-shadow: 0 1px 6px #000; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner .more { margin-top: 16px; }
.banner .nav { position: absolute; right: 18px; bottom: 20px; z-index: 3; display: flex; gap: 6px; }
.banner .nav button { width: 36px; height: 36px; border-radius: 50%; background: #0009; border: 1px solid #ffffff30; display: grid; place-items: center; }
.banner .nav button:hover { border-color: var(--gold); }
.banner .dots { position: absolute; left: 34px; bottom: 26px; z-index: 3; display: flex; gap: 8px; }
.banner .dots button { width: 34px; height: 3px; border-radius: 2px; background: #ffffff35; overflow: hidden; position: relative; padding: 0; }
.banner .dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--gold-l); transform-origin: left; animation: fill 6s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .banner .slide { transition: opacity .3s; transform: none !important; } .banner .dots button.on::after { animation: none; } }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line2); }
.quick a:hover { border-color: var(--line); background: #c99a4512; }
.quick a.disabled { opacity: .55; cursor: not-allowed; }
.quick .ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: #c99a4518; color: var(--gold-l); flex: none; }
.quick .ic.dc { background: #5865F233; color: #AEB5FF; }
.quick b { display: block; font-size: 14.5px; }
.quick small { display: block; color: var(--faint); font-size: 12px; }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.grid2 > .card { padding: 18px 18px 10px; }
.nrow { display: flex; align-items: center; gap: 9px; padding: 10px 4px; font-size: 14.5px; border-top: 1px solid #ffffff0a; }
.nrow:first-of-type { border-top: 0; }
.nrow:hover .t { color: var(--gold-l); }
.nrow .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nrow .d { font-size: 12.5px; color: var(--faint); }
.ev { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #ffffff0a; }
.ev:first-of-type { border-top: 0; }
.ev i { width: 92px; height: 54px; border-radius: 6px; background-size: cover; background-position: center; flex: none; border: 1px solid #ffffff18; }
.ev div { min-width: 0; flex: 1; }
.ev b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev small { color: var(--faint); font-size: 12.5px; }
.ev:hover b { color: var(--gold-l); }

.strip { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.help, .discordcard { padding: 22px; position: relative; overflow: hidden; }
.help::before { content: ""; position: absolute; inset: 0; background: url(/img/scenes/scene_013.jpg) 70% 50% / cover; opacity: .22; }
.help > *, .discordcard > * { position: relative; }
.help p { color: #cfc6b2; font-size: 14px; max-width: 420px; }
.help .btn, .discordcard .btn { margin-top: 16px; }
.discordcard { background: linear-gradient(135deg, #2b2f7a, #141633) !important; border-color: #5865F255 !important; }
.discordcard h3 { color: #fff; }
.discordcard p { color: #c8ccff; font-size: 14px; }

/* ---------- 하위 페이지 ---------- */
.crumb { font-size: 12.5px; color: var(--faint); margin-bottom: 8px; }
.crumb a:hover { color: var(--gold-l); }
.ph { position: relative; border-radius: 12px; overflow: hidden; padding: 30px 30px 26px; border: 1px solid var(--line); margin-bottom: 14px; }
.ph .bgimg { position: absolute; inset: 0; background-size: cover; background-position: 50% 40%; opacity: .4; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #07080df0 30%, #07080d80); }
.ph > :not(.bgimg) { position: relative; z-index: 1; }
.ph h1 { font-family: var(--title); font-size: 32px; color: var(--gold-l); }
.ph p { color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a, .tabs button { font-size: 13.5px; padding: 6px 14px; border-radius: 16px; color: var(--muted); border: 1px solid var(--line2); }
.tabs .on { color: #1b1206; background: linear-gradient(#F0D58E, #C99A45); border-color: transparent; }
.listcard { padding: 6px 18px; }
.lrow { display: grid; grid-template-columns: 72px minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 14px 4px; border-top: 1px solid #ffffff0a; font-size: 15px; }
.lrow:first-child { border-top: 0; }
.lrow .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .d { color: var(--faint); font-size: 13px; text-align: right; }
.lrow:hover .t { color: var(--gold-l); }
.lrow.pin { background: #c99a450d; margin: 0 -18px; padding-left: 22px; padding-right: 22px; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 16px 0 4px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; font-size: 13.5px; color: var(--muted); border: 1px solid var(--line2); }
.pager .on { color: #1b1206; background: var(--gold-l); border-color: var(--gold-l); }
.article { padding: 30px 34px; }
.article h2 { font-size: 26px; margin: 10px 0 6px; line-height: 1.3; }
.article .meta { color: var(--faint); font-size: 13px; display: flex; gap: 14px; }
.article .hero { width: 100%; border-radius: 8px; margin-top: 22px; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.article .body { color: #d6ccb6; margin-top: 22px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.article .ext { margin-top: 20px; }
.artnav { display: grid; grid-template-columns: 1fr auto 1fr; border-top: 1px solid var(--line2); margin-top: 26px; padding-top: 14px; font-size: 13.5px; color: var(--muted); gap: 12px; }
.artnav a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artnav a:hover { color: var(--gold-l); }
.artnav .r { text-align: right; }

.form { padding: 26px 28px; }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.field em { color: #E58F6A; font-style: normal; margin-left: 3px; }
textarea.inp { height: 170px; padding: 12px; resize: vertical; line-height: 1.6; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { border: 1px solid #ffffff22; border-radius: 8px; padding: 12px 14px; text-align: left; }
.seg b { display: block; font-size: 15px; }
.seg small { color: var(--faint); font-size: 12px; }
.seg .on { border-color: var(--gold); background: #c99a4518; }
.seg .on b { color: var(--gold-l); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.extra { border-left: 2px solid var(--gold); padding-left: 14px; margin: -2px 0 18px; }
.extra .hint { font-size: 12.5px; color: var(--faint); margin-top: -6px; }
.drop { border: 1px dashed #c99a4580; border-radius: 8px; padding: 18px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.drop.over { background: #c99a4514; }
.drop u { color: var(--gold-l); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs .th { width: 76px; height: 48px; border-radius: 5px; background-size: cover; background-position: center; border: 1px solid #ffffff22; position: relative; display: block; }
.thumbs .th button { position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #222; font-size: 10px; display: grid; place-items: center; color: #ccc; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-foot span { font-size: 12.5px; color: var(--faint); }
.needlogin { padding: 30px; text-align: center; }
.needlogin p { color: var(--muted); margin-bottom: 16px; }

.st { font-size: 12px; padding: 2px 10px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.st-1 { background: #ffffff14; color: #cfc6b2; }
.st-2 { background: #2A4FB840; color: #9FB8FF; }
.st-3 { background: #6FD38A26; color: #8FE3A6; }
.st-4 { background: #ffffff08; color: var(--faint); }
.tk { display: grid; grid-template-columns: 84px minmax(0, 1fr) 100px 90px; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line2); font-size: 14.5px; cursor: pointer; width: 100%; text-align: left; }
.tk:hover { background: #ffffff05; }
.tk.head { color: var(--faint); font-size: 12.5px; padding-top: 11px; padding-bottom: 11px; border-top: 0; cursor: default; }
.tk.head:hover { background: none; }
.tk.open { background: #c99a4510; }
.tk .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk .d { color: var(--faint); font-size: 13px; }
.tk .s { text-align: right; }
.thread { padding: 4px 18px 20px; background: #0a0c14; border-top: 1px solid var(--line2); }
.steps { display: flex; margin: 14px 0 4px; font-size: 12px; color: var(--faint); }
.steps span { flex: 1; text-align: center; padding-top: 8px; border-top: 3px solid #ffffff15; }
.steps span.done { border-color: var(--gold); color: var(--gold-l); }
.msg { border-radius: 8px; padding: 14px 16px; margin-top: 12px; font-size: 14.5px; }
.msg .who { font-size: 12.5px; color: var(--faint); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.msg .text { white-space: pre-wrap; word-break: break-word; }
.msg.me { background: #ffffff08; border: 1px solid var(--line2); }
.msg.gm { background: linear-gradient(135deg, #1b2a6655, #10131d); border: 1px solid #4c7bff55; }
.msg.gm .who b { color: #9FB8FF; }
.reply { margin-top: 12px; }
.reply textarea.inp { height: 90px; }
.reply .form-foot { margin-top: 8px; }
.closed-note { margin-top: 12px; font-size: 13px; color: var(--faint); }

/* 문의 관리(담당자) */
.staff-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.staff-bar select.inp { width: 160px; }
.staff-bar input.inp { width: 240px; flex: 1; min-width: 160px; }
.staff-bar .faint { font-size: 13px; }
.tk.staff .t small { display: block; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk.unread .t { font-weight: 700; }
.alert.staff { margin-top: 8px; background: #c99a4518; border-color: #c99a4555; }
.alert.staff svg { color: var(--gold-l); }
.status-pick { width: 150px; }

/* 공지 관리(담당자 role 3) */
.tabs .btn.write { margin-left: auto; height: 34px; padding: 0 16px; border-radius: 6px; color: #2a1a05; }
.staff-actions { display: flex; gap: 8px; margin-top: 20px; }
textarea.inp.tall { height: 280px; }
.hint { font-size: 12.5px; margin-top: 6px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pick button { width: 96px; height: 56px; border-radius: 6px; border: 2px solid #ffffff1a; background-size: cover; background-position: center; font-size: 12.5px; color: var(--muted); }
.pick .pick-none, .pick .pick-up { background: #0a0c12; }
.pick .pick-up { color: var(--gold-l); border-style: dashed; border-color: #c99a4580; }
.pick button.on { border-color: var(--gold-l); box-shadow: 0 0 0 1px var(--gold), 0 0 12px #c99a4560; }
.pick-preview { margin-top: 10px; aspect-ratio: 16 / 7; max-width: 520px; border-radius: 8px; border: 1px solid var(--line2); background-size: cover; background-position: center; display: grid; place-items: end start; padding: 10px 12px; font-size: 12.5px; position: relative; opacity: .55; }
.pick-preview.has { opacity: 1; }
.pick-preview span { background: #000a; padding: 2px 8px; border-radius: 4px; }
.checks { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 20px; font-size: 14px; }
.checks input { accent-color: var(--gold); margin-right: 6px; }
.foot-btns { display: flex; gap: 8px; }
.lrow.staffn .t small { margin-left: 6px; font-size: 12px; }
.lrow .st { margin-left: 4px; font-size: 11px; }
/* 사이트 설정(담당자 권한 4) */
.form-h { font-family: var(--title); font-size: 19px; color: var(--gold-l); margin-bottom: 16px; }
#inst-card { margin-top: 14px; }
#inst-card .kv { max-width: 560px; }
.up-field { margin-top: 16px; }
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.check-line input { accent-color: var(--gold); }
.up-bar { margin-top: 10px; height: 6px; border-radius: 3px; background: #ffffff14; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; transition: width .2s; background: linear-gradient(90deg, #B07D2C, #F4E2A6); }
.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; }
.warn-t { color: var(--warn); }
a.link { color: var(--gold-l); text-decoration: underline; }
.lang-tag { display: inline-block; margin-left: 4px; font-size: 10.5px; padding: 0 5px; border-radius: 3px; border: 1px solid #ffffff26; color: var(--muted); line-height: 1.6; }
/* 공지 편집기 언어 탭: 위쪽 탭 + 아래 칸이 한 덩어리로 보이게 */
.lang-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lang-tabs button { text-align: left; padding: 10px 14px; border: 1px solid #ffffff1f; border-bottom: 0; border-radius: 8px 8px 0 0; background: #0a0c12; }
.lang-tabs b { display: block; font-size: 14.5px; }
.lang-tabs small { color: var(--faint); font-size: 11.5px; }
.lang-tabs .filled small { color: #8FE3A6; }
.lang-tabs .on { background: #c99a4518; border-color: var(--gold); }
.lang-tabs .on b { color: var(--gold-l); }
.lang-pane { border: 1px solid var(--gold); border-radius: 0 0 8px 8px; padding: 16px 16px 2px; margin-bottom: 20px; background: #c99a4508; }
@media (max-width: 640px) { .lang-tabs button { padding: 8px 10px; } .lang-tabs small { font-size: 10.5px; } }

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--gold-l); }
.foot-note { margin-top: 6px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: #2a1514; border: 1px solid #E0533D88; color: #f6d6cf; padding: 10px 18px; border-radius: 8px; font-size: 14px; max-width: calc(100% - 32px); }
#toast.ok { background: #13251a; border-color: #6FD38A88; color: #d2f4dc; }

/* 넓은 화면에서는 오른쪽 다운로드 칸이 늘 보이므로 머리의 다운로드 버튼은 숨긴다(같은 파일이라 겹친다). */
@media (min-width: 1001px) { .hd-right > .btn.gold { display: none; } }
@media (max-width: 1000px) {
  .portal { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side .dl { grid-column: 1 / -1; }
  nav.main { display: none; position: absolute; top: 62px; left: 0; right: 0; height: auto; flex-direction: column; background: #0b0d14f5; border-bottom: 1px solid var(--line); padding: 6px 20px 12px; }
  nav.main.open { display: flex; }
  nav.main > a, nav.main > .soon { height: 44px; border-bottom: 0; padding: 0; }
  .burger { display: grid; }
  .quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .util .wrap { justify-content: space-between; gap: 10px; }
  .util .hide-s { display: none; }
  header.site .wrap { gap: 10px; }
  header .logo { font-size: 20px; }
  .hd-right .btn.gold { height: 36px; padding: 0 12px; font-size: 13px; }
  .hd-right .btn.line { display: none; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .grid2, .strip { grid-template-columns: minmax(0, 1fr); }
  .banner { aspect-ratio: auto; min-height: 360px; }
  .banner .txt { left: 20px; right: 20px; bottom: 70px; }
  .banner .dots { left: 20px; }
  .seg, .row2 { grid-template-columns: 1fr; }
  .form, .article { padding: 20px 18px; }
  .tk { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .tk .c, .tk .d { display: none; }
  .lrow { grid-template-columns: 64px minmax(0, 1fr); }
  .lrow .d { display: none; }
  .quick { gap: 8px; }
  .quick a { padding: 10px; gap: 8px; }
  .quick .ic { width: 32px; height: 32px; }
  .quick b { font-size: 13px; white-space: nowrap; }
  .quick small { display: none; }
  .artnav { grid-template-columns: 1fr; }
  .artnav .r { text-align: left; }
}

/* ---------- 가이드 ---------- */
.g-group { padding: 18px 18px 8px; margin-bottom: 14px; }
.g-group .ch { flex-wrap: wrap; }
.g-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding-bottom: 10px; }
.g-link { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; border: 1px solid transparent; min-width: 0; }
a.g-link:hover { border-color: var(--line); background: #ffffff05; }
a.g-link:hover b { color: var(--gold-l); }
.g-link i { width: 84px; height: 50px; border-radius: 6px; background-size: cover; background-position: center; flex: none; border: 1px solid #ffffff18; }
.g-link > span { min-width: 0; }
.g-link b { display: block; font-size: 15px; font-weight: 600; }
.g-link small { display: block; color: var(--faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-link.soon { color: var(--faint); justify-content: space-between; padding: 8px 12px; border: 1px dashed var(--line2); }
.g-link.soon b { font-weight: 500; font-size: 14px; }

.guide { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 14px; align-items: start; }
.g-nav { padding: 14px 10px; position: sticky; top: 12px; }
.g-toc + .g-toc { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line2); }
.g-toc h5 { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: .5px; padding: 0 8px 6px; }
.g-toc a, .g-toc .soon { display: block; font-size: 13.5px; padding: 5px 8px; border-radius: 5px; color: var(--muted); }
.g-toc a:hover { color: var(--gold-l); }
.g-toc a.on { color: var(--text); background: #c99a451f; box-shadow: inset 2px 0 0 var(--gold); }
.g-toc .soon { color: var(--faint); opacity: .7; }
.g-doc { padding: 0 0 26px; overflow: hidden; }
.g-doc > :not(.g-hero) { margin-left: 34px; margin-right: 34px; }
.g-hero { position: relative; padding: 34px 34px 26px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.g-hero .bgimg { position: absolute; inset: 0; background-size: cover; background-position: 50% 40%; opacity: .38; }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0f121bf2 35%, #0f121b70); }
.g-hero > :not(.bgimg) { position: relative; z-index: 1; }
.g-hero h2 { font-family: var(--title); font-size: 28px; color: var(--gold-l); margin: 0; }
.g-hero p { color: var(--muted); margin-top: 4px; }
.g-body { color: #d6ccb6; line-height: 1.8; }
.g-body > * + * { margin-top: 12px; }
.g-body h3 { font-size: 18px; color: var(--gold-l); margin-top: 28px; padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.3; }
.g-body b { color: var(--text); }
kbd { display: inline-block; min-width: 24px; padding: 0 6px; border: 1px solid #ffffff2e; border-bottom-width: 2px; border-radius: 4px; background: #ffffff0d; font: 600 12.5px/20px var(--body); color: var(--text); text-align: center; white-space: nowrap; }
.g-steps, .g-list { padding-left: 22px; }
.g-steps li + li, .g-list li + li { margin-top: 6px; }
.g-steps li::marker { color: var(--gold); font-weight: 700; }
.g-list li::marker { color: var(--gold); }
.g-tip { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 8px; background: #2a4fb81f; border: 1px solid #4c7bff40; font-size: 14px; line-height: 1.65; }
.g-tip > b { flex: none; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #4c7bff; color: #fff; margin-top: 2px; }
.g-tip.warn { background: #e5a35a14; border-color: #e5a35a55; }
.g-tip.warn > b { background: var(--warn); color: #1b1206; min-width: 20px; text-align: center; }
.g-doc > .g-tip { margin-bottom: 14px; }
.g-keys { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
@media (min-width: 1180px) { .g-keys.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-keys > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #ffffff12; font-size: 14px; line-height: 1.5; }
.g-keys .k { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.g-keys .k i { font-style: normal; color: var(--faint); font-size: 12px; padding: 0 1px; }
.g-table { overflow-x: auto; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.g-table th { text-align: left; color: var(--gold-l); font-weight: 600; background: #c99a4514; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.g-table td { padding: 8px 12px; border-bottom: 1px solid #ffffff0d; vertical-align: top; }
.g-table td:first-child { white-space: nowrap; color: var(--text); }
.g-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-card { padding: 14px 16px; border-radius: 8px; background: #ffffff06; border: 1px solid var(--line2); position: relative; }
.g-card .jobic { position: absolute; top: 14px; right: 14px; }
.g-card > b { display: block; font-size: 16px; color: var(--gold-l); padding-right: 34px; }
.g-card > small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.g-card p { font-size: 14px; margin-top: 8px; line-height: 1.65; }
.g-fig img { width: 100%; border-radius: 8px; display: block; border: 1px solid var(--line2); }
.g-fig figcaption { font-size: 12.5px; color: var(--faint); margin-top: 6px; text-align: center; }
.g-updated { margin-top: 26px; color: var(--faint); font-size: 12.5px; }

@media (max-width: 1000px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  /* 좁은 화면: 목차를 한 줄로 밀어 넘기는 단추 줄로 */
  .g-nav { position: relative; top: 0; display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: thin; }
  .g-toc { display: contents; }
  .g-toc h5, .g-toc .soon { display: none; }
  .g-toc a { flex: none; white-space: nowrap; border: 1px solid var(--line2); border-radius: 16px; padding: 4px 12px; }
  .g-toc a.on { box-shadow: none; border-color: var(--gold); }
}
@media (max-width: 640px) {
  .g-links, .g-cards { grid-template-columns: minmax(0, 1fr); }
  .g-doc { padding-bottom: 20px; }
  .g-doc > :not(.g-hero) { margin-left: 18px; margin-right: 18px; }
  .g-hero { padding: 24px 18px 18px; }
  .g-hero h2 { font-size: 23px; }
  .g-keys > div { grid-template-columns: 110px minmax(0, 1fr); }
}

/* 내 계정·계정 찾기(디스코드) */
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acct-h { margin: 22px 0 10px; font-size: 17px; }
.notice-welcome { padding: 18px 22px; margin-bottom: 16px; border-color: var(--line); }
.notice-welcome p { margin-top: 4px; font-size: 14px; }
.rec-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; align-items: center; padding: 12px 0; border-top: 1px dashed #ffffff14; }
.rec-row .inp + .inp { margin-top: 0; }
.rec-row .form-error { grid-column: 1 / -1; margin-top: 0; }
.rec-acct small { display: block; font-size: 12px; }
@media (max-width: 640px) { .rec-row { grid-template-columns: 1fr; } }

/* 캐시 충전 (js/shop.js) */
.shop-note { padding: 14px 18px; margin-bottom: 12px; font-size: 14px; }
.shop-note p + p { margin-top: 4px; }
.shop-note.sandbox { border-color: #6FD38A55; color: #8FE3A6; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.shop-item { padding: 20px 18px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.shop-cash { font-family: var(--title); font-size: 24px; color: var(--gold-l); }
.shop-name { color: var(--muted); font-size: 13.5px; min-height: 1.4em; }
.shop-price { font-size: 17px; font-weight: 700; margin: 4px 0 10px; }
.shop-paybox { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 22px; margin-bottom: 14px; border-color: var(--gold); }
.shop-paybox.done { justify-content: center; }
.shop-paytext { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.shop-sum { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.shop-sum b { font-size: 20px; color: var(--gold-l); }
.shop-sum .shop-price { margin: 0; }
.shop-status { font-weight: 600; }
.shop-qr { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 8px; flex: none; image-rendering: pixelated; }
.shop-history { padding: 18px; }
.shop-history h3 { margin-bottom: 10px; }
@media (max-width: 640px) {
  .shop-paybox { flex-direction: column-reverse; align-items: stretch; }
  .shop-paytext { align-items: stretch; }
  .shop-qr { align-self: center; width: 180px; height: 180px; }
}
.shop-acts { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; flex-wrap: wrap; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
