/* /public/assets/base.css */

/* ───────────────── iOS Safari scroll jitter fix ─────────────────
   body 스크롤을 봉인하고(#app로 이관) “스크롤 생기는 순간 3px 튐” 회피.
   단, #app이 스크롤 컨테이너가 되면(overflow) 100vmax 풀블리드가 잘릴 수 있어서
   #app은 풀폭으로, 600px 캡은 각 라우트 컨테이너가 담당하도록 옮긴다. */
html, body {
  height: 100%;
}
body{
  overflow: hidden;
  position: fixed; inset: 0;
  width: 100%; height: 100%;
}
#app {
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden; overflow-y: auto;
  width: 100%; height: 100%;
  margin: 0;
}
#home, #shuffle, #draw, #about, #column, #legal, #my-spreads, #my-spreads-make {
  display: flex; flex-direction: column;
  width: 100%; max-width: 600px;
  padding-top: var(--safe-top); margin: 0 auto;
}
/* Home 빼고 전부 */
#shuffle, #draw, #about, #column, #legal, #my-spreads, #my-spreads-make {
  padding-left: var(--space-2); padding-right: var(--space-2);
}
.sc-layout {
  flex: 1 1 auto;
  display: flex; flex-direction: column; gap: var(--space-4);
  min-height: 0;
  margin-top: var(--space-4); margin-bottom: var(--space-4);
}

/* ───────────────── HEADER ───────────────── */
.sc-home {
  line-height: 1;
  text-decoration: none;
  display: inline-flex; align-items: center;
  height: 38px;
}
.sc-home:focus-visible {
  border-radius: var(--radius-1);
  outline-offset:2px; outline:2px dotted var(--color-muted-1);
}
.sc-home svg {
  color: var(--color-point-3);
  flex-shrink: 0;
  inline-size: 18px; block-size: 18px;
  margin-right: var(--space-1);
}
.sc-brand {
  line-height: 1;
  display: flex; justify-content: space-between; align-items: center;
  block-size: var(--height-2);
}
.sc-brand__name {
  color: var(--color-point-3); font-size: var(--font-size-2); font-weight:600;
  letter-spacing: 1px;
}
.sc-brand__tail {
  color: var(--color-point-2); font-size: var(--font-size-1);
  letter-spacing: 1px; text-transform: uppercase;
  transform: translateY(1px);
}
.sc-brand__actions {
  display:flex; align-items:center; gap: var(--space-1);
}

/* ───────────────── FOOTER ───────────────── */
.sc-footer {
  color: var(--color-text-4); font-size: var(--font-size-1);
  text-align: center; white-space: nowrap;
  display: flex; flex-direction: column; gap: .1rem;
  padding: var(--space-4) var(--space-2);
  opacity: .6;
}
.sc-footer a {
  color: var(--color-text-4);
  text-decoration: none; text-transform: uppercase;
  padding-inline: 2px;
}
.sc-footer a:focus-visible {
  border-radius: var(--radius-1);
  outline-offset:2px; outline:2px dotted var(--color-muted-1);
}

/* ───────────────── HR ───────────────── */
.hr {
  height:1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #A77B55 70%, #000), transparent);
  opacity:.6;
}

.hr--silver {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.18),
    rgba(255,255,255,0)
  );
}
