:root {
    --ink: #090807;
    --ink-soft: #17140f;
    --paper: #fbf8f1;
    --ivory: #f2ede2;
    --ivory-deep: #ded5c5;
    --gold: #cbb274;
    --gold-bright: #f0d899;
    --wine: #68111a;
    --wine-soft: #8b2630;
    --emerald: #0c4c3a;
    --emerald-bright: #27a879;
    --cyan: #53c6ce;
    --orange: #f7931a;
    --red: #b52835;
    --muted: rgba(9, 8, 7, 0.56);
    --line: rgba(9, 8, 7, 0.16);
    --line-dark: rgba(243, 239, 229, 0.18);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--gold) var(--ink);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--ivory);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

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

button {
    font: inherit;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--gold-bright);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--wine);
    outline-offset: 4px;
}

.utility-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: calc(70px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right), calc((100% - 1320px) / 2)) 0 max(24px, env(safe-area-inset-left), calc((100% - 1320px) / 2));
    border-bottom: 1px solid var(--line-dark);
    background: var(--ink);
    color: var(--paper);
}

.utility-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 48px;
}

.utility-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border: 1px solid var(--gold);
    background: var(--wine);
    color: var(--gold-bright);
    font-family: "Songti SC", STSong, serif;
    font-size: 19px;
}

.utility-brand span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.utility-brand strong {
    font-family: "Songti SC", STSong, serif;
    font-size: 16px;
}

.utility-brand small {
    margin-top: 4px;
    color: rgba(243, 239, 229, 0.48);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
}

.page-breadcrumb {
    justify-self: center;
    color: rgba(243, 239, 229, 0.52);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    min-height: 44px;
    color: rgba(243, 239, 229, 0.72);
    font-size: 12px;
    transition: color 180ms ease;
}

.back-link span {
    color: var(--gold-bright);
    font-size: 18px;
}

.back-link:hover {
    color: var(--paper);
}

.utility-intro {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
    isolation: isolate;
}

.utility-intro::before {
    content: "";
    position: absolute;
    z-index: -3;
    inset: 0;
    background-image: url(../img/casino-table.jpg);
    background-position: center 63%;
    background-size: cover;
    filter: saturate(0.7) contrast(1.12);
}

.utility-intro::after {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 8, 7, 0.98), rgba(9, 8, 7, 0.76) 56%, rgba(9, 8, 7, 0.3)),
        linear-gradient(180deg, rgba(9, 8, 7, 0.08), rgba(9, 8, 7, 0.8));
}

.intro-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    width: min(1320px, calc(100% - 48px));
    min-height: 320px;
    margin: 0 auto;
    padding: 54px 0;
}

.intro-kicker,
.panel-kicker {
    margin: 0;
    color: var(--gold-bright);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    font-weight: 700;
}

.intro-copy h1 {
    margin: 12px 0 14px;
    font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.intro-copy > p:last-child {
    max-width: 600px;
    margin: 0;
    color: rgba(243, 239, 229, 0.64);
    font-size: 14px;
    line-height: 1.9;
}

.intro-ledger {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.intro-ledger span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 82px;
    padding: 10px 14px;
    border-right: 1px solid var(--line-dark);
    color: rgba(243, 239, 229, 0.45);
    font-size: 9px;
}

.intro-ledger span:last-child {
    border-right: 0;
}

.intro-ledger b {
    margin-bottom: 3px;
    color: var(--paper);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.intro-visual {
    position: relative;
    justify-self: end;
    width: 300px;
    height: 200px;
}

.mini-card {
    position: absolute;
    top: 30px;
    width: 80px;
    height: 118px;
    padding: 8px;
    border-radius: 5px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
    transform-origin: 50% 110%;
}

.mini-card::after {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 30px;
}

.mini-card.one {
    left: 32px;
    transform: rotate(-12deg);
}

.mini-card.one::after {
    content: "♠";
}

.mini-card.two {
    left: 92px;
    color: var(--wine);
    transform: rotate(3deg);
}

.mini-card.two::after {
    content: "♥";
}

.mini-card.three {
    left: 150px;
    color: var(--wine);
    transform: rotate(15deg);
}

.mini-card.three::after {
    content: "♦";
}

.mini-token,
.mini-ball {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.36), inset 0 0 0 4px rgba(255, 255, 255, 0.2);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.mini-token {
    right: 2px;
    bottom: 22px;
    width: 62px;
    height: 62px;
    border: 2px dashed var(--gold-bright);
    background: var(--emerald-bright);
    color: var(--ink);
    font-size: 25px;
}

.mini-ball {
    top: 0;
    right: 16px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: var(--wine);
    color: var(--paper);
    font-size: 12px;
}

.utility-main {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0 90px;
}

.speed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
    align-items: start;
    gap: 18px;
}

.tool-panel,
.access-panel,
.tutorial-step {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    box-shadow: 0 18px 45px rgba(31, 25, 15, 0.07);
}

.tool-panel {
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 102px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2,
.access-section h2 {
    margin: 4px 0 0;
    font-family: "Songti SC", STSong, serif;
    font-size: 24px;
    line-height: 1.3;
}

.panel-kicker {
    color: var(--wine);
}

.speed-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 176px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: var(--ink);
    color: var(--paper);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.speed-button span {
    color: var(--gold-bright);
    font-size: 18px;
}

.speed-button:hover {
    background: var(--wine);
    transform: translateY(-2px);
}

.speed-button.testing {
    background: var(--wine);
}

.progress-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
}

.progress-track {
    height: 2px;
    overflow: hidden;
    background: rgba(9, 8, 7, 0.1);
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--wine);
    transition: width 300ms ease;
}

