:root {
  --bg: #f2f3f6;
  --bg-glow: #e7eaf3;
  --card-bg: #ffffff;
  --card-border: #e3e5ea;
  --text: #1c1e24;
  --text-muted: #6b6f7b;
  --text-faint: #9498a3;
  --accent: #3b6ff0;
  --accent-contrast: #ffffff;
  --badge-bg: #eef2fe;
  --badge-text: #3b6ff0;
  --error: #d33d3d;
  --shadow: 0 1px 2px rgba(20, 22, 30, 0.04), 0 12px 28px -14px rgba(20, 22, 30, 0.18);
  --radius-lg: 20px;
  --radius-md: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101217;
    --bg-glow: #171a21;
    --card-bg: #1a1d24;
    --card-border: #2a2e38;
    --text: #eef0f4;
    --text-muted: #9599a6;
    --text-faint: #6c7080;
    --accent: #6d93f7;
    --accent-contrast: #10131a;
    --badge-bg: #1c2333;
    --badge-text: #8caaf9;
    --error: #f28b8b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-glow), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 32px;
}

.hero {
  width: 100%;
  max-width: 460px;
  text-align: center;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 16px;
  text-align: center;
}

.ip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ip-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(24px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.copy-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.copy-btn:not(:disabled):hover {
  filter: brightness(1.05);
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 13px;
  font-weight: 600;
}

.error {
  color: var(--error);
  font-size: 14px;
  margin: 14px 0 0;
}

.details {
  text-align: left;
}

.details h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

#details-list {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
}

#details-list dt {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

#details-list dd {
  margin: 0;
  font-size: 13px;
  word-break: break-word;
}

.footer {
  width: 100%;
  max-width: 460px;
  text-align: center;
  margin-top: 8px;
}

.footer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-faint);
}
