:root {
  color-scheme: light;
  --ink: #101114;
  --muted: #65686f;
  --paper: #f6f5f1;
  --white: #fff;
  --line: #dcdad3;
  --soft-line: #e9e7e1;
  --accent: #e8ff3f;
  --accent-dark: #d8f524;
  --success: #17724a;
  --danger: #b53b31;
  --radius: 18px;
  --shadow: 0 20px 55px rgba(16, 17, 20, 0.09);
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 12px 18px; color: white; background: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(22px, 5vw, 80px);
  border-bottom: 1px solid rgba(220, 218, 211, 0.8);
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--accent); font-weight: 900; letter-spacing: -0.08em; }
.brand > span:last-child { display: grid; line-height: 1.05; gap: 4px; }
.brand strong { font-size: 15px; letter-spacing: 0.14em; }
.brand small { color: var(--muted); font-size: 11px; }
.site-header nav { display: flex; gap: 34px; }
.site-header nav a { color: #3c3e43; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-header nav a:hover { color: var(--ink); }
.account-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.account-label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; transition: 160ms ease; }
.theme-toggle:hover { border-color: var(--ink); transform: translateY(-1px); }
.theme-toggle:focus-visible, .button:focus-visible, .topic-card:focus-visible, .quick-topics button:focus-visible, .faq-item summary:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 800; transition: 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.button-quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.button-dark { color: white; background: var(--ink); }
.button-primary { color: var(--ink); background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }

main { overflow: hidden; }
.hero { min-height: 630px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding: 82px clamp(22px, 8vw, 132px) 92px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 17px; font-size: 11px; font-weight: 900; letter-spacing: 0.2em; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(48px, 6.7vw, 98px); line-height: 0.98; letter-spacing: -0.07em; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 27px 0 34px; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }
.help-search { max-width: 680px; min-height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 16px; background: var(--white); box-shadow: 8px 8px 0 var(--accent); }
.help-search > span:first-child { font-size: 31px; line-height: 1; transform: rotate(-15deg); }
.help-search input { min-width: 0; height: 64px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.help-search kbd { padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--paper); font-family: inherit; font-size: 10px; }
.quick-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.quick-topics button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: #494b50; font-size: 12px; }
.quick-topics button:hover { border-color: var(--ink); color: var(--ink); }

