@import 'tokens.css';

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ut-page-bg);
    color: var(--ut-text-page);
    font-family: 'Strait', 'Roboto', sans-serif;
}

.not-found-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.not-found-panel {
    width: min(100%, 620px);
    border-left: 3px solid var(--ut-accent-cyan);
    background: var(--ut-surface-panel);
    border-top: 1px solid var(--ut-border-panel);
    border-right: 1px solid var(--ut-border-panel-soft);
    border-bottom: 1px solid var(--ut-border-panel-soft);
    padding: 1.45rem 1.55rem;
}

.page-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--ut-page-eyebrow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.error-code {
    margin: 0 0 0.15rem;
    color: var(--ut-text-dim);
    font-family: 'Roboto', sans-serif;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
}

h1 {
    margin: 0;
    color: var(--ut-page-heading);
    font-family: 'Strait', 'Roboto', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.95;
}

.page-summary {
    max-width: 34rem;
    margin: 0.45rem 0 0;
    color: var(--ut-page-summary);
    font-size: 1rem;
    line-height: 1.45;
}

.taunt-card {
    margin: 1.15rem 0 1rem;
    border: 1px solid var(--ut-border-card);
    background: #0e1822;
    overflow: hidden;
}

.taunt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid var(--ut-border-card-soft);
    background: var(--ut-surface-panel-top);
    padding: 0.42rem 0.62rem;
}

.taunt-label,
.feed-status {
    color: var(--ut-text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.feed-status {
    color: var(--ut-accent-cyan);
}

.taunt-feed {
    display: flex;
    flex-direction: column;
    min-height: 9.9rem;
    font-family: 'Roboto', sans-serif;
}

.feed-line {
    display: grid;
    grid-template-columns: 3.5rem 7.3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 1.98rem;
    border-top: 1px solid rgba(162, 184, 206, 0.08);
    color: var(--ut-text-table);
    padding: 0.28rem 0.62rem;
    position: relative;
}

.feed-line:first-child {
    border-top: 0;
}

.feed-line::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--ut-border-grid);
}

.feed-line:nth-child(1) {
    opacity: 0.42;
}

.feed-line:nth-child(2) {
    opacity: 0.58;
}

.feed-line:nth-child(3) {
    opacity: 0.76;
}

.feed-line:nth-child(4) {
    opacity: 0.9;
}

.feed-line:nth-child(odd) {
    background: rgba(22, 35, 50, 0.48);
}

.feed-line-system::before {
    background: var(--ut-accent-blue);
}

.feed-line-system .feed-source {
    color: var(--ut-accent-blue);
}

.feed-line-spawn::before {
    background: var(--ut-accent-green);
}

.feed-line-spawn .feed-source {
    color: var(--ut-accent-green);
}

.feed-line-taunt::before {
    background: var(--ut-accent-amber);
}

.feed-line-taunt .feed-source {
    color: var(--ut-accent-amber);
}

.feed-time {
    color: var(--ut-text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.feed-source {
    min-width: 0;
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.feed-message {
    min-width: 0;
    overflow: hidden;
    color: var(--ut-text-strong);
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.respawn-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--ut-border-grid);
    background: var(--ut-surface-control);
    color: var(--ut-page-link);
    padding: 0.36rem 0.72rem;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
}

.respawn-link:hover,
.respawn-link:focus {
    border-color: var(--ut-accent-cyan);
    background: var(--ut-surface-row-hover);
    color: var(--ut-text-strong);
    outline: none;
}

@media (max-width: 640px) {
    .not-found-page {
        align-items: stretch;
        padding: 1rem;
    }

    .not-found-panel {
        padding: 1.1rem;
    }

    h1 {
        font-size: 2.1rem;
    }

    .taunt-feed {
        min-height: 11.25rem;
    }

    .feed-line {
        grid-template-columns: 3.2rem minmax(0, 1fr);
        gap: 0.35rem 0.55rem;
        align-items: start;
    }

    .feed-message {
        grid-column: 2;
        white-space: normal;
    }
}
