/* ==========================================================================
   SamePursuit · v3 language layer
   Loaded AFTER style.css on the inner pages. It does not add anything; it
   removes the old dark-aurora look and puts every page on the same ground as
   the homepage: pure black, Poppins, white type, thin lines, no optics.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-soft: #000;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.07);

  --ink: #fff;
  --ink-2: #dcdcdc;
  --muted: #8f8f8f;
  --faint: #5c5c5c;

  --line: rgba(255, 255, 255, 0.16);
  --line-2: rgba(255, 255, 255, 0.34);

  --c1: #fff;
  --c2: #fff;
  --c3: #fff;

  --grad: #ffffff;
  --grad-soft: transparent;

  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: 'Poppins', -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Microsoft YaHei', sans-serif;

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 8px;
  --r-xl: 10px;

  --shadow: none;
  --shadow-glow: none;
}

html,
body {
  background: #000;
  color: #fff;
  font-family: var(--sans);
}

/* the old ambience is gone entirely */
.aura,
.aura__blob,
.aura__grid,
.aura__noise {
  display: none !important;
}

/* ---------- type ---------- */
body,
p,
li,
a,
button,
input,
textarea,
select,
td,
th {
  font-family: var(--sans);
}

h1,
h2,
h3,
h4,
.brand__name,
.stat__num,
.podium__name,
.card__t,
.bento-card__title,
.ch-card__title,
.section-head__title,
.page-head__title {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.page-head__title {
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  line-height: 1.02;
}

.page-head__desc {
  color: #9a9a9a;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 58ch;
}

/* every "mono" label becomes plain sentence-case text */
.mono,
.eyebrow,
.footer__h,
.card__h,
.ch-card__cat,
.bento-card__stat,
.brand__sub,
.rank-no,
.who__sub,
.board__meta,
.chip,
.counter,
.stat__label,
.meta {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow {
  font-size: 0.82rem;
  color: #8f8f8f;
  letter-spacing: 0.01em;
}

.eyebrow--live::before {
  background: #fff;
  box-shadow: none;
  animation: none;
}

.brand__sub {
  display: none;
}

.brand__name {
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* no gradient text */
.grad-text,
.hero__line-2,
.hero__title .hero__line-2 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #fff;
}

/* ---------- chrome ---------- */
.site-header {
  background: #000;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-stuck {
  background: #000;
  border-bottom-color: var(--line);
}

.brand__mark {
  color: #fff;
}

.nav__link {
  color: #cfcfcf;
  border-radius: 0;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
}

.nav__link:hover {
  background: none;
  color: #fff;
}

.nav__link[aria-current='page'] {
  color: #fff;
}

.nav__link[aria-current='page']::after {
  left: 0;
  right: 0;
  width: auto;
  transform: none;
  background: #fff;
  height: 1px;
  bottom: 0;
}

.nav__links {
  gap: 34px;
}

/* ---------- buttons: flat, one fill, inverts on hover ---------- */
.btn {
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
  transform: none;
}

.btn--primary {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: none;
}

.btn--primary:hover {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn--ghost:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.nav__actions .btn {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
}

/* ---------- surfaces: no glass, no shadow, no gradient ---------- */
.card,
.bento-card,
.ch-card,
.board,
.quote,
.stat,
.podium__item,
.modal__panel,
.callout,
.hint-box,
.prose,
.empty {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bento-card::before,
.ch-card::after,
.podium__item::before,
.card::after {
  display: none;
}

.bento-card:hover,
.ch-card:hover,
.quote:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  transform: none;
}

.bento-card__icon {
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  border-radius: 6px;
}

.stats {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  gap: 1px;
}

.stat {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.8rem;
  color: #8f8f8f;
}

/* ---------- challenge cards ---------- */
.ch-card__title {
  font-size: 1.06rem;
  font-weight: 700;
}

.ch-card__desc {
  color: #9a9a9a;
}

.ch-card__foot {
  border-top: 1px solid var(--line);
  color: #8f8f8f;
}

.ch-card__cat {
  color: #8f8f8f;
  font-size: 0.72rem;
}

.ch-card.is-solved {
  border-color: rgba(255, 255, 255, 0.5);
}

.chip {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: #dcdcdc;
  background: transparent;
  font-size: 0.72rem;
}

.chip--easy,
.chip--medium,
.chip--hard,
.chip--insane,
.chip--solved,
.chip--live {
  color: #fff;
  border-color: var(--line-2);
  background: transparent;
}

.chip--live .dot {
  background: #fff;
  animation: none;
}

/* ---------- tabs + search ---------- */
.filters__group,
.tab,
.search,
.tabs {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.tab {
  border: 0;
  border-radius: 4px;
  color: #9a9a9a;
  font-size: 0.84rem;
}

.tab[aria-selected='true'] {
  background: #fff;
  color: #000;
  font-weight: 600;
}

.search input {
  color: #fff;
  font-family: var(--sans);
}

.search input::placeholder {
  color: #5c5c5c;
}

/* ---------- table ---------- */
.board__head {
  border-bottom: 1px solid var(--line);
}

.board__title {
  font-weight: 700;
}

table.ranks th {
  color: #7d7d7d;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}

table.ranks td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

table.ranks tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rank-no {
  color: #8f8f8f;
}

.rank-no--1,
.rank-no--2,
.rank-no--3 {
  color: #fff;
}

.who__name {
  font-weight: 600;
  color: #fff;
}

.who__sub {
  color: #6e6e6e;
  font-size: 0.7rem;
}

.bar {
  background: rgba(255, 255, 255, 0.1);
}

.bar > span {
  background: #fff;
}

.tie--up {
  color: #fff;
}

.tie--down {
  color: #8f8f8f;
}

/* ---------- podium ---------- */
.podium__item--1 {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.podium__av,
.podium__item--1 .podium__av {
  border: 1px solid var(--line-2);
  box-shadow: none;
}

.podium__badge {
  color: #8f8f8f;
  letter-spacing: 0.02em;
}

.podium__item--1 .podium__badge {
  color: #fff;
}

.podium__pts {
  color: #fff;
}

/* ---------- wall ---------- */
.quote {
  border-radius: 8px;
}

.quote__text {
  color: #dcdcdc;
}

.quote__who span,
.quote__who b {
  color: #8f8f8f;
}

.quote__who b {
  color: #fff;
}

.quote--empty {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.07);
  background: transparent;
}

.quote__av--empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quote__ghost {
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- forms ---------- */
.input,
.textarea {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: #fff;
  font-family: var(--sans);
}

.input:focus,
.textarea:focus {
  border-color: #fff;
  box-shadow: none;
}

.form-grid label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #8f8f8f;
}

.form-msg--ok {
  color: #fff;
}

.form-msg--bad {
  color: #b9b9b9;
}

/* ---------- modal ---------- */
.modal__veil {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: none;
}

.modal__head {
  background: #000;
  border-bottom: 1px solid var(--line);
}

.modal__cat {
  color: #8f8f8f;
  letter-spacing: 0.02em;
}

.modal__title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.modal__close {
  border-radius: 6px;
  border-color: var(--line-2);
  color: #fff;
  /* a comfortable target on a phone, not a 16px icon in a hairline box */
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}

.modal__close:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.modal__text code,
.prose code {
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--sans);
}

.hint-box {
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #dcdcdc;
}

.callout {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #dcdcdc;
}

/* ---------- section rhythm ---------- */
.section {
  padding-block: clamp(56px, 8vw, 108px);
}

.section-head__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.section-head__desc {
  color: #8f8f8f;
}

.section-head__link {
  border: 0;
  padding: 4px 0;
  border-radius: 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.section-head__link:hover {
  background: none;
  border-bottom-color: #fff;
  color: #fff;
}

/* ---------- page head ---------- */
.page-head {
  padding-block: clamp(48px, 7vw, 96px) clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #000;
}

.footer__links a {
  color: #cfcfcf;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  color: #5c5c5c;
}

/* ---------- misc ---------- */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.toast,
.sp-toast {
  background: #000;
  border: 1px solid var(--line-2);
  color: #fff;
  border-radius: 6px;
  box-shadow: none;
}

::selection {
  background: #fff;
  color: #000;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
