/* noreut games — 포털 공통 컴포넌트 (ng-)
 * 원본: design-artifacts/webgames-design-system. ng-tokens.css 다음에 불러온다.
 * CSP(style-src 'self') 때문에 인라인 style 속성 없이 클래스·data·aria 속성만으로 상태를 바꾼다.
 */

/* ── 바탕 ───────────────────────────────────────── */
.ng-body {
  margin: 0;
  min-width: 320px;
  background: var(--ng-page);
  color: var(--ng-ink);
  font-family: var(--font-sans);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.ng-body:lang(en),
.ng-body [lang]:lang(en) {
  font-family: var(--font-latin);
}
.ng-body *,
.ng-body *::before,
.ng-body *::after {
  box-sizing: border-box;
}
.ng-body :where(h1, h2, h3, p, ol, ul, dl, dd, figure) {
  margin: 0;
}
.ng-body :where(button, input, select, textarea) {
  font: inherit;
}
.ng-body :focus-visible {
  outline: 3px solid var(--ng-focus);
  outline-offset: 3px;
}
.ng-body [hidden] {
  display: none !important;
}

.ng-dots {
  background-image: radial-gradient(var(--ng-page-dot) 2px, transparent 2.5px);
  background-size: 12px 12px;
}
.ng-mono {
  font-family: var(--font-mono);
}
.ng-muted {
  color: var(--ng-ink-muted);
}
.ng-num {
  font-variant-numeric: tabular-nums;
}
.ng-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ng-stack {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-8);
}
.ng-stack--lg {
  gap: var(--ng-space-14);
}
.ng-row {
  display: flex;
  align-items: center;
  gap: var(--ng-space-10);
}
.ng-row--between {
  justify-content: space-between;
}
.ng-row--wrap {
  flex-wrap: wrap;
  gap: var(--ng-space-6);
}
.ng-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ng-space-10);
}

/* 테마와 무관한 흰 종이 영역(당첨 모달 등): 토큰을 라이트 값으로 다시 묶는다 */
.ng-paper {
  --ng-surface: var(--ng-fixed-paper);
  --ng-ink: var(--ng-fixed-ink);
  --ng-ink-muted: var(--ng-fixed-muted);
  --ng-line: var(--ng-fixed-ink);
  --ng-focus: var(--ng-fixed-ink);
  --ng-shadow-xs: 2px 2px 0 var(--ng-fixed-ink);
  --ng-shadow-sm: 3px 3px 0 var(--ng-fixed-ink);
  --ng-shadow-md: 4px 4px 0 var(--ng-fixed-ink);
  --ng-shadow-lg: 5px 5px 0 var(--ng-fixed-ink);
  background: var(--ng-surface);
  color: var(--ng-ink);
}

/* ── 아이콘 (assets/Icons, 인라인 SVG) ─────────────── */
.ng-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
}
.ng-icon .ng-icon-dot {
  fill: currentColor;
  stroke: none;
}
.ng-icon--sm {
  width: 16px;
  height: 16px;
}
.ng-icon--md {
  width: 20px;
  height: 20px;
}
.ng-icon--lg {
  width: 26px;
  height: 26px;
}

/* ── 버튼 ───────────────────────────────────────── */
.ng-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ng-space-8);
  min-height: var(--ng-control-h);
  padding: 0 var(--ng-space-20);
  border: var(--ng-stroke) solid var(--ng-line);
  border-radius: var(--ng-radius-lg);
  background: var(--ng-surface);
  color: var(--ng-ink);
  box-shadow: var(--ng-shadow-md);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--ng-dur-press) var(--ng-ease-out),
    box-shadow var(--ng-dur-press) var(--ng-ease-out);
}
.ng-btn:hover:not(:disabled, [aria-disabled="true"]) {
  transform: translate(-1px, -1px);
  box-shadow: var(--ng-shadow-lg);
}
.ng-btn:active:not(:disabled, [aria-disabled="true"]) {
  transform: translate(3px, 3px);
  box-shadow: none;
}
.ng-btn:disabled,
.ng-btn[aria-disabled="true"] {
  opacity: var(--ng-opacity-disabled);
  box-shadow: none;
  cursor: default;
}
.ng-btn--primary {
  background: var(--ng-accent);
  color: var(--ng-on-accent);
}
.ng-btn--info {
  background: var(--ng-info);
  color: var(--ng-on-info);
}
.ng-btn--block {
  width: 100%;
}
.ng-btn--sm {
  min-height: var(--ng-control-h-sm);
  padding: 0 var(--ng-space-14);
  font-size: 15px;
  box-shadow: var(--ng-shadow-sm);
}
.ng-btn--sm:hover:not(:disabled, [aria-disabled="true"]) {
  box-shadow: var(--ng-shadow-md);
}
.ng-btn .ng-icon {
  width: 20px;
  height: 20px;
}
.ng-btn--primary .ng-icon {
  width: 22px;
  height: 22px;
}

