@font-face {
    font-display: swap;
    font-family: "Public Pixel";
    font-style: normal;
    font-weight: 400;
    src:
        url(/assets/fonts/PublicPixel.woff2) format("woff2"),
        url(/assets/fonts/PublicPixel.woff) format("woff"),
        url(/assets/fonts/PublicPixel.ttf) format("truetype");
}


* {
    box-sizing: border-box;
}

:root {
    --arena-bg: #050505;
    --panel-bg: rgba(27, 27, 27, 0.97);
    --panel-bg-soft: rgba(38, 38, 38, 0.94);
    --panel-bg-strong: #1b1b1b;
    --panel-accent: #676767;
    --border-color: #3e3e3e;
    --pressed-color: #141414;
    --main-color: #f3f3f3;
    --gold: #ffd700;
    --green: #00bc29;
    --cyan: #00d1ff;
    --danger: #ff3b30;
    --muted: #8c8c8c;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    --panel-rune: url(/4ab1634619ea704e30b9.png);
}

.space-type {
    font-family: "Public Pixel", monospace;
}

.header {
    align-self: start;
    color: var(--main-color);
    font-family: "Public Pixel", monospace;
    font-size: 18px;
    margin: 0;
}

.stroke {
    text-shadow:
        3px 3px 0 #000,
        -3px 3px 0 #000,
        -3px -3px 0 #000,
        3px -3px 0 #000;
}

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

html {
    overflow-y: auto;
}

body {
    background:
        url(/46aa1943d771ed9b505d.png) center / 64px,
        var(--arena-bg);
    color: var(--main-color);
    font-family: monospace;
    font-size: 14px;
    margin: 0;
    position: relative;
}

#root {
    position: relative;
    z-index: 1;
}

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

.scroll::-webkit-scrollbar {
    background-color: #0c0c0c;
    height: 12px;
    width: 12px;
}

.scroll::-webkit-scrollbar-thumb {
    background: #4f4f4f;
    border: 2px solid #121212;
    border-radius: 999px;
}

.admin-users-panel__row,
.admin-users-panel__recent-button {
    transition: box-shadow 120ms ease, transform 120ms ease;
}

.admin-users-panel__row:hover,
.admin-users-panel__row:focus-visible,
.admin-users-panel__recent-button:hover,
.admin-users-panel__recent-button:focus-visible {
    box-shadow:
        inset 0 0 0 1px rgba(255, 215, 0, 0.62),
        0 0 0 1px rgba(255, 215, 0, 0.18);
    outline: none;
}

.admin-finance-row--fresh {
    animation: admin-finance-row-flash 0.95s ease-out;
}

@keyframes admin-finance-row-flash {
    0% {
        background: rgba(255, 215, 0, 0.22);
        box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.34);
    }

    55% {
        background: rgba(255, 215, 0, 0.1);
        box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.18);
    }

    100% {
        background: transparent;
        box-shadow: inset 0 0 0 1px transparent;
    }
}

input {
    background-color: var(--panel-bg-strong);
    border: 2px solid var(--border-color);
    color: var(--main-color);
    min-height: 40px;
    padding: 0 12px;
}

input::placeholder {
    color: #898989;
}

input:hover,
input:focus {
    background-color: #232323;
    outline: none;
}

button {
    background-color: var(--panel-bg-strong);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--main-color);
    cursor: pointer;
    font-size: 14px;
    min-height: 40px;
    padding: 0 14px;
}

button:hover {
    background-color: #777;
}

