:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --line: #262626;
  --line-2: #363636;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --faint: #6e6e6e;
  --accent: #ffffff;
  --accent-ink: #0a0a0a;
  --accent-rgb: 255, 255, 255;
  --accent-soft: rgba(var(--fg-rgb), 0.08);
  --bg-rgb: 10, 10, 10;
  --surface-rgb: 19, 19, 19;
  --fg-rgb: 255, 255, 255;
  --shadow-rgb: 0, 0, 0;
  --blurple: #ffffff;
  --blurple-ink: #0a0a0a;
  --danger: #ff5d6c;
  --danger-soft: rgba(255, 93, 108, 0.1);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, 0.12);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --chart-a: #737373;
  --chart-b: #f5f5f5;
  --r: 18px;
  --r-sm: 12px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #f1f1f1;
  --line: #e4e4e4;
  --line-2: #d2d2d2;
  --text: #0a0a0a;
  --muted: #4f4f4f;
  --faint: #8a8a8a;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --accent-rgb: 10, 10, 10;
  --accent-soft: rgba(10, 10, 10, 0.06);
  --bg-rgb: 247, 247, 247;
  --surface-rgb: 255, 255, 255;
  --fg-rgb: 0, 0, 0;
  --shadow-rgb: 0, 0, 0;
  --blurple: #0a0a0a;
  --blurple-ink: #ffffff;
  --danger: #d92d3f;
  --danger-soft: rgba(217, 45, 63, 0.08);
  --warn: #b86e00;
  --warn-soft: rgba(184, 110, 0, 0.1);
  --ok: #138a55;
  --ok-soft: rgba(19, 138, 85, 0.1);
  --chart-a: #a3a3a3;
  --chart-b: #0a0a0a;
  color-scheme: light;
}


* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 'IBM Plex Sans Thai', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, rgba(var(--accent-rgb), 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--fg-rgb), 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--fg-rgb), 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 16px 32px;
}

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 240px);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(var(--fg-rgb), 0.02) inset;
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.loader {
  display: flex;
  gap: 6px;
}

.loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1s infinite;
}

.loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: none;
  }
}

.hero {
  position: relative;
  padding: 28px 24px 22px;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  --banner-fallback: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 60%, var(--bg) 100%);
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.25), rgba(var(--surface-rgb), 0.96) 92%),
    var(--banner, var(--banner-fallback));
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(var(--accent-rgb), 0.035) 14px 15px);
}

.pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pair .av {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--surface-2);
  border: 2px solid rgba(var(--fg-rgb), 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pair .av.user {
  border-radius: 50%;
}

.link {
  display: flex;
  align-items: center;
  gap: 5px;
}

.link i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  animation: flow 1.4s infinite;
}

.link i:nth-child(2) {
  animation-delay: 0.2s;
}

.link i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes flow {
  50% {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent);
  }
}

.badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
}

.badge svg {
  width: 30px;
  height: 30px;
}

.badge.warn {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: rgba(255, 181, 71, 0.35);
}

.badge.ok {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: rgba(61, 220, 151, 0.35);
}

.badge.bad {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(255, 93, 108, 0.35);
}

.badge.pulse {
  animation: ring 2s infinite;
}

@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.4);
  }

  100% {
    box-shadow: 0 0 0 18px rgba(255, 181, 71, 0);
  }
}

.hero h1 {
  margin: 0;
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.hero p b {
  color: var(--text);
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 24px 0;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.step .bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.step .bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.5s;
}

.step.done .bar::after {
  width: 100%;
}

.step.active .bar::after {
  width: 50%;
}

.step.error .bar::after {
  width: 100%;
  background: var(--danger);
}

.step span {
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
}

.step.done span,
.step.active span {
  color: var(--text);
}

.step.error span {
  color: var(--danger);
}

.body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec-h a,
.sec-h button {
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
}

.sec-h a:hover,
.sec-h button:hover {
  text-decoration: underline;
}

.tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  min-width: 0;
}