.ng-iconbtn {
  display: inline-grid;
  place-items: center;
  width: var(--ng-touch-min);
  height: var(--ng-touch-min);
  padding: 0;
  border: var(--ng-stroke-mid) solid var(--ng-line);
  border-radius: var(--ng-radius-md);
  background: var(--ng-surface);
  color: var(--ng-ink);
  box-shadow: var(--ng-shadow-xs);
  cursor: pointer;
}
.ng-iconbtn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.ng-iconbtn[aria-pressed="true"] {
  background: var(--ng-ink);
  color: var(--ng-page);
}

/* ── 입력 ───────────────────────────────────────── */
.ng-field {
  display: grid;
  gap: var(--ng-space-6);
}
.ng-field__label {
  font-size: 15px;
  font-weight: 900;
}
.ng-field__hint {
  font-size: 13px;
  font-weight: 800;
  color: var(--ng-ink-muted);
}
.ng-field__error {
  display: flex;
  align-items: center;
  gap: var(--ng-space-6);
  font-size: 13px;
  font-weight: 900;
  color: var(--ng-ink);
}
.ng-field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: var(--ng-stroke-thin) solid var(--ng-line);
  border-radius: 50%;
  background: var(--ng-accent);
  color: var(--ng-on-accent);
  font-size: 12px;
  line-height: 1;
}
.ng-input {
  width: 100%;
  min-height: var(--ng-control-h);
  padding: 0 var(--ng-space-16);
  border: var(--ng-stroke) solid var(--ng-line);
  border-radius: var(--ng-radius-md);
  background: var(--ng-surface);
  color: var(--ng-ink);
  font-size: 18px;
  font-weight: 800;
}
.ng-input::placeholder {
  color: var(--ng-ink-muted);
  opacity: 0.85;
}
.ng-input:disabled {
  opacity: var(--ng-opacity-disabled);
}
.ng-input[aria-invalid="true"] {
  box-shadow: 4px 4px 0 var(--ng-accent);
}
.ng-input--code {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
}

/* ── 선택: 분할 선택 · 증감 · 스위치 ───────────────── */
.ng-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  overflow: hidden;
  border: var(--ng-stroke-mid) solid var(--ng-line);
  border-radius: var(--ng-radius-md);
  background: var(--ng-surface);
}
.ng-seg__opt {
  min-height: var(--ng-control-h-sm);
  padding: 0 var(--ng-space-6);
  border: 0;
  border-left: var(--ng-stroke-thin) solid var(--ng-line);
  background: var(--ng-surface);
  color: var(--ng-ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.ng-seg__opt:first-child {
  border-left: 0;
}
.ng-seg__opt[aria-checked="true"],
.ng-seg__opt[aria-pressed="true"] {
  background: var(--ng-ink);
  color: var(--ng-page);
}
.ng-seg__opt:focus-visible {
  outline-offset: -6px;
}
.ng-seg__opt:disabled {
  cursor: default;
}
.ng-seg:has(.ng-seg__opt:disabled) {
  opacity: 0.75;
}

.ng-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--ng-space-6);
}
.ng-stepper__btn {
  width: var(--ng-touch-min);
  height: var(--ng-touch-min);
  padding: 0;
  border: var(--ng-stroke-mid) solid var(--ng-line);
  border-radius: var(--ng-radius-md);
  background: var(--ng-surface);
  color: var(--ng-ink);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.ng-stepper__btn:disabled {
  opacity: var(--ng-opacity-disabled);
  cursor: default;
}
.ng-stepper__value {
  min-width: 36px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ng-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ng-space-10);
  min-height: var(--ng-touch-min);
}
.ng-setting__name {
  font-weight: 800;
}
.ng-setting__range {
  font-size: 13px;
  font-weight: 700;
  color: var(--ng-ink-muted);
}