button:active {
    background-color: var(--pressed-color);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.app {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.route-loading-screen .arena-shell {
    gap: 18px;
}

.route-loading-frame {
    display: grid;
    grid-template-rows: 1fr;
    max-height: 800px;
    min-height: 800px;
    overflow: hidden;
    padding: 0;
    width: min(1200px, calc(100vw - 56px));
}

.route-loading-panel {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0;
}

.route-loading-card {
    align-items: center;
    background: transparent;
    border: none;
    display: grid;
    gap: 0;
    justify-items: center;
    min-height: 0;
    padding: 0;
    text-align: center;
    width: auto;
}

.route-loading-card__title {
    color: #808080;
    font-family: "Public Pixel", monospace;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.bordered {
    background-color: var(--panel-bg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.start-screen,
.start-screen * {
    font-family: "Public Pixel", monospace;
}

.start-screen {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
    width: 100%;
}

.start-shell {
    display: grid;
    gap: 22px;
    justify-items: center;
    width: min(1180px, 100%);
}

.start-title {
    color: var(--main-color);
    font-size: clamp(38px, 5vw, 72px);
    letter-spacing: 1.4px;
    line-height: 0.95;
    margin: 0;
    text-align: center;
}

.start-card {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    max-width: 1040px;
    padding: 18px;
    position: relative;
    width: 100%;
}

.start-card::before {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0 30%, transparent 30% 41%, rgba(255, 255, 255, 0.03) 41% 44%, transparent 44% 58%, rgba(255, 255, 255, 0.02) 58% 60%, transparent 60%),
        radial-gradient(circle at center, rgba(255, 215, 0, 0.06), transparent 72%);
    content: "";
    inset: -32px;
    opacity: 0.34;
    pointer-events: none;
    position: absolute;
}

.start-main,
.start-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.start-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.start-panel__title {
    color: var(--gold);
    font-size: 20px;
    line-height: 1.1;
}

.start-copy {
    color: #cfcfcf;
    font-size: 12px;
    line-height: 1.55;
}

.start-server {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.start-input {
    min-height: 46px;
    width: 100%;
}

.start-tabs {
    display: inline-grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.start-tab {
    background: var(--panel-bg-soft);
    min-height: 40px;
}

.start-tab--active {
    background: #5e5e5e;
    border-color: #7d7d7d;
    color: var(--gold);
}

.start-form {
    display: grid;
    gap: 14px;
}

.start-wallet-card {
    align-items: start;
    display: grid;
    gap: 8px;
    min-height: 76px;
    padding: 14px 16px;
}

.start-wallet-card__label {
    color: var(--gold);
    font-size: 12px;
    line-height: 1.2;
}

.start-wallet-card__value {
    color: var(--main-color);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.start-field {
    display: grid;
    gap: 8px;
}

.start-field span {
    font-size: 14px;
}

.start-password-rule {
    color: #a8a8a8;
    font-size: 11px;
    line-height: 1.45;
}

.start-password-rule--warning {
    color: #ffb3a7;
}

.start-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.start-primary,
.start-secondary {
    min-height: 44px;
    padding: 0 18px;
}

.start-primary {
    background: #676767;
    min-width: 188px;
}

.start-primary:hover {
    background: #7d7d7d;
}

.start-secondary {
    background: transparent;
}

.start-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.start-notice {
    border: 2px solid transparent;
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 12px;
}

.start-notice--error {
    background: rgba(94, 25, 25, 0.32);
    border-color: rgba(255, 59, 48, 0.38);
    color: #ffc5bf;
}

.start-notice--success {
    background: rgba(10, 66, 20, 0.3);
    border-color: rgba(0, 188, 41, 0.34);
    color: #c4ffcf;
}

.start-notice--info {
    background: rgba(23, 50, 72, 0.28);
    border-color: rgba(0, 209, 255, 0.28);
    color: #c8f6ff;
}

.start-hint {
    color: #a8a8a8;
    font-size: 11px;
    line-height: 1.6;
}

.start-steps {
    display: grid;
    gap: 10px;
    line-height: 1.6;
    margin: 0;
    padding-left: 18px;
}

.start-steps li {
    color: var(--main-color);
    font-size: 12px;
}

.start-meta {
    display: grid;
    gap: 10px;
}

.start-meta div {
    align-items: center;
    background: rgba(20, 20, 20, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
}

.start-meta span {
    color: #a8a8a8;
    font-size: 11px;
}

.start-meta strong {
    color: var(--main-color);
    font-size: 11px;
    overflow-wrap: anywhere;
    text-align: right;
}

.arena-screen,
.arena-screen * {
    font-family: "Public Pixel", monospace;
}

.archive-item__meta,
.archive-item__meta *,
.archive-timeline__entry,
.archive-timeline__entry *,
.archive-timeline__header .archive-item__meta,
.archive-panel__empty,
.archive-view__error {
    font-family: monospace;
}

.arena-screen {
    min-height: 100vh;
    padding: 24px 28px 36px;
    position: relative;
    width: 100%;
}

.arena-screen::before {
    background: var(--panel-rune) center -250px / 1500px 1500px no-repeat;
    content: "";
    opacity: 0.25;
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.arena-screen > * {
    position: relative;
    z-index: 1;
}

.arena-topbar {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto 1fr;
    margin: 0 auto 48px;
    width: min(1790px, calc(100vw - 72px));
}

.arena-brand-wrap {
    justify-self: center;
    position: relative;
}

.arena-brand {
    color: var(--gold);
    font-size: clamp(34px, 3.15vw, 50px);
    letter-spacing: 1.2px;
    line-height: 1;
    margin: 0;
    text-align: center;
}

.arena-brand__beta {
    color: var(--main-color);
    font-size: clamp(10px, 0.85vw, 15px);
    left: calc(100% + 2px);
    letter-spacing: 0.6px;
    line-height: 1;
    opacity: 0.96;
    pointer-events: none;
    position: absolute;
    bottom: 2px;
    white-space: nowrap;
}

.arena-topbar__nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.arena-topbar__nav--right {
    justify-content: flex-end;
}

.arena-topbar__action-slot {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    min-width: 220px;
}

.arena-topbar__link {
    color: var(--main-color);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    opacity: 0.95;
    transition: color 120ms ease, opacity 120ms ease;
}

.arena-topbar__link--active {
    color: var(--main-color);
}

.arena-topbar__link:hover {
    color: var(--gold);
}

.arena-topbar__link--play-callout {
    animation: arena-topbar-play-callout 8s ease-in-out infinite;
}

.arena-topbar__link--play-callout:hover,
.arena-topbar__link--play-callout:focus-visible {
    animation: none;
    color: var(--gold);
    opacity: 1;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.28),
        0 0 18px rgba(255, 215, 0, 0.16);
}

.arena-session {
    align-items: center;
    background: transparent;
    border: 2px solid transparent;
    display: inline-flex;
    gap: 8px;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 14px;
    white-space: nowrap;
    width: 220px;
}

.arena-session-wrap {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.arena-session:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
}

.arena-session--open {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 208, 0, 0.22);
    color: var(--gold);
}

.arena-topbar__connect {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--main-color);
    font-family: "Public Pixel", monospace;
    font-size: 12px;
    min-height: 40px;
    white-space: nowrap;
    width: 220px;
    padding: 0 16px;
}

.arena-topbar__connect:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
}

.arena-topbar__debug-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.84);
    cursor: pointer;
    font: inherit;
    height: 34px;
    padding: 0 11px;
    flex-shrink: 0;
}

.arena-topbar__debug-button:hover {
    border-color: rgba(255, 215, 0, 0.7);
    color: #ffd84d;
}

.arena-topbar__spacer {
    min-width: 184px;
}

.arena-session__dot {
    background: var(--green);
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(0, 188, 41, 0.22);
    display: inline-block;
    flex: 0 0 auto;
    height: 10px;
    width: 10px;
}

.arena-session__dot--live {
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(0, 188, 41, 0.22);
}

.arena-session__dot--degraded {
    background: #ff6d6d;
    box-shadow: 0 0 0 2px rgba(255, 109, 109, 0.22);
}

.arena-session__dot--polling-fallback {
    background: #f3d46b;
    box-shadow: 0 0 0 2px rgba(243, 212, 107, 0.22);
}

.wallet-chooser-dropdown {
    display: grid;
    font-family: "Public Pixel", monospace;
    gap: 14px;
    max-width: min(500px, calc(100vw - 32px));
    opacity: 0;
    padding: 16px;
    position: fixed;
    transform: translateY(-10px) scale(0.975);
    transform-origin: top center;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 10000;
}

.wallet-chooser-dropdown--open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wallet-chooser-dropdown--session {
    max-width: min(420px, calc(100vw - 32px));
}

.wallet-chooser__header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.wallet-chooser__header-copy {
    display: grid;
    gap: 10px;
}

.wallet-chooser__title {
    color: var(--gold);
    font-size: 16px;
    margin: 0;
}

.wallet-chooser__copy {
    color: #d0d0d0;
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

.wallet-chooser__section {
    display: grid;
    gap: 10px;
}

.wallet-chooser__section-title {
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    letter-spacing: 0.06em;
    margin: 0;
    text-transform: uppercase;
}

.wallet-chooser__list {
    display: grid;
    gap: 8px;
}

.wallet-chooser__option {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 12px;
    text-align: left;
    text-decoration: none;
    transition: border-color 120ms ease, background 120ms ease;
    font-family: "Public Pixel", monospace;
}

.wallet-chooser__option:hover,
.wallet-chooser__option:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 214, 0, 0.35);
}

.wallet-chooser__option-left {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.wallet-chooser__icon {
    border-radius: 8px;
    display: block;
    flex: 0 0 28px;
    height: 28px;
    width: 28px;
}

.wallet-chooser__icon--unsupported {
    align-items: center;
    background: rgba(255, 80, 80, 0.16);
    border: 1px solid rgba(255, 90, 90, 0.22);
    color: #ff8c8c;
    display: inline-flex;
    font-size: 10px;
    justify-content: center;
}

.wallet-chooser__option-name {
    align-items: center;
    color: var(--main-color);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    min-width: 0;
}

.wallet-chooser__option-badge {
    background: rgba(8, 63, 20, 0.45);
    border: 1px solid rgba(24, 220, 71, 0.2);
    border-radius: 999px;
    color: var(--green);
    font-size: 9px;
    line-height: 1;
    padding: 6px 8px;
    text-transform: uppercase;
}

.wallet-chooser__option-kind {
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    line-height: 1.25;
    margin-left: auto;
    max-width: 150px;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}

.wallet-chooser__option--link {
    color: inherit;
}

.wallet-chooser__option--disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.wallet-chooser__option--disabled:hover,
.wallet-chooser__option--disabled:focus-visible {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.wallet-chooser__toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Public Pixel", monospace;
    font-size: 10px;
    min-height: 34px;
    padding: 0 12px;
    text-align: left;
}

.wallet-chooser__toggle:hover,
.wallet-chooser__toggle:focus-visible {
    color: rgba(255, 255, 255, 0.82);
}

.wallet-chooser__expandable {
    display: grid;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: max-height 180ms ease, opacity 160ms ease, transform 180ms ease;
}

.wallet-chooser__expandable--open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
}

.wallet-chooser__legal {
    color: rgba(255, 255, 255, 0.56);
    font-size: 9px;
    line-height: 1.75;
    margin: -2px auto 0;
    max-width: 360px;
    text-align: center;
}

.wallet-chooser__legal-link {
    color: #d5d5d5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wallet-chooser__legal-link:hover,
.wallet-chooser__legal-link:focus-visible {
    color: var(--gold);
    outline: none;
}

.wallet-chooser__account-row {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-height: 26px;
}

.wallet-chooser__account-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    text-transform: uppercase;
}

.wallet-chooser__account-value {
    color: var(--main-color);
    font-size: 11px;
    text-align: right;
}

.wallet-chooser__action-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-chooser__action-button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "Public Pixel", monospace;
    font-size: 10px;
    min-height: 38px;
    padding: 0 12px;
}

.wallet-chooser__action-button:hover,
.wallet-chooser__action-button:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 214, 0, 0.35);
    color: var(--gold);
    outline: none;
}

