@font-face {
    font-family: "Lexend";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/lexend-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lexend";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/lexend-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #080b11;
    --panel: #111623;
    --panel-2: #161c2b;
    --ink: #0b0f17;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.15);
    --gold: #f6b93b;
    --gold-light: #ffdc85;
    --gold-deep: #d8921a;
    --gold-line: rgba(246, 185, 59, 0.34);
    --gold-soft: rgba(246, 185, 59, 0.1);
    --on-gold: #1c1403;
    --text: #f3f5f9;
    --soft: #c3cad7;
    --muted: #98a2b5;
    --sell: #37d69b;
    --buy: #ff6b7c;
    --info: #63b6f2;
    --warning: #f3a83b;
    --radius: 12px;
    --radius-sm: 10px;
    --gutter: 18px;
    --content: 1400px;
    --control: 42px;
    --font: "Lexend", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font: 400 15px/1.55 var(--font);
    background:
        radial-gradient(1100px 520px at 12% -8%, rgba(246, 185, 59, 0.13), transparent 62%),
        radial-gradient(900px 520px at 100% 0, rgba(74, 108, 214, 0.13), transparent 60%),
        linear-gradient(180deg, #0b0f17 0, var(--bg) 480px);
    background-repeat: no-repeat;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--gold-light);
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

em {
    font-style: normal;
}

code {
    font-family: var(--mono);
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.icon {
    flex: none;
    width: 1.2em;
    height: 1.2em;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 52px;
    background: linear-gradient(90deg, #1146b8, #1d63e0 50%, #1146b8);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.bar--red {
    background: linear-gradient(90deg, #6f1d1d, #a12b2b 50%, #6f1d1d);
}

.bar--aqua {
    background: linear-gradient(90deg, #00a6e8, #00d9a5);
    color: #04202a;
}

.bar--gold {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-light) 50%, var(--gold-deep));
    color: var(--on-gold);
}

.bar--violet {
    background: linear-gradient(90deg, #4a2aa8, #7b4be0 50%, #4a2aa8);
}

.bar--dark {
    background: linear-gradient(90deg, #121826, #1c2538 50%, #121826);
    border-bottom: 1px solid var(--gold-line);
}

.bar__body {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 12px;
    min-width: 0;
    color: inherit;
}

a.bar__body:hover {
    color: inherit;
}

a.bar__body .icon {
    transition: transform 0.15s;
}

a.bar__body:hover .icon {
    transform: translateX(4px);
}

.bar__mark {
    display: inline-flex;
    color: #4be585;
}

.bar__mark .icon {
    width: 22px;
    height: 22px;
}

a.bar__body:hover .bar__mark .icon {
    transform: none;
}

.bar__logo {
    width: auto;
    max-width: 140px;
    height: 24px;
    object-fit: contain;
}

.bar__close {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.32);
    color: inherit;
    cursor: pointer;
    transform: translateY(-50%);
}

.bar__close:hover {
    background: rgba(0, 0, 0, 0.55);
}

.bar__close .icon {
    width: 13px;
    height: 13px;
}

.shell,
.site-footer__inner {
    width: 100%;
    max-width: calc(var(--content) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px var(--gutter) 6px;
    background: linear-gradient(180deg, rgba(8, 11, 17, 0.95) 60%, rgba(8, 11, 17, 0));
}

.topbar__frame,
.topbar__inner {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.topbar__frame {
    max-width: var(--content);
    margin-inline: auto;
    padding: 1px;
    background: linear-gradient(90deg, rgba(246, 185, 59, 0.85), rgba(246, 185, 59, 0.18) 30%, rgba(246, 185, 59, 0.18) 70%, rgba(246, 185, 59, 0.85));
}

.topbar__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 22px;
    min-height: 64px;
    padding: 10px 20px;
    background: linear-gradient(180deg, #151b29, #0d111a);
}

.topbar__menu {
    display: contents;
}

.menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.menu-button {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--text);
    white-space: nowrap;
}

.brand:hover {
    color: var(--text);
}

.brand__mascot {
    flex: none;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 6px 14px rgba(246, 185, 59, 0.3));
}

.brand__text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand__text b {
    margin-left: 5px;
    color: var(--gold);
    font-weight: 800;
}

.brand__logo {
    width: auto;
    max-width: 290px;
    height: 64px;
    object-fit: contain;
}

.is-site .topbar .brand__logo {
    transform: scale(1.08);
}

.brand--small .brand__mascot {
    width: 30px;
    height: 30px;
    filter: none;
}

.brand--small .brand__text {
    font-size: 15px;
}

.brand--small .brand__logo {
    height: 48px;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.topnav__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--soft);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.topnav__link .icon {
    color: var(--gold);
}

.topnav__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.topnav__link.is-active {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: var(--on-gold);
    box-shadow: 0 8px 22px rgba(246, 185, 59, 0.28);
}

.topnav__link.is-active .icon {
    color: inherit;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar__actions form {
    display: flex;
}

.shell {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0 16px;
}

.rail {
    display: none;
}

.page {
    container: page / inline-size;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 22px 0 48px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}

.site-footer__inner:has(.contact) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.site-footer__inner:has(.contact) .brand {
    justify-self: start;
}

.site-footer__inner:has(.contact) p {
    text-align: right;
}

@media (max-width: 900px) {
    .site-footer__inner:has(.contact) {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .site-footer__inner:has(.contact) .brand {
        justify-self: center;
    }

    .site-footer__inner:has(.contact) p {
        text-align: center;
    }
}

.contact {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 9px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
}

.contact .icon {
    color: var(--gold);
}

.contact__label {
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact__value {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
    user-select: all;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--control);
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: 600 14px/1.2 var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.12s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
    color: var(--on-gold);
    box-shadow: 0 8px 22px rgba(246, 185, 59, 0.26);
}

.btn--primary:hover {
    color: var(--on-gold);
    box-shadow: 0 10px 28px rgba(246, 185, 59, 0.4);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold-light);
}

.btn--danger {
    background: rgba(255, 107, 124, 0.08);
    border-color: rgba(255, 107, 124, 0.55);
    color: var(--buy);
}

.btn--danger:hover {
    background: var(--buy);
    color: #2a060b;
}

.btn--icon {
    width: var(--control);
    padding: 0;
}

.btn--block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    background: var(--info);
    color: #051a2a;
}

.badge + .badge {
    margin-left: 4px;
}

.badge--vip,
.badge--hyped,
.badge--warning {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: var(--on-gold);
}

.badge--success {
    background: var(--sell);
    color: #03241a;
}

.badge--new,
.badge--danger {
    background: #e5484d;
    color: #fff;
}

.alert {
    padding: 13px 16px;
    border: 1px solid var(--line-strong);
    border-left: 4px solid var(--info);
    border-radius: var(--radius);
    background: var(--panel);
    overflow-wrap: anywhere;
}

.alert .icon {
    vertical-align: -3px;
}

.alert--success {
    border-left-color: var(--sell);
}

.alert--error {
    border-left-color: var(--buy);
}

.alert--warning {
    border-left-color: var(--warning);
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.page-head__title {
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.page-head__text,
.stamp {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.card,
.panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #131928, #0d111a);
}

.card {
    padding: 22px;
    border: 1px solid var(--line-strong);
}

.card--narrow {
    width: 100%;
    max-width: 460px;
    margin: 28px auto 0;
    border-color: var(--gold-line);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.card__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

.card--narrow .card__title {
    font-size: 23px;
    font-weight: 800;
}

.card__foot,
.hint {
    color: var(--muted);
    font-size: 13px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
    align-items: end;
}

.form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field__label {
    color: var(--soft);
    font-size: 13px;
    font-weight: 600;
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 185, 59, 0.18);
}

.input--mono {
    font-family: var(--mono);
    font-size: 13px;
}

.input--narrow {
    width: 92px;
}

textarea.input {
    resize: vertical;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}

.facts > div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
}

.facts dt {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.facts dd {
    margin: 2px 0 0;
    font-weight: 700;
}

.empty {
    padding: 40px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-strong);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    counter-reset: step;
}

.steps li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--panel-2);
    font-size: 11px;
    font-weight: 800;
}

.steps .is-active {
    border-color: var(--gold);
    color: var(--gold-light);
}

.steps .is-active::before {
    background: var(--gold);
    color: var(--on-gold);
}

.steps .is-done {
    color: var(--sell);
}

.steps .is-done::before {
    content: "\2713";
    background: var(--sell);
    color: #03241a;
}

.g-recaptcha {
    min-height: 78px;
}

.identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    border: 2px solid var(--gold-line);
    border-radius: 50%;
    object-fit: cover;
    background: var(--panel-2);
    color: var(--gold);
}

.avatar--large {
    width: 96px;
    height: 96px;
}

.avatar--empty .icon {
    width: 46%;
    height: 46%;
}

.setup {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.qr {
    display: grid;
    place-items: center;
    width: 244px;
    max-width: 100%;
    min-height: 120px;
    padding: 10px;
    border-radius: var(--radius);
    background: #fff;
    color: #0b0f17;
}

.qr svg,
.qr img {
    display: block;
    width: 100%;
    height: auto;
}

.device {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
}

.device__info {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.device__info strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
}

.state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 620px;
    margin: 40px auto;
    padding: 44px 26px;
    border: 1px solid var(--gold-line);
    border-radius: 20px;
    background:
        radial-gradient(420px 220px at 50% 0, rgba(246, 185, 59, 0.16), transparent 70%),
        linear-gradient(180deg, #131928, #0c1018);
    text-align: center;
}

.state__code {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(72px, 18vw, 132px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.state__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
}

.state__icon .icon {
    width: 42px;
    height: 42px;
}

.state__title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
}

.state__text {
    color: #b9c1d0;
    font-size: 16px;
}

.board {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(520px 320px at 0 0, rgba(246, 185, 59, 0.16), transparent 70%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 16px),
        linear-gradient(180deg, #141a28, #0c1018);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    top: -140px;
    left: 34%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(246, 185, 59, 0.2), transparent 68%);
    filter: blur(8px);
    animation: hero-drift 14s ease-in-out infinite alternate;
}

.hero::after {
    right: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 44px solid rgba(246, 185, 59, 0.05);
}

@keyframes hero-drift {
    to {
        transform: translate(90px, 50px) scale(1.15);
    }
}

.hero__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    max-width: 920px;
}

.eyebrow {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 11px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(22px, 3.2cqi, 32px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero__title em,
.panel__title em {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__text {
    max-width: 64ch;
    color: #b9c1d0;
    font-size: 14px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.hero__stats li {
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    padding: 9px 12px 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 11, 17, 0.6);
    transition: transform 0.18s, border-color 0.18s;
}

.hero__stats li::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero__stats li:hover {
    transform: translateY(-3px);
    border-color: var(--gold-line);
}

.hero__stats strong {
    color: var(--gold);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.hero__stats span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.deals {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 12px 14px 14px;
    border: 1px solid var(--gold-line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22, 28, 43, 0.96), rgba(11, 15, 23, 0.96));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.deals__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 9px;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.deals__switch {
    display: inline-flex;
    margin-left: auto;
    padding: 2px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
}

.deals__tab {
    padding: 4px 13px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--muted);
    font: 700 11.5px/1.2 var(--font);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.deals__tab:hover {
    color: var(--gold-light);
}

.board:not([data-deals="buy"]) .deals__tab--sell,
.board[data-deals="buy"] .deals__tab--buy {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: var(--on-gold);
}

.board:not([data-deals="buy"]) :is(.deals__title--buy, .deals__list--buy),
.board[data-deals="buy"] :is(.deals__title--sell, .deals__list--sell) {
    display: none;
}

.deal__price.deal__price--buy {
    color: var(--buy);
}

.deals__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: deal;
}

.deal {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 92px;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    transition: transform 0.18s, border-color 0.15s, background-color 0.15s;
}

.deal::before {
    counter-increment: deal;
    content: counter(deal);
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
}

a.deal:hover {
    transform: translateX(4px);
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--text);
}

.deal__server {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.deal__server .icon {
    color: var(--gold);
}

.deal__vendor {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal__price {
    color: var(--sell);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.panel {
    position: relative;
    padding: 22px 20px 20px;
    border: 1px solid var(--gold-line);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s;
}

.panel::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    right: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.board.is-loading .panel {
    opacity: 0.72;
}

.panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.panel__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.panel__top:has(> .deals) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    grid-template-areas:
        "head deals"
        "tools deals"
        "meta meta";
    gap: 16px 20px;
}

.panel__top > .panel__head {
    grid-area: head;
}

.panel__top:has(> .deals) :is(.chips, .switch) {
    gap: 6px;
}

.panel__top:has(> .deals) :is(.chip, .switch__item) {
    padding-inline: 12px;
}

.panel__top > .toolbar {
    grid-area: tools;
}

.panel__top > .panel__meta {
    grid-area: meta;
}

.panel__top > .deals {
    grid-area: deals;
    display: flex;
    flex-direction: column;
    padding: 7px 10px;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.panel__top .deals__head {
    margin-bottom: 4px;
    font-size: 11.5px;
}

.panel__top .deals__tab {
    padding: 3px 11px;
}

.panel__top .deals__list {
    flex: 1;
    justify-content: space-between;
    gap: 3px;
}

.panel__top .deal {
    grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 2px 10px;
    border-radius: 10px;
}

.panel__top .deal::before {
    width: 20px;
    height: 20px;
    font-size: 11px;
}

.panel__top .deal__server {
    gap: 6px;
    font-size: 13.5px;
}

.panel__top .deal__vendor {
    font-size: 12px;
}

.panel__top .deal__price {
    font-size: 14.5px;
}

.panel__coin {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
    color: var(--on-gold);
    box-shadow: 0 0 0 4px rgba(246, 185, 59, 0.14);
}

.panel__coin .icon {
    width: 26px;
    height: 26px;
}

.panel__title {
    flex: 1 1 240px;
    min-width: 0;
}

.panel__title h1,
.panel__title h2 {
    font-size: clamp(19px, 2.7cqi, 27px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.stamp time {
    color: var(--text);
    font-weight: 600;
}

.stamp .is-fresh {
    animation: stamp-flash 2.6s ease-out 1;
}

@keyframes stamp-flash {
    0%,
    30% {
        color: var(--gold-light);
    }
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--sell);
    box-shadow: 0 0 0 4px rgba(55, 214, 155, 0.18);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.35;
    }
}

.toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.toolbar .switch {
    order: -1;
}

.chips,
.switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.chip,
.switch__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #d5dbe6;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.chip:hover,
.switch__item:hover {
    border-color: var(--gold-line);
    color: var(--gold-light);
}

.chip.is-active {
    border-color: transparent;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: var(--on-gold);
    font-weight: 700;
}

.switch__item {
    color: var(--muted);
}

.switch__item.is-active {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-light);
    box-shadow: inset 0 0 0 1px rgba(246, 185, 59, 0.25);
}

.panel__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 12.5px;
}

.legend,
.counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.legend__item::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border-radius: 4px;
    background: rgba(55, 214, 155, 0.2);
    box-shadow: inset 0 0 0 1px var(--sell);
    vertical-align: -2px;
}

.legend__item--buy::before {
    background: rgba(255, 107, 124, 0.2);
    box-shadow: inset 0 0 0 1px var(--buy);
}

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

.counts {
    padding-right: 8px;
}

.counts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.counts .icon {
    color: var(--gold);
}

.table-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink);
}

.table-wrap--board {
    border-color: rgba(246, 185, 59, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, #0e1320, #0a0d15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px rgba(0, 0, 0, 0.35);
}

.price-table,
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.price-table {
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
}

.price-table tr > :first-child {
    border-left: 0;
}

.price-table tbody:last-of-type tr:last-child > *,
.price-table tfoot tr > * {
    border-bottom: 0;
}

.price-table thead th {
    background: linear-gradient(180deg, #19213a, #131a2c);
    vertical-align: bottom;
}

.price-table thead th:nth-child(odd):not(:first-child),
.price-table tbody td:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.017);
}

.server {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    min-height: 50px;
    padding: 8px 4px 6px;
    color: #f6f7fb;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    transition: color 0.15s, background-color 0.15s;
}

.server:hover {
    color: var(--gold-light);
}

.price-table thead th:has(.server:hover) {
    background: linear-gradient(180deg, rgba(246, 185, 59, 0.16), rgba(246, 185, 59, 0.09)), linear-gradient(180deg, #19213a, #131a2c);
}

.price-table :is(th, td) {
    transition: background-color 0.15s, box-shadow 0.15s;
}

.price-table:has(thead th:nth-child(2) .server:hover) :is(th, td):nth-child(2),
.price-table:has(thead th:nth-child(3) .server:hover) :is(th, td):nth-child(3),
.price-table:has(thead th:nth-child(4) .server:hover) :is(th, td):nth-child(4),
.price-table:has(thead th:nth-child(5) .server:hover) :is(th, td):nth-child(5),
.price-table:has(thead th:nth-child(6) .server:hover) :is(th, td):nth-child(6),
.price-table:has(thead th:nth-child(7) .server:hover) :is(th, td):nth-child(7),
.price-table:has(thead th:nth-child(8) .server:hover) :is(th, td):nth-child(8),
.price-table:has(thead th:nth-child(9) .server:hover) :is(th, td):nth-child(9),
.price-table:has(thead th:nth-child(10) .server:hover) :is(th, td):nth-child(10),
.price-table:has(thead th:nth-child(11) .server:hover) :is(th, td):nth-child(11),
.price-table:has(thead th:nth-child(12) .server:hover) :is(th, td):nth-child(12),
.price-table:has(thead th:nth-child(13) .server:hover) :is(th, td):nth-child(13),
.price-table:has(thead th:nth-child(14) .server:hover) :is(th, td):nth-child(14),
.price-table:has(thead th:nth-child(15) .server:hover) :is(th, td):nth-child(15),
.price-table:has(thead th:nth-child(16) .server:hover) :is(th, td):nth-child(16),
.price-table:has(thead th:nth-child(17) .server:hover) :is(th, td):nth-child(17) {
    background-color: rgba(246, 185, 59, 0.09);
    box-shadow: inset 1px 0 0 var(--gold-line), inset -1px 0 0 var(--gold-line);
}

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

.pair > .price + .price {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.pair--head {
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pair--head span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
}

.side--sell::before {
    color: var(--sell);
}

.side--buy::before {
    color: var(--buy);
}

.price-table .price-table__vendor {
    width: 184px;
    padding: 0 10px 0 14px;
    background: #0f1422;
    text-align: left;
}

.price-table thead .price-table__vendor {
    padding: 0 8px;
    background: linear-gradient(180deg, #19213a, #131a2c);
    text-align: center;
    text-indent: 0.12em;
    vertical-align: middle;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.price-table__group-title th {
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
}

.price-table__group-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.price-table__group--vip .price-table__group-title th {
    background: linear-gradient(90deg, rgba(246, 185, 59, 0.14), rgba(246, 185, 59, 0.02) 60%);
    color: var(--gold-light);
}

.price {
    container-type: inline-size;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 50px;
    padding: 0 1px;
    color: #eef1f6;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.price:hover {
    background-color: rgba(246, 185, 59, 0.07);
    box-shadow: inset 0 0 0 1px rgba(246, 185, 59, 0.42), inset 0 0 16px rgba(246, 185, 59, 0.12);
}

.price__chip {
    max-width: 100%;
    padding: 5px clamp(1px, 4cqi, 4px);
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: clamp(12px, 25.5cqi, 16px);
    line-height: 1.2;
    white-space: nowrap;
}

.price--long .price__chip {
    font-size: clamp(9.5px, 15cqi, 15px);
}

.price.is-best {
    padding-bottom: 9px;
    background-color: rgba(55, 214, 155, 0.16);
    color: #7bf5c6;
}

.price--buy.is-best {
    background-color: rgba(255, 107, 124, 0.16);
    color: #ffa3ae;
}

.price.is-best:hover {
    background-color: rgba(55, 214, 155, 0.24);
    box-shadow: inset 0 0 0 1px rgba(55, 214, 155, 0.55), inset 0 0 16px rgba(55, 214, 155, 0.18);
}

.price--buy.is-best:hover {
    background-color: rgba(255, 107, 124, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 124, 0.55), inset 0 0 16px rgba(255, 107, 124, 0.18);
}

.price.is-best .price__chip {
    font-weight: 800;
}

.price.is-best .price__chip::after {
    content: attr(data-best);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    overflow: hidden;
    color: var(--sell);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: nowrap;
}

.price--buy.is-best .price__chip::after {
    color: var(--buy);
}

.price-table__summary .price.is-best {
    padding-bottom: 0;
}

.price-table__summary .price.is-best .price__chip::after {
    content: none;
}

.price.is-up,
.price.is-down {
    animation: price-flash 2.6s ease-out 1;
}

.price.is-up {
    --flash: rgba(55, 214, 155, 0.4);
}

.price.is-down {
    --flash: rgba(255, 107, 124, 0.4);
}

.price.is-up::after,
.price.is-down::after {
    position: absolute;
    top: 5px;
    right: 6px;
    font-size: 9px;
    line-height: 1;
}

.price.is-up::after {
    content: "\25B2";
    color: var(--sell);
}

.price.is-down::after {
    content: "\25BC";
    color: var(--buy);
}

@keyframes price-flash {
    0%,
    30% {
        box-shadow: inset 0 0 0 100px var(--flash);
    }

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

.vendor-row {
    transition: background-color 0.15s;
}

.vendor-row:hover > td,
.vendor-row:hover > .price-table__vendor {
    background-color: rgba(246, 185, 59, 0.055);
}

.vendor-row:hover > .price-table__vendor {
    box-shadow: inset 3px 0 0 var(--gold);
}

.vendor-row--vip {
    --vip: #f6b93b;
    --vip-bg: rgba(246, 185, 59, 0.07);
}

.vendor-row--ruby {
    --vip: #ff6b7c;
    --vip-bg: rgba(255, 107, 124, 0.07);
}

.vendor-row--violet {
    --vip: #b197fc;
    --vip-bg: rgba(177, 151, 252, 0.08);
}

.vendor-row--emerald {
    --vip: #37d69b;
    --vip-bg: rgba(55, 214, 155, 0.07);
}

.vendor-row--vip > td,
.price-table .vendor-row--vip > .price-table__vendor {
    background-color: var(--vip-bg);
}

.price-table .vendor-row--vip > .price-table__vendor {
    box-shadow: inset 3px 0 0 var(--vip);
}

.price-table__summary > * {
    border-top: 1px solid var(--gold-line);
    background: linear-gradient(180deg, #171f35, #111829);
}

.price-table .price-table__summary > .price-table__vendor {
    background: linear-gradient(180deg, #171f35, #111829);
}

.summary-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vendor {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    color: var(--text);
}

.vendor:hover {
    color: var(--gold-light);
}

.vendor__plate {
    display: grid;
    place-items: center;
    flex: 0 1 132px;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    transition: border-color 0.15s;
}

.vendor:hover .vendor__plate {
    border-color: var(--gold-line);
}

.vendor__logo {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 24px;
    object-fit: contain;
}

.vendor__logo--preview {
    max-width: 240px;
    height: 64px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--ink);
}

.vendor__name {
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vendor__vip {
    display: inline-flex;
    color: var(--vip, var(--gold));
}

.vendor__go {
    display: inline-flex;
    flex: none;
    color: #5d6779;
    transition: transform 0.15s, color 0.15s;
}

.vendor:hover .vendor__go {
    color: var(--gold);
    transform: translateX(3px);
}

.price-table--single {
    max-width: 760px;
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: #151b2a;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.table .btn {
    min-height: 36px;
    padding: 6px 14px;
}

.grip {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    cursor: grab;
    touch-action: none;
    transition: border-color 0.15s, color 0.15s;
}

.grip:hover {
    border-color: var(--gold-line);
    color: var(--gold-light);
}

.grip:active {
    cursor: grabbing;
}

.table tr.is-dragging td {
    background: var(--gold-soft);
}

.table__actions {
    text-align: right;
    white-space: nowrap;
}

.table__wrap {
    min-width: 220px;
    overflow-wrap: anywhere;
}

.table .vendor {
    width: auto;
}

.chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart__scale,
.chart__axis {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.chart__svg {
    display: block;
    width: 100%;
    height: clamp(190px, 34cqi, 340px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 25%),
        var(--ink);
}

.chart__line {
    fill: none;
    stroke: var(--sell);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.chart__line--buy {
    stroke: var(--buy);
}

.docs {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.docs__nav {
    position: sticky;
    top: 104px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: linear-gradient(180deg, #131928, #0d111a);
}

.docs__nav nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs__nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--soft);
    font-size: 14px;
    font-weight: 500;
}

.docs__nav a:hover {
    background: var(--gold-soft);
    color: var(--gold-light);
}

.docs__body {
    display: flex;
    flex-direction: column;
    gap: 34px;
    min-width: 0;
}

.docs__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    scroll-margin-top: 104px;
}

.docs__section h2 {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 21px;
    font-weight: 700;
}

.docs__section h3 {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.method {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--sell);
    color: #03241a;
    font: 700 11px/1.5 var(--mono);
}

.code {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #06080d;
    font: 13px/1.6 var(--mono);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.code code {
    font-size: inherit;
}

.ad-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 12px;
}

.ad {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--ink);
}

.ad__link,
.ad__image {
    display: block;
    width: 100%;
}

.ad__image {
    height: auto;
    max-height: 260px;
    object-fit: contain;
}

.ad-strip .ad__image {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.rail .ad__image {
    width: auto;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
}

.ad__close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(8, 11, 17, 0.85);
    color: var(--text);
    cursor: pointer;
}

.ad__close:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.ad__close .icon {
    width: 12px;
    height: 12px;
}

.ad__tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(8, 11, 17, 0.78);
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.ad-preview {
    align-self: flex-start;
    max-width: min(100%, 364px);
    max-height: 200px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.ad-preview--icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 6, 10, 0.76);
    backdrop-filter: blur(3px);
}

.popup .ad {
    width: auto;
    max-width: min(600px, 100%);
    border-color: var(--gold-line);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.popup .ad__image {
    width: auto;
    max-width: 100%;
    max-height: 78vh;
}

.popup .ad__close {
    width: 34px;
    height: 34px;
}

@media (min-width: 1280px) {
    .is-site {
        --content: 2032px;
    }

    .has-rail-left,
    .has-rail-right {
        --rail: 240px;
    }

    .has-rail-left.has-rail-right {
        --rail: clamp(200px, calc((100vw - 840px) / 2), 240px);
    }

    .has-rail-left .shell {
        grid-template-columns: var(--rail) minmax(0, 1fr);
    }

    .has-rail-right .shell {
        grid-template-columns: minmax(0, 1fr) var(--rail);
    }

    .has-rail-left.has-rail-right .shell {
        grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail);
    }

    .rail {
        position: relative;
        z-index: 5;
        display: block;
        align-self: stretch;
    }

    .rail__sticky {
        position: sticky;
        top: 104px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 22px;
    }
}

@media (min-width: 1024px) {
    .is-admin {
        padding-left: 272px;
    }

    .is-admin .topbar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 272px;
        padding: 14px;
        background: none;
    }

    .is-admin .topbar__frame,
    .is-admin .topbar__inner {
        height: 100%;
        clip-path: none;
        border-radius: 18px;
    }

    .is-admin .topbar__frame {
        background: linear-gradient(180deg, rgba(246, 185, 59, 0.7), rgba(246, 185, 59, 0.12) 40%, rgba(246, 185, 59, 0.12));
    }

    .is-admin .topbar__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px 12px 14px;
        overflow-y: auto;
        border-radius: 17px;
    }

    .is-admin .brand {
        justify-content: center;
        padding: 0 4px;
    }

    .is-admin .brand__logo {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .is-admin .topbar__menu {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 14px;
    }

    .is-admin .topnav {
        flex: 1;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2px;
    }

    .is-admin .topnav__link {
        padding: 11px 12px;
    }

    .is-admin .topbar__actions {
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .is-admin .topbar__actions .btn:first-child {
        flex: 1;
    }
}

@media (max-width: 1023px) {
    .topbar__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 12px;
        min-height: 58px;
        padding: 9px 14px;
    }

    .topbar__frame,
    .topbar__inner {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .menu-button .icon {
        color: var(--gold);
    }

    .menu-toggle:checked + .menu-button {
        border-color: var(--gold);
        background: var(--gold-soft);
    }

    .menu-toggle:focus-visible + .menu-button {
        outline: 2px solid var(--gold-light);
        outline-offset: 2px;
    }

    .topbar__menu {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        gap: 12px;
        max-height: calc(100vh - 110px);
        margin-top: 10px;
        padding: 12px 0 10px;
        overflow-y: auto;
        border-top: 1px solid var(--line);
    }

    .menu-toggle:checked ~ .topbar__menu {
        display: flex;
    }

    .topnav {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2px;
    }

    .topnav__link {
        padding: 12px;
        font-size: 15px;
    }

    .topbar__actions {
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .topbar__actions > .btn,
    .topbar__actions > form:only-child,
    .topbar__actions > form:only-child .btn {
        flex: 1;
    }

    .docs__nav {
        top: 86px;
    }
}

@container page (max-width: 1190px) {
    .price-table:not(.price-table--single) .pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .price-table:not(.price-table--single) .price {
        min-height: 40px;
        font-size: 14px;
    }

    .price-table:not(.price-table--single) .pair > .price + .price {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-left: 0;
    }

    .price-table:not(.price-table--single) .pair--head {
        gap: 3px;
    }

    .price-table .price-table__vendor {
        width: 150px;
        padding: 0 10px;
    }

    .vendor__plate {
        height: 36px;
        padding: 0 8px;
    }

    .vendor__go {
        display: none;
    }

    .server {
        padding-inline: 2px;
        font-size: 11.5px;
        letter-spacing: 0;
        overflow-wrap: normal;
    }
}

@container page (max-width: 980px) {
    .hero {
        gap: 14px;
        padding: 18px;
    }

    .panel__top:has(> .deals) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "tools"
            "deals"
            "meta";
    }

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

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

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

    .docs__nav {
        position: static;
        padding: 8px;
    }

    .docs__nav nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .table-wrap:not(.table-wrap--board) {
        overflow: visible;
        border: 0;
        background: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
    }

    .table thead {
        display: none;
    }

    .table tbody {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
        gap: 12px;
    }

    .table tr {
        padding: 6px 14px;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        background: var(--ink);
    }

    .table tbody tr:hover td {
        background: none;
    }

    .table td {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px 12px;
        padding: 9px 0;
        text-align: right;
    }

    .table td[data-label]::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-align: left;
        text-transform: uppercase;
    }

    .table td:empty {
        display: none;
    }

    .table__actions .btn {
        flex: 1;
    }

    .table__wrap {
        min-width: 0;
    }

    .table .actions {
        justify-content: flex-end;
    }
}

@container page (max-width: 720px) {
    .table-wrap--board {
        overflow: visible;
        border: 0;
        background: none;
    }

    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table th,
    .price-table td {
        display: block;
    }

    .price-table thead {
        display: none;
    }

    .price-table th,
    .price-table td {
        border: 0;
    }

    .price-table__group-title th {
        margin-bottom: 10px;
        border-radius: var(--radius-sm);
    }

    .price-table .vendor-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        background: var(--ink);
    }

    .price-table .vendor-row--vip {
        border-color: var(--vip);
        background: var(--vip-bg);
    }

    .price-table .price-table__summary {
        border-color: var(--gold-line);
    }

    .price-table tfoot,
    .price-table .price-table__summary > * {
        display: block;
        background: none;
    }

    .vendor__plate {
        flex-basis: 150px;
    }

    .price-table .vendor-row > .price-table__vendor {
        grid-column: 1 / -1;
        width: auto;
        padding: 0 0 4px;
        background: none;
        box-shadow: none;
    }

    .price-table tbody td:nth-child(odd),
    .vendor-row:hover > td,
    .vendor-row:hover > .price-table__vendor,
    .vendor-row--vip > td {
        background: none;
    }

    .vendor__go {
        display: inline-flex;
        margin-left: auto;
    }

    .price-table .cell {
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.03);
    }

    .price-table--single .cell {
        grid-column: 1 / -1;
    }

    .cell::before {
        content: attr(data-label);
        display: block;
        padding: 6px 4px 5px;
        border-bottom: 1px solid var(--line);
        color: var(--gold-light);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-align: center;
        text-transform: uppercase;
    }

    .price-table:not(.price-table--single) .pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-table .pair > :first-child {
        border-right: 1px solid var(--line);
    }

    .price-table .pair > .price + .price,
    .price-table:not(.price-table--single) .pair > .price + .price {
        border-top: 0;
        border-left: 0;
    }

    .price-table .price,
    .price-table:not(.price-table--single) .price {
        min-height: 48px;
        padding: 5px 2px;
        font-size: 15px;
    }

    .price::before {
        content: attr(data-side);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .price--sell::before {
        color: var(--sell);
    }

    .price--buy::before {
        color: var(--buy);
    }

    .price.is-best::before {
        color: inherit;
    }
}

@container page (max-width: 520px) {
    .hero {
        gap: 12px;
        padding: 14px;
    }

    .hero__text {
        display: none;
    }

    .hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .hero__stats li {
        padding: 6px 12px 5px;
    }

    .deals {
        padding: 10px 12px 12px;
    }

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

    .deal {
        grid-template-columns: 24px minmax(0, 1.2fr) minmax(0, 1fr) 80px;
        gap: 8px;
    }

    .panel,
    .card {
        padding: 14px;
        border-radius: 14px;
    }

    .panel__coin {
        width: 40px;
        height: 40px;
    }

    .panel__coin .icon {
        width: 22px;
        height: 22px;
    }

    .form__foot .btn,
    .page-head > .btn,
    .page-head > form,
    .page-head > form .btn {
        flex: 1;
    }
}

@media (max-width: 560px) {
    :root {
        --gutter: 12px;
        --control: 40px;
    }

    body {
        font-size: 14px;
    }

    .brand__mascot {
        width: 36px;
        height: 36px;
    }

    .brand__text {
        font-size: 16px;
    }

    .brand__logo {
        max-width: min(200px, 50vw);
        height: 50px;
    }

    .popup {
        padding: 12px;
    }

    .bar {
        padding: 7px 44px 7px 12px;
        font-size: 13px;
    }

    .bar__close {
        right: 8px;
    }

    .bar__body .icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-dot,
    .hero::before {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .btn,
    .chip,
    .switch__item,
    .deal,
    .panel,
    .hero__stats li,
    .topnav__link {
        transition: none;
    }
}

@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/cinzel-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB;
}

@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/cinzel-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F;
}

.launch {
    --cut: 10px;
    min-width: 0;
    padding: 1px;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
    background: linear-gradient(90deg, var(--gold), rgba(246, 185, 59, 0.25) 35%, rgba(246, 185, 59, 0.25) 65%, var(--gold));
}

.launch--bar {
    display: none;
}

.launch__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 8px 12px;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
    background:
        radial-gradient(260px 90px at 0 50%, rgba(190, 40, 40, 0.38), transparent 70%),
        linear-gradient(180deg, #1d1114, #0c0a0e);
}

.launch__crest {
    flex: none;
    width: auto;
    height: 43px;
}

.launch__copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.launch__title {
    background: linear-gradient(180deg, #fff0bd, var(--gold) 55%, #c9861a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: "Cinzel", Georgia, serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.15;
    text-transform: uppercase;
}

.launch__date {
    color: #d7c9a8;
    font-family: "Cinzel", Georgia, serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.launch__clock {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.launch__unit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 50px;
    padding: 4px 6px 3px;
    border: 1px solid rgba(246, 185, 59, 0.38);
    border-top-color: var(--gold);
    border-radius: 6px;
    background: linear-gradient(180deg, #2a2f3f, #11141d 55%, #0a0c12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.launch__unit + .launch__unit::before {
    content: ":";
    position: absolute;
    top: 50%;
    left: -11px;
    transform: translateY(-58%);
    color: rgba(246, 185, 59, 0.6);
    font-family: "Cinzel", Georgia, serif;
    font-size: 18px;
    font-weight: 900;
}

.launch__num {
    color: var(--gold-light);
    font-family: "Cinzel", Georgia, serif;
    font-size: 22px;
    font-weight: 900;
    font-variant-numeric: tabular-nums lining-nums;
    line-height: 1;
    text-shadow: 0 0 10px rgba(246, 185, 59, 0.55), 0 2px 0 #5a3505;
}

.launch__lab {
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.launch__done {
    display: none;
    color: var(--gold-light);
    font-family: "Cinzel", Georgia, serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(246, 185, 59, 0.6);
    text-transform: uppercase;
}

.launch.is-done .launch__clock {
    display: none;
}

.launch.is-done .launch__done {
    display: block;
}

@media (max-width: 560px) {
    .launch__in {
        gap: 8px 12px;
        padding: 8px;
    }

    .launch__crest {
        height: 34px;
    }

    .launch__title {
        font-size: 12.5px;
    }

    .launch__date {
        font-size: 10.5px;
    }

    .launch__clock {
        gap: 10px;
    }

    .launch__unit {
        min-width: 46px;
    }

    .launch__unit + .launch__unit::before {
        left: -8px;
        font-size: 15px;
    }
}

@media (min-width: 1610px) {
    .is-site .topbar__inner:has(.launch--bar) {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
    }

    .launch--bar {
        display: block;
        order: 1;
        justify-self: end;
    }

    .launch--bar .launch__in {
        flex-wrap: nowrap;
        padding: 5px 10px 5px 14px;
        white-space: nowrap;
    }

    .is-site .topbar__actions {
        order: 2;
    }

    .launch--page {
        display: none;
    }
}

@media (min-width: 1610px) and (max-width: 1779px) {
    .launch--bar .launch__in {
        gap: 10px;
        padding: 5px 8px 5px 10px;
    }

    .launch--bar .launch__crest {
        height: 34px;
    }

    .launch--bar .launch__title {
        font-size: 12.5px;
        letter-spacing: 0.06em;
    }

    .launch--bar .launch__date {
        font-size: 10.5px;
    }

    .launch--bar .launch__clock {
        gap: 10px;
    }

    .launch--bar .launch__unit {
        min-width: 42px;
    }

    .launch--bar .launch__unit + .launch__unit::before {
        left: -8px;
    }
}

.launch__more {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 13px 5px 9px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.launch__more:hover {
    border-color: var(--gold);
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: var(--on-gold);
}

.launch__more .icon {
    width: 18px;
    height: 18px;
}

.launch--page {
    position: sticky;
    top: 100px;
    z-index: 15;
}

.page:has(> .launch--page) .docs__nav {
    top: 176px;
}

.page:has(> .launch--page) .docs__section {
    scroll-margin-top: 176px;
}

@media (min-width: 800px) {
    .launch__in {
        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: center;
        gap: 3px 10px;
    }

    .launch__copy {
        display: contents;
    }

    .launch__crest {
        grid-area: 1 / 1 / 3 / 2;
    }

    .launch__title {
        grid-area: 1 / 2 / 2 / 4;
        align-self: end;
    }

    .launch__date {
        grid-area: 2 / 2 / 3 / 3;
        align-self: start;
    }

    .launch__more {
        grid-area: 2 / 3 / 3 / 4;
        align-self: start;
        justify-self: end;
        gap: 4px;
        min-height: 18px;
        padding: 0 8px 0 5px;
        font-size: 9.5px;
        text-transform: uppercase;
    }

    .launch__more .icon {
        width: 12px;
        height: 12px;
    }

    .launch__clock,
    .launch__done {
        grid-area: 1 / 4 / 3 / 5;
    }
}

@media (max-width: 1023px) {
    .launch--page {
        top: 98px;
    }
}

@media (max-width: 799px) {
    .launch__more {
        gap: 5px;
        min-height: 26px;
        padding: 0 10px 0 7px;
        font-size: 10.5px;
        text-transform: uppercase;
    }

    .launch__more .icon {
        width: 14px;
        height: 14px;
    }

    .page:has(> .launch--page) .docs__section {
        scroll-margin-top: 250px;
    }
}

@media (max-width: 560px) {
    .launch--page {
        top: 84px;
    }
}

@media (max-width: 380px) {
    .launch__crest {
        height: 28px;
    }

    .launch__title {
        font-size: 11.5px;
    }
}

.guide .hero__stats strong {
    font-size: 17px;
}

.guide__key {
    color: var(--text);
    font-weight: 600;
}

.guide__date {
    color: var(--gold-light);
    white-space: nowrap;
}

.guide__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.guide .table td {
    color: var(--soft);
}

.guide .table td.guide__key {
    color: var(--text);
}

.guide .table td.guide__date {
    color: var(--gold-light);
}

.qa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 12px;
}

.qa__item {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    background: var(--ink);
}

.qa dt {
    color: var(--gold-light);
    font-weight: 700;
}

.qa dd {
    margin: 6px 0 0;
    color: var(--soft);
    font-size: 14px;
}

.ticker {
    overflow: hidden;
    padding: 6px var(--gutter);
    border-bottom: 1px solid var(--line);
    background: #06080d;
}

.ticker__track {
    display: flex;
}

.ticker__list {
    display: flex;
    flex: none;
    gap: 8px;
    margin: 0 auto;
}

.ticker__item {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    padding: 4px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.15s, background-color 0.15s;
}

.ticker__item:hover {
    border-color: var(--gold-line);
    background: #171d2c;
    color: var(--muted);
}

.ticker__server {
    color: var(--text);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ticker__side b {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ticker__side--sell b {
    color: var(--sell);
}

.ticker__side--buy b {
    color: var(--buy);
}

.ticker.is-moving .ticker__track {
    width: max-content;
    animation: ticker-slide 60s linear infinite;
}

.ticker.is-moving .ticker__list {
    margin: 0;
    padding-right: 8px;
}

.ticker.is-moving:hover .ticker__track,
.ticker.is-moving:focus-within .ticker__track {
    animation-play-state: paused;
}

@keyframes ticker-slide {
    to {
        transform: translateX(-50%);
    }
}

.topnav__link--group {
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

.topnav__link--group .icon:last-child {
    width: 14px;
    height: 14px;
    margin-left: -4px;
    color: inherit;
    opacity: 0.7;
    transform: rotate(90deg);
}

.submenu {
    position: fixed;
    inset: auto;
    min-width: 230px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--gold-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #171d2c, #0d111a);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
    color: var(--text);
}

.submenu:popover-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submenu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--soft);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.submenu__link .icon {
    color: var(--gold);
}

.submenu .submenu__link--soon,
.submenu .submenu__link--soon:hover {
    background: none;
    color: var(--muted);
    cursor: default;
}

.submenu__link--soon .icon {
    color: var(--muted);
}

.submenu__link:hover,
.submenu__link.is-active {
    background: var(--gold-soft);
    color: var(--gold-light);
}

.board .panel__meta {
    scroll-margin-top: calc(var(--sticky-top, 104px) + 8px);
}

.topnav__link .live-dot {
    flex: none;
    margin: 0 3px;
    animation: pulse 1.8s ease-in-out infinite;
}

.topnav__link.is-active .live-dot {
    background: #0a7d4f;
    box-shadow: 0 0 0 4px rgba(10, 125, 79, 0.22);
}

@media (min-width: 1024px) {
    .topnav__stack {
        display: grid;
        line-height: 1.15;
        text-align: center;
    }
}

@media (max-width: 1023px) {
    .topnav__link--group,
    .topnav__link--group.is-active {
        padding: 12px 12px 4px;
        background: none;
        box-shadow: none;
        color: var(--muted);
        font-size: 11.5px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        pointer-events: none;
    }

    .topnav__link--group .icon {
        display: none;
    }

    .submenu {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
    }

    .submenu__link {
        padding: 12px;
        font-size: 15px;
    }
}

.launch__crest {
    max-width: none;
}

@media (min-width: 1610px) and (max-width: 1779px) {
    .is-site .topbar__inner {
        column-gap: 12px;
        padding-inline: 14px;
    }

    .is-site .topnav__link {
        gap: 7px;
        padding-inline: 10px;
    }
}

.tool,
.tool__head {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool__head {
    gap: 8px;
}

.tool__head .page-head__text {
    max-width: 86ch;
    margin: 0;
    font-size: 14px;
}

.tool__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
    align-items: start;
}

.tool__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool__row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 10px 16px;
}

.result {
    display: flex;
    flex-direction: column;
}

.result__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.result__row:last-child {
    border-bottom: 0;
}

.result dt {
    color: var(--soft);
    font-size: 14px;
}

.result dd {
    margin: 0 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tool .table tr.is-current td {
    background: var(--gold-soft);
    color: var(--gold-light);
    font-weight: 700;
}

.result__row--main dd {
    color: var(--gold-light);
    font-size: 24px;
    font-weight: 800;
}

.result__row--sell dd {
    color: var(--sell);
}

.next {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 12px;
}

.next__card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #131928, #0d111a);
}

.next__card:first-child {
    border-color: var(--gold-line);
    box-shadow: inset 0 2px 0 var(--gold);
}

.next__label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.next__name {
    font-size: 17px;
    font-weight: 800;
}

.next__when {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.next__clock,
.next__left {
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.next__clock {
    font-size: 24px;
    font-weight: 800;
}

.tool .table td {
    color: var(--soft);
}

.pus {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pus [hidden] {
    display: none;
}

.server-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.server-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 96px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.server-pill input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.server-pill:hover {
    border-color: var(--gold-line);
}

.server-pill:has(input:focus-visible) {
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.server-pill:has(input:checked) {
    border-color: transparent;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    box-shadow: 0 8px 22px rgba(246, 185, 59, 0.28);
    color: var(--on-gold);
}

.server-pill__name {
    color: var(--soft);
    font-size: 13px;
    font-weight: 600;
}

.server-pill__price {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.server-pill:has(input:checked) .server-pill__name {
    color: inherit;
}

.pus__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 20px;
    align-items: start;
}

.pus__cart {
    position: sticky;
    top: 118px;
    scroll-margin-top: 118px;
}

.pus__heading {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pus__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: 10px;
}

.pus-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.12s;
}

.pus-item:hover {
    border-color: var(--gold-line);
}

.pus-item:active {
    transform: translateY(1px);
}

.pus-item__head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pus-item__icon,
.cart__icon {
    flex: none;
    border-radius: 6px;
}

.pus-item__name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pus-item__kc {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pus-item__add {
    align-self: stretch;
    margin-top: auto;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: var(--gold-light);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.15s, color 0.15s;
}

.pus-item:hover .pus-item__add {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: var(--on-gold);
}

.pus__custom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.pus__bar {
    display: none;
}

.cart {
    display: flex;
    flex-direction: column;
    max-height: 320px;
    margin: 0;
    padding: 0 6px 0 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    list-style: none;
}

.cart__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 2px 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.cart__icon {
    grid-row: 1 / span 2;
    grid-column: 1;
}

.cart__name {
    grid-column: 2;
    font-size: 13.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.cart__kc {
    grid-column: 2;
    color: var(--muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.qty {
    display: inline-flex;
    grid-row: 1 / span 2;
    grid-column: 3;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
}

.qty__btn,
.cart__remove {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--soft);
    font: 700 16px/1 var(--font);
    cursor: pointer;
    transition: color 0.15s;
}

.qty__btn:hover {
    color: var(--gold-light);
}

.qty__num {
    min-width: 22px;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.cart__remove {
    grid-row: 1 / span 2;
    grid-column: 4;
    color: var(--muted);
}

.cart__remove:hover {
    color: var(--buy);
}

.cart__remove .icon {
    width: 14px;
    height: 14px;
}

@container page (max-width: 720px) {
    .pus__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .pus__cart {
        position: static;
    }

    .pus__bar {
        position: sticky;
        bottom: 12px;
        z-index: 5;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 4px 12px;
        padding: 12px 16px;
        border: 1px solid var(--gold-line);
        border-radius: var(--radius);
        background: #151b29;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
        color: var(--gold-light);
        font-size: 13.5px;
        font-weight: 700;
    }
}

@container page (max-width: 980px) {
    .tool__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container page (max-width: 520px) {
    .tool__row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .tool__row .field:first-child {
        grid-column: 1 / -1;
    }
}

.price-table .vendor-row--slot > td {
    padding: 8px 12px;
}

.vip-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 16px;
    border: 1px dashed var(--gold-line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.vip-slot:hover {
    border-color: var(--gold);
    background-color: rgba(246, 185, 59, 0.08);
}

.vip-slot__mark {
    display: inline-flex;
    color: var(--gold);
}

.vip-slot__title {
    color: var(--gold-light);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vip-slot__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #1a1304;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 767px) {
    .price-table .vendor-row--slot {
        display: block;
        padding: 8px;
    }

    .price-table .vendor-row--slot > td {
        display: block;
        padding: 0;
    }

    .vip-slot {
        flex-wrap: wrap;
        gap: 6px 10px;
        padding: 10px;
    }

    .vip-slot__text {
        flex-basis: 100%;
        order: 3;
        text-align: center;
    }
}

.forge {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 437px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.forge-search {
    position: relative;
}

.forge-search__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
}

.forge-item,
.forge-picked {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    color: var(--text);
    text-align: left;
}

.forge-item {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    font: inherit;
    cursor: pointer;
}

.forge-item:last-child {
    border-bottom: 0;
}

.forge-item:hover,
.forge-item:focus-visible {
    background: rgba(246, 185, 59, 0.12);
}

.forge-picked {
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-sm);
    background: var(--ink);
}

.forge-item__icon {
    flex: none;
    border-radius: 6px;
}

.forge-item__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.forge-item__name {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.forge-picked .forge-item__name {
    color: var(--gold-light);
}

.forge-item__kind {
    color: var(--muted);
    font-size: 12px;
}

.forge__pick,
.forge__stage,
.forge__side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.anvil {
    position: relative;
    width: 100%;
    max-width: 389px;
    margin-inline: auto;
    user-select: none;
}

.anvil__frame {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.anvil__cell {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1;
}

.anvil__cell--item,
.anvil__cell--out {
    position: absolute;
    top: 22.43%;
    width: 12.08%;
}

.anvil__cell--item {
    left: 14.91%;
}

.anvil__cell--out {
    left: 75.58%;
}

.anvil__scrolls,
.anvil__bag {
    position: absolute;
    display: grid;
}

.anvil__scrolls {
    top: 14.05%;
    left: 31.75%;
    width: 38.82%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5.3%;
    aspect-ratio: 1;
}

.anvil__bag {
    top: 58.83%;
    left: 6.43%;
    width: 89.2%;
    height: 30.26%;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 1.52% 0.86%;
}

.anvil__cell > img {
    width: 96%;
    height: 96%;
    border-radius: 3px;
    cursor: grab;
    touch-action: none;
}

.anvil__cell > img.is-dragged {
    opacity: 0.35;
}

.anvil__grade {
    position: absolute;
    right: 8%;
    bottom: 4%;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 2px #000, 0 1px 2px #000, 1px 0 2px #000, -1px 0 2px #000;
    pointer-events: none;
}

.anvil__ghost {
    position: fixed;
    z-index: 200;
    width: 45px;
    height: 45px;
    border-radius: 3px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.anvil__btn {
    position: absolute;
    top: 45.3%;
    width: 36.8%;
    height: 3.7%;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
}

.anvil__btn--confirm {
    left: 13.2%;
}

.anvil__btn--cancel,
.anvil__btn--preview {
    left: 53%;
}

.anvil__btn--preview {
    top: 50.2%;
}

.anvil__cell > .anvil__preview {
    opacity: 0.6;
    cursor: default;
}

.anvil__btn:hover:not(:disabled) {
    background: rgba(255, 220, 120, 0.16);
    box-shadow: 0 0 10px rgba(255, 200, 80, 0.5);
}

.anvil__btn:active:not(:disabled) {
    background: rgba(0, 0, 0, 0.25);
}

.anvil__btn:disabled {
    background: rgba(10, 10, 10, 0.45);
    cursor: default;
}

.is-charging .anvil__cell--item::after,
.is-ok .anvil__cell--out::after,
.is-burn .anvil__cell--item::after {
    position: absolute;
    inset: -8%;
    border-radius: 4px;
    content: '';
    pointer-events: none;
}

.is-charging .anvil__cell--item::after {
    background: radial-gradient(circle, rgba(255, 240, 180, 0.95), rgba(255, 170, 40, 0.55) 45%, transparent 72%);
    animation: forge-charge 0.3s ease-in-out infinite alternate;
}

.is-ok .anvil__cell--out::after {
    animation: forge-ok 0.9s ease-out forwards;
}

.is-burn .anvil__cell--item::after {
    animation: forge-burn 0.8s ease-out forwards;
}

@keyframes forge-charge {
    from {
        opacity: 0.45;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes forge-ok {
    0% {
        box-shadow: 0 0 0 0 rgba(120, 255, 190, 0.95), inset 0 0 14px rgba(120, 255, 190, 0.9);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(120, 255, 190, 0), inset 0 0 0 rgba(120, 255, 190, 0);
        opacity: 0;
    }
}

@keyframes forge-burn {
    0% {
        background: radial-gradient(circle, rgba(255, 90, 60, 0.95), rgba(160, 20, 10, 0.6) 55%, transparent 75%);
        opacity: 1;
        transform: scale(1.25);
    }

    100% {
        background: radial-gradient(circle, rgba(60, 60, 60, 0.5), transparent 70%);
        opacity: 0;
        transform: scale(0.6);
    }
}

.ko-tip {
    position: fixed;
    z-index: 210;
    width: 268px;
    padding: 6px 8px 8px;
    border: 1px solid #5a5a5a;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    font-family: Tahoma, Verdana, 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1.75;
    pointer-events: none;
}

.ko-tip p {
    margin: 0;
    color: #f4f4f4;
}

.ko-tip__head {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.ko-tip__head img {
    flex: none;
    width: 45px;
    height: 45px;
    border: 1px solid #8a8a8a;
}

.ko-tip .ko-tip__name {
    color: #c9a0f5;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ko-tip .ko-tip__type {
    text-align: right;
}

.ko-tip .ko-tip__type::after {
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 0 3px auto;
    background: #f08a1c;
    content: '';
}

.ko-tip__group {
    padding: 3px 0;
    border-top: 1px solid #4a4a4a;
}

.ko-tip .ko-tip__bonus {
    color: #62d862;
}

.ko-tip .ko-tip__need {
    color: #ff5a4f;
}

.ko-tip .ko-tip__grade {
    color: #62d862;
    text-align: center;
}

.ko-tip .ko-tip__text {
    color: #cfcfcf;
    line-height: 1.5;
}
.anvil-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.anvil-info p {
    margin: 0;
}

.anvil-info__name {
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.anvil-info__note {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.anvil-info__chance {
    display: flex;
    flex-direction: column;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.anvil-info__chance strong {
    color: var(--gold-light);
    font-size: 30px;
    letter-spacing: 0;
    line-height: 1.1;
}

.forge__stage:has(.is-ok) .anvil-info__note {
    color: var(--sell);
}

.forge__stage:has(.is-burn) .anvil-info__note {
    color: var(--buy);
}

.forge__auto {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

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

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

.forge-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    padding: 12px 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--ink);
    text-align: center;
}

.forge-stat strong {
    font-size: 24px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.forge-stat span {
    color: var(--muted);
    font-size: 11.5px;
}

.forge-stat--ok strong {
    color: var(--sell);
}

.forge-stat--burn strong {
    color: var(--buy);
}

.forge__left,
.forge__side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forge__left .card,
.forge__side .card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.forge-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.forge-log__row {
    padding: 7px 10px;
    border-left: 3px solid var(--sell);
    border-radius: 6px;
    background: var(--ink);
    font-size: 13px;
}

.forge-log__row--burn {
    border-left-color: var(--buy);
}

.forge-warn p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13.5px;
}

@media (max-width: 1279px) {
    .forge {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .forge__side {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .forge {
        grid-template-columns: minmax(0, 1fr);
    }

    .forge__stage {
        order: -1;
    }
}

.item-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.item-head__icon {
    flex: none;
    width: 64px;
    height: 64px;
    border: 1px solid var(--gold-line);
    border-radius: 8px;
}

.item-head__type {
    margin: 2px 0 0;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.item-head__cta {
    align-self: flex-start;
}

.item-search {
    max-width: 420px;
}

.item-table th {
    white-space: normal;
    line-height: 1.25;
}

.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.15s;
}

.item-link:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.item-link img {
    flex: none;
    border-radius: 5px;
}

.item-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.quest__races {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.quest__races .field__label {
    margin-right: 4px;
}

.quest__coord {
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.quest__places {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.quest__shot {
    margin: 14px 0 0;
}

.quest__shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.quest__step {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--ink);
    transition: border-color 0.2s;
}

.quest__step.is-done {
    border-color: var(--sell);
}

.quest__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quest__head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.quest__num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #1a1304;
    font-size: 14px;
    font-weight: 800;
}

.is-done .quest__num {
    background: var(--sell);
}

.quest__answer {
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    background: rgba(246, 185, 59, 0.08);
}

.quest__answer strong {
    color: var(--gold-light);
}

.quest__reward {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    background: rgba(246, 185, 59, 0.06);
}

.quest__reward p {
    margin: 0;
    font-weight: 700;
}

.quest__tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.quest {
    padding-bottom: 96px;
}

.quest-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(246, 185, 59, 0.12), rgba(246, 185, 59, 0.02));
}

.quest-track__head,
.quest-track__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quest-track__head strong {
    font-size: 16px;
}

.quest-track__count {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.quest-track__count b {
    color: var(--gold-light);
    font-size: 26px;
}

.quest-track__keys {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quest-track__key {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 0 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.quest-track__key .icon {
    width: 22px;
    height: 22px;
}

.quest-track__key.is-next {
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(246, 185, 59, 0.18);
}

.quest-track__key.is-done {
    border-color: var(--gold);
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #1a1304;
}

.quest-track__bar {
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    appearance: none;
}

.quest-track__bar::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.08);
}

.quest-track__bar::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.quest-track__bar::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.quest-track__next {
    flex: 1 1 260px;
    margin: 0;
    color: var(--text);
    font-size: 13.5px;
}

.quest__check {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.quest__check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quest__check-off,
.quest__check-on {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.quest__check-off {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #1a1304;
}

.quest__check-on {
    display: none;
    border: 1px solid var(--sell);
    background: rgba(55, 214, 155, 0.12);
    color: var(--sell);
}

.quest__check input:checked ~ .quest__check-off {
    display: none;
}

.quest__check input:checked ~ .quest__check-on {
    display: inline-flex;
}

.quest__check input:focus-visible ~ span {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.quest-dock {
    position: fixed;
    z-index: 60;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin-inline: auto;
    padding: 12px 14px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    background: rgba(12, 16, 28, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.quest-dock.is-complete {
    border-color: var(--sell);
}

.quest-dock__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
}

.quest-dock__text strong {
    color: var(--gold-light);
    font-size: 15px;
}

.quest-dock__label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.quest-dock .btn {
    flex: none;
}

@media (max-width: 767px) {
    .quest-track__keys {
        gap: 4px;
    }

    .quest-track__key .icon {
        width: 16px;
        height: 16px;
    }

    .quest-dock {
        right: 8px;
        bottom: 8px;
        left: 8px;
        gap: 10px;
        padding: 10px;
    }
}

.result__title {
    scroll-margin-top: 190px;
    margin: 18px 0 4px;
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quest-dock .btn[hidden] {
    display: none;
}

.quest-track__key.is-done,
.quest-track__key.is-done .icon {
    color: #1a1304;
}

@media (max-width: 767px) {
    .quest-dock {
        flex-wrap: wrap;
    }

    .quest-dock__text {
        flex-basis: 100%;
        font-size: 12px;
    }

    .quest-dock__text strong {
        font-size: 14px;
    }

    .quest-dock .btn {
        flex: 1 1 0;
        justify-content: center;
    }
}

.premium {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-pick__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.premium-pick__icon {
    border-radius: 8px;
}

.premium-pick__name {
    margin: 0;
    color: var(--gold-light);
    font-size: 22px;
    font-weight: 800;
}

.premium-pick__price {
    margin: 2px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.premium-pick__why {
    margin: 14px 0;
    line-height: 1.6;
}

.premium-pick__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 12px;
}

.premium-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--ink);
    scroll-margin-top: 190px;
}

.premium-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-card__head img {
    flex: none;
    border-radius: 8px;
}

.premium-card__head h3 {
    margin: 0;
    font-size: 16px;
}

.premium-card__price {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.premium-card__price strong {
    color: var(--gold-light);
}

.premium-card__text {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.premium-card__link {
    grid-row: 4;
    color: var(--gold-light);
    font-weight: 700;
    text-decoration: none;
}

.premium-table th img {
    display: block;
    margin: 0 auto 6px;
    border-radius: 6px;
}

.premium-table th,
.premium-table td {
    text-align: center;
}

.premium-table td:first-child {
    text-align: left;
}

.gift-list {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gift {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--gold-line);
    border-radius: 8px;
    background: rgba(246, 185, 59, 0.08);
    font-size: 12.5px;
    font-weight: 700;
}

.gift__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border: 1px solid var(--gold-line);
    border-radius: 6px;
    background: var(--ink);
    color: var(--gold-light);
}

.gift__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift__icon .gift__frame {
    transform: scale(1.12);
}

.gift__icon .icon {
    width: 16px;
    height: 16px;
}

.gift-list--compact {
    flex-direction: column;
    align-items: center;
}

.gift-list--compact .gift {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 11.5px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .gift-list--compact {
        align-items: flex-end;
    }
}

.event-slot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.event-slot + .event-slot {
    margin-top: 6px;
}

.badge-embed {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

.badge-embed__preview img {
    display: block;
    max-width: 100%;
    height: auto;
}

.badge-embed__code {
    min-height: 96px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    resize: vertical;
}

@media (max-width: 640px) {
    .badge-embed {
        grid-template-columns: 1fr;
    }
}

.remind {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 4px 10px;
    border: 1px solid var(--gold-line);
    border-radius: 8px;
    color: var(--gold-light);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.remind:hover {
    background: var(--gold-soft);
}

.remind .icon {
    width: 14px;
    height: 14px;
}

.server-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.server-head .server {
    min-width: 0;
}

.server-alarm {
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 0 3px var(--gold-soft);
    color: var(--ink);
    position: relative;
    animation: bell-ring 6s ease-in-out infinite;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.server-alarm::after {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--buy);
    content: "";
}

.server-alarm:hover {
    animation: none;
    transform: scale(1.08);
    box-shadow: 0 0 0 4px var(--gold-soft);
}

@keyframes bell-ring {
    0%, 88%, 100% {
        transform: rotate(0);
    }

    90% {
        transform: rotate(14deg);
    }

    93% {
        transform: rotate(-12deg);
    }

    96% {
        transform: rotate(8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .server-alarm {
        animation: none;
    }
}

.server-alarm .icon {
    width: 12px;
    height: 12px;
}

.alarm__summary {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.alarm__go.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.modal {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 20px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    background: var(--ink);
    color: inherit;
}

.modal::backdrop {
    background: rgba(4, 6, 10, 0.72);
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.modal__head .card__title {
    margin: 0;
}

.modal__close {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.modal .form__grid {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 480px) {
    .modal .form__grid {
        grid-template-columns: 1fr;
    }
}

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

.alarm__result {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
}

.alarm__result.is-ok {
    border-color: rgba(55, 214, 155, 0.4);
    color: var(--sell);
}

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

.push-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
}

.alarm-open {
    display: none;
}

@container page (max-width: 720px) {
    .alarm-open {
        display: inline-flex;
    }
}

/* ===== Admin paneli: kurumsal gri-mavi tema ===== */
body.is-admin {
    --bg: #0d1420;
    --panel: #141c2b;
    --panel-2: #1a2436;
    --ink: #0b111c;
    --line: rgba(148, 163, 184, 0.12);
    --line-strong: rgba(148, 163, 184, 0.2);
    --gold: #3b82f6;
    --gold-light: #60a5fa;
    --gold-deep: #2563eb;
    --gold-line: rgba(59, 130, 246, 0.34);
    --gold-soft: rgba(59, 130, 246, 0.12);
    --on-gold: #ffffff;
    --text: #e8edf5;
    --soft: #c2cbda;
    --muted: #8b97ab;
}

@media (min-width: 1024px) {
    .is-admin .topbar__frame {
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.1) 42%, rgba(59, 130, 246, 0.08));
    }
}

.is-admin .topnav__link.is-active {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.is-admin .btn--primary {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.is-admin .btn--primary:hover {
    box-shadow: 0 10px 26px rgba(59, 130, 246, 0.42);
}

.is-admin .input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.is-admin .card {
    background: linear-gradient(180deg, #151d2c, #101723);
    border-radius: 14px;
}

.is-admin .card__title .icon {
    color: var(--gold);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: linear-gradient(180deg, #151d2c, #101723);
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--muted);
}

.stat--accent::before {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
}

.stat--good::before {
    background: var(--sell);
}

.stat--bad::before {
    background: var(--buy);
}

.stat__icon {
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 18px;
}

.stat__value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.status-list__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--line);
}

.status-list__row:last-child {
    border-bottom: 0;
}

.status-list__name {
    font-weight: 600;
}

.status-list__note {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted);
}

.dot--ok {
    background: var(--sell);
    box-shadow: 0 0 0 3px rgba(55, 214, 155, 0.16);
}

.dot--flaky {
    background: var(--warning);
    box-shadow: 0 0 0 3px rgba(243, 168, 59, 0.16);
}

.dot--down {
    background: var(--buy);
    box-shadow: 0 0 0 3px rgba(255, 107, 124, 0.16);
}

.minirows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.minirow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
}

.minirow:last-child {
    border-bottom: 0;
}

.minirow__name {
    font-weight: 600;
}

.minirow__meta {
    color: var(--muted);
    font-size: 13px;
}

.minirow__meta b {
    color: var(--text);
}

.card__link {
    margin-top: auto;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.card__link:hover {
    text-decoration: underline;
}