.ng-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ng-space-10);
  width: 100%;
  min-height: var(--ng-touch-min);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ng-ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.ng-switch:disabled {
  cursor: default;
}
.ng-switch:disabled .ng-switch__track {
  opacity: var(--ng-opacity-disabled);
}
.ng-switch__track {
  position: relative;
  flex: none;
  width: 54px;
  height: 32px;
  border: var(--ng-stroke-mid) solid var(--ng-line);
  border-radius: var(--ng-radius-pill);
  background: var(--ng-surface);
  transition: background var(--ng-dur-press) var(--ng-ease-out);
}
.ng-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--ng-ink);
  transition: transform var(--ng-dur-press) var(--ng-ease-pop);
}
.ng-switch[aria-checked="true"] .ng-switch__track {
  background: var(--ng-ok);
}
.ng-switch[aria-checked="true"] .ng-switch__thumb {
  transform: translateX(22px);
  background: var(--ng-fixed-ink);
}
.ng-switch__state {
  font-size: 13px;
  font-weight: 800;
  color: var(--ng-ink-muted);
}

/* ── 카드 · 칩 · 아바타 · 참가자 ───────────────────── */
.ng-card {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-8);
  padding: var(--ng-space-12);
  border: var(--ng-stroke) solid var(--ng-line);
  border-radius: var(--ng-radius-xl);
  background: var(--ng-surface);
  color: var(--ng-ink);
  box-shadow: var(--ng-shadow-md);
}
.ng-card--accent {
  background: var(--ng-accent);
  color: var(--ng-on-accent);
}
.ng-card--info {
  background: var(--ng-info);
  color: var(--ng-on-info);
}
.ng-card--accent,
.ng-card--info {
  --ng-ink-muted: var(--ng-fixed-ink);
}
.ng-card--tilt {
  rotate: -2deg;
}
.ng-card--tilt-r {
  rotate: 1.5deg;
}
.ng-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ng-space-8);
}
.ng-card__title {
  font-size: 15px;
  font-weight: 900;
}
.ng-card__note {
  font-size: 12px;
  font-weight: 700;
  color: var(--ng-ink-muted);
}

.ng-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--ng-space-6);
  padding: 4px 10px;
  border: var(--ng-stroke-thin) solid var(--ng-line);
  border-radius: var(--ng-radius-pill);
  background: var(--ng-chip);
  color: var(--ng-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.ng-chip--surface {
  background: var(--ng-surface);
}
.ng-chip--accent {
  background: var(--ng-accent);
  color: var(--ng-on-accent);
}
.ng-chip--ok {
  background: var(--ng-ok);
  color: var(--ng-on-ok);
}
.ng-chip--info {
  background: var(--ng-info);
  color: var(--ng-on-info);
}
.ng-chip--now {
  background: var(--ng-ink);
  color: var(--ng-page);
}
.ng-chip--done {
  background: var(--ng-surface);
}
.ng-chip--tilt {
  rotate: -3deg;
}
.ng-chip .ng-icon {
  width: 14px;
  height: 14px;
}

.ng-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--ng-avatar-size);
  height: var(--ng-avatar-size);
  border: var(--ng-stroke-mid) solid var(--ng-line);
  border-radius: 50%;
  background: var(--ng-avatar-1);
  color: var(--ng-fixed-ink);
  font-size: 14px;
  font-weight: 900;
}
.ng-avatar--1 {
  background: var(--ng-avatar-1);
}
.ng-avatar--2 {
  background: var(--ng-avatar-2);
}
.ng-avatar--3 {
  background: var(--ng-avatar-3);
}
.ng-avatar--4 {
  background: var(--ng-avatar-4);
}
.ng-avatar--5 {
  background: var(--ng-avatar-5);
}
.ng-avatar--6 {
  background: var(--ng-avatar-6);
}
.ng-avatar--7 {
  background: var(--ng-avatar-7);
}
.ng-avatar--8 {
  background: var(--ng-avatar-8);
}
.ng-avatar--ghost {
  background: var(--ng-surface);
  color: var(--ng-ink);
  border-style: dashed;
}
.ng-avatar--lg {
  width: var(--ng-avatar-size-lg);
  height: var(--ng-avatar-size-lg);
  font-size: 22px;
}
.ng-avatar--sm {
  width: 22px;
  height: 22px;
  border-width: var(--ng-stroke-thin);
  font-size: 11px;
}