.wallet-chooser__action-button--danger {
    color: #ff9c9c;
    grid-column: 1 / -1;
}

.wallet-chooser__action-button--danger:hover,
.wallet-chooser__action-button--danger:focus-visible {
    color: #ffc1c1;
}

.arena-shell {
    display: grid;
    gap: 18px;
    justify-items: center;
    margin: 0 auto;
    max-width: 1440px;
}

.arena-frame {
    min-height: 800px;
    overflow: hidden;
    padding: 40px 48px 34px;
    position: relative;
    width: min(1200px, calc(100vw - 56px));
}

.arena-frame::before {
    content: none;
}

.arena-frame--spectator {
    min-height: 800px;
}

.arena-frame__spectator {
    display: grid;
    gap: 26px;
    margin: 0 auto;
    max-width: 520px;
    min-height: 100%;
    position: relative;
    width: 100%;
    z-index: 1;
}

.arena-help-wrap {
    display: block;
    height: 30px;
    position: absolute;
    right: 12px;
    top: 10px;
    width: 30px;
    z-index: 3;
}

.arena-help {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(11, 11, 11, 0.98));
    border: 2px solid rgba(160, 160, 160, 0.44);
    border-radius: 999px;
    color: #bebebe;
    display: inline-flex;
    font-family: "Public Pixel", monospace;
    font-size: 10px;
    inset: 0;
    letter-spacing: 0.2px;
    height: 30px;
    justify-content: center;
    min-height: 30px;
    min-width: 30px;
    padding: 0;
    position: absolute;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.75);
    width: 30px;
}

