/* 기본 타이포·레이아웃 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 0 112px;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-name { font-size: var(--fs-sm); color: var(--muted); }
.brand-name b { color: var(--ink); font-weight: 700; }
/* 객실 4칸 마크 */
.brand-mark { display: grid; grid-template-columns: repeat(2, 8px); gap: 2px; }
.brand-mark i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.brand-mark i:nth-child(4) { background: var(--line); }
.topbar-actions { display: flex; gap: 6px; }

.intro { padding-block: 28px 20px; display: grid; gap: 8px; max-width: 46rem; }
.intro h1 { font-size: clamp(1.25rem, 3.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; }
.intro p { color: var(--muted); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
#app[data-step="3"] .layout { grid-template-columns: minmax(0, 1fr); }
#app[data-step="3"] .live-panel { display: none; }

.footnote { margin-top: 20px; font-size: var(--fs-xs); color: var(--muted); }

.muted { color: var(--muted); }

@media (max-width: 640px) {
  #app:not([data-step="0"]) .intro { display: none; }
  .intro { padding-block: 20px 12px; }
  .intro p { font-size: var(--fs-sm); }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .live-panel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