.ng-players {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ng-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ng-player {
  display: flex;
  align-items: center;
  gap: var(--ng-space-10);
  min-height: 36px;
}
.ng-player__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-player__state {
  font-size: 12px;
  font-weight: 700;
  color: var(--ng-ink-muted);
}
.ng-player--spectator {
  opacity: var(--ng-opacity-spectator);
}
.ng-player--spectator .ng-player__name {
  font-weight: 700;
}
.ng-player--offline .ng-player__name::after {
  content: " ·";
}

.ng-order {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ng-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 연결 상태 */
.ng-conn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ng-line);
  background: var(--ng-ok);
}
.ng-conn--wait::before {
  background: var(--ng-amber);
  animation: ng-flick var(--ng-dur-flick) var(--ng-ease-tick) infinite;
}
.ng-conn--off::before {
  background: var(--ng-surface);
}

/* ── 타이머 · 진행 막대 ─────────────────────────── */
.ng-timer {
  position: relative;
  flex: none;
  width: var(--ng-timer-size);
  height: var(--ng-timer-size);
}
.ng-timer svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ng-timer__face {
  fill: var(--ng-surface);
  stroke: var(--ng-line);
  stroke-width: 4;
}
.ng-timer__arc {
  fill: none;
  stroke: var(--ng-accent);
  stroke-width: 10;
}
.ng-timer__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.ng-timer--urgent .ng-timer__num {
  animation: ng-flick var(--ng-dur-flick) var(--ng-ease-tick) infinite;
}
.ng-timer--off .ng-timer__arc {
  display: none;
}

.ng-bar {
  height: 14px;
  overflow: hidden;
  border: var(--ng-stroke-mid) solid var(--ng-line);
  border-radius: var(--ng-radius-pill);
  background: var(--ng-surface);
}
.ng-bar__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ng-info);
  transform-origin: left center;
}
.ng-bar--busy .ng-bar__fill {
  background: repeating-linear-gradient(-45deg, var(--ng-accent) 0 8px, var(--ng-amber) 8px 16px);
  animation: ng-slide var(--ng-dur-slide) linear infinite;
}
.ng-bar--drain .ng-bar__fill {
  background: var(--ng-fixed-ink);
  animation: ng-drain var(--br-safe-hold, 1200ms) linear forwards;
}
.ng-card--info .ng-bar {
  border-color: var(--ng-fixed-ink);
  background: var(--ng-fixed-paper);
}

/* ── 토스트 ─────────────────────────────────────── */
.ng-toasts {
  position: fixed;
  z-index: var(--ng-z-toast);
  right: 0;
  bottom: max(var(--ng-space-16), env(safe-area-inset-bottom, 0px));
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ng-space-8);
  padding-inline: max(16px, env(safe-area-inset-left, 0px))
    max(16px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.ng-toast {
  display: inline-flex;
  align-items: center;
  gap: var(--ng-space-8);
  max-width: 420px;
  padding: 10px 18px;
  border: var(--ng-stroke) solid var(--ng-line);
  border-radius: var(--ng-radius-pill);
  background: var(--ng-surface);
  color: var(--ng-ink);
  box-shadow: var(--ng-shadow-md);
  font-size: 15px;
  font-weight: 900;
  pointer-events: auto;
  animation: ng-rise var(--ng-dur-enter) var(--ng-ease-pop) both;
}
.ng-toast--ok {
  background: var(--ng-ok);
  color: var(--ng-on-ok);
}
.ng-toast--info {
  background: var(--ng-info);
  color: var(--ng-on-info);
}
.ng-toast--accent {
  background: var(--ng-accent);
  color: var(--ng-on-accent);
}
.ng-toast .ng-icon {
  width: 18px;
  height: 18px;
}

/* ── 모달 · 공유 시트 ───────────────────────────── */
.ng-scrim {
  position: fixed;
  z-index: var(--ng-z-modal);
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px max(18px, env(safe-area-inset-right, 0px)) 18px
    max(18px, env(safe-area-inset-left, 0px));
  background: var(--ng-scrim);
  animation: ng-fade var(--ng-dur-enter) var(--ng-ease-out) both;
}
.ng-scrim--contained {
  position: absolute;
}
.ng-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ng-space-10);
  width: min(100%, 400px);
  padding: var(--ng-space-20) var(--ng-space-16);
  border: var(--ng-stroke) solid var(--ng-fixed-ink);
  border-radius: var(--ng-radius-xl);
  box-shadow: var(--ng-shadow-xl);
  text-align: center;
  rotate: -2deg;
  animation: ng-pop var(--ng-dur-enter) var(--ng-ease-pop) both;
}
.ng-modal__title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}
.ng-modal__lede {
  font-size: 15px;
  font-weight: 700;
}
.ng-modal__actions {
  display: grid;
  gap: var(--ng-space-10);
  width: 100%;
}