.arena-help--enabled {
    border-color: rgba(159, 159, 159, 0.76);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 0 12px rgba(170, 170, 170, 0.12);
    color: #d4d4d4;
}

.arena-help--disabled {
    border-color: rgba(255, 215, 0, 0.76);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 0 16px rgba(255, 215, 0, 0.22);
    color: var(--gold);
}

.arena-help:hover,
.arena-help:focus-visible {
    background:
        linear-gradient(180deg, rgba(38, 38, 38, 0.98), rgba(16, 16, 16, 0.98));
    outline: none;
}

.arena-help__label {
    animation: arena-help-label-in 120ms ease-out;
    background:
        linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(8, 8, 8, 0.98));
    border: 2px solid rgba(255, 215, 0, 0.32);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 14px 30px rgba(0, 0, 0, 0.34);
    color: #f5e8ac;
    font-family: "Public Pixel", monospace;
    font-size: 9px;
    line-height: 1.7;
    max-width: 180px;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    right: calc(100% + 10px);
    text-align: left;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.arena-tips__tooltip {
    animation: arena-hint-in 140ms ease-out;
    background:
        linear-gradient(180deg, rgba(28, 28, 28, 0.99), rgba(10, 10, 10, 0.99));
    border: 2px solid rgba(255, 215, 0, 0.34);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55),
        0 20px 36px rgba(0, 0, 0, 0.4);
    color: #f3f0d6;
    font-family: "Public Pixel", monospace;
    font-size: 9px;
    letter-spacing: 0.18px;
    line-height: 1.8;
    max-width: 260px;
    padding: 11px 13px;
    pointer-events: none;
    position: fixed;
    white-space: normal;
    z-index: 40;
}

