:root {
  color-scheme: dark;
  --bg: #081018;
  --panel: #111c26;
  --panel-2: #162634;
  --panel-soft: rgba(17, 28, 38, .9);
  --ink: #f4fbff;
  --muted: #a9bdc9;
  --line: #294052;
  --cyan: #36d9ff;
  --lime: #c9ff5a;
  --pink: #ff4fd8;
  --orange: #ff9d33;
  --red: #ff6666;
  --shadow: 0 22px 70px rgba(0, 0, 0, .38);
  --glow: 0 0 0 1px rgba(54, 217, 255, .12), 0 22px 70px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(54, 217, 255, .15), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 79, 216, .11), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  background-attachment: fixed;
}

a {
  color: var(--cyan);
}

a:hover {
  color: var(--lime);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--lime);
  color: #071018;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 16, 24, .86);
  backdrop-filter: blur(18px);
  box-shadow: var(--glow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(54, 217, 255, .42);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(54, 217, 255, .11), rgba(201, 255, 90, .08)),
    #07141f;
  color: var(--lime);
  font-weight: 950;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.brand span {
  color: var(--muted);
  font-size: .88rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  background: #0d1a25;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.btn {
  width: 100%;
}

.nav a:hover,
.btn:hover {
  border-color: rgba(54, 217, 255, .7);
  background: #132636;
  transform: translateY(-1px);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #061018;
}

.btn.hot {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #150511;
}

.btn.danger {
  border-color: #7a3434;
  background: #35181b;
  color: #ffd6d6;
}

.btn.inline {
  width: auto;
}

.hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 18px;
  align-items: stretch;
}

.hero-main,
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 34%),
    var(--panel-soft);
  box-shadow: var(--glow);
}

.hero-main {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  position: relative;
}

.hero-main > * {
  position: relative;
  z-index: 1;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: auto -30px -70px auto;
  width: 340px;
  height: 220px;
  border: 1px solid rgba(54, 217, 255, .24);
  transform: rotate(-12deg);
  background:
    linear-gradient(135deg, transparent 48%, rgba(54, 217, 255, .16) 50%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(201, 255, 90, .12) 50%, transparent 52%);
  pointer-events: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.2vw, 4.35rem);
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-title {
  max-width: 17ch;
  font-size: clamp(2.65rem, 3.85vw, 3.95rem);
  overflow-wrap: normal;
  word-break: normal;
}

.panel h1 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: .98;
}

h2 {
  color: var(--lime);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08131d;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pill.lime {
  color: var(--lime);
}

.hero-side {
  display: grid;
  gap: 14px;
}

.score-tile {
  display: grid;
  align-content: center;
  min-height: 145px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 26, 37, .95);
}

.score-tile strong {
  font-size: 3rem;
  line-height: 1;
  color: var(--lime);
}

.score-tile span {
  color: var(--muted);
}

.section {
  margin-top: 18px;
}

.lane-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  box-shadow: var(--glow);
}

.lane-band > div {
  padding: 18px;
  background: rgba(8, 16, 24, .9);
}

.lane-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(54, 217, 255, .22);
  border-radius: 8px;
  background: rgba(13, 26, 37, .85);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.two-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .46fr);
  gap: 18px;
}

.card,
.panel {
  padding: 18px;
}

.deal-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
  align-content: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.deal-card:hover {
  border-color: rgba(54, 217, 255, .5);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  transform: translateY(-2px);
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(54, 217, 255, .08), rgba(255, 79, 216, .07)),
    #f8fbff;
  color: var(--muted);
  text-decoration: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.detail-thumb {
  max-height: 430px;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
}

.detail-thumb img {
  object-fit: contain;
  padding: 10px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.meta span {
  padding: 4px 8px;
  border: 1px solid rgba(54, 217, 255, .18);
  border-radius: 999px;
  background: rgba(8, 19, 29, .8);
}

.summary,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.score {
  display: grid;
  gap: 7px;
}

.score-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.track {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071018;
}

.bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--lime));
}

.disclosure {
  padding: 10px 12px;
  border: 1px solid rgba(255, 157, 51, .38);
  border-radius: 8px;
  background: rgba(255, 157, 51, .09);
  color: #ffd9a6;
  font-size: .9rem;
  line-height: 1.45;
}

.article-body {
  color: #dceaf1;
  line-height: 1.72;
}

.article-body p {
  margin-bottom: 1rem;
}

.deal-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(54, 217, 255, .22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(54, 217, 255, .08), transparent 42%),
    rgba(8, 19, 29, .72);
  color: #dbeaf3;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.72;
}

.deal-note p {
  max-width: 72ch;
  margin: 0;
}

.deal-note p + p {
  margin-top: 12px;
}

.deal-note strong {
  color: var(--lime);
  font-weight: 900;
}

.split-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1722;
  color: var(--muted);
}

.mini-list li:hover {
  border-color: rgba(54, 217, 255, .35);
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #071018;
  color: var(--ink);
}

input[type="checkbox"] {
  width: auto;
}

.notice {
  padding: 12px 14px;
  border: 1px solid rgba(54, 217, 255, .36);
  border-radius: 8px;
  background: rgba(54, 217, 255, .08);
  color: #c6f6ff;
}

.notice.bad {
  border-color: #814044;
  background: #31191d;
  color: #ffd6d6;
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--lime);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .8fr);
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(54, 217, 255, .08), transparent 38%),
    linear-gradient(315deg, rgba(255, 79, 216, .08), transparent 42%),
    rgba(8, 16, 24, .92);
  color: var(--muted);
  font-size: .9rem;
  box-shadow: var(--glow);
}

.footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.footer-brand div > span {
  display: block;
  max-width: 46ch;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(54, 217, 255, .22);
  border-radius: 8px;
  background: rgba(13, 26, 37, .85);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(41, 64, 82, .8);
}

@media (max-width: 920px) {
  .hero,
  .two-grid,
  .grid,
  .lane-band {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-title {
    max-width: 13ch;
    font-size: clamp(2.5rem, 8vw, 3.6rem);
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 0;
  }

  .topbar,
  .hero-main,
  .panel,
  .card,
  .footer {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .topbar {
    top: 0;
  }

  .section {
    margin-top: 0;
  }

  .split-list,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
  }

  .hero-title {
    max-width: 12ch;
    font-size: clamp(2.3rem, 9.4vw, 3.1rem);
  }
}
