:root {
  color-scheme: light;
  font: 16px/1.6 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: #1c2336;
  background: #f6f7fb;
  --ink: #1c2336;
  --muted: #5f6881;
  --line: #dde2ee;
  --panel: #fff;
  --brand: #4745da;
  --brand-ink: #3e3abf;
  --night: #111522;
  --positive: #128160;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0 0 .7rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.045em; word-break: keep-all; }
h1 { font-size: clamp(2rem, 4.5vw, 3.7rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h3 { font-size: 1.2rem; }
p, small { color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--brand-ink); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #7473ef; outline-offset: 4px; }
.skip {
  position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .6rem 1rem;
  transform: translateY(-200%); border-radius: .45rem; background: white; color: var(--ink);
}
.skip:focus { transform: none; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: .6rem;
  min-height: 2.65rem; border: 1px solid transparent; border-radius: .65rem; padding: .58rem 1rem;
  background: var(--brand); color: #fff; font-weight: 750; cursor: pointer; text-decoration: none; white-space: nowrap;
}
button:hover, .button:hover { filter: brightness(1.1); }
button:disabled { opacity: .55; cursor: default; filter: none; }
.primary { padding: .7rem 1.2rem; box-shadow: 0 7px 20px #3a37d626; }
button.secondary, .tabs button {
  border-color: var(--line); background: #f4f5fb; color: #323b55;
}
button.danger { border-color: #f2ced6; background: #fff1f3; color: #a82948; }
.translucent { border-color: #c0c7ff69; background: #14192d66; color: #fff; }
input, select {
  width: 100%; min-width: 0; min-height: 2.8rem; border: 1px solid var(--line);
  border-radius: .55rem; padding: .62rem .75rem; background: #f9faff; color: var(--ink);
}
label { display: grid; gap: .33rem; font-weight: 650; }
small { font-weight: 400; }

.top { background: var(--night); color: white; border-bottom: 1px solid #23283b; }
.top-inner, .footer-inner {
  width: min(100% - 3rem, 73rem); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 1.4rem;
}
.top-inner { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 760; white-space: nowrap; letter-spacing: -.045em; }
.brand b { color: #c8c7ff; font-weight: 820; }
.mark {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .65rem;
  color: #fff; background: #5350ee; box-shadow: inset 0 1px 1px #ffffff5c, 0 4px 12px #02032366;
}
.main-nav, .top-tools, footer nav { display: flex; align-items: center; gap: clamp(.65rem, 2.3vw, 1.8rem); }
.main-nav a, .login-link, footer nav a { color: #d7dbec; font-size: .87rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .login-link:hover, footer nav a:hover { color: #fff; text-decoration: underline; }
.top-tools { gap: .7rem; font-size: .86rem; }
.header-cta { min-height: 2.35rem; padding: .45rem .86rem; }
.top-tools .secondary { min-height: 2.35rem; padding: .45rem .78rem; color: #edf0ff; background: #232a40; border-color: #39415d; }
.badge { padding: .2rem .53rem; border-radius: 1rem; border: 1px solid #67658e; color: #d8d6ff; font-size: .73rem; white-space: nowrap; }
#identity { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { width: min(100% - 3rem, 73rem); margin-inline: auto; min-height: 65vh; }

.hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(26rem, 46vw, 33rem); margin-top: 1.65rem; overflow: hidden; border-radius: 1.3rem;
  background: #101529 url("/pcroom-hero.jpg") 60% center / cover no-repeat;
  box-shadow: 0 16px 46px #242c5e24; color: #fff;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #0e1225f2 2%, #10152bdc 32%, #11162d53 65%, #1014280d),
              linear-gradient(0deg, #0b0f21a6, transparent 55%);
}
.hero-copy { padding: clamp(2rem, 6vw, 5rem); max-width: 45rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .48rem; padding: .35rem .7rem;
  color: #e1e0fb; border: 1px solid #cccaff54; border-radius: 2rem;
  font-size: .72rem; font-weight: 750; letter-spacing: .08em; background: #292b555c;
}
.hero-dot, .status-dot { display: inline-block; width: .52rem; height: .52rem; border-radius: 50%; background: #8d92a9; flex: 0 0 auto; }
.hero-dot { background: #a29cff; box-shadow: 0 0 .65rem #aea5ffb0; }
.kicker-separator { opacity: .54; }
.hero h1 { margin: 1.22rem 0 1.02rem; font-size: clamp(2.9rem, 6vw, 5.2rem); line-height: 1.09; letter-spacing: -.075em; }
.hero h1 em { color: #bfbaff; font-style: normal; }
.hero p { max-width: 29rem; color: #e0e2f2; font-size: clamp(.94rem, 1.6vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.hero-actions .button { min-height: 3rem; }
.hero-status {
  position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.35rem); display: grid;
  gap: .34rem; min-width: 10.9rem; padding: .78rem 1rem;
  border: 1px solid #b5c0ff47; border-radius: .8rem; color: #fff; background: #141a32df; text-decoration: none;
}
.hero-status:hover { background: #21294a; }
.hero-status-label { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: #d1d6ec; }
.hero-status-value { display: flex; gap: .55rem; align-items: baseline; }
.hero-status-value strong { font-size: 1.65rem; line-height: 1.25; }
.hero-status-value span { color: #cbd0ee; font-size: .76rem; }
.status-dot.ready { background: #41d4a0; box-shadow: 0 0 0 3px #41d4a024; }
.status-dot.empty { background: #d09a43; box-shadow: 0 0 0 3px #d09a4324; }
.status-dot.offline { background: #d07588; }

.home-section { margin-top: clamp(2.9rem, 7vw, 5.7rem); scroll-margin-top: 2rem; }
.main-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: .4rem; }
.info-heading {
  margin-top: clamp(1rem, 3vw, 2rem); padding: clamp(1.2rem, 4vw, 2.6rem);
  border: 1px solid #dcdff6; border-radius: 1rem; background: linear-gradient(115deg, #e9eaff, #f9f9ff);
}
.info-heading nav { display: flex; gap: .55rem; margin-bottom: .5rem; color: var(--muted); font-size: .83rem; }
.info-heading h1 { margin: 0; font-size: clamp(1.9rem, 4.3vw, 3rem); }
.info-heading ~ .home-section { margin-block: clamp(1.4rem, 4vw, 2.8rem) clamp(2.8rem, 6vw, 4.5rem); }
body[data-page="guide"] #home > section:not(#guide),
body[data-page="status"] #home > section:not(#status),
body[data-page="faq"] #home > section:not(#faq),
body[data-page="connect"] #home { display: none; }
body[data-page="faq"] #faq { grid-template-columns: 1fr; }
body[data-page="faq"] #faq .section-heading { display: none; }
.section-heading { margin-bottom: 1.6rem; }
.section-heading h2, .live-copy h2 { font-size: clamp(1.9rem, 3.7vw, 2.85rem); }
.eyebrow { display: block; color: var(--brand-ink); font-size: .71rem; letter-spacing: .15em; font-weight: 850; margin-bottom: .6rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; flex-direction: column; padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line); border-radius: .95rem; background: white;
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.step-number { color: #666c89; font-size: .79rem; font-weight: 800; letter-spacing: .11em; }
.step-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .67rem; background: #eeedff; color: #4b46cf; }
.step-icon svg { width: 1.37rem; height: 1.37rem; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps p { flex: 1; font-size: .94rem; }
.steps a { display: inline-flex; align-self: flex-start; align-items: center; gap: .4rem; margin-top: .55rem; text-decoration: none; font-size: .88rem; font-weight: 760; }
.steps a:hover { text-decoration: underline; }
.live-section {
  display: grid; grid-template-columns: 1fr minmax(0, .85fr); align-items: center; gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.15rem, 4.4vw, 3.2rem); border-radius: 1.1rem; border: 1px solid #dcdef8;
  background: linear-gradient(120deg, #ececff, #f9f9ff);
}
.live-copy p { max-width: 27rem; }
.live-copy .button { margin-top: .6rem; }
.availability-card {
  padding: 1.05rem; border: 1px solid #d9dcf0; border-radius: .85rem; background: #fff; box-shadow: 0 9px 25px #2c31620c;
}
.availability-head, .availability-head > span { display: flex; justify-content: space-between; align-items: center; gap: .45rem; }
.availability-head strong { font-size: .83rem; }
.refresh { min-height: 2rem; padding: .32rem .56rem; font-size: .76rem; }
.availability-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .9rem; gap: .45rem; }
.availability-metrics > div { display: grid; padding: .7rem .8rem; border-radius: .55rem; background: #f2f3fa; }
.availability-metrics span, #homeUpdated { font-size: .76rem; color: var(--muted); }
.availability-metrics strong { color: var(--ink); font-size: clamp(1.4rem, 3vw, 2rem); }
#homeUpdated { margin: .75rem .1rem 0; }
.faq-section { display: grid; grid-template-columns: .58fr 1fr; gap: clamp(1rem, 4vw, 3rem); margin-bottom: clamp(3rem, 8vw, 6rem); }
.faq-list { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: .95rem; }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; gap: .7rem; padding: 1rem 1.25rem;
  list-style: none; cursor: pointer; font-weight: 760;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand-ink); flex: 0 0 auto; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 1.25rem 1rem; font-size: .93rem; }

#portal { padding: clamp(1.4rem, 4vw, 3.1rem) 0 clamp(3rem, 7vw, 5rem); }
.entry { display: grid; grid-template-columns: 1.04fr 1fr; max-width: 61rem; gap: 1rem; margin-inline: auto; }
.intro {
  min-height: 24rem; padding: clamp(1.4rem, 4.5vw, 3.2rem); border-radius: 1rem; color: white;
  background: linear-gradient(108deg, #0f1428e8, #131a3a9e), url("/pcroom-hero.jpg") 67% center / cover;
}
.intro .eyebrow, .intro p { color: #e0e3f9; }
.intro h1 { margin: .8rem 0; }
.intro .button { margin-top: .65rem; }
.panel {
  min-width: 0; border: 1px solid var(--line); border-radius: .95rem; background: var(--panel);
  padding: clamp(1rem, 3vw, 1.65rem); box-shadow: 0 7px 24px #252b4d08;
}
.account { align-self: start; padding: clamp(1rem, 3.7vw, 2.1rem); }
.tabs { display: flex; flex-wrap: wrap; gap: .36rem; margin-bottom: 1.25rem; }
.tabs button { font-size: .85rem; padding: .38rem .64rem; min-height: 2.35rem; }
.tabs button[aria-current="page"] { border-color: #a8a6ff; color: var(--brand-ink); background: #eeedff; }
.social-options { display: grid; gap: .55rem; margin-bottom: 1.15rem; padding-bottom: 1.05rem; border-bottom: 1px solid var(--line); }
.social-options p, #social p { margin: 0; }
.social-options p { font-weight: 700; font-size: .9rem; }
.social-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.social-buttons button { width: 100%; padding: .48rem .24rem; font-size: .85rem; }
.form { display: grid; gap: .82rem; }
.form h2 { margin: 0; }
.form button[type=submit] { margin-top: .2rem; }
.sms-phone { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .45rem; }
.sms-phone button { min-height: 2.8rem; padding-inline: .66rem; font-size: .83rem; }
.sms-note { margin: 0; padding: .6rem .7rem; border-radius: .5rem; background: #eeedff; color: #3532a2; font-size: .87rem; }
.form-fields { display: grid; gap: .82rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.account-link { justify-self: start; min-height: 2rem; padding: 0; background: none; color: var(--brand-ink); font-size: .83rem; }
.account-link:hover { text-decoration: underline; }
.notice { margin-bottom: 1.05rem; border: 1px solid #b1dccb; border-radius: .6rem; padding: .7rem 1rem; background: #e9f8f1; color: #1d674f; }
.notice.error { border-color: #f1c5cf; background: #fff0f3; color: #9a2844; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.waiting { text-align: center; padding: clamp(2rem, 7vw, 4.7rem); }
.waiting button { margin: .55rem .2rem 0; }
.shop-choice { max-width: 20rem; margin: 1rem auto; text-align: left; }
.screen {
  display: grid; place-items: center; position: relative; margin: .6rem 0 1rem;
  min-height: 11rem; background: #131724; border: 1px solid #2f3650; border-radius: .55rem; overflow: hidden;
}
.screen img { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; touch-action: none; user-select: none; }
.screen p { padding: 1rem; margin: 0; color: #cdd2e8; text-align: center; }
.viewer-tools p, .section-head p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 1.2rem 0; }
.stat { display: grid; gap: .25rem; background: #eeedff; border: 1px solid #e1dfff; border-radius: .65rem; padding: .8rem; color: var(--muted); }
.stat strong { font-size: 1.65rem; color: var(--brand-ink); }
.admin-panel { margin-top: 1rem; }
.enroll { display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; }
.enroll label { flex: 1; min-width: min(100%, 10rem); max-width: 24rem; }
.code-box { margin-top: 1rem; padding: .75rem; border: 1px dashed #9897dc; border-radius: .55rem; }
.code-box input { margin-top: .4rem; }
.list-item { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border: 0; }
.actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.actions button { padding: .34rem .6rem; min-height: 2.1rem; font-size: .83rem; }
.mail-item p { overflow-wrap: anywhere; white-space: pre-wrap; margin: .45rem 0; }
footer { padding: 1.65rem 0; background: var(--night); border-top: 1px solid #23283b; color: #fff; }
footer p { margin: .32rem 0 0; color: #b8c0d6; font-size: .83rem; }
footer nav { flex-wrap: wrap; }

@media (max-width: 860px) {
  .top-inner { display: grid; grid-template-columns: 1fr auto; row-gap: .65rem; padding: .8rem 0; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 1.35rem; }
  .top-tools { justify-content: flex-end; }
}
@media (max-width: 640px) {
  main, .top-inner, .footer-inner { width: calc(100% - 1.55rem); }
  .hero { display: block; min-height: 0; margin-top: .9rem; background-position: 68% center; }
  .hero::before { background: linear-gradient(95deg, #101528f7, #111632ab 74%, #12162e75); }
  .hero-copy { padding: 1.8rem 1.15rem 1rem; }
  .hero-kicker { font-size: .65rem; letter-spacing: .055em; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.5rem); }
  .hero-actions { margin-top: 1.2rem; }
  .hero-status { position: static; width: max-content; margin: 0 1.15rem 1.1rem; padding: .6rem .75rem; min-width: 9.7rem; }
  .hero-status-value strong { font-size: 1.3rem; }
  .steps, .live-section, .faq-section, .entry { grid-template-columns: 1fr; }
  .faq-section { gap: .4rem; }
  .intro { min-height: 0; }
  .intro h1 br { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-item.row, .footer-inner { align-items: flex-start; flex-direction: column; }
  .top-tools #identity { display: none; }
  .brand { font-size: .88rem; gap: .4rem; }
  .mark { width: 1.9rem; height: 1.9rem; }
}
@media (max-width: 360px) {
  .top-tools { gap: .38rem; }
  .top-tools .badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