.arena-tips__tooltip a {
    pointer-events: auto;
}

.arena-tips__link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.arena-tips__link--gold {
    color: var(--gold);
    font-weight: 700;
}

.arena-tips__link--gold:hover,
.arena-tips__link--gold:focus-visible {
    color: #ffe37a;
    outline: none;
}

.arena-tips__tooltip::after {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    content: "";
    left: 50%;
    margin-left: -7px;
    position: absolute;
}

.arena-tips__tooltip--top::after {
    border-top: 7px solid rgba(255, 215, 0, 0.36);
    bottom: -9px;
}

.arena-tips__tooltip--bottom::after {
    border-bottom: 7px solid rgba(255, 215, 0, 0.36);
    top: -9px;
}

.arena-help--attention {
    animation: arena-help-pulse 1.15s ease-in-out infinite;
}

@keyframes arena-hint-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes arena-help-label-in {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(4px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes arena-help-pulse {
    0%,
    100% {
        border-color: rgba(159, 159, 159, 0.76);
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.55),
            0 0 10px rgba(170, 170, 170, 0.1);
        color: #d4d4d4;
    }

    50% {
        border-color: rgba(255, 215, 0, 0.88);
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.58),
            0 0 18px rgba(255, 215, 0, 0.28);
        color: #ffe37a;
    }
}

