:root {
  --bg: #120a00;
  --panel: #2a1800;
  --row: #1e1100;
  --row-hover: #321f00;
  --gold: #c8962a;
  --gold-light: #e8b84b;
  --gold-btn-bg: linear-gradient(135deg, #c8962a, #e8b84b);
  --gold-btn-hover: linear-gradient(135deg, #b8861a, #d8a83b);
  --text: #e8c87a;
  --text-muted: #997a40;
  --divider: #3a2800;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 60px;
}

/* Header */
.site-header {
  width: 100%;
  max-width: 680px;
  text-align: center;
  margin-bottom: 32px;
}

.site-logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 20px;
  object-fit: cover;
  border: 1.5px solid #3a2800;
}

.site-header h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #c8962a, #f0d080, #c8962a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header .lead {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Main content */
main {
  width: 100%;
  max-width: 680px;
}

/* Group */
.link-group {
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #3a2800;
}

.group-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider);
}

.group-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Row */
.link-row {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--row);
  border-bottom: 1px solid var(--divider);
  gap: 12px;
  transition: background 0.15s ease;
}

.link-row:last-child {
  border-bottom: none;
}

.link-row:hover {
  background: var(--row-hover);
}

.row-name {
  flex: 0 0 auto;
  min-width: 70px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.row-speed {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
}

.row-speed.idle {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

.row-speed.testing {
  color: #c8962a;
  font-size: 13px;
}

/* Enter button */
.enter-btn {
  flex: 0 0 auto;
  padding: 9px 22px;
  background: var(--gold-btn-bg);
  color: #3a1f00;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
}

.enter-btn:hover {
  opacity: 0.85;
}

.enter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  color: #fff;
  background: rgba(20, 10, 0, 0.92);
  border: 1px solid var(--gold);
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

@media (max-width: 480px) {
  .row-name {
    min-width: 56px;
    font-size: 15px;
  }

  .row-speed {
    font-size: 14px;
  }

  .enter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}