.tile img,
.tile .ph {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

.tile .round {
  border-radius: 50%;
}

.ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 18px;
  border: 1px solid var(--line-2);
}

.meta {
  min-width: 0;
  flex: 1;
}

.name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name a {
  color: var(--faint);
  display: inline-flex;
}

.name a:hover {
  color: var(--accent);
}

.name a svg {
  width: 14px;
  height: 14px;
}

.sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--ok-soft);
  color: var(--ok);
  flex: none;
}

.opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opt {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.opt:hover {
  border-color: var(--line-2);
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  flex: none;
  display: grid;
  place-items: center;
  transition: 0.15s;
}

.opt.sel {
  border-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 80%);
}

.opt.sel .dot {
  border-color: var(--accent);
}

.opt.sel .dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.opt:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}

.chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  box-shadow: 0 0 10px var(--c, var(--accent));
}

.alert {
  border-radius: var(--r-sm);
  padding: 14px;
  border: 1px solid;
  font-size: 14px;
}

.alert h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.alert p {
  margin: 0;
  color: var(--muted);
}

.alert.bad {
  background: var(--danger-soft);
  border-color: rgba(255, 93, 108, 0.35);
}

.alert.bad h3 {
  color: var(--danger);
}

.alert.warn {
  background: var(--warn-soft);
  border-color: rgba(255, 181, 71, 0.35);
}

.alert.warn h3 {
  color: var(--warn);
}

.alert.info {
  background: var(--surface);
  border-color: var(--line);
}

.alert .list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.alert .list .tile {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 93, 108, 0.2);
  padding: 8px 10px;
}

.alert .list .tile img,
.alert .list .tile .ph {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 14px;
}

.alert small {
  display: block;
  margin-top: 10px;
  color: var(--faint);
  font-size: 12px;
}

.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 0;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.1s, filter 0.15s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.985);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.6);
}

.btn.primary:hover {
  filter: brightness(1.07);
}

.btn.discord {
  background: var(--blurple);
  color: var(--blurple-ink);
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.7);
}

.btn.discord:hover {
  filter: brightness(1.08);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-2);
}

.btn.ghost:hover {
  border-color: var(--muted);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn .spin {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}

.note {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  margin: 0;
}

.note b {
  color: var(--muted);
}

.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.perks li b {
  color: var(--text);
  font-weight: 600;
}

.perks .n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 12px var(--mono);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline div {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 12px;
  position: relative;
}

.timeline div::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
  margin-top: 6px;
  flex: none;
}

.timeline div.done::before {
  background: var(--accent);
}

.timeline div.now::before {
  background: var(--warn);
  box-shadow: 0 0 0 4px var(--warn-soft);
}

.timeline div:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}

.timeline b {
  color: var(--text);
  font-weight: 600;
}

.foot {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--faint);
  font-size: 13px;
}

.foot button {
  background: none;
  border: 0;
  color: var(--faint);
  padding: 0;
}

.foot button:hover {
  color: var(--text);
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  max-width: calc(100% - 32px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--line-2) 50%, var(--surface-2) 70%);
  background-size: 300% 100%;
  animation: skshine 1.3s ease-in-out infinite;
}

@keyframes skshine {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -50% 0;
  }
}

.sk-line {
  height: 13px;
  margin: 0 auto;
}

.sk-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-rgb), 0.08));
}

.sk-hero .pair {
  margin-bottom: 8px;
}

.sk-av {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.sk-av.round,
.sk-ic.round {
  border-radius: 50%;
}

.sk-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px 24px 0;
}

.sk-steps .sk {
  height: 4px;
  border-radius: 4px;
}

.sk-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-body>.sk-line {
  margin: 8px 0 0;
}

.sk-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.sk-tile>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-tile .sk-line {
  margin: 0;
}

.sk-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
}