@keyframes arena-topbar-play-callout {
    0%,
    62.5%,
    100% {
        color: rgba(243, 243, 243, 0.95);
        opacity: 1;
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.04),
            0 0 6px rgba(255, 215, 0, 0.03);
    }

    81.25% {
        color: #ffd700;
        opacity: 1;
        text-shadow:
            0 0 12px rgba(255, 215, 0, 0.3),
            0 0 22px rgba(255, 215, 0, 0.16);
    }
}

.arena-battle-feed {
    display: grid;
    gap: 8px;
}

.arena-battle-feed__list {
    align-content: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    min-height: 214px;
    position: relative;
}

.arena-battle-feed__placeholder {
    background: rgba(19, 19, 19, 0.88);
    box-shadow: none;
    min-height: 54px;
}

.arena-battle-feed__error {
    color: #ffb3a7;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 8px;
}

.arena-round-entry {
    align-items: center;
    column-gap: 24px;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    width: 100%;
}

.arena-round-entry__fighter {
    align-items: center;
    background: transparent;
    border: none;
    display: flex;
    font-family: "Public Pixel", monospace;
    font-size: 14px;
    gap: 12px;
    line-height: 1.25;
    min-height: 42px;
    min-width: 0;
    padding: 0 8px;
    text-shadow: none;
}

.arena-round-entry__fighter--winner {
    color: var(--green);
    justify-content: center;
    text-align: center;
}

.arena-round-entry__fighter--loser {
    color: var(--danger);
    justify-content: center;
    text-align: center;
}

.arena-round-entry__fighter--placeholder {
    box-shadow: none;
}

