:root { color-scheme: light dark; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #e6e8ec;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

main { width: 100%; max-width: 640px; }

.hero { text-align: center; margin-bottom: 32px; }

.hint {
  color: #9aa0a8;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.ip {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 44px;
  font-weight: 700;
  cursor: pointer;
  user-select: all;
  color: #7ec8ff;
}

.badge {
  background: #2a2f38;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #9aa0a8;
}

button {
  background: #2a6df0;
  border: 0;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

button:hover { background: #1f5fd0; }

.toast {
  min-height: 22px;
  color: #5bd48a;
  font-size: 14px;
  opacity: 0;
  transition: opacity .2s;
}

.toast.show { opacity: 1; }

.details, .api {
  background: #161a21;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

table { width: 100%; border-collapse: collapse; }

th, td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid #232a34;
  font-size: 15px;
}

th { color: #9aa0a8; font-weight: 500; width: 40%; }
td { word-break: break-all; }

.map {
  display: inline-block;
  margin-top: 14px;
  color: #7ec8ff;
  text-decoration: none;
}

.api h2 { margin-top: 0; font-size: 16px; }

.cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}

.cmd code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: #0c0f13;
  padding: 8px 10px;
  border-radius: 6px;
  flex: 1;
  word-break: break-all;
}

.lang {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  padding: 14px 0 4px;
  border-top: 1px solid #232a34;
  font-size: 14px;
}

.lang a {
  color: #9aa0a8;
  text-decoration: none;
}

.lang a:hover { color: #e6e8ec; }

.lang a[aria-current] {
  color: #e6e8ec;
  font-weight: 600;
}

@media (prefers-color-scheme: light) {
  body { background: #f6f7f9; color: #1c1e22; }
  .hint, th { color: #6b7280; }
  .ip { color: #0b63c4; }
  .badge { background: #e5e7eb; color: #4b5563; }
  .details, .api { background: #ffffff; }
  th, td { border-color: #e5e7eb; }
  .cmd code { background: #f1f2f4; }
  .lang { border-color: #e5e7eb; }
  .lang a { color: #6b7280; }
  .lang a:hover, .lang a[aria-current] { color: #1c1e22; }
}