.sk-btn {
  height: 50px;
  border-radius: 14px;
  margin-top: 10px;
}

.sk-status {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 4px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.sk-status .spin {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

#skMsg {
  transition: opacity 0.2s;
}

.scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0 4px;
  animation: rise 0.35s ease;
}

.radar {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.radar .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.radar .r1 {
  animation: ping 2s ease-out infinite;
}

.radar .r2 {
  animation: ping 2s ease-out 1s infinite;
}

@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 1;
  }

  to {
    transform: scale(1.25);
    opacity: 0;
  }
}

.radar .sweep {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--accent-rgb), 0.45), rgba(var(--accent-rgb), 0) 28%, transparent);
  animation: spin 1.6s linear infinite;
  mask: radial-gradient(circle, transparent 38px, #000 39px);
}

.radar .arc {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(var(--accent-rgb), 0.35);
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6));
}

.radar .arc2 {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px dashed rgba(var(--accent-rgb), 0.3);
  animation: spin 6s linear infinite reverse;
}

.radar .orbit {
  position: absolute;
  inset: -4px;
  animation: spin 2.2s linear infinite;
}

.radar .orbit i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(var(--accent-rgb), 0.8);
}

.radar .core {
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 34px rgba(var(--accent-rgb), 0.55);
  }
}

.radar.small .arc {
  border-top-color: var(--danger);
  border-right-color: rgba(255, 93, 108, 0.35);
  filter: drop-shadow(0 0 6px rgba(255, 93, 108, 0.6));
}

.radar.small .orbit i {
  background: var(--danger);
  box-shadow: 0 0 12px 2px rgba(255, 93, 108, 0.8);
}

.radar.small .arc2 {
  border-color: rgba(255, 93, 108, 0.3);
}

.radar.small .core {
  animation-name: breatheRed;
}

@keyframes breatheRed {
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 34px rgba(255, 93, 108, 0.55);
  }
}

.radar .core,
.radar .ph.core {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35);
  object-fit: cover;
}

.scan-title {
  font-weight: 700;
  font-size: 17px;
}

.dots i {
  font-style: normal;
  animation: blink 1.2s infinite;
}

.dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.dots i:nth-child(3) {
  animation-delay: 0.4s;
}

.scan-sub {
  color: var(--muted);
  font-size: 13px;
  min-height: 20px;
  text-align: center;
}

.elapsed {
  font-family: var(--mono);
  color: var(--text);
}

.pbar {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  margin: 10px 0 6px;
}

.pbar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--muted) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pbar.ok i {
  background: var(--ok);
  animation: none;
}

.pbar.fail i {
  background: var(--danger);
  animation: none;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.checks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--faint);
  font-size: 14px;
  transition: background 0.25s, color 0.25s;
}

.checks .ic {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: 0.25s;
}

.checks li.run {
  color: var(--text);
  background: var(--surface);
}

.checks li.run .ic {
  border-color: var(--accent);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.checks li.done {
  color: var(--muted);
}

.checks li.done .ic {
  border-color: var(--ok);
  background: var(--ok);
  animation: pop 0.3s ease;
}

.checks li.done .ic::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.checks li.fail {
  color: var(--danger);
  background: var(--danger-soft);
}

.checks li.fail .ic {
  border-color: var(--danger);
  background: var(--danger);
  animation: shake 0.4s ease;
}

.checks li.fail .ic::after {
  content: '!';
  color: var(--bg);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

@keyframes pop {
  50% {
    transform: scale(1.25);
  }
}

@keyframes shake {
  25% {
    transform: translateX(-3px);
  }

  75% {
    transform: translateX(3px);
  }
}

.leave-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 93, 108, 0.45);
  background: rgba(255, 93, 108, 0.12);
  color: var(--danger);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s, transform 0.1s;
}

.leave-btn svg {
  width: 15px;
  height: 15px;
}

.leave-btn:hover {
  background: var(--danger);
  color: #fff;
}