.progress-hint {
    min-width: 130px;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.route-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.route-item {
    position: relative;
    display: grid;
    grid-template-columns: 54px 76px minmax(0, 1fr) 112px;
    align-items: center;
    min-height: 76px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--line);
    transition: background 180ms ease;
}

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

.route-item:hover {
    background: var(--ivory);
}

.route-item.fastest {
    background: rgba(12, 76, 58, 0.08);
}

.route-item.fastest::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--emerald);
}

.route-order {
    color: rgba(9, 8, 7, 0.34);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
}

.latency-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: 700;
}

.latency-badge.testing {
    color: var(--wine);
}

.latency-badge.excellent {
    border-color: var(--emerald-bright);
    color: var(--emerald);
}

.latency-badge.good {
    border-color: #7a9a37;
    color: #526d1f;
}

.latency-badge.ok {
    border-color: var(--gold);
    color: #8a6d23;
}

.latency-badge.slow {
    border-color: var(--orange);
    color: #a3560e;
}

.latency-badge.bad,
.latency-badge.timeout {
    border-color: var(--red);
    color: var(--red);
}

.route-url {
    min-width: 0;
    overflow: hidden;
    color: rgba(9, 8, 7, 0.72);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fastest-label {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 2px;
    background: var(--emerald);
    color: var(--paper);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 8px;
    vertical-align: middle;
}

.route-enter {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    justify-self: end;
    gap: 16px;
    min-width: 100px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    font-size: 11px;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.route-enter span {
    font-size: 16px;
}

.route-enter:hover {
    border-color: var(--wine);
    background: var(--wine);
    color: var(--paper);
}

.access-panel {
    overflow: hidden;
}

.access-section {
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.access-section:last-child {
    border-bottom: 0;
}

.access-section > p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
}

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

.register-link,
.app-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--ivory);
    color: var(--ink);
    font-size: 11px;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.register-link span,
.app-link span {
    font-size: 16px;
}

.register-link:hover {
    border-color: var(--wine);
    background: var(--wine);
    color: var(--paper);
}

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

.app-link.android:hover {
    border-color: var(--emerald);
    background: var(--emerald);
    color: var(--paper);
}

.app-link.ios:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.settlement-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.settlement-token {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 9px;
}

.settlement-token b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--ink);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.settlement-token.btc b {
    background: var(--orange);
}

.settlement-token.usdt b {
    background: var(--emerald-bright);
}

.utility-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 16px 20px;
    border-left: 3px solid var(--gold);
    background: var(--paper);
    color: var(--muted);
    font-size: 11px;
}

.utility-note a {
    flex-shrink: 0;
    color: var(--wine);
    font-weight: 700;
}

.toast {
    position: fixed;
    z-index: 100;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    min-width: 190px;
    padding: 12px 16px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: var(--ink);
    color: var(--paper);
    font-size: 11px;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Tutorial */
.tutorial-main {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0 90px;
}

.tutorial-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.step-index-panel {
    position: sticky;
    top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}

.step-index-head {
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    color: var(--paper);
}

.step-index-head strong {
    display: block;
    margin-top: 4px;
    font-family: "Songti SC", STSong, serif;
    font-size: 20px;
}

.step-index {
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.step-index a {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    min-height: 46px;
    padding: 4px 16px;
    border-left: 3px solid transparent;
    color: var(--muted);
    font-size: 10px;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.step-index a:hover,
.step-index a.active {
    border-left-color: var(--wine);
    background: var(--ivory);
    color: var(--ink);
}

.step-index b {
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
}

.tutorial-steps {
    display: grid;
    gap: 12px;
}

.tutorial-step {
    position: relative;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 430px;
    overflow: hidden;
    scroll-margin-top: 18px;
}

.step-number-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px;
    border-right: 1px solid var(--line);
    background: var(--ivory);
}

.step-number-column span {
    color: var(--wine);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1;
}

.step-number-column small {
    margin-top: 8px;
    color: rgba(9, 8, 7, 0.36);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 8px;
}

.step-number-column::after {
    content: "";
    flex: 1;
    width: 1px;
    margin-top: 18px;
    background: var(--line);
}

.step-body {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1.28fr);
    align-items: stretch;
}

.step-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 34px 28px;
}

.step-copy h2 {
    margin: 0;
    font-family: "Songti SC", STSong, serif;
    font-size: 25px;
    line-height: 1.45;
}

.step-copy p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.step-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.step-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 9px;
}

.step-image-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 430px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--ink-soft);
    cursor: zoom-in;
}

.step-image-button img {
    width: 100%;
    height: 430px;
    object-fit: contain;
    transition: transform 320ms ease, opacity 200ms ease;
}

.step-image-button:hover img {
    transform: scale(1.018);
}

