/* ipme.wtf — terminal aesthetic, hody orange on near-black. */
:root {
  --bg: #05050a;
  --panel: #11151b;
  --bubble: #161b22;
  --line: #1c2128;
  --line-2: #30363d;
  --txt: #c9d1d9;
  --muted: #7d8590;
  --dim: #566;
  --o1: #fd8d27;
  --o2: #e97414;
  --o3: #d45b01;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 70% at 50% -10%, rgba(233, 116, 20, 0.10), transparent 60%), var(--bg);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 5vh 18px;
}
.page { width: 100%; max-width: 600px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 26px;
}
.brand { font-weight: 800; letter-spacing: -0.5px; font-size: 15px; }
.br { color: #4a4a4a; }
.h { background: linear-gradient(135deg, var(--o1), var(--o3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { color: var(--muted); }

.lead { font-size: 13px; color: var(--muted); margin: 0 0 9px; }

/* IP code bubbles (Obsidian inline-code feel) */
.bubble {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bubble);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.05s;
}
.bubble:hover { border-color: var(--o2); }
.bubble:active { transform: translateY(1px); }
/* `.bubble { display:flex }` outranks the UA `[hidden]` rule, so re-assert it here
   or the hidden secondary IP row would still show. */
.bubble[hidden] { display: none; }
.bubble .v {
  font-weight: 800;
  font-size: clamp(20px, 6vw, 30px);
  word-break: break-all;
  background: linear-gradient(135deg, var(--o1), var(--o2), var(--o3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bubble.sm .v2 { font-size: 14px; font-weight: 600; color: var(--txt); word-break: break-all; }
.bubble.sm .v2.muted { color: var(--dim); font-weight: 400; }
.lbl-inline {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dim); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 1px 5px; align-self: flex-start; flex-shrink: 0;
}
.cp {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: transparent; border: 1px solid var(--line-2); border-radius: 6px;
  padding: 4px 8px; cursor: pointer; flex-shrink: 0; transition: 0.15s;
}
.cp:hover { color: var(--o1); border-color: var(--o2); }

/* section labels */
.lbl {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--dim); font-weight: 600; margin: 22px 0 8px;
}
.lbl .hint { text-transform: none; letter-spacing: 0; color: #3a4250; font-weight: 400; }
.lbl.tog { cursor: pointer; user-select: none; }
.lbl.tog:hover .hint { color: var(--muted); }

/* key/value rows */
.kv {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12.5px; padding: 6px 2px; border-bottom: 1px solid var(--line);
}
.kv span:first-child { color: var(--muted); flex-shrink: 0; }
.kv span:last-child { color: var(--txt); text-align: right; word-break: break-word; }
.kv.hdr span:first-child { color: var(--o2); }
.kv.hdr span:last-child { color: var(--muted); font-size: 11.5px; }
.kv.verdict span:last-child { font-weight: 600; }
.verdict.good span:last-child { color: #3fb950; }
.verdict.warn span:last-child { color: var(--o1); }
.verdict.bad span:last-child { color: #f85149; }

/* footer */
.ftr {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.chip {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px;
  padding: 3px 8px; cursor: pointer; text-decoration: none; transition: 0.15s;
}
.chip:hover { color: var(--o1); border-color: var(--o2); }
.made { opacity: 0.85; transition: opacity 0.15s; display: inline-flex; }
.made:hover { opacity: 1; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  background: var(--bubble); border: 1px solid var(--o2); color: var(--txt);
  font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 8px;
  opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 440px) {
  .kv { font-size: 12px; }
  .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