.leave-btn:active {
  transform: scale(0.96);
}

.btn.danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 93, 108, 0.7);
}

.btn.danger:hover {
  filter: brightness(1.08);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-back {
  position: absolute;
  inset: 0;
  background: rgba(var(--shadow-rgb), 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s;
}

.dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.show .modal-back {
  opacity: 1;
}

.modal.show .dialog {
  opacity: 1;
  transform: none;
}

.dialog .x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.dialog .x:hover {
  background: var(--surface);
  color: var(--text);
}

.dialog .x svg {
  width: 16px;
  height: 16px;
}

.dialog h2 {
  margin: 12px 0 0;
  font-size: 20px;
}

.m-name {
  margin: 2px 0 16px;
  color: var(--muted);
  font-weight: 600;
}

.m-head {
  position: relative;
  display: inline-block;
}

.m-icon,
.ph.m-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  font-size: 26px;
}

.m-arrow {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  display: grid;
  place-items: center;
  border: 3px solid var(--surface-2);
  animation: nudge 1.4s ease-in-out infinite;
}

.m-arrow svg {
  width: 14px;
  height: 14px;
}

@keyframes nudge {
  50% {
    transform: translateX(3px);
  }
}

.m-box,
.m-how {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.m-box-h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.m-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
}

.m-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.m-list b {
  color: var(--text);
}

.m-list span {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.m-list span svg {
  width: 12px;
  height: 12px;
}

.m-list .ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.m-list .no {
  background: var(--danger-soft);
  color: var(--danger);
}

.m-how ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-how b {
  color: var(--text);
}

.m-how b.red {
  color: var(--danger);
}

.m-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  margin-top: 16px;
}

.m-actions.col {
  grid-template-columns: 1fr;
}

.m-actions .btn {
  padding: 13px 14px;
}

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

.m-wait {
  display: grid;
  place-items: center;
}

.radar.small {
  width: 100px;
  height: 100px;
  margin: 0;
}

.radar.small .ring {
  border-color: rgba(255, 93, 108, 0.35);
}

.radar.small .core {
  border-color: var(--danger);
  box-shadow: 0 0 24px rgba(255, 93, 108, 0.35);
  border-radius: 20px;
}

@media (max-width: 420px) {
  .m-actions {
    grid-template-columns: 1fr;
  }

  .m-actions .btn.ghost {
    order: 2;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding-top: 16px;
  }

  .hero {
    padding: 22px 16px 18px;
  }

  .body {
    padding: 18px 16px 20px;
  }

  .steps {
    padding: 14px 16px 0;
  }

  .hero h1 {
    font-size: 20px;
  }
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-img, none) center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page-bg.on {
  opacity: 1;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: var(--bg-dim, 1);
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.88) 30%, rgba(var(--bg-rgb), 0.35) 70%, rgba(var(--bg-rgb), 0.15) 100%),
    linear-gradient(0deg, rgba(var(--bg-rgb), 0.85) 0%, transparent 40%);
}

.page-bg[data-shade='even']::after {
  background:
    linear-gradient(rgba(var(--bg-rgb), 0.6), rgba(var(--bg-rgb), 0.6)),
    linear-gradient(0deg, rgba(var(--bg-rgb), 0.85) 0%, transparent 40%);
}

.page-bg[data-shade='none']::after {
  display: none;
}

body:has(.page-bg.on) .bg-grid,
body:has(.page-bg.on)::before {
  opacity: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(var(--bg-rgb), 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.06);
}

.nav-in {
  max-width: 1200px;
  margin: 0 auto;
  height: clamp(56px, 6vh + 20px, 72px);
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 0.8vw, 14px);
  text-decoration: none;
  min-width: 0;
}

.brand-ic,
.ph.brand-ic {
  width: clamp(32px, 1.2vw + 22px, 42px);
  height: clamp(32px, 1.2vw + 22px, 42px);
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  font-size: 15px;
}