.zoom-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(243, 239, 229, 0.28);
    border-radius: 3px;
    background: rgba(9, 8, 7, 0.78);
    color: var(--paper);
    font-size: 9px;
    pointer-events: none;
}

.image-error {
    display: none;
    padding: 24px;
    color: rgba(243, 239, 229, 0.55);
    font-size: 12px;
    text-align: center;
}

.lightbox {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    align-items: center;
    padding: 26px;
    background: rgba(9, 8, 7, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: calc(100svh - 52px);
    margin: 0;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: calc(100svh - 130px);
    border: 1px solid rgba(203, 178, 116, 0.34);
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-figure figcaption {
    margin-top: 12px;
    color: rgba(243, 239, 229, 0.68);
    font-size: 11px;
}

.lightbox-close,
.lightbox-nav {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(243, 239, 229, 0.24);
    border-radius: 3px;
    background: rgba(9, 8, 7, 0.56);
    color: var(--paper);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    border-color: var(--gold-bright);
    background: var(--gold-bright);
    color: var(--ink);
}

.lightbox-close {
    position: absolute;
    top: max(24px, env(safe-area-inset-top));
    right: max(24px, env(safe-area-inset-right));
    font-size: 26px;
}

.lightbox-nav {
    font-size: 24px;
}

.tutorial-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 3px solid var(--gold);
    background: var(--paper);
    color: var(--muted);
    font-size: 11px;
}

.tutorial-footer-note a {
    color: var(--wine);
    font-weight: 700;
}

.site-mini-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding: 22px max(24px, calc((100% - 1320px) / 2));
    border-top: 1px solid var(--line-dark);
    background: var(--ink);
    color: rgba(243, 239, 229, 0.46);
    font-size: 10px;
}

.site-mini-footer strong {
    color: var(--paper);
    font-family: "Songti SC", STSong, serif;
    font-size: 16px;
}

.site-mini-footer a {
    min-height: 44px;
    color: var(--gold-bright);
    line-height: 44px;
}

