:root {
    color-scheme: light;
    --bg: #fbfbfc;
    --surface: #ffffff;
    --surface-soft: #f7f7f8;
    --surface-muted: #f2f2f4;
    --surface-translucent: rgba(255, 255, 255, 0.9);
    --border: #ececee;
    --border-strong: #e0e0e3;
    --border-translucent: rgba(236, 236, 238, 0.9);
    --text: #0a0a0b;
    --muted: #6b7280;
    --placeholder: #9aa1ab;
    /* Accent is neutral ink; color is reserved for status meaning only. */
    --accent: #0a0a0b;
    --accent-soft: #f2f2f4;
    --accent-strong: #0a0a0b;
    --accent-border: #e0e0e3;
    --success: #16a34a;
    --success-soft: rgba(22, 163, 74, 0.10);
    --success-border: rgba(22, 163, 74, 0.20);
    --warning: #b45309;
    --warning-soft: rgba(180, 83, 9, 0.10);
    --warning-border: rgba(180, 83, 9, 0.20);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.10);
    --danger-border: rgba(220, 38, 38, 0.20);
    --btn-bg: #0a0a0b;
    --btn-bg-hover: #000000;
    --btn-text: #ffffff;
    --pill-bg: #0a0a0b;
    --pill-border: #0a0a0b;
    --pill-text: #ffffff;
    --discord: #5865f2;
    --discord-strong: #4752c4;
    --header-bg: rgba(251, 251, 252, 0.8);
    --glow: transparent;
    --shadow-soft: 0 1px 2px rgba(10, 10, 11, 0.04);
    --shadow-card: 0 1px 2px rgba(10, 10, 11, 0.03);
    --shadow-hover: 0 2px 10px rgba(10, 10, 11, 0.07);
    --focus-ring: rgba(10, 10, 11, 0.25);
    --radius: 10px;
    --display: "Inter", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0a0a0b;
    --surface: #0f0f11;
    --surface-soft: #151517;
    --surface-muted: #121214;
    --surface-translucent: rgba(15, 15, 17, 0.9);
    --border: #1e1e21;
    --border-strong: #2a2a2e;
    --border-translucent: rgba(30, 30, 33, 0.9);
    --text: #ededee;
    --muted: #8b8b93;
    --placeholder: #6a6a72;
    --accent: #ededee;
    --accent-soft: #1a1a1d;
    --accent-strong: #ededee;
    --accent-border: #2a2a2e;
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.12);
    --success-border: rgba(74, 222, 128, 0.24);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.12);
    --warning-border: rgba(251, 191, 36, 0.24);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --danger-border: rgba(248, 113, 113, 0.24);
    --btn-bg: #ededee;
    --btn-bg-hover: #ffffff;
    --btn-text: #0a0a0b;
    --pill-bg: #1a1a1d;
    --pill-border: #2a2a2e;
    --pill-text: #ededee;
    --discord: #7289da;
    --discord-strong: #5865f2;
    --header-bg: rgba(10, 10, 11, 0.8);
    --glow: transparent;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.5);
    --focus-ring: rgba(237, 237, 238, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--display);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: radial-gradient(circle at top, var(--glow), transparent 30%), var(--bg);
    transition: background-color 180ms ease, color 180ms ease;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.support-inner,
.topbar-inner,
.footer-inner,
.site-main > section {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
}

.support-banner {
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border-translucent);
    color: var(--muted);
    font-size: 0.88rem;
}

.support-inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.4rem;
    padding: 0.3rem 0;
}

.support-banner p {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.support-banner strong {
    color: var(--text);
}

.support-dot {
    flex: none;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--accent);
}

.support-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-strong);
    font-weight: 650;
    white-space: nowrap;
}