.hero-panel { position: relative; padding: 32px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: white; box-shadow: var(--shadow); }
.hero-panel::before { content: "?"; position: absolute; right: 18px; top: -58px; color: var(--accent); font-size: 122px; font-weight: 900; line-height: 1; }
.hero-panel .signal { display: flex; align-items: center; gap: 8px; margin-bottom: 48px; color: #c2c4ca; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.signal span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(232, 255, 63, 0.12); }
.hero-panel > strong { display: block; margin-bottom: 19px; font-size: 22px; }
.hero-panel ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.hero-panel li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid #33353a; color: #d8d9dc; font-size: 13px; }
.hero-panel li span { color: var(--accent); font-size: 11px; font-weight: 900; }

.help-section, .ticket-section { padding: 105px clamp(22px, 8vw, 132px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.section-heading h2, .contact-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; letter-spacing: -0.055em; }
.section-heading > p { color: var(--muted); font-size: 13px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.topic-card { min-height: 145px; display: grid; align-content: space-between; gap: 4px; padding: 22px; border: 0; border-right: 1px solid var(--line); color: inherit; text-align: left; background: transparent; cursor: pointer; }
.topic-card:last-child { border-right: 0; }
.topic-card span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; }
.topic-card strong { align-self: end; margin-top: 20px; font-size: 18px; }
.topic-card small { color: var(--muted); }
.topic-card:hover, .topic-card.active { background: var(--accent); }
.topic-card.active span, .topic-card.active small { color: #383a20; }
.faq-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; margin-top: 54px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: grid; grid-template-columns: 70px 1fr 32px; align-items: center; min-height: 84px; cursor: pointer; list-style: none; font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary small { color: var(--muted); font-size: 10px; letter-spacing: 0.1em; }
.faq-item summary::after { content: "+"; justify-self: end; font-size: 24px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 42px 28px 70px; color: #55585e; font-size: 14px; }
.faq-empty { padding: 50px 0; color: var(--muted); }
.safety-note { position: sticky; top: 105px; padding: 28px; border-radius: var(--radius); background: #dde4ff; }
.safety-note h3 { margin: 0 0 14px; font-size: 23px; letter-spacing: -0.03em; }
.safety-note > p:not(.eyebrow) { color: #454a5b; font-size: 13px; }
.safety-note a { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(16, 17, 20, 0.25); text-decoration: none; font-size: 13px; font-weight: 800; }

.contact-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1.2fr); gap: clamp(55px, 10vw, 160px); padding: 105px clamp(22px, 8vw, 132px); color: white; background: var(--ink); }
.contact-copy > p:not(.eyebrow) { max-width: 500px; color: #b8bac0; font-size: 15px; }
.contact-copy dl { display: grid; gap: 0; margin: 50px 0 0; }
.contact-copy dl div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid #34363b; font-size: 13px; }
.contact-copy dt { color: #9b9da4; }
.contact-copy dd { margin: 0; font-weight: 800; }
.contact-form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); color: var(--ink); background: var(--white); }
.form-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-head > div { display: grid; }
.form-head span { color: var(--muted); font-size: 11px; }
.form-head strong { font-size: 17px; }
.text-button { padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.contact-form > label, .login-dialog [data-login-form] label { position: relative; display: grid; gap: 8px; margin-top: 20px; }
.contact-form label > span:first-child, .login-dialog label > span { font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea, .login-dialog input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fbfbf9; }
.contact-form input::placeholder, .contact-form textarea::placeholder, .login-dialog input::placeholder, .help-search input::placeholder { color: #686b72; opacity: 1; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus, .login-dialog input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232, 255, 63, 0.55); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form label > small { position: absolute; right: 10px; bottom: 8px; color: var(--muted); font-size: 10px; }
.privacy-check { grid-template-columns: 18px 1fr !important; align-items: start; color: var(--muted); font-size: 11px; }
.privacy-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.privacy-check span { font-weight: 400 !important; }
.button-submit { width: 100%; margin-top: 24px; justify-content: space-between; }
.form-notice { min-height: 21px; margin: 12px 0 0; color: var(--success); font-size: 12px; }
.form-notice.error { color: var(--danger); }

.ticket-section { background: #efeee9; }
.ticket-gate { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 25px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.gate-number { color: var(--muted); font-size: 12px; font-weight: 900; }
.ticket-gate strong { font-size: 18px; }
.ticket-gate p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.ticket-list { display: grid; gap: 12px; }
.ticket-card { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.ticket-card summary { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 22px; padding: 22px 24px; cursor: pointer; list-style: none; }
.ticket-card summary::-webkit-details-marker { display: none; }
.ticket-card time { color: var(--muted); font-size: 11px; }
.ticket-title { display: grid; gap: 3px; }
.ticket-title strong { font-size: 15px; }
.ticket-title small { color: var(--muted); }
.status { padding: 6px 10px; border-radius: 999px; color: #775d00; background: #fff1b5; font-size: 10px; font-weight: 900; }
.status.done { color: var(--success); background: #dff5e9; }
.ticket-body { padding: 0 24px 25px 166px; }
.ticket-message, .ticket-reply { padding: 17px; border-radius: 10px; background: var(--paper); font-size: 13px; white-space: pre-wrap; }
.ticket-reply { margin-top: 10px; border-left: 3px solid var(--accent-dark); background: #f9ffe5; }
.ticket-reply strong { display: block; margin-bottom: 8px; }
.ticket-empty { padding: 36px; border: 1px dashed #c9c6bd; border-radius: var(--radius); color: var(--muted); text-align: center; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 35px; padding: 46px clamp(22px, 5vw, 80px); color: #aaa; background: #090a0c; }
footer > div:nth-child(2) { text-align: center; }
footer p { margin: 0 0 3px; color: white; font-size: 12px; }
footer nav { justify-self: end; display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; }
footer nav a { font-size: 11px; text-decoration: none; }
.footer-brand strong { color: white; }

.login-dialog { width: min(460px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35); }
.login-dialog::backdrop { background: rgba(10, 11, 13, 0.68); backdrop-filter: blur(4px); }
.dialog-close-row { display: flex; justify-content: end; padding: 12px 14px 0; }
.dialog-close-row button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 26px; }
.dialog-brand { display: flex; gap: 14px; padding: 0 34px 22px; }
.dialog-brand p { display: grid; gap: 3px; margin: 0; }
.dialog-brand strong { font-size: 19px; }
.dialog-brand span:last-child { color: var(--muted); font-size: 12px; }
.login-dialog [data-login-form] { padding: 0 34px 34px; }
.login-dialog [data-login-form] .button { width: 100%; margin-top: 24px; }
.reset-button { display: block; margin: 18px auto 0; }
[data-login-notice] { min-height: 20px; margin: 12px 0 0; color: var(--danger); text-align: center; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; max-width: calc(100% - 30px); padding: 13px 18px; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: 180ms ease; font-size: 12px; font-weight: 800; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

html[data-theme="dark"] body { color: #f1f3f7; background: #0d0f13; }
html[data-theme="dark"] .site-header { border-bottom-color: rgba(75, 78, 88, 0.86); background: rgba(13, 15, 19, 0.92); }
html[data-theme="dark"] .brand small, html[data-theme="dark"] .account-label, html[data-theme="dark"] .section-heading > p, html[data-theme="dark"] .topic-card span, html[data-theme="dark"] .topic-card small, html[data-theme="dark"] .faq-item summary small, html[data-theme="dark"] .faq-empty, html[data-theme="dark"] .gate-number, html[data-theme="dark"] .ticket-gate p, html[data-theme="dark"] .ticket-card time, html[data-theme="dark"] .ticket-title small, html[data-theme="dark"] .dialog-brand span:last-child { color: #b8bbc4; }
html[data-theme="dark"] .site-header nav a { color: #d7dae1; }
html[data-theme="dark"] .site-header nav a:hover { color: #fff; }
html[data-theme="dark"] .theme-toggle, html[data-theme="dark"] .button-quiet { color: #f1f3f7; border-color: #4b4e58; }
html[data-theme="dark"] .theme-toggle:hover, html[data-theme="dark"] .button-quiet:hover { border-color: #d7dae1; }
html[data-theme="dark"] .button-dark { color: var(--ink); background: var(--accent); }
html[data-theme="dark"] .hero { border-bottom-color: #363942; }
html[data-theme="dark"] .hero-copy > p:not(.eyebrow) { color: #c0c3cb; }
html[data-theme="dark"] .help-search { border-color: #cdd1da; background: #191c22; }
html[data-theme="dark"] .help-search input { color: #f4f5f8; }
html[data-theme="dark"] .help-search input::placeholder { color: #b5b8c0; }
html[data-theme="dark"] .help-search kbd { color: #c4c7cf; border-color: #4b4e58; background: #24272e; }
html[data-theme="dark"] .quick-topics button { color: #d5d8df; border-color: #4b4e58; }
html[data-theme="dark"] .quick-topics button:hover { color: #fff; border-color: #d7dae1; }
html[data-theme="dark"] .hero-panel { border-color: #454852; background: #090a0d; }
html[data-theme="dark"] .topic-grid { border-color: #3d4049; background: #191c22; }
html[data-theme="dark"] .topic-card { border-color: #3d4049; }
html[data-theme="dark"] .topic-card:hover, html[data-theme="dark"] .topic-card.active { color: var(--ink); background: var(--accent); }
html[data-theme="dark"] .topic-card:hover span, html[data-theme="dark"] .topic-card:hover small, html[data-theme="dark"] .topic-card.active span, html[data-theme="dark"] .topic-card.active small { color: #383a20; }
html[data-theme="dark"] .faq-list { border-top-color: #7c808b; }
html[data-theme="dark"] .faq-item { border-bottom-color: #3d4049; }
html[data-theme="dark"] .faq-answer { color: #c8cbd3; }
html[data-theme="dark"] .safety-note { color: #f1f3f7; background: #1d2942; }
html[data-theme="dark"] .safety-note > p:not(.eyebrow) { color: #cbd3e3; }
html[data-theme="dark"] .safety-note a { border-top-color: rgba(231, 235, 244, 0.28); }
html[data-theme="dark"] .contact-section { background: #090a0d; }
html[data-theme="dark"] .contact-form, html[data-theme="dark"] .login-dialog { color: #f1f3f7; background: #1b1e24; }
html[data-theme="dark"] .form-head { border-bottom-color: #41444d; }
html[data-theme="dark"] .form-head span, html[data-theme="dark"] .contact-form label > small, html[data-theme="dark"] .privacy-check { color: #b8bbc4; }
html[data-theme="dark"] .text-button, html[data-theme="dark"] .dialog-close-row button { color: #f1f3f7; }
html[data-theme="dark"] .contact-form input, html[data-theme="dark"] .contact-form select, html[data-theme="dark"] .contact-form textarea, html[data-theme="dark"] .login-dialog input { color: #f1f3f7; border-color: #4b4e58; background: #111318; }
html[data-theme="dark"] .contact-form input::placeholder, html[data-theme="dark"] .contact-form textarea::placeholder, html[data-theme="dark"] .login-dialog input::placeholder { color: #aeb1ba; }
html[data-theme="dark"] .contact-form input:focus, html[data-theme="dark"] .contact-form select:focus, html[data-theme="dark"] .contact-form textarea:focus, html[data-theme="dark"] .login-dialog input:focus { border-color: var(--accent); }
html[data-theme="dark"] .privacy-check input { accent-color: var(--accent); }
html[data-theme="dark"] .form-notice { color: #69d7a2; }
html[data-theme="dark"] .form-notice.error, html[data-theme="dark"] [data-login-notice] { color: #ff9289; }
html[data-theme="dark"] .ticket-section { background: #121419; }
html[data-theme="dark"] .ticket-gate, html[data-theme="dark"] .ticket-card { border-color: #3d4049; background: #1a1d23; }
html[data-theme="dark"] .ticket-message { background: #111318; }
html[data-theme="dark"] .ticket-reply { color: #dce8d6; background: #1d2b19; }
html[data-theme="dark"] .status { color: #ffe899; background: #574700; }
html[data-theme="dark"] .status.done { color: #86e1b4; background: #163d2c; }
html[data-theme="dark"] .ticket-empty { color: #b8bbc4; border-color: #555963; }
html[data-theme="dark"] .toast { border: 1px solid #494c55; background: #0a0b0e; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-panel { max-width: 620px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-card:nth-child(2) { border-right: 0; }
  .topic-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .faq-layout { grid-template-columns: 1fr; }
  .safety-note { position: static; }
  .contact-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > div:nth-child(2) { display: none; }
}

@media (max-width: 640px) {
  .site-header { min-height: 66px; padding: 10px 16px; }
  .brand small, .account-label { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .account-actions { gap: 5px; }
  .button { min-height: 40px; padding-inline: 14px; }
  .hero { min-height: auto; padding: 52px 20px 70px; }
  .hero h1 { font-size: clamp(48px, 16vw, 70px); }
  .help-search { min-height: 60px; padding-inline: 14px; box-shadow: 5px 5px 0 var(--accent); }
  .help-search input { height: 56px; font-size: 14px; }
  .help-search kbd { display: none; }
  .hero-panel { margin-top: 30px; padding: 25px; }
  .hero-panel::before { right: 10px; top: -48px; font-size: 95px; }
  .help-section, .ticket-section, .contact-section { padding: 74px 20px; }
  .section-heading { align-items: start; }
  .section-heading > p { display: none; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .topic-card { min-height: 126px; padding: 17px; }
  .faq-layout { margin-top: 38px; }
  .faq-item summary { grid-template-columns: 45px 1fr 24px; min-height: 78px; font-size: 14px; }
  .faq-answer { padding-left: 45px; }
  .contact-section { gap: 50px; }
  .contact-form { padding: 24px 18px; }
  .form-head { align-items: center; }
  .ticket-gate { grid-template-columns: 1fr; padding: 25px; }
  .gate-number { display: none; }
  .ticket-gate .button { width: 100%; }
  .ticket-card summary { grid-template-columns: 1fr auto; gap: 10px; }
  .ticket-card time { grid-column: 1 / -1; }
  .ticket-body { padding: 0 20px 20px; }
  footer { grid-template-columns: 1fr; padding: 38px 20px; }
  footer nav { justify-self: start; justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
