﻿:root {
  --bg-deep: #08090f;
  --bg-surface: #0e1320;
  --ink: #f0f4ff;
  --ink-dim: #8a9bb8;
  --ink-muted: #4e5f7a;
  --gold: #f0bf67;
  --gold-bright: #ffd98c;
  --teal: #69d6d4;
  --surface: rgba(14, 19, 32, 0.84);
  --border: rgba(240, 191, 103, 0.12);
  --border-hover: rgba(240, 191, 103, 0.35);
  --glow-gold: rgba(240, 191, 103, 0.15);
  --glow-teal: rgba(105, 214, 212, 0.12);
  --ok: #79e6a0;
  --warn: #f2cc82;
  --bad: #ff9f9f;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg-deep);
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dot-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(circle, rgba(240, 191, 103, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -12%;
  right: -4%;
  background: var(--glow-gold);
  animation: orbit 48s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: -6%;
  background: var(--glow-teal);
  animation: orbit 58s ease-in-out infinite reverse;
}

.orb-3 {
  width: 280px;
  height: 280px;
  top: 50%;
  left: 55%;
  background: rgba(240, 160, 50, 0.06);
  animation: orbit 42s ease-in-out infinite;
  animation-delay: -18s;
}

@keyframes orbit {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(25px, -35px); }
  50%      { transform: translate(-18px, 28px); }
  75%      { transform: translate(22px, 12px); }
}
main {
  position: relative;
  z-index: 1;
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}
.header {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  padding: 1.4rem;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background:
    radial-gradient(500px 200px at 85% 0%, rgba(240, 191, 103, 0.14), transparent 70%),
    radial-gradient(460px 180px at 10% 0%, rgba(105, 214, 212, 0.1), transparent 68%);
  pointer-events: none;
}

.header-brand {
  position: relative;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.header-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(240, 191, 103, 0.4);
  border-radius: 999px;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(240, 191, 103, 0.1);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease 0.15s forwards;
}

.header-title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 0.8rem;
  background: linear-gradient(135deg, var(--ink) 10%, var(--gold) 70%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.header-sub {
  margin: 0.8rem auto 0;
  max-width: 520px;
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.header-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease 0.65s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, filter 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  border: 1px solid rgba(240, 191, 103, 0.4);
  background: linear-gradient(135deg, rgba(200, 140, 20, 0.9), rgba(240, 191, 103, 0.85));
  color: #fff;
  box-shadow: 0 4px 20px rgba(240, 191, 103, 0.2);
}

.btn-gold:hover {
  box-shadow: 0 8px 32px rgba(240, 191, 103, 0.35);
  border-color: rgba(240, 191, 103, 0.6);
}

.btn-outline {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(240, 191, 103, 0.1);
}

.btn-sm {
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
}
.stats-bar {
  position: relative;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat {
  border: 1px solid rgba(240, 191, 103, 0.1);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.spotlight {
  margin-top: 1rem;
  border: 1px solid rgba(240, 191, 103, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(600px 140px at 10% 50%, rgba(240, 191, 103, 0.07), transparent 70%),
    var(--surface);
  backdrop-filter: blur(14px);
  padding: 0.85rem 1.1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s;
}

.spotlight.is-active {
  border-color: rgba(240, 191, 103, 0.35);
}

.spotlight-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 42px;
}

.spotlight-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.spotlight-live-label {
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ok);
}

.spotlight-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.spotlight-map {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-detail {
  font-size: 0.8rem;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-wr {
  flex-shrink: 0;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(240, 191, 103, 0.3);
}
.tab-nav {
  margin-top: 1rem;
  display: flex;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  padding: 0.35rem;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.4rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-dim);
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.is-active {
  color: var(--ink);
  background: rgba(240, 191, 103, 0.1);
  border-color: rgba(240, 191, 103, 0.3);
  box-shadow: 0 2px 12px rgba(240, 191, 103, 0.08);
}

.tab-icon {
  font-size: 1rem;
  line-height: 1;
}
.tab-panel {
  display: none;
  margin-top: 0.8rem;
}

.tab-panel.is-active {
  display: block;
}
.panel-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  padding: 1.1rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.panel-card + .panel-card {
  margin-top: 0.8rem;
}
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.section-bar h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.section-bar-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.pulse-dot-teal {
  background: var(--teal);
  animation-name: dotPulseTeal;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(121, 230, 160, 0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 7px rgba(121, 230, 160, 0); }
}

@keyframes dotPulseTeal {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(105, 214, 212, 0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 7px rgba(105, 214, 212, 0); }
}
.feed-note {
  color: var(--ink-muted);
  font-size: 0.8rem;
}
.feed-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
  max-height: min(60vh, 520px);
  overflow: auto;
}

.feed-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-muted);
}

.feed-empty p {
  margin: 0;
}

.feed-card {
  position: relative;
  border: 1px solid rgba(240, 191, 103, 0.14);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.25rem;
  transition: border-color 0.2s, background 0.2s;
}

.feed-card:hover {
  border-color: rgba(240, 191, 103, 0.3);
  background: rgba(255, 255, 255, 0.035);
}

.feed-card.is-fresh {
  border-color: rgba(240, 191, 103, 0.35);
  background:
    radial-gradient(400px 100px at 0% 50%, rgba(240, 191, 103, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.03);
}

.feed-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feed-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: rgba(240, 191, 103, 0.12);
  border: 1px solid rgba(240, 191, 103, 0.25);
}

.feed-map-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.feed-time {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.feed-detail {
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.feed-detail .wr-improvement {
  color: var(--gold);
  font-weight: 600;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
}

.feed-detail .wr-arrow {
  color: var(--ink-muted);
  margin: 0 0.3rem;
}

.feed-holder {
  color: var(--teal);
  font-weight: 500;
}
.check-feed-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
  max-height: min(44vh, 360px);
  overflow: auto;
}

.check-card {
  border: 1px solid rgba(105, 214, 212, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.28rem;
}

.check-card.is-changed {
  border-color: rgba(240, 191, 103, 0.32);
  background:
    radial-gradient(360px 90px at 0% 50%, rgba(240, 191, 103, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.03);
}

.check-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-map-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.check-time {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.check-meta {
  color: var(--ink-dim);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 1.25rem;
  padding: 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.check-pill-ok {
  color: var(--ok);
  border-color: rgba(121, 230, 160, 0.45);
  background: rgba(121, 230, 160, 0.1);
}

.check-pill-change {
  color: var(--gold);
  border-color: rgba(240, 191, 103, 0.45);
  background: rgba(240, 191, 103, 0.12);
}

.check-pill-error {
  color: var(--bad);
  border-color: rgba(255, 159, 159, 0.45);
  background: rgba(255, 159, 159, 0.1);
}
.maps-count {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.maps-controls {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(240, 191, 103, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.search-input::placeholder {
  color: var(--ink-muted);
}

.search-input:focus {
  outline: none;
  border-color: rgba(240, 191, 103, 0.4);
  box-shadow: 0 0 0 3px rgba(240, 191, 103, 0.08);
}

.due-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}

.due-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.due-toggle span {
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-wrap {
  margin-top: 0.7rem;
  overflow: auto;
  border: 1px solid rgba(240, 191, 103, 0.08);
  border-radius: 12px;
}

.maps-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.maps-table th,
.maps-table td {
  text-align: left;
  border-bottom: 1px solid rgba(240, 191, 103, 0.06);
  padding: 0.55rem 0.6rem;
  font-size: 0.88rem;
}

.maps-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 14, 24, 0.96);
  color: var(--ink-dim);
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.maps-table td strong {
  font-size: 0.9rem;
}

.maps-table td span {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.flag {
  display: inline-flex;
  min-height: 1.35rem;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.flag-due {
  color: var(--warn);
  border-color: rgba(242, 204, 130, 0.45);
  background: rgba(242, 204, 130, 0.12);
}

.flag-wait {
  color: var(--ok);
  border-color: rgba(121, 230, 160, 0.4);
  background: rgba(121, 230, 160, 0.1);
}
.pagination {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.page-btn {
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-dim);
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-info {
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  min-width: 80px;
  text-align: center;
}
.engine-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.engine-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(240, 191, 103, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.engine-kv span {
  color: var(--ink-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.engine-kv strong {
  text-align: right;
  font-size: 0.88rem;
}

.runs-title {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.runs-list {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  max-height: min(48vh, 400px);
  overflow: auto;
}

.runs-list li {
  border: 1px solid rgba(240, 191, 103, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.6rem;
}

.runs-list strong {
  display: block;
  font-size: 0.9rem;
}

.runs-list span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-dim);
  font-size: 0.8rem;
}
.foot {
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.foot-mark {
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.foot nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.foot nav a {
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}

.foot nav a:hover {
  border-color: var(--border-hover);
  color: var(--ink);
}
@media (max-width: 720px) {
  .header {
    padding: 1rem;
  }

  .header-brand {
    padding-top: 0.8rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-inner {
    flex-wrap: wrap;
  }

  .spotlight-wr {
    width: 100%;
    text-align: right;
    font-size: 1.2rem;
    margin-top: 0.2rem;
  }

  .tab-btn {
    font-size: 0.74rem;
    padding: 0.35rem 0.5rem;
    gap: 0.25rem;
  }

  .tab-icon {
    font-size: 0.85rem;
  }

  .engine-grid {
    grid-template-columns: 1fr;
  }

  .maps-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .header-badge,
  .header-title,
  .header-sub,
  .header-actions {
    opacity: 1;
    transform: none;
  }
}