.ng-scrim--sheet {
  align-items: flex-end;
  padding: 0;
  z-index: var(--ng-z-sheet);
}
.ng-sheet {
  display: grid;
  gap: var(--ng-space-12);
  width: 100%;
  max-width: 480px;
  padding: var(--ng-space-12) var(--ng-space-16)
    max(var(--ng-space-16), env(safe-area-inset-bottom, 0px));
  border: var(--ng-stroke) solid var(--ng-line);
  border-bottom: 0;
  border-radius: var(--ng-radius-2xl) var(--ng-radius-2xl) 0 0;
  background: var(--ng-surface);
  color: var(--ng-ink);
  animation: ng-sheet-in var(--ng-dur-enter) var(--ng-ease-out) both;
}
.ng-sheet__grip {
  justify-self: center;
  width: 44px;
  height: 5px;
  border-radius: var(--ng-radius-pill);
  background: var(--ng-line);
  opacity: 0.3;
}
.ng-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ng-space-10);
}
.ng-sheet__title {
  font-size: 20px;
  font-weight: 900;
}
.ng-linkbox {
  display: block;
  overflow: hidden;
  padding: 10px;
  border: var(--ng-stroke-thin) dashed var(--ng-line);
  border-radius: var(--ng-radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

/* ── 언어 전환 · 머리막대 · 바닥글 ─────────────────── */
.ng-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 800;
}
.ng-lang a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ng-touch-min);
  padding: 0 var(--ng-space-8);
  border-radius: var(--ng-radius-md);
  color: var(--ng-ink-muted);
  text-decoration: none;
}
.ng-lang a[aria-current="page"] {
  color: var(--ng-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ng-lang__sep {
  color: var(--ng-ink-muted);
}
.ng-lang-btn b {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ng-lang-btn span {
  font-weight: 700;
  color: var(--ng-ink-muted);
}

.ng-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ng-space-12);
  min-height: var(--ng-touch-min);
}
.ng-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ng-space-8);
  min-height: var(--ng-touch-min);
  color: var(--ng-ink);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}
.ng-brand__crumb {
  color: var(--ng-ink-muted);
  font-weight: 800;
}
.ng-header__tools {
  display: flex;
  align-items: center;
  gap: var(--ng-space-10);
}
.ng-roomcode {
  display: flex;
  align-items: center;
  gap: var(--ng-space-8);
}
.ng-roomcode__code {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
}

.ng-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ng-space-4) var(--ng-space-16);
  padding-block: var(--ng-space-16) var(--ng-space-28);
  border-top: var(--ng-stroke) solid var(--ng-line);
  font-size: 14px;
  font-weight: 700;
}
.ng-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ng-touch-min);
  color: var(--ng-ink);
  text-underline-offset: 3px;
}
.ng-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--ng-space-16);
}

/* ── 소개 페이지 구성 블록 ─────────────────────── */
.ng-hero {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-14);
  padding-block: var(--ng-space-8);
}
.ng-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-14);
}
.ng-hero__kicker {
  align-self: flex-start;
}
.ng-hero__title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
  text-wrap: balance;
}
.ng-hero__lede {
  max-width: 600px;
  color: var(--ng-ink-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.ng-hero__art {
  align-items: center;
  overflow: hidden;
  padding: var(--ng-space-8) 0 var(--ng-space-4);
}
.ng-hero__cta {
  display: grid;
  gap: var(--ng-space-10);
}
.ng-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ng-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ng-section {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-12);
  padding-block: var(--ng-space-14);
}
.ng-section__title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  text-wrap: balance;
}
.ng-prose {
  max-width: var(--ng-readable);
  font-size: 15px;
  line-height: 1.6;
}
.ng-prose p + p {
  margin-top: var(--ng-space-10);
}