.brand-tx {
  font-weight: 800;
  font-size: clamp(15px, 0.6vw + 12px, 20px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.umenu {
  position: relative;
  flex: none;
}

.ubtn {
  width: clamp(34px, 1vw + 26px, 42px);
  height: clamp(34px, 1vw + 26px, 42px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  transition: border-color 0.15s;
}

.ubtn img,
.ubtn .ph {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ubtn:hover,
.ubtn[aria-expanded='true'] {
  border-color: var(--text);
}

.udrop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  background: rgba(var(--surface-rgb), 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: 0.16s ease;
}

.udrop.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.udrop .uname {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.udrop .uname b {
  display: block;
  font-size: 15px;
}

.udrop .uname small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.udrop button {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: var(--danger);
  font-weight: 600;
  font-size: 14px;
}

.udrop button:hover {
  background: var(--danger-soft);
}

.nav-login {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--blurple);
  color: var(--blurple-ink);
}

.foot .sep {
  opacity: 0.5;
}

html {
  font-size: clamp(14px, 0.35vw + 12.5px, 17px);
}

body {
  font-size: 1rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.nav,
.wrap {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  z-index: 20;
}

.wrap {
  flex: 1;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 48px) clamp(12px, 3vw, 48px) clamp(16px, 3vh, 40px);
}

.card,
.wrap>.card {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  border-radius: clamp(18px, 1.6vw, 28px);
}

.foot {
  font-size: clamp(12px, 0.8vw, 14px);
  margin-top: clamp(12px, 2vh, 24px);
}

.hero {
  padding: clamp(20px, 3.2vh, 36px) clamp(16px, 2.2vw, 32px) clamp(16px, 2.6vh, 28px);
}

.hero h1 {
  font-size: clamp(19px, 1.1vw + 13px, 30px);
}

.hero p {
  font-size: clamp(13px, 0.5vw + 10px, 16px);
}

.pair .av,
.badge,
.sk-av {
  width: clamp(52px, 3vw + 30px, 80px);
  height: clamp(52px, 3vw + 30px, 80px);
}

.badge svg {
  width: 45%;
  height: 45%;
}

.pair {
  margin-bottom: clamp(12px, 2vh, 22px);
}

.steps,
.sk-steps {
  padding: clamp(12px, 2vh, 22px) clamp(16px, 2.2vw, 32px) 0;
}

.body,
.sk-body {
  padding: clamp(16px, 2.4vh, 28px) clamp(16px, 2.2vw, 32px) clamp(18px, 2.8vh, 32px);
  gap: clamp(14px, 2vh, 22px);
}

.sk-hero {
  padding: clamp(20px, 3.2vh, 36px) clamp(16px, 2.2vw, 32px);
}

.tile {
  padding: clamp(10px, 1.2vh, 14px) clamp(12px, 1.2vw, 16px);
}

.tile img,
.tile .ph,
.sk-ic {
  width: clamp(38px, 1.5vw + 26px, 50px);
  height: clamp(38px, 1.5vw + 26px, 50px);
}

.btn {
  padding: clamp(12px, 1.6vh, 16px) clamp(14px, 1.4vw, 20px);
  font-size: clamp(14px, 0.4vw + 12px, 17px);
}

.sk-btn {
  height: clamp(46px, 5.5vh, 56px);
}

.radar {
  width: clamp(96px, 5vw + 60px, 140px);
  height: clamp(96px, 5vw + 60px, 140px);
}

.radar .core,
.radar .ph.core {
  width: 56%;
  height: 56%;
}

.radar .sweep {
  inset: 5%;
  mask: radial-gradient(circle, transparent 57%, #000 58%);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%);
}

.dialog {
  max-width: min(100%, clamp(340px, 26vw + 160px, 480px));
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 3vh, 30px) clamp(16px, 2vw, 26px);
}

@media (max-height: 700px) {
  body:not(.fit) .wrap {
    justify-content: flex-start;
  }

  .pair {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .wrap {
    justify-content: flex-start;
    padding-top: 12px;
  }

  .card {
    width: 100%;
  }
}

.modal .dialog {
  zoom: var(--ui-scale, 1);
}

body.fit {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.fit .wrap {
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.wrap>.card,
.wrap>.foot {
  flex-shrink: 0;
}

@media (max-height: 860px) {
  .wrap {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero,
  .sk-hero {
    padding: 16px 20px 14px;
  }

  .pair {
    margin-bottom: 8px;
  }

  .pair .av,
  .badge,
  .sk-av {
    width: 50px;
    height: 50px;
  }

  .hero h1 {
    font-size: 21px;
  }

  .hero p {
    font-size: 13px;
    margin-top: 2px;
  }

  .steps,
  .sk-steps {
    padding-top: 10px;
  }

  .step {
    gap: 5px;
  }

  .body,
  .sk-body {
    padding: 12px 22px 16px;
    gap: 11px;
  }

  .sec-h {
    margin-bottom: 5px;
  }

  .tile {
    padding: 8px 12px;
  }

  .tile img,
  .tile .ph,
  .sk-ic {
    width: 36px;
    height: 36px;
  }

  .opts {
    gap: 6px;
  }

  .alert {
    padding: 10px 12px;
  }

  .alert .list {
    margin-top: 8px;
    gap: 5px;
  }

  .alert .list .tile {
    padding: 6px 8px;
  }

  .alert small {
    margin-top: 6px;
  }

  .btn {
    padding: 11px 16px;
  }

  .foot {
    margin-top: 8px;
  }

  .perks {
    gap: 7px;
  }

  .timeline div {
    padding-bottom: 7px;
  }

  .radar {
    width: 96px;
    height: 96px;
    margin-bottom: 4px;
  }

  .checks li {
    padding: 6px 12px;
  }
}

.sitefoot {
  position: relative;
  z-index: 2;
  flex: none;
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(var(--fg-rgb), 0.06);
}

.sitefoot-in {
  max-width: 1200px;
  margin: 0 auto;
  min-height: clamp(48px, 4vh + 20px, 64px);
  padding: 10px clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  font-size: clamp(12px, 0.3vw + 10px, 14px);
  color: var(--faint);
}

.sitefoot .copy b {
  color: var(--text);
  font-weight: 600;
}

.flinks {
  display: flex;
  gap: clamp(14px, 1.4vw, 24px);
  flex-wrap: wrap;
}

.flinks button,
.flinks a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.flinks button:hover,
.flinks a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .sitefoot-in {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 10px 16px;
  }

  .flinks {
    justify-content: center;
    gap: 16px;
  }
}

.dialog.info {
  text-align: left;
  max-width: min(100%, 560px);
}

.dialog.info h2 {
  margin: 0 36px 14px 0;
  font-size: 20px;
}

.info-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.legal b {
  color: var(--text);
}

.legal h4 {
  margin: 14px 0 4px;
  color: var(--text);
  font-size: 14px;
}

.legal h4:first-child {
  margin-top: 0;
}

.legal ul,
ol.legal {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.theme-btn {
  width: clamp(34px, 1vw + 26px, 42px);
  height: clamp(34px, 1vw + 26px, 42px);
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 0;
  flex: none;
  transition: border-color 0.15s, transform 0.2s;
}

.theme-btn:hover {
  border-color: var(--text);
}

.theme-btn:active {
  transform: rotate(-20deg) scale(0.94);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.theme-btn .sun {
  display: none;
}

:root[data-theme='light'] .theme-btn .sun {
  display: block;
}

:root[data-theme='light'] .theme-btn .moon {
  display: none;
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

html {
  transition: background-color 0.2s;
}

.add-steam {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line-2);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: 0.15s;
}

.add-steam svg {
  width: 16px;
  height: 16px;
}

.add-steam:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--accent-soft);
}

.alert+.add-steam {
  margin-top: 8px;
}

.steam-ic {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
}

.steam-ic svg {
  width: 38px;
  height: 38px;
}

.sitefoot .credit {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.sitefoot .credit:hover {
  text-decoration: underline;
}

.btn,
.m-actions .btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  gap: 10px;
  box-shadow: none !important;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.btn:active {
  transform: none;
  opacity: 0.85;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  filter: none;
}

.btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn.primary:hover {
  background: var(--muted);
  border-color: var(--muted);
}

.btn.discord {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-2);
}

.btn.discord svg {
  color: currentColor;
  width: 20px;
  height: 20px;
}

.btn.discord:hover {
  background: var(--surface-2);
  border-color: var(--faint);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

.btn.ghost:hover {
  background: var(--surface-2);
  border-color: var(--faint);
}

.btn.danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(255, 93, 108, 0.45);
}

.btn.danger:hover {
  background: var(--danger-soft);
}

@media (max-height: 860px) {

  .btn,
  .m-actions .btn {
    height: 40px;
  }
}

.btn.steam {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-2);
  text-decoration: none;
}

.btn.steam svg {
  width: 20px;
  height: 20px;
}

.btn.steam:hover {
  background: var(--surface-2);
  border-color: var(--faint);
}

.m-note {
  color: var(--faint);
  font-size: 12px;
  margin: 8px 0 12px;
}

.m-alt {
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.m-alt summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
  text-align: center;
}

.m-alt summary::-webkit-details-marker {
  display: none;
}

.m-alt summary:hover {
  color: var(--text);
  text-decoration: underline;
}

.m-alt ol {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.m-alt ol b {
  color: var(--text);
}

.linkish {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: 0;
  padding: 4px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
}

.linkish:hover {
  color: var(--text);
}

.vtag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  margin-left: 4px;
  white-space: nowrap;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
}

.tile.dim {
  opacity: 0.7;
}

.opt.is-cur {
  opacity: 0.55;
  cursor: not-allowed;
}

.alert.info h3 {
  color: var(--text);
}

/* ---------- ปุ่ม "กฎ" / "กลับ" บนแถบด้านบน — หน้าแรก + หน้ากฎ ---------- */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: clamp(34px, 1vw + 26px, 42px);
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.nav-link:hover {
  border-color: var(--text);
}

.nav-link svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* ===== แบบฟอร์มข้อมูลผู้เล่น ===== */
.pf {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-l {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pf-l i {
  color: var(--danger);
  font-style: normal;
}

.pf-in {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.pf-in::placeholder {
  color: var(--faint);
}

.pf-in:focus {
  border-color: var(--line-2);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}

.pf-field.bad .pf-in {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.pf-err {
  color: var(--danger);
  font-size: 12.5px;
  min-height: 0;
}

.pf-err:empty {
  display: none;
}

.pf-hint {
  color: var(--faint);
  font-size: 12.5px;
}

.pf-field.bad .pf-hint {
  display: none;
}

.pf-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 14.5px;
  transition: border-color .15s;
}

.pf-radio:hover {
  border-color: var(--line-2);
}

.pf-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pf-radio .rd {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  flex: none;
  transition: box-shadow .15s, border-color .15s;
}

.pf-radio input:checked+.rd {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--surface-2), inset 0 0 0 8px var(--accent);
}

.pf-radio:has(input:checked) {
  border-color: var(--line-2);
}

.pf-radio input:focus-visible+.rd {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pf-field.bad .pf-radio {
  border-color: var(--danger);
}

.pf-note {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 12.5px;
}

.pf-saved {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 6px 14px 10px;
}

.pf-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.pf-kv span {
  color: var(--muted);
  flex: none;
}

.pf-kv b {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.pf-saved small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ok);
  font-size: 12.5px;
}

.pf-saved small svg {
  width: 14px;
  height: 14px;
  flex: none;
}