:root {
  --bg: #101014;
  --panel: #18181f;
  --panel-hover: #1e1e27;
  --line: #26262f;
  --text: #f2f2f0;
  --dim: #8e8e98;
  --accent: #ffb13d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 20px calc(40px + env(safe-area-inset-bottom));
}

.hero { margin-bottom: 40px; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .sub {
  margin-top: 14px;
  color: var(--dim);
  font-size: 15px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.card:hover, .card:focus-visible {
  background: var(--panel-hover);
  border-color: #34343f;
  transform: translateY(-1px);
}

.card:active { transform: translateY(0); }

.card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  background: #000;
}

.card .meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card .name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card .desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.45;
}

.card .go {
  margin-left: auto;
  color: var(--dim);
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.card:hover .go {
  color: var(--accent);
  transform: translateX(2px);
}

.foot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.foot p + p { margin-top: 6px; }

.foot-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.foot-link:hover { text-decoration: underline; }

/* 로그인 상태 위젯 (페이지 우상단) */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  margin-bottom: 8px;
  font-size: 13px;
}

.topbar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .who { color: var(--dim); }
.topbar .who b { color: var(--text); font-weight: 700; }
.topbar button {
  background: none; border: none; color: var(--dim); font: inherit;
  cursor: pointer; padding: 0; text-decoration: underline;
}
.topbar button:hover { color: var(--text); }

/* 가입/로그인 폼 */
.auth-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--dim); font: inherit; font-weight: 700;
  cursor: pointer;
}
.auth-tabs button.active { background: var(--accent); color: #14110a; border-color: var(--accent); }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.auth-field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit;
}
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-hint { font-size: 12px; margin-top: 6px; min-height: 16px; }
.auth-hint.ok { color: #5fd08a; }
.auth-hint.bad { color: #ff7a7a; }
.auth-submit {
  width: 100%; padding: 14px; border-radius: 12px; border: none;
  background: var(--accent); color: #14110a; font: inherit; font-weight: 800;
  font-size: 15px; cursor: pointer; margin-top: 6px;
}
.auth-submit:active { transform: scale(0.99); }
.auth-submit:disabled { opacity: 0.5; cursor: default; }
.auth-error { color: #ff7a7a; font-size: 13px; margin-top: 12px; min-height: 18px; text-align: center; }