.arena-round-entry__display-name {
    font-family: "Public Pixel", monospace;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arena-round-entry__display-name--winner {
    color: var(--green);
}

.arena-round-entry__display-name--loser {
    color: var(--danger);
}

.arena-round-entry__weapon {
    flex: 0 0 auto;
    height: 32px;
    image-rendering: pixelated;
    object-fit: contain;
    width: 32px;
}

.arena-round-entry__level {
    color: var(--gold);
    flex: 0 0 auto;
    font-family: "Public Pixel", monospace;
    font-size: 14px;
}

.arena-round-entry__versus {
    color: var(--main-color);
    font-family: "Public Pixel", monospace;
    font-size: 20px;
    text-align: center;
}

.arena-round-entry__versus--placeholder {
    opacity: 0;
}

.arena-round-entry--win {
    justify-content: center;
    min-height: 46px;
}

.arena-round-entry__win {
    align-items: center;
    background: transparent;
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
    text-align: center;
    width: 100%;
}

.arena-round-entry__win-display-name {
    color: var(--green);
    font-family: "Public Pixel", monospace;
    font-size: 12px;
}

.arena-round-entry__weapon--win {
    height: 32px;
    width: 32px;
}

.arena-round-entry__level--win {
    min-width: auto;
}

.arena-round-entry__win-label {
    color: var(--main-color);
    font-family: "Public Pixel", monospace;
    font-size: 14px;
}

.arena-round-entry__win-bank {
    color: var(--gold);
    font-family: "Public Pixel", monospace;
    font-size: 14px;
}

.arena-round-entry__win-display-name {
    font-size: 14px;
}

.animated-reel-number {
    align-items: flex-start;
    display: inline-flex;
    line-height: 1;
}

.animated-reel-number__char,
.animated-reel-number__slot,
.animated-reel-number__digit {
    align-items: center;
    display: inline-flex;
    height: 1em;
    justify-content: center;
}

.animated-reel-number__char,
.animated-reel-number__slot {
    min-width: 0.62em;
}

.animated-reel-number__slot {
    overflow: hidden;
    position: relative;
    vertical-align: bottom;
}

.animated-reel-number__slot--spinning {
    text-shadow:
        0 0 7px rgba(255, 215, 0, 0.16),
        0 0 1px rgba(255, 255, 255, 0.18);
}

.animated-reel-number__stack {
    display: block;
    will-change: transform;
}

.animated-reel-number__digit {
    display: flex;
    width: 100%;
}

.resource-view__icon {
    align-items: center;
    color: var(--gold);
    display: inline-flex;
    justify-content: center;
    min-width: 18px;
    text-align: center;
}

.pixel-icon {
    color: inherit;
    display: inline-flex;
    flex: 0 0 auto;
    vertical-align: middle;
}

.pixel-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

@media (max-width: 1320px) {
    .arena-frame {
        min-height: auto;
        padding: 36px 24px 28px;
    }
}

@media (max-width: 900px) {
    .start-screen {
        padding: 18px 14px 28px;
    }

    .start-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .start-server {
        grid-template-columns: 1fr;
    }

    .start-actions {
        flex-direction: column;
    }

    .start-secondary,
    .start-primary {
        width: 100%;
    }

    .arena-screen {
        padding: 18px 14px 28px;
    }

    .arena-frame {
        width: calc(100vw - 28px);
    }

}

.rainbow-bg {
    animation: rainbow-bg 2.5s linear;
    animation-iteration-count: infinite;
}

.rainbow {
    animation: rainbow 2.5s linear;
    animation-iteration-count: infinite;
}

.rainbow-border {
    animation: rainbow-border 2.5s linear;
    animation-iteration-count: infinite;
}

.rainbow-circle {
    animation: spin 2.5s linear;
    animation-iteration-count: infinite;
    background: conic-gradient(from 90deg,
            violet,
            indigo,
            blue,
            green,
            yellow,
            orange,
            red,
            violet);
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

@keyframes rainbow-bg {

    100%,
    0% {
        background-color: rgb(255, 0, 0);
    }

    8% {
        background-color: rgb(255, 127, 0);
    }

    16% {
        background-color: rgb(255, 255, 0);
    }

    25% {
        background-color: rgb(127, 255, 0);
    }

    33% {
        background-color: rgb(0, 255, 0);
    }

    41% {
        background-color: rgb(0, 255, 127);
    }

    50% {
        background-color: rgb(0, 255, 255);
    }

    58% {
        background-color: rgb(0, 127, 255);
    }

    66% {
        background-color: rgb(0, 0, 255);
    }

    75% {
        background-color: rgb(127, 0, 255);
    }

    83% {
        background-color: rgb(255, 0, 255);
    }

    91% {
        background-color: rgb(255, 0, 127);
    }
}

@keyframes rainbow {

    100%,
    0% {
        color: rgb(255, 0, 0);
    }

    8% {
        color: rgb(255, 127, 0);
    }

    16% {
        color: rgb(255, 255, 0);
    }

    25% {
        color: rgb(127, 255, 0);
    }

    33% {
        color: rgb(0, 255, 0);
    }

    41% {
        color: rgb(0, 255, 127);
    }

    50% {
        color: rgb(0, 255, 255);
    }

    58% {
        color: rgb(0, 127, 255);
    }

    66% {
        color: rgb(0, 0, 255);
    }

    75% {
        color: rgb(127, 0, 255);
    }

    83% {
        color: rgb(255, 0, 255);
    }

    91% {
        color: rgb(255, 0, 127);
    }
}

@keyframes rainbow-border {

    100%,
    0% {
        border-color: rgb(255, 0, 0);
    }

    8% {
        border-color: rgb(255, 127, 0);
    }

    16% {
        border-color: rgb(255, 255, 0);
    }

    25% {
        border-color: rgb(127, 255, 0);
    }

    33% {
        border-color: rgb(0, 255, 0);
    }

    41% {
        border-color: rgb(0, 255, 127);
    }

    50% {
        border-color: rgb(0, 255, 255);
    }

    58% {
        border-color: rgb(0, 127, 255);
    }

    66% {
        border-color: rgb(0, 0, 255);
    }

    75% {
        border-color: rgb(127, 0, 255);
    }

    83% {
        border-color: rgb(255, 0, 255);
    }

    91% {
        border-color: rgb(255, 0, 127);
    }
}