.ng-steps {
  display: grid;
  gap: var(--ng-space-10);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ng-step;
}
.ng-step {
  display: flex;
  align-items: flex-start;
  gap: var(--ng-space-12);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.ng-step::before {
  counter-increment: ng-step;
  content: counter(ng-step);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: var(--ng-stroke-mid) solid var(--ng-fixed-ink);
  border-radius: 50%;
  background: var(--ng-avatar-1);
  color: var(--ng-fixed-ink);
  font-size: 15px;
  font-weight: 900;
}
.ng-step:nth-child(2)::before {
  background: var(--ng-avatar-3);
}
.ng-step:nth-child(3)::before {
  background: var(--ng-avatar-2);
}
.ng-step:nth-child(4)::before {
  background: var(--ng-avatar-4);
}
.ng-step__text {
  padding-top: 6px;
}

.ng-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-block: var(--ng-space-4);
}
.ng-faq details {
  border-top: var(--ng-stroke-thin) solid var(--ng-line);
}
.ng-faq details:first-child {
  border-top: 0;
}
.ng-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ng-space-10);
  min-height: 52px;
  font-size: 15px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}
.ng-faq summary::-webkit-details-marker {
  display: none;
}
.ng-faq summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: var(--ng-stroke-thin) solid var(--ng-line);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  transition: rotate var(--ng-dur-press) var(--ng-ease-out);
}
.ng-faq details[open] summary::after {
  rotate: 45deg;
  background: var(--ng-ink);
  color: var(--ng-page);
}
.ng-faq details > :not(summary) {
  padding-bottom: var(--ng-space-12);
  color: var(--ng-ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── 공정성 확인 ───────────────────────────────── */
.ng-proof summary {
  min-height: var(--ng-touch-min);
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.ng-proof__desc {
  margin-block: var(--ng-space-8);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ng-ink-muted);
}
.ng-proof dl {
  display: grid;
  gap: var(--ng-space-6);
  font-size: 13px;
}
.ng-proof dt {
  font-weight: 800;
}
.ng-proof dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
}

/* ── 반응 ───────────────────────────────────────── */
.ng-reactions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ng-space-10);
}
.ng-reactions .ng-btn {
  width: 100%;
  padding: 0;
}
.ng-reactions .ng-icon {
  width: 26px;
  height: 26px;
}
.ng-float {
  position: absolute;
  z-index: var(--ng-z-float);
  display: inline-flex;
  align-items: center;
  gap: var(--ng-space-4);
  padding: 3px 10px 3px 4px;
  border: var(--ng-stroke-mid) solid var(--ng-line);
  border-radius: var(--ng-radius-pill);
  background: var(--ng-surface);
  color: var(--ng-ink);
  box-shadow: var(--ng-shadow-xs);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
  animation: ng-float-up var(--ng-dur-float) var(--ng-ease-out) forwards;
}
.ng-float .ng-icon {
  width: 16px;
  height: 16px;
}
.ng-float--slot-1 {
  top: 30%;
  right: 6%;
}
.ng-float--slot-2 {
  top: 26%;
  left: 6%;
  animation-delay: 120ms;
}
.ng-float--slot-3 {
  top: 44%;
  right: 10%;
  animation-delay: 240ms;
}
.ng-float--slot-4 {
  top: 40%;
  left: 10%;
  animation-delay: 360ms;
}

/* ── 화면 배치 ─────────────────────────────────── */
.ng-app {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-14);
  width: 100%;
  max-width: var(--ng-column-max);
  min-height: 100dvh;
  margin-inline: auto;
  padding-block: var(--ng-space-16);
  padding-left: max(var(--ng-space-16), env(safe-area-inset-left, 0px));
  padding-right: max(var(--ng-space-16), env(safe-area-inset-right, 0px));
}
.ng-wrap {
  width: 100%;
  max-width: var(--ng-content-max);
  margin-inline: auto;
  padding-left: max(var(--ng-space-16), env(safe-area-inset-left, 0px));
  padding-right: max(var(--ng-space-16), env(safe-area-inset-right, 0px));
}
.ng-stage {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-14);
}
.ng-stage__main,
.ng-stage__side {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-14);
  min-width: 0;
}