.support-link:hover {
    text-decoration: underline;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-translucent);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-mark {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.4rem;
    object-fit: cover;
    background: var(--surface-translucent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: opacity 160ms ease;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.brand-copy strong {
    font-size: 1.18rem;
    line-height: 1.08;
    font-weight: 760;
}

.brand-copy span:last-child {
    color: var(--muted);
    font-size: 0.92rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav-link {
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 120ms ease, background 120ms ease;
}

.site-nav-link:hover {
    color: var(--text);
    background: var(--surface-soft);
}

.site-nav-link.is-active {
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.topbar-link,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.95rem;
    padding: 0.7rem 1.02rem;
    border: 1px solid var(--btn-bg);
    border-radius: var(--radius);
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 0.95rem;
    font-weight: 650;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.topbar-link:hover,
.primary-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    background: var(--btn-bg-hover);
    border-color: var(--btn-bg-hover);
}

.primary-link.discord-cta {
    background: linear-gradient(135deg, var(--discord) 0%, var(--discord-strong) 100%);
    border-color: transparent;
    color: #ffffff;
}

.primary-link.discord-cta:hover {
    background: var(--discord-strong);
    border-color: transparent;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.95rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: var(--surface-soft);
}

.theme-toggle-track {
    position: relative;
    width: 2.1rem;
    height: 1.15rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
}

.theme-toggle-thumb {
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: var(--accent);
    transition: transform 180ms ease, background 180ms ease;
}

:root[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(0.95rem);
}

.theme-toggle-label {
    min-width: 2.2rem;
    text-align: left;
}

.site-main {
    padding: 0 0 4rem;
}

.site-main > section + section {
    margin-top: 1.5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    justify-items: center;
    align-content: center;
    gap: 0;
    min-height: calc(100vh - 4.75rem - 2.4rem);
    padding: 1rem 0 1.5rem;
    text-align: center;
}

body.has-results .hero {
    min-height: auto;
    padding-top: 2.5rem;
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero h1 {
    margin: 0;
    max-width: 16ch;
    font-size: 3.6rem;
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 760;
}

body.has-results .hero h1 {
    font-size: 2.9rem;
}

.hero-copy {
    margin: 0.95rem auto 0;
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.search-form {
    width: min(760px, 100%);
    margin-top: 1.6rem;
}

.game-selector {
    display: inline-flex;
    gap: 0.25rem;
    margin-bottom: 0.7rem;
    padding: 0.25rem;
    border: 1px solid var(--border-translucent);
    border-radius: var(--radius);
    background: var(--surface-translucent);
}

.game-option {
    min-height: 2.15rem;
    padding: 0.38rem 0.78rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.game-option:hover {
    color: var(--text);
    background: var(--surface-soft);
}

.game-option.is-active {
    color: var(--accent-strong);
    background: var(--accent-soft);
    border-color: var(--accent-border);
}

.search-frame {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem;
    background: var(--surface-translucent);
    border: 1px solid var(--border-translucent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.search-frame:focus-within {
    border-color: var(--accent-border);
    box-shadow: 0 22px 54px var(--glow);
}

.search-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.8rem;
    border: 2px solid var(--muted);
    border-radius: 999px;
    opacity: 0.72;
    position: relative;
    transition: border-color 160ms ease, opacity 160ms ease;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 0.5rem;
    height: 2px;
    right: -0.35rem;
    bottom: -0.18rem;
    border-radius: 999px;
    background: var(--muted);
    transform: rotate(45deg);
    transform-origin: center;
    transition: background-color 160ms ease;
}

.search-frame:focus-within .search-icon {
    border-color: var(--accent);
    opacity: 1;
}

.search-frame:focus-within .search-icon::after {
    background: var(--accent);
}

.search-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, var(--accent-soft) 48%, transparent 100%);
    opacity: 0;
    transform: translateX(-100%);
}

.search-form.is-loading .search-frame::after {
    opacity: 1;
    animation: sweep 1.15s ease-in-out infinite;
}

#search-input {
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0 0.75rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.02rem;
    outline: none;
}

#search-input::placeholder {
    color: var(--placeholder);
}

.search-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 11.75rem;
    min-height: 3.25rem;
    padding: 0 1.3rem;
    border: 1px solid var(--btn-bg);
    border-radius: var(--radius);
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 0.95rem;
    font-weight: 650;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.search-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    background: var(--btn-bg-hover);
    border-color: var(--btn-bg-hover);
}

.search-button:active {
    transform: translateY(0) scale(0.99);
}

.search-form.is-loading .search-button {
    pointer-events: none;
    opacity: 0.92;
}

.search-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-color: color-mix(in srgb, currentColor 26%, transparent);
    border-top-color: currentColor;
    border-radius: 999px;
    display: none;
}

.search-form.is-loading .search-spinner {
    display: inline-block;
    animation: spin 700ms linear infinite;
}

.command-pill,
.game-pill,
.status-chip,
.recent-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2rem;
    padding: 0.38rem 0.72rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-translucent);
    background: var(--surface-translucent);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
    white-space: nowrap;
}

.recent-chip {
    cursor: pointer;
    color: var(--text);
    transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.recent-chip:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: var(--surface-soft);
}