@media (max-width: 1050px) {
    .intro-inner {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .intro-visual {
        transform: scale(0.88);
        transform-origin: right center;
    }

    .speed-layout {
        grid-template-columns: 1fr;
    }

    .access-panel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .access-section {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .access-section:last-child {
        border-right: 0;
    }

    .tutorial-layout {
        grid-template-columns: 1fr;
    }

    .step-index-panel {
        position: static;
    }

    .step-index {
        display: flex;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: thin;
    }

    .step-index li {
        flex: 0 0 auto;
    }

    .step-index a {
        grid-template-columns: 28px auto;
        min-height: 42px;
        padding: 4px 12px;
        border-bottom: 3px solid transparent;
        border-left: 0;
    }

    .step-index a:hover,
    .step-index a.active {
        border-bottom-color: var(--wine);
    }

    .step-index-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 20px;
    }
}

@media (max-width: 820px) {
    .utility-header {
        grid-template-columns: 1fr auto;
        padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    }

    .page-breadcrumb {
        display: none;
    }

    .intro-inner {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
    }

    .intro-visual {
        display: none;
    }

    .utility-intro,
    .intro-inner {
        min-height: 290px;
    }

    .intro-copy h1 {
        font-size: 40px;
    }

    .utility-main,
    .tutorial-main {
        width: calc(100% - 32px);
        padding-top: 28px;
    }

    .access-panel {
        display: block;
    }

    .access-section {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .step-body {
        grid-template-columns: 1fr;
    }

    .step-image-button {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .utility-header {
        min-height: calc(62px + env(safe-area-inset-top));
    }

    .utility-mark {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .utility-brand strong {
        font-size: 14px;
    }

    .utility-brand small {
        font-size: 10px;
    }

    .back-link {
        font-size: 11px;
    }

    .utility-intro,
    .intro-inner {
        min-height: 300px;
    }

    .intro-inner {
        padding: 38px 0;
    }

    .intro-copy h1 {
        font-size: 34px;
    }

    .intro-copy > p:last-child {
        font-size: 13px;
    }

    .intro-ledger span {
        min-height: 68px;
        padding: 8px;
        font-size: 10px;
    }

    .intro-ledger b {
        font-size: 16px;
    }

    .panel-header {
        align-items: flex-start;
        min-height: 138px;
        padding: 18px;
    }

    .panel-header h2,
    .access-section h2 {
        font-size: 21px;
    }

    .speed-button {
        min-width: 142px;
        gap: 12px;
        padding: 0 11px;
        font-size: 11px;
    }

    .progress-wrap {
        padding: 0 16px;
    }

    .progress-hint {
        min-width: 94px;
        font-size: 10px;
    }

    .route-item {
        grid-template-columns: 32px 58px minmax(0, 1fr);
        min-height: 104px;
        padding: 12px 14px;
    }

    .route-url {
        font-size: 11px;
    }

    .route-enter {
        grid-column: 2 / 4;
        justify-self: stretch;
        width: 100%;
        min-height: 38px;
        margin-top: 8px;
    }

    .latency-badge {
        width: 54px;
    }

    .access-section {
        padding: 20px 18px;
    }

    .register-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }

    .utility-note,
    .tutorial-footer-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .tutorial-step {
        display: block;
        min-height: 0;
    }

    .step-number-column {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        padding: 16px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .step-number-column span {
        font-size: 24px;
    }

    .step-number-column::after {
        display: none;
    }

    .step-copy {
        padding: 24px 20px;
    }

    .step-copy h2 {
        font-size: 21px;
    }

    .step-image-button {
        min-height: 320px;
    }

    .step-image-button img {
        height: 320px;
    }

    .lightbox {
        grid-template-columns: 1fr;
        padding: calc(64px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    }

    .lightbox-nav {
        position: absolute;
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .lightbox-nav.prev {
        left: calc(50% - 58px);
    }

    .lightbox-nav.next {
        right: calc(50% - 58px);
    }

    .lightbox-close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
    }

    .lightbox-figure {
        height: calc(100svh - 140px);
    }

    .lightbox-figure img {
        max-height: calc(100svh - 190px);
    }

    .site-mini-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }

    .toast {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        left: max(16px, env(safe-area-inset-left));
    }
}

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

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

/* Dark atelier redesign */
body.speed-page,
body.tutorial-page {
    min-width: 0;
    background-color: #070706;
    background-image:
        linear-gradient(rgba(203, 178, 116, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(203, 178, 116, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    color: var(--paper);
}

.speed-page {
    --page-accent: #17966c;
    --page-accent-soft: rgba(23, 150, 108, 0.16);
}

.tutorial-page {
    --page-accent: #a4323e;
    --page-accent-soft: rgba(164, 50, 62, 0.18);
}

.speed-page :focus-visible,
.tutorial-page :focus-visible {
    outline-color: var(--gold-bright);
}

.utility-header {
    position: sticky;
    top: 0;
    min-height: calc(76px + env(safe-area-inset-top));
    border-bottom-color: rgba(203, 178, 116, 0.24);
    background: rgba(7, 7, 6, 0.9);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.utility-mark {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-color: rgba(240, 216, 153, 0.72);
    background: #4d0e15;
    box-shadow: inset 0 0 0 5px rgba(240, 216, 153, 0.05), 0 10px 24px rgba(0, 0, 0, 0.28);
    font-size: 20px;
}

.utility-brand strong {
    color: #fffaf0;
    font-size: 18px;
}

.utility-brand small,
.page-breadcrumb {
    color: rgba(240, 216, 153, 0.52);
}

.page-breadcrumb {
    padding: 7px 14px;
    border-right: 1px solid rgba(203, 178, 116, 0.2);
    border-left: 1px solid rgba(203, 178, 116, 0.2);
}

.back-link {
    color: rgba(243, 239, 229, 0.76);
}

.back-link:hover {
    color: var(--gold-bright);
}

.utility-intro {
    min-height: 370px;
    border-bottom: 1px solid rgba(203, 178, 116, 0.25);
}

.utility-intro::before {
    background-position: center 58%;
    filter: saturate(0.78) contrast(1.2) brightness(0.72);
    transform: scale(1.02);
}

.utility-intro::after {
    background:
        linear-gradient(90deg, rgba(7, 7, 6, 0.99) 0%, rgba(7, 7, 6, 0.91) 43%, rgba(7, 7, 6, 0.38) 76%, rgba(7, 7, 6, 0.62) 100%),
        linear-gradient(180deg, rgba(7, 7, 6, 0.04), rgba(7, 7, 6, 0.86));
}

.speed-page .utility-intro {
    box-shadow: inset 0 -2px 0 rgba(23, 150, 108, 0.24);
}

.tutorial-page .utility-intro {
    box-shadow: inset 0 -2px 0 rgba(164, 50, 62, 0.28);
}

.intro-inner {
    grid-template-columns: minmax(0, 1fr) 390px;
    min-height: 370px;
    padding: 58px 0 54px;
}

.intro-copy {
    position: relative;
    z-index: 2;
}

.intro-kicker,
.panel-kicker {
    color: var(--gold-bright);
}

.intro-copy h1 {
    max-width: 820px;
    margin: 14px 0 16px;
    color: #fffaf0;
    font-size: 54px;
    text-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.intro-copy > h1 + p {
    max-width: 660px;
    margin: 0;
    color: rgba(243, 239, 229, 0.7);
    font-size: 15px;
    line-height: 1.9;
}

.intro-ledger {
    max-width: 660px;
    margin-top: 28px;
    border-color: rgba(203, 178, 116, 0.24);
    background: rgba(7, 7, 6, 0.28);
}

.intro-ledger span {
    min-height: 78px;
    border-right-color: rgba(203, 178, 116, 0.2);
    color: rgba(243, 239, 229, 0.48);
}

.intro-ledger b {
    color: var(--gold-bright);
    font-size: 22px;
}

.intro-visual {
    width: 330px;
    height: 218px;
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.34));
    animation: atelier-float 6s ease-in-out infinite;
}

.mini-card {
    width: 86px;
    height: 128px;
    border: 1px solid rgba(9, 8, 7, 0.16);
    background: #f5f0e6;
}

.mini-card.one { left: 28px; }
.mini-card.two { left: 94px; }
.mini-card.three { left: 158px; }

.mini-token {
    width: 68px;
    height: 68px;
    background: #147758;
    color: #fffaf0;
    box-shadow: 0 15px 28px rgba(0, 0, 0, 0.42), inset 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.mini-ball {
    width: 52px;
    height: 52px;
    background: #7d1823;
}

.utility-main,
.tutorial-main {
    position: relative;
    width: min(1360px, calc(100% - 56px));
    padding: 64px 0 100px;
}

.utility-main::before,
.tutorial-main::before {
    position: absolute;
    z-index: -1;
    top: 6px;
    right: 0;
    color: rgba(240, 216, 153, 0.032);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 132px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.utility-main::before { content: "ROUTING"; }
.tutorial-main::before { content: "MANUAL"; }

.speed-layout {
    grid-template-columns: minmax(0, 1.62fr) minmax(350px, 0.72fr);
    gap: 22px;
}

.tool-panel,
.access-panel,
.tutorial-step {
    border-color: rgba(203, 178, 116, 0.24);
    background: #0d0c0a;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.tool-panel,
.access-panel {
    position: relative;
}

.tool-panel::before,
.access-panel::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: -1px;
    right: 22px;
    left: 22px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--page-accent), var(--gold-bright), transparent);
    opacity: 0.72;
    pointer-events: none;
}

.panel-header {
    min-height: 118px;
    padding: 24px 28px;
    border-bottom-color: rgba(203, 178, 116, 0.18);
    background: linear-gradient(90deg, var(--page-accent-soft), rgba(7, 7, 6, 0));
}

.panel-header h2,
.access-section h2 {
    color: #fffaf0;
    font-size: 27px;
}

.speed-button {
    position: relative;
    min-width: 192px;
    min-height: 52px;
    border-color: rgba(240, 216, 153, 0.72);
    background: var(--gold-bright);
    color: #0b0907;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
}

.speed-button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--page-accent);
    box-shadow: 0 0 0 5px var(--page-accent-soft), 0 0 14px var(--page-accent);
    animation: status-pulse 1.8s ease-out infinite;
}

.speed-button span {
    color: #4d0e15;
}

.speed-button:hover,
.speed-button.testing {
    border-color: var(--gold-bright);
    background: #fffaf0;
    color: #090807;
}

.progress-wrap {
    min-height: 50px;
    padding: 0 28px;
    border-bottom-color: rgba(203, 178, 116, 0.16);
    background: #11100d;
}

.progress-track {
    height: 4px;
    background: rgba(243, 239, 229, 0.08);
}

.progress-bar {
    background: linear-gradient(90deg, var(--page-accent), var(--gold-bright));
    box-shadow: 0 0 18px var(--page-accent);
}

.progress-hint {
    color: rgba(243, 239, 229, 0.5);
}

.route-item {
    grid-template-columns: 56px 82px minmax(0, 1fr) 120px;
    min-height: 82px;
    padding: 9px 24px;
    border-bottom-color: rgba(243, 239, 229, 0.09);
    background: rgba(255, 255, 255, 0.008);
}

.route-item:hover {
    background: rgba(240, 216, 153, 0.055);
}

.route-item.fastest {
    background: rgba(23, 150, 108, 0.12);
}

.route-item.fastest::before {
    background: var(--page-accent);
    box-shadow: 0 0 16px var(--page-accent);
}

.route-order {
    color: rgba(240, 216, 153, 0.5);
    font-size: 12px;
}

.latency-badge {
    border-color: rgba(203, 178, 116, 0.24);
    background: rgba(7, 7, 6, 0.54);
    color: rgba(243, 239, 229, 0.46);
}

.latency-badge.testing { color: var(--gold-bright); }
.latency-badge.excellent { color: #58d6a7; }
.latency-badge.good { color: #b6d879; }
.latency-badge.ok { color: var(--gold-bright); }
.latency-badge.slow { color: #ffb151; }

.route-url {
    color: rgba(243, 239, 229, 0.78);
    font-size: 14px;
}

.route-enter {
    min-width: 108px;
    min-height: 44px;
    border-color: rgba(203, 178, 116, 0.32);
    background: rgba(240, 216, 153, 0.025);
    color: var(--gold-bright);
}

.route-enter:hover {
    border-color: var(--gold-bright);
    background: var(--gold-bright);
    color: #090807;
}

.access-panel {
    background: #140b0c;
}

.access-section {
    padding: 28px;
    border-bottom-color: rgba(203, 178, 116, 0.16);
}

.access-section > p {
    color: rgba(243, 239, 229, 0.46);
}

.register-link,
.app-link {
    min-height: 52px;
    border-color: rgba(203, 178, 116, 0.2);
    background: rgba(7, 7, 6, 0.42);
    color: rgba(243, 239, 229, 0.82);
}

.register-link:hover {
    border-color: #bf3b49;
    background: #6d1720;
}

.app-link.android:hover {
    border-color: #35b884;
    background: #0c5b43;
}

.app-link.ios:hover {
    border-color: var(--gold-bright);
    background: var(--gold-bright);
    color: #090807;
}

.settlement-token {
    min-height: 44px;
    border-color: rgba(203, 178, 116, 0.22);
    background: rgba(7, 7, 6, 0.36);
    color: rgba(243, 239, 229, 0.58);
}

.settlement-token b {
    color: #090807;
}

.utility-note,
.tutorial-footer-note {
    margin-top: 22px;
    border-top: 1px solid rgba(203, 178, 116, 0.18);
    border-right: 1px solid rgba(203, 178, 116, 0.18);
    border-bottom: 1px solid rgba(203, 178, 116, 0.18);
    border-left-color: var(--gold-bright);
    background: #100e0c;
    color: rgba(243, 239, 229, 0.52);
}

.utility-note a,
.tutorial-footer-note a {
    color: var(--gold-bright);
}

.toast {
    border-color: rgba(240, 216, 153, 0.72);
    background: #120e0c;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.tutorial-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
}

.step-index-panel {
    top: 94px;
    border-color: rgba(203, 178, 116, 0.26);
    background: #0d0b0a;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.step-index-head {
    padding: 24px 22px;
    border-bottom-color: rgba(203, 178, 116, 0.18);
    background: #260c10;
}

.step-index-head strong {
    color: #fffaf0;
    font-size: 22px;
}

.step-index {
    padding: 12px 0;
}

.step-index a {
    grid-template-columns: 40px 1fr;
    min-height: 50px;
    padding: 5px 18px;
    border-left-color: transparent;
    color: rgba(243, 239, 229, 0.46);
}

.step-index a:hover,
.step-index a.active {
    border-left-color: var(--gold-bright);
    background: rgba(164, 50, 62, 0.18);
    color: #fffaf0;
}

.step-index b {
    color: var(--gold-bright);
}

.tutorial-steps {
    gap: 18px;
}

.tutorial-step {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 470px;
    border-color: rgba(203, 178, 116, 0.24);
    background: #0c0b09;
    scroll-margin-top: 96px;
}

.tutorial-step:nth-child(3n + 2) {
    border-color: rgba(164, 50, 62, 0.42);
}

.tutorial-step:nth-child(3n) {
    border-color: rgba(23, 150, 108, 0.38);
}

.step-number-column {
    padding: 30px 14px;
    border-right-color: rgba(203, 178, 116, 0.18);
    background: #170d0e;
}

.tutorial-step:nth-child(3n) .step-number-column {
    background: #0b1813;
}

.step-number-column span {
    color: var(--gold-bright);
    font-size: 42px;
}

.step-number-column small {
    color: rgba(243, 239, 229, 0.36);
}

.step-number-column::after {
    background: linear-gradient(180deg, rgba(240, 216, 153, 0.58), transparent);
}

.step-body {
    grid-template-columns: minmax(245px, 0.75fr) minmax(420px, 1.25fr);
}

.step-copy {
    padding: 42px 34px;
    background:
        linear-gradient(rgba(203, 178, 116, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(203, 178, 116, 0.025) 1px, transparent 1px),
        #0c0b09;
    background-size: 48px 48px;
}

.step-copy h2 {
    color: #fffaf0;
    font-size: 29px;
}

.step-copy p {
    color: rgba(243, 239, 229, 0.52);
    font-size: 13px;
}

.step-meta span {
    border-color: rgba(203, 178, 116, 0.24);
    background: rgba(240, 216, 153, 0.035);
    color: rgba(240, 216, 153, 0.68);
}

.step-image-button {
    min-height: 470px;
    border-left-color: rgba(203, 178, 116, 0.18);
    background: #050505;
}

.step-image-button::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 14px;
    border: 1px solid rgba(240, 216, 153, 0.14);
    pointer-events: none;
}

.step-image-button img {
    height: 470px;
    filter: saturate(0.9) contrast(1.04);
}

.step-image-button:hover img {
    filter: saturate(1) contrast(1.06) brightness(1.04);
    transform: scale(1.025);
}

.zoom-label {
    z-index: 3;
    right: 20px;
    bottom: 20px;
    min-height: 40px;
    border-color: rgba(240, 216, 153, 0.36);
    background: rgba(7, 7, 6, 0.86);
    color: var(--gold-bright);
    backdrop-filter: blur(10px);
}

.lightbox {
    background: rgba(5, 5, 4, 0.98);
}

.lightbox-figure img {
    border-color: rgba(240, 216, 153, 0.42);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.56);
}

.site-mini-footer {
    min-height: 100px;
    border-top-color: rgba(203, 178, 116, 0.2);
    background: #050504;
}

.site-mini-footer strong {
    color: var(--gold-bright);
}

@keyframes atelier-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 var(--page-accent-soft), 0 0 12px var(--page-accent); }
    70% { box-shadow: 0 0 0 8px transparent, 0 0 18px var(--page-accent); }
    100% { box-shadow: 0 0 0 0 transparent, 0 0 12px var(--page-accent); }
}

@media (max-width: 1050px) {
    .intro-inner {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .speed-layout,
    .tutorial-layout {
        grid-template-columns: 1fr;
    }

    .access-panel {
        background: #100d0c;
    }

    .access-section {
        border-right-color: rgba(203, 178, 116, 0.16);
    }

    .step-index-panel {
        position: static;
    }

    .step-index a:hover,
    .step-index a.active {
        border-bottom-color: var(--gold-bright);
        border-left-color: transparent;
    }
}

@media (max-width: 820px) {
    .utility-header {
        min-height: calc(68px + env(safe-area-inset-top));
    }

    .utility-intro,
    .intro-inner {
        min-height: 330px;
    }

    .intro-inner {
        grid-template-columns: 1fr;
        width: calc(100% - 36px);
    }

    .intro-copy h1 {
        font-size: 43px;
    }

    .utility-main,
    .tutorial-main {
        width: calc(100% - 36px);
        padding-top: 40px;
    }

    .access-section {
        border-bottom-color: rgba(203, 178, 116, 0.16);
    }

    .step-body {
        grid-template-columns: 1fr;
    }

    .step-image-button {
        border-top-color: rgba(203, 178, 116, 0.18);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .utility-header {
        min-height: calc(64px + env(safe-area-inset-top));
    }

    .utility-mark {
        width: 34px;
        height: 34px;
        margin-right: 9px;
    }

    .utility-intro,
    .intro-inner {
        min-height: 340px;
    }

    .intro-inner {
        padding: 42px 0 38px;
    }

    .intro-copy h1 {
        font-size: 36px;
    }

    .intro-copy > h1 + p {
        font-size: 13px;
    }

    .intro-ledger {
        margin-top: 24px;
    }

    .intro-ledger span {
        min-height: 72px;
    }

    .utility-main,
    .tutorial-main {
        width: calc(100% - 28px);
        padding: 30px 0 72px;
    }

    .utility-main::before,
    .tutorial-main::before {
        display: none;
    }

    .panel-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        min-height: 0;
        padding: 20px;
    }

    .panel-header h2,
    .access-section h2 {
        font-size: 23px;
    }

    .speed-button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }

    .route-item {
        grid-template-columns: 34px 60px minmax(0, 1fr);
        min-height: 112px;
        padding: 14px 16px;
    }

    .access-section {
        padding: 24px 20px;
    }

    .tutorial-step {
        min-height: 0;
    }

    .step-number-column {
        padding: 18px 20px;
        border-right: 0;
        border-bottom-color: rgba(203, 178, 116, 0.18);
    }

    .step-number-column span {
        font-size: 30px;
    }

    .step-copy {
        padding: 28px 22px;
    }

    .step-copy h2 {
        font-size: 23px;
    }

    .step-image-button {
        min-height: 340px;
    }

    .step-image-button img {
        height: 340px;
    }

    .zoom-label {
        right: 14px;
        bottom: 14px;
    }
}

/* Premium control language for the speed console. */
.speed-page .speed-button,
.speed-page .route-enter,
.speed-page .register-link,
.speed-page .app-link,
.speed-page .back-link,
.speed-page .utility-note a,
.speed-page .site-mini-footer a {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(0, 0, 0, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.22);
    transition:
        background 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.speed-page .speed-button > *,
.speed-page .route-enter > *,
.speed-page .register-link > *,
.speed-page .app-link > *,
.speed-page .back-link > *,
.speed-page .utility-note a > *,
.speed-page .site-mini-footer a > * {
    position: relative;
    z-index: 3;
}

.speed-page .speed-button::after,
.speed-page .route-enter::after,
.speed-page .register-link::after,
.speed-page .app-link::after,
.speed-page .back-link::after,
.speed-page .utility-note a::after,
.speed-page .site-mini-footer a::after {
    position: absolute;
    z-index: 2;
    top: -80%;
    bottom: -80%;
    left: -48%;
    width: 24%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    content: "";
    pointer-events: none;
    transform: skewX(-18deg);
    transition: left 520ms ease;
}

.speed-page .speed-button:hover::after,
.speed-page .route-enter:hover::after,
.speed-page .register-link:hover::after,
.speed-page .app-link:hover::after,
.speed-page .back-link:hover::after,
.speed-page .utility-note a:hover::after,
.speed-page .site-mini-footer a:hover::after {
    left: 126%;
}

.speed-page .speed-button {
    min-width: 208px;
    min-height: 56px;
    padding: 0 18px;
    border-color: rgba(246, 214, 127, 0.86);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 36%),
        linear-gradient(135deg, #f2d78e, #b9842c 78%, #8d5d1e);
    color: #120d08;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-shadow: 0 1px rgba(255, 255, 255, 0.28);
}

.speed-page .speed-button::before {
    flex: 0 0 auto;
}

.speed-page .speed-button:hover,
.speed-page .speed-button.testing {
    border-color: #fff3c8;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 38%),
        linear-gradient(135deg, #fff2c5, #d5a849 78%, #a87321);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(240, 216, 153, 0.08),
        0 16px 34px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(240, 216, 153, 0.18);
    transform: translateY(-2px);
}

.speed-page .speed-button.testing {
    border-color: #e58a92;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 38%),
        linear-gradient(135deg, #8c2630, #3f0c13 78%, #26070b);
    color: #fff8ee;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 4px rgba(213, 91, 103, 0.08),
        0 16px 34px rgba(0, 0, 0, 0.36),
        0 0 22px rgba(213, 91, 103, 0.16);
}

.speed-page .speed-button.testing span {
    color: #fff0b6;
}

.speed-page .speed-button:active,
.speed-page .route-enter:active,
.speed-page .register-link:active,
.speed-page .app-link:active,
.speed-page .back-link:active,
.speed-page .utility-note a:active,
.speed-page .site-mini-footer a:active {
    transform: translateY(1px) scale(0.985);
}

.speed-page .speed-button:focus-visible,
.speed-page .route-enter:focus-visible,
.speed-page .register-link:focus-visible,
.speed-page .app-link:focus-visible,
.speed-page .back-link:focus-visible,
.speed-page .utility-note a:focus-visible,
.speed-page .site-mini-footer a:focus-visible {
    outline: 2px solid #fff3c8;
    outline-offset: 3px;
}

.speed-page .speed-button:disabled {
    cursor: wait;
    opacity: 0.82;
}

.speed-page .route-enter {
    min-width: 116px;
    min-height: 46px;
    padding: 0 13px;
    border-color: rgba(240, 216, 153, 0.42);
    background:
        linear-gradient(135deg, rgba(240, 216, 153, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(27, 23, 16, 0.96), rgba(9, 8, 7, 0.98));
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 700;
}

.speed-page .route-enter:hover {
    border-color: var(--gold-bright);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 40%),
        linear-gradient(135deg, #f0d899, #b9822b);
    color: #090807;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 0 0 3px rgba(240, 216, 153, 0.06),
        0 12px 26px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.speed-page .route-enter span,
.speed-page .register-link span,
.speed-page .app-link span {
    color: var(--gold-bright);
}

.speed-page .route-enter:hover span {
    color: #090807;
}

.speed-page .register-link,
.speed-page .app-link {
    min-height: 54px;
    padding: 0 14px;
    border-color: rgba(240, 216, 153, 0.3);
    background:
        linear-gradient(135deg, rgba(240, 216, 153, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(28, 22, 16, 0.98), rgba(10, 9, 8, 0.98));
    color: rgba(255, 250, 240, 0.88);
    font-size: 11px;
    font-weight: 700;
}

.speed-page .register-link:hover {
    border-color: #d46a72;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
        linear-gradient(135deg, #7c1d28, #3f0c13);
    color: #fff8ee;
    transform: translateY(-2px);
}

.speed-page .app-link.android:hover {
    border-color: #63d7ab;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
        linear-gradient(135deg, #147858, #073629);
    color: #f2fff8;
    transform: translateY(-2px);
}

.speed-page .app-link.ios:hover {
    border-color: var(--gold-bright);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(135deg, #f0d899, #ad7927);
    color: #090807;
    transform: translateY(-2px);
}

.speed-page .back-link {
    min-height: 44px;
    padding: 0 14px;
    border-color: rgba(240, 216, 153, 0.3);
    background: rgba(240, 216, 153, 0.035);
    color: rgba(243, 239, 229, 0.78);
}

.speed-page .back-link:hover {
    border-color: rgba(240, 216, 153, 0.78);
    background: rgba(240, 216, 153, 0.12);
    color: var(--gold-bright);
    transform: translateY(-1px);
}

.speed-page .utility-note a {
    min-height: 40px;
    padding: 0 13px;
    border-color: rgba(240, 216, 153, 0.34);
    background: rgba(240, 216, 153, 0.045);
    color: var(--gold-bright);
}

.speed-page .utility-note a:hover {
    border-color: var(--gold-bright);
    background: rgba(240, 216, 153, 0.14);
    transform: translateY(-1px);
}

.speed-page .site-mini-footer a {
    min-height: 44px;
    padding: 0 14px;
    border-color: rgba(240, 216, 153, 0.3);
    background:
        linear-gradient(135deg, rgba(240, 216, 153, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(28, 22, 16, 0.98), rgba(10, 9, 8, 0.98));
    color: rgba(255, 250, 240, 0.82);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.speed-page .site-mini-footer a:hover {
    border-color: #63d7ab;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(135deg, #147858, #073629);
    color: #f2fff8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 3px rgba(99, 215, 171, 0.06),
        0 12px 26px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 620px) {
    .speed-page .speed-button {
        min-height: 52px;
        min-width: 0;
    }

    .speed-page .route-enter {
        min-width: 0;
        min-height: 44px;
        padding: 0 10px;
    }

    .speed-page .register-link,
    .speed-page .app-link {
        min-height: 50px;
        padding: 0 11px;
    }

    .speed-page .back-link {
        padding: 0 10px;
        gap: 7px;
        font-size: 11px;
    }

    .speed-page .utility-note a {
        min-height: 38px;
        padding: 0 10px;
    }

    .speed-page .site-mini-footer a {
        min-height: 42px;
        padding: 0 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .speed-page .speed-button,
    .speed-page .route-enter,
    .speed-page .register-link,
    .speed-page .app-link,
    .speed-page .back-link,
    .speed-page .utility-note a,
    .speed-page .site-mini-footer a,
    .speed-page .speed-button::after,
    .speed-page .route-enter::after,
    .speed-page .register-link::after,
    .speed-page .app-link::after,
    .speed-page .back-link::after,
    .speed-page .utility-note a::after,
    .speed-page .site-mini-footer a::after {
        transition-duration: 0.01ms;
    }
}