@media (min-width: 960px) {
  .ng-brand {
    font-size: 18px;
  }
  .ng-header--bar {
    min-height: var(--ng-nav-h);
    padding-inline: 32px;
    border-bottom: var(--ng-stroke) solid var(--ng-line);
    background: var(--ng-surface);
  }
  .ng-lang {
    font-size: 15px;
  }
  .ng-card {
    padding: var(--ng-space-16);
  }
  .ng-wrap {
    padding-inline: var(--ng-space-56);
  }
  .ng-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    align-items: center;
    gap: 48px;
    padding-block: 32px;
  }
  .ng-hero__copy {
    gap: 18px;
  }
  .ng-hero__title {
    font-size: 88px;
    line-height: 1;
    letter-spacing: -2px;
  }
  .ng-hero__lede {
    font-size: 21px;
  }
  .ng-hero__cta {
    display: flex;
    gap: var(--ng-space-16);
  }
  .ng-hero__cta .ng-btn {
    min-width: 240px;
  }
  .ng-hero__art {
    rotate: 1.5deg;
    padding: var(--ng-space-20) 0 var(--ng-space-8);
  }
  .ng-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ng-space-20);
  }
  .ng-steps--cards .ng-step {
    padding: var(--ng-space-16);
    border: var(--ng-stroke) solid var(--ng-line);
    border-radius: var(--ng-radius-xl);
    background: var(--ng-surface);
    box-shadow: var(--ng-shadow-md);
  }
  .ng-app--wide {
    max-width: var(--ng-content-max);
    padding: var(--ng-space-28) var(--ng-space-40);
  }
  .ng-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--ng-sidebar-w);
    align-items: start;
    gap: var(--ng-space-28);
  }
  .ng-stage__side {
    gap: var(--ng-space-20);
  }
  .ng-scrim--sheet {
    align-items: center;
    padding: 18px;
  }
  .ng-sheet {
    border-bottom: var(--ng-stroke) solid var(--ng-line);
    border-radius: var(--ng-radius-xl);
    box-shadow: var(--ng-shadow-md);
    padding: var(--ng-space-20);
  }
  .ng-sheet__grip {
    display: none;
  }
}

/* ── 키프레임 ─────────────────────────────────── */
@keyframes ng-flick {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}
@keyframes ng-slide {
  to {
    background-position: 22.6px 0;
  }
}
@keyframes ng-drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@keyframes ng-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes ng-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes ng-rise {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes ng-sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes ng-float-up {
  0% {
    transform: translateY(8px);
    opacity: 0;
  }
  20% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-22px);
    opacity: 0;
  }
}

/* ── 움직임 줄이기: OS 설정 또는 앱 설정(html[data-motion="reduce"]) ── */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .ng-body *,
  :root:not([data-motion="full"]) .ng-body *::before,
  :root:not([data-motion="full"]) .ng-body *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
:root[data-motion="reduce"] .ng-body *,
:root[data-motion="reduce"] .ng-body *::before,
:root[data-motion="reduce"] .ng-body *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0ms !important;
  transition-duration: 1ms !important;
}

/* Portal pages */
.ng-site-main {
  display: flex;
  flex-direction: column;
  gap: var(--ng-space-20);
  padding-block: var(--ng-space-16) var(--ng-space-40);
}
.ng-site-title {
  font-size: clamp(32px, 5vw, 64px);
}
.ng-game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--ng-space-20);
}
.ng-game-card__copy {
  display: grid;
  gap: var(--ng-space-12);
  justify-items: start;
}
.ng-game-card__art {
  display: block;
  justify-self: center;
  width: min(100%, 184px);
  height: auto;
}
.ng-hero__cta form .ng-btn {
  width: 100%;
}
.ng-language-cards .ng-btn {
  justify-self: start;
}
.ng-content-card {
  max-width: var(--ng-readable);
}
.ng-join-form {
  display: grid;
  align-items: end;
  gap: var(--ng-space-10);
}
.ng-join-form .ng-input {
  min-width: 0;
}

@media (min-width: 640px) {
  .ng-game-card {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .ng-language-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--ng-space-16);
  }
  .ng-join-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
@media (min-width: 960px) {
  .ng-hero__cta {
    flex-wrap: wrap;
  }
}