.recent-row {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.6rem;
    max-width: min(100%, 52rem);
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    font-size: 0.92rem;
}

.recent-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.recent-chip {
    justify-content: flex-start;
    max-width: min(100%, 17rem);
    min-width: 0;
    font-family: var(--mono);
    font-size: 0.8rem;
}

.recent-dot,
.recent-game {
    flex: 0 0 auto;
}

.recent-game {
    font-family: var(--display);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.recent-query {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--muted);
}

.recent-dot.dot-online {
    background: var(--success);
}

.recent-dot.dot-offline {
    background: var(--danger);
}

.recent-dot.dot-unknown {
    background: var(--placeholder);
}

.recent-clear {
    min-height: 0;
    padding: 0.2rem 0.5rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
    text-decoration: underline;
    transition: color 120ms ease;
}

.recent-clear:hover {
    color: var(--text);
    transform: none;
    background: transparent;
    box-shadow: none;
}

.command-pill {
    background: var(--pill-bg);
    border-color: var(--pill-border);
    color: var(--pill-text);
    font-family: var(--mono);
    font-size: 0.82rem;
}

.results-section {
    display: grid;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 1.5rem;
    text-align: left;
    scroll-margin-top: 6rem;
}

.result-status-line {
    min-width: 0;
    max-width: 100%;
    color: var(--muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.result-card,
.info-panel,
.match-block,
.empty-state,
.checking-card {
    min-width: 0;
    max-width: 100%;
    padding: 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-translucent);
    background: var(--surface-translucent);
    box-shadow: var(--shadow-card);
}

.results-section:not(.is-hidden) .result-card:not(.is-hidden),
.results-section:not(.is-hidden) .match-block:not(.is-hidden),
.results-section:not(.is-hidden) .empty-state:not(.is-hidden),
.results-section:not(.is-hidden) .checking-card:not(.is-hidden),
.info-panel {
    animation: fade-up 480ms ease-out both;
}

.checking-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checking-card h2 {
    margin: 0;
    font-size: 1.05rem;
}

.checking-card p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.checking-orb {
    width: 2.1rem;
    height: 2.1rem;
    flex: none;
    border-radius: 999px;
    border: 2px solid var(--accent-soft);
    border-top-color: var(--accent);
    animation: spin 780ms linear infinite;
}

.result-card.is-online {
    border-color: var(--success-border);
}

.result-card.is-offline {
    border-color: var(--danger-border);
}

.result-card.is-unknown {
    border-color: var(--warning-border);
}

.result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.result-head-copy {
    min-width: 0;
    max-width: 100%;
}

.result-card h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.result-head-copy .eyebrow {
    margin-bottom: 0.45rem;
}

.result-summary,
.section-copy,
.empty-state p,
.match-card-note {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.server-address {
    margin: 0.5rem 0 0;
    font-family: var(--mono);
    font-size: 0.88rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.address-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.address-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.copy-button {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.copy-button:hover {
    background: var(--surface-muted);
    border-color: var(--border);
    color: var(--text);
}

.copy-button svg {
    display: block;
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copy-button .icon-check {
    display: none;
    stroke-width: 2;
}

.copy-button.is-copied {
    color: var(--success);
}

.copy-button.is-copied .icon-copy {
    display: none;
}

.copy-button.is-copied .icon-check {
    display: block;
}

.status-chip {
    color: var(--text);
}

.status-chip::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: currentColor;
}

.status-online,
.game-pill-live {
    color: var(--success);
    background: var(--success-soft);
    border-color: var(--success-border);
}

.status-online::before {
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-offline {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: var(--danger-border);
}

.status-unknown {
    color: var(--warning);
    background: var(--warning-soft);
    border-color: var(--warning-border);
}

.metric-grid,
.match-grid {
    display: grid;
    gap: 1rem;
}

.metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0;
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.metric {
    min-width: 0;
}

.metric dt {
    color: var(--muted);
    font-size: 0.85rem;
}

.metric dd {
    margin: 0.18rem 0 0;
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--text);
    overflow-wrap: anywhere;
}

.metric dd.latency-good {
    color: var(--success);
}

.metric dd.latency-ok {
    color: var(--warning);
}

.metric dd.latency-bad {
    color: var(--danger);
}

.result-note {
    margin: 1rem 0 0;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius);
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.player-bar {
    height: 0.5rem;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.player-bar span {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--success), var(--accent));
    transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.uptime-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.uptime-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.uptime-head span,
.uptime-meta dt {
    color: var(--muted);
    font-size: 0.85rem;
}

.uptime-head strong,
.uptime-meta dd {
    margin: 0;
    font-family: var(--mono);
    font-weight: 650;
    color: var(--text);
}

.history-strip {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.history-segment {
    min-width: 0;
    height: 0.85rem;
    border-radius: 4px;
    background: var(--warning);
}

.history-online {
    background: var(--success);
}

.history-offline {
    background: var(--danger);
}

.history-unknown {
    background: var(--warning);
}

.uptime-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0.85rem 0 0;
}

.uptime-meta dd {
    margin-top: 0.18rem;
    overflow-wrap: anywhere;
}

.match-heading {
    margin-bottom: 1rem;
}

.match-heading h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-card {
    padding: 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    animation: fade-up 480ms ease-out both;
    animation-delay: min(calc(var(--i, 0) * 45ms), 360ms);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.match-card:hover {
    transform: translateY(-1px);
    border-color: var(--accent-border);
    box-shadow: var(--shadow-hover);
}

.match-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.match-card-head > div {
    min-width: 0;
}

.match-card h3 {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.24;
    font-weight: 650;
}

.server-meta {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.match-card-note {
    margin: 0.8rem 0 0;
    font-size: 0.96rem;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 0.45rem;
    font-size: 1.5rem;
}

.info-band {
    padding-top: 0.5rem;
}

.info-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.info-panel h2 {
    margin: 0 0 0.45rem;
    font-size: 1.8rem;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.info-panel > div:first-child {
    min-width: 0;
}

.info-panel .eyebrow {
    margin-bottom: 0.55rem;
}

.section-copy {
    margin: 0;
    max-width: 30rem;
    font-size: 0.98rem;
}

.info-panel-compact {
    align-items: center;
}

.seo-band {
    padding-top: 0.5rem;
}

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

.seo-card {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--border-translucent);
    border-radius: var(--radius);
    background: var(--surface-translucent);
    box-shadow: var(--shadow-card);
    text-align: left;
}

.seo-card h2 {
    margin: 0 0 0.55rem;
    font-size: 1.22rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.seo-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.seo-card .eyebrow {
    margin-bottom: 0.5rem;
}

.seo-card .inline-link {
    margin-top: 0.9rem;
}

.seo-card .link-row {
    margin-top: 0.9rem;
}

.seo-card .link-row .inline-link {
    margin-top: 0;
}

.content-panel {
    display: grid;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
    padding: 1.4rem;
    border: 1px solid var(--border-translucent);
    border-radius: var(--radius);
    background: var(--surface-translucent);
    box-shadow: var(--shadow-card);
    text-align: left;
}

.content-panel h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.content-panel h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

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

.content-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-list li {
    padding-left: 0.9rem;
    border-left: 3px solid var(--accent-border);
    color: var(--muted);
}

/* Offset anchored sections so the sticky header doesn't cover headings. */
.site-main > section[id] {
    scroll-margin-top: 6rem;
}

.faq-panel {
    display: grid;
    gap: 1.1rem;
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.faq-head .eyebrow {
    margin-bottom: 0.4rem;
}

.faq-head h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.faq-list {
    display: grid;
    gap: 0.7rem;
}

.faq-item {
    padding: 0 1.2rem;
    border: 1px solid var(--border-translucent);
    border-radius: var(--radius);
    background: var(--surface-translucent);
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 160ms ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 0 0 1.1rem;
    color: var(--muted);
}

.inline-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-strong);
    font-size: 0.95rem;
    font-weight: 700;
}

.inline-link:hover {
    text-decoration: underline;
}

.link-row,
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.action-stack {
    display: grid;
    gap: 1rem;
    justify-items: end;
}

.command-row,
.game-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.site-footer {
    padding: 0 0 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-translucent);
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: var(--accent-strong);
    font-weight: 650;
}

.footer-nav {
    justify-content: flex-end;
}

.is-hidden {
    display: none !important;
}

input[type="search"]:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

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

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sweep {
    to {
        transform: translateX(100%);
    }
}

@keyframes pulse-dot {
    0%,
    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 35%, transparent);
    }
    50% {
        box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent);
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        font-size: 15px;
    }

    .support-inner,
    .topbar-inner,
    .footer-inner,
    .site-main > section {
        width: min(100% - 1rem, 1080px);
    }

    .support-banner p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.82rem;
    }

    /* Keep the sticky header a compact single row on phones. */
    .topbar-inner {
        min-height: 4rem;
        gap: 0.6rem;
    }

    .brand-mark {
        width: 2.9rem;
        height: 2.9rem;
    }

    .brand-copy strong {
        font-size: 1.05rem;
    }

    .topbar-actions {
        gap: 0.5rem;
    }

    /* The Discord CTA also lives in the body panel and footer, so drop it
       from the sticky header to save vertical space on small screens. */
    #topbar-discord-link {
        display: none !important;
    }

    /* The section nav collapses on phones; the footer nav covers the same
       links, and every section is one scroll away. */
    .site-nav {
        display: none;
    }

    .theme-toggle-label {
        display: none;
    }

    .theme-toggle {
        min-width: 0;
        padding: 0.6rem 0.7rem;
    }

    .hero {
        min-height: auto;
        padding-top: 2.2rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    body.has-results .hero h1 {
        font-size: 2.1rem;
    }

    .search-frame {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .game-selector {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .search-button {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .results-section {
        scroll-margin-top: 6rem;
    }

    .metric-grid,
    .match-grid,
    .uptime-meta,
    .seo-grid {
        grid-template-columns: 1fr;
    }

    .result-head,
    .info-panel,
    .match-card-head,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .result-head .status-chip,
    .match-card-head .status-chip {
        align-self: flex-start;
    }

    .action-stack {
        justify-items: start;
    }

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

    .info-panel h2,
    .match-heading h2,
    .faq-head h2 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   Minimal mono refinements — monochrome base, color reserved for status.
   ===================================================================== */

/* Airy, top-aligned hero with fluid type (scales cleanly phone → desktop). */
.hero {
    min-height: auto;
    align-content: start;
    padding: clamp(2.75rem, 8vw, 5rem) 0 clamp(1.75rem, 5vw, 2.75rem);
}

body.has-results .hero {
    padding-top: clamp(2rem, 6vw, 3rem);
}

.hero h1 {
    max-width: 18ch;
    font-size: clamp(2.15rem, 7vw, 3.4rem);
    font-weight: 680;
}

body.has-results .hero h1 {
    font-size: clamp(1.9rem, 6vw, 2.9rem);
}

.hero-copy {
    font-size: clamp(0.98rem, 2.5vw, 1.08rem);
}

/* Mono kicker, muted rather than a bold accent. */
.eyebrow {
    font-family: var(--mono);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* Segmented game selector: the active option is a solid ink pill. */
.game-option.is-active {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: var(--btn-text);
}

/* Helper + donation line sitting right under the search. */
.search-hint {
    margin: 0.7rem 0 0;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--placeholder);
    text-align: center;
}

.support-note {
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.support-note .support-link {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-strong);
}

.support-note .support-link:hover {
    transform: none;
    box-shadow: none;
    text-decoration-color: var(--text);
}

/* Section heading block, shared by every section. */
.sec-head {
    margin-bottom: 1.4rem;
}

.sec-head .eyebrow {
    margin-bottom: 0.5rem;
}

.sec-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.6rem);
    font-weight: 660;
    letter-spacing: -0.02em;
}

.checks-band,
.faq-band {
    padding-top: 0.5rem;
}

/* Merged "what it checks" — hairline-separated cells, not stacked cards. */
.checks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.check {
    padding: 1.15rem 1.25rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.check:nth-child(2n) {
    border-right: 0;
}

.check:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.check:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
}

.check-kicker {
    margin: 0 0 0.4rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--placeholder);
}

.check h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
    font-weight: 620;
    letter-spacing: -0.01em;
}

.check p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Keep the Discord CTA monochrome so color stays status-only. */
.primary-link.discord-cta,
.topbar-link.discord-cta {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: var(--btn-text);
}

.primary-link.discord-cta:hover,
.topbar-link.discord-cta:hover {
    background: var(--btn-bg-hover);
    border-color: var(--btn-bg-hover);
}

/* Links stay legible as links in a monochrome palette. */
.inline-link {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-strong);
}

.inline-link:hover {
    text-decoration-color: var(--text);
}

/* Single-column checks on small screens. */
@media (max-width: 640px) {
    .checks-grid {
        grid-template-columns: 1fr;
    }

    .check {
        border-right: 0;
    }

    .check:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .check:nth-last-child(2) {
        border-bottom: 1px solid var(--border);
    }
}

/* Contextual support ask, shown under a completed result. */
.result-support {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 0.9rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.result-support .support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.result-support .support-link:hover {
    transform: translateY(-1px);
    border-color: var(--text);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}
