:root {
    --bg: #061a2f;
    --bg-soft: #0b2a49;
    --panel: rgba(20, 38, 58, .84);
    --panel-strong: rgba(8, 23, 42, .97);
    --glass: rgba(255, 255, 255, .12);
    --line: rgba(255, 215, 128, .44);
    --line-soft: rgba(255, 255, 255, .16);
    --gold: #f6d47a;
    --gold-strong: #ffe59a;
    --gold-dark: #c99422;
    --text: #f8fafc;
    --muted: #b7c6d6;
    --muted-2: #e5edf7;
    --danger: #ef4444;
    --success: #22c55e;
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -16%, rgba(255, 225, 148, .26), transparent 34rem),
        radial-gradient(circle at 86% 20%, rgba(54, 139, 235, .28), transparent 24rem),
        linear-gradient(180deg, #0c2a4a 0%, #071c33 46%, #02101f 100%);
}

body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 235, 180, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 235, 180, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 70%);
    content: "";
}

.asset-sparkle,
.asset-money {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.asset-sparkle {
    mix-blend-mode: screen;
    opacity: .36;
    filter: saturate(1.25) contrast(1.05);
}

.asset-money {
    mix-blend-mode: screen;
    opacity: .28;
    filter: saturate(.9) hue-rotate(18deg) blur(.2px);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: .5;
}

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

.app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
}

.brand-head {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(8, 28, 50, .88), rgba(5, 18, 34, .8));
    backdrop-filter: blur(16px);
}

.brand-logo {
    display: block;
    width: 64px;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .36));
}

.brand-head p,
.brand-head h1,
.brand-head small {
    margin: 0;
}

.brand-head p {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.brand-head h1 {
    margin-top: 2px;
    color: #fff5cd;
    font-size: clamp(22px, 6vw, 36px);
    font-weight: 900;
    line-height: 1.08;
    text-shadow: 0 2px 12px rgba(255, 218, 124, .26);
}

.brand-head small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.member-actions {
    display: flex;
    flex: 1 0 auto;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.member-actions a,
.member-actions button {
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 218, 124, .5);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.member-actions form {
    margin: 0;
}

.screen {
    width: 100%;
    min-width: 0;
    flex: 1;
}

.auth-shell,
.member-shell {
    width: min(100% - 36px, 980px);
    margin: 26px auto 118px;
}

.auth-panel,
.member-hero,
.member-card,
.member-alert {
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)),
        rgba(8, 28, 50, .72);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
}

.auth-panel {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    padding: 30px 22px;
    text-align: center;
}

.auth-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(255, 218, 124, .42));
}

.auth-panel p,
.member-hero p {
    margin: 0;
    color: var(--gold);
    font-weight: 900;
}

.auth-panel h2,
.member-hero h2,
.member-card h3 {
    margin: 0;
    color: #fff5cd;
    font-weight: 900;
}

.auth-panel span,
.member-hero span {
    color: var(--muted-2);
    font-weight: 800;
    line-height: 1.55;
}

.line-login-button {
    display: grid;
    width: 100%;
    min-height: 54px;
    place-items: center;
    border-radius: 999px;
    background: #06c755;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(6, 199, 85, .32);
}

.member-shell {
    display: grid;
    gap: 16px;
}

.member-hero {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
}

.member-hero img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, .08);
}

.member-alert {
    padding: 14px 16px;
    color: var(--gold);
    font-weight: 900;
}

.member-grid {
    display: grid;
    gap: 16px;
}

.member-card {
    padding: 18px;
}

.role-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.role-form label {
    color: var(--gold);
    font-weight: 900;
}

.role-form small {
    color: #fecaca;
    font-weight: 800;
}

.role-list,
.order-history {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.role-list article,
.order-history a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
}

.role-list strong,
.role-list span,
.order-history strong,
.order-history span,
.order-history b,
.order-history em {
    display: block;
}

.role-list strong,
.order-history strong,
.order-history b {
    color: #fff5cd;
    font-weight: 900;
}

.role-list span,
.order-history span {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 13px;
    font-weight: 800;
}

.role-list button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(239, 68, 68, .48);
    border-radius: 999px;
    background: rgba(239, 68, 68, .1);
    color: #fecaca;
    font-weight: 900;
}

.order-history em {
    margin-top: 3px;
    color: var(--gold);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.order-history a.is-static {
    cursor: default;
}

.role-list p,
.order-history p {
    margin: 0;
    color: var(--muted-2);
    font-weight: 800;
}

.sell-shell {
    width: min(100% - 28px, 720px);
    margin: 18px auto 118px;
}

.flow-nav,
.sell-card {
    border: 1px solid rgba(255, 218, 124, .42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)),
        rgba(8, 28, 50, .74);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
}

.flow-nav {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 18px;
}

.flow-nav a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--gold);
    font-size: 34px;
    font-weight: 400;
}

.flow-nav strong,
.flow-nav span {
    display: block;
}

.flow-nav strong {
    color: #fff5cd;
    font-size: 19px;
    font-weight: 900;
}

.flow-nav span {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
}

.product-flow-nav {
    width: 100%;
    margin-bottom: 18px;
}

.sell-flow {
    display: grid;
    gap: 14px;
}

.sell-card {
    display: grid;
    gap: 11px;
    padding: 18px;
    border-radius: 22px;
}

.sell-card h2 {
    margin: 0;
    color: #fff5cd;
    font-size: 19px;
    font-weight: 900;
}

.sell-card label {
    color: #dbe7f3;
    font-size: 14px;
    font-weight: 900;
}

.sell-card b {
    color: #f87171;
}

.sell-card small {
    color: #fecaca;
    font-weight: 800;
}

.sell-card input {
    border-color: rgba(255, 218, 124, .46);
    background: rgba(255, 255, 255, .08);
}

.estimate-box {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(255, 218, 124, .78);
    border-radius: 16px;
    background: rgba(6, 18, 34, .52);
    box-shadow: 0 0 18px rgba(255, 218, 124, .22);
}

.estimate-box span {
    color: #e9eef7;
    font-weight: 900;
}

.estimate-box strong {
    color: var(--gold-strong);
    font-size: 30px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(75, 46, 5, .55), 0 8px 24px rgba(255, 218, 124, .3);
}

.upload-dropzone {
    display: grid;
    min-height: 154px;
    place-items: center;
    gap: 7px;
    padding: 18px;
    border: 2px dashed rgba(107, 114, 128, .72);
    border-radius: 18px;
    background: #eef2f7;
    color: #1f2937;
    text-align: center;
    cursor: pointer;
}

.upload-dropzone span {
    font-size: 42px;
}

.upload-dropzone strong {
    max-width: 100%;
    color: #374151;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.upload-dropzone em {
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

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

.mode-card {
    display: grid;
    gap: 8px;
    min-height: 148px;
    place-items: center;
    padding: 14px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    color: var(--muted-2);
    text-align: center;
}

.mode-card span {
    font-size: 26px;
}

.mode-card strong {
    color: #fff5cd;
    font-size: 18px;
    font-weight: 900;
}

.mode-card em {
    color: var(--muted-2);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
}

.mode-card.is-selected {
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(255, 226, 150, .24), rgba(255, 255, 255, .08));
    box-shadow: 0 0 0 3px rgba(255, 218, 124, .16), 0 0 22px rgba(255, 218, 124, .34);
}

.sell-next {
    width: 100%;
    margin-top: 4px;
}

.sell-next:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #d1d5db;
    box-shadow: none;
}

.section-band {
    display: grid;
    min-height: 170px;
    place-items: center;
    padding: 28px 20px;
    color: var(--text);
    text-align: center;
    font-size: 34px;
    font-weight: 900;
}

.content-pad {
    padding: 0 18px 116px;
}

h2,
h3,
p {
    letter-spacing: 0;
}

.content-pad h2,
.info-section h3,
.buy-form label {
    margin: 0;
    font-weight: 900;
    line-height: 1.2;
}

.content-pad h2,
.payment-header h2,
.product-hero h2 {
    color: var(--gold);
    font-size: 27px;
    font-weight: 900;
}

.content-pad h2 {
    margin-bottom: 16px;
}

.game-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.trade-choice-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.trade-choice {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 110px;
    padding: 18px;
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)),
        rgba(8, 28, 50, .72);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.trade-choice.is-selected {
    border-color: var(--gold);
    background:
        linear-gradient(135deg, rgba(255, 226, 150, .3), rgba(255, 255, 255, .1)),
        rgba(8, 28, 50, .78);
    box-shadow: 0 0 0 3px rgba(255, 218, 124, .16), 0 0 28px rgba(255, 218, 124, .34), var(--shadow);
}

.trade-choice span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #fff8cf, var(--gold) 56%, var(--gold-dark));
    color: #08213a;
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(255, 218, 124, .48);
}

.trade-choice strong,
.trade-choice em {
    display: block;
}

.trade-choice strong {
    color: #fff5cd;
    font-size: 22px;
    font-weight: 900;
}

.trade-choice em {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

.catalog-subtitle {
    margin-top: 4px;
}

.trade-mode-hint {
    margin: -8px 0 14px;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
}

.game-list.is-waiting-mode .game-card {
    opacity: .58;
}

.game-list.is-waiting-mode .game-card:hover,
.game-list.is-waiting-mode .game-card:focus-visible {
    background: transparent;
}

.selected-game-pill {
    display: inline-grid;
    grid-template-columns: 42px auto;
    gap: 10px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.selected-game-pill img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
}

.selected-game-pill strong {
    min-width: 0;
    color: #fff5cd;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.sell-rate-note {
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 218, 124, .12);
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.sell-converter {
    display: grid;
    gap: 12px;
}

.converter-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    cursor: text;
}

.converter-field.is-active {
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(255, 226, 150, .18), rgba(255, 255, 255, .08));
    box-shadow: 0 0 0 3px rgba(255, 218, 124, .12), 0 0 18px rgba(255, 218, 124, .2);
}

.converter-field span,
.converter-field em {
    display: block;
}

.converter-field span {
    color: #dbe7f3;
    font-size: 14px;
    font-weight: 900;
}

.converter-field em,
.estimate-box em {
    color: var(--muted-2);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.converter-field input {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: rgba(5, 18, 34, .42);
    color: #fff5cd;
    font-size: 22px;
    font-weight: 900;
}

.game-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
    transition: background .16s ease, transform .16s ease;
}

.game-card:last-child {
    border-bottom: 0;
}

.game-card:hover,
.game-card:focus-visible {
    background: rgba(230, 194, 122, .09);
    outline: 0;
}

.game-icon {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 226, 150, .88);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .22), transparent 35%),
        linear-gradient(145deg, #304259, #061525);
    color: var(--gold);
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 28px rgba(0, 0, 0, .34), 0 0 22px rgba(255, 218, 124, .16);
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.game-icon.small {
    width: 68px;
    height: 68px;
    font-size: 29px;
}

.game-icon.large {
    width: 112px;
    height: 112px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 50px;
}

.game-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.game-card p {
    margin: 3px 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
}

.game-card p:first-of-type {
    color: var(--gold);
}

.game-card span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.product-hero {
    padding: 34px 20px 28px;
    text-align: center;
}

.product-hero h2 {
    margin: 0;
}

.merchant-block,
.buy-form,
.checkout-scroll,
.payment-code,
.order-table,
.notice-box {
    width: calc(100% - 36px);
    max-width: 680px;
    margin-inline: auto;
}

.merchant-block {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.merchant-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    background: rgba(230, 194, 122, .16);
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.merchant-block h3 {
    margin: 0 0 7px;
    font-size: 22px;
    font-weight: 900;
}

.merchant-block p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.merchant-block strong {
    color: var(--gold);
}

.buy-form {
    display: grid;
    gap: 16px;
    padding-bottom: 116px;
}

.buy-form label {
    font-size: 17px;
}

select,
input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(230, 194, 122, .36);
    border-radius: 14px;
    background: rgba(0, 0, 0, .24);
    color: var(--text);
}

select {
    padding: 0 16px;
    font-weight: 900;
}

option {
    background: #0f172a;
}

select:focus,
input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(230, 194, 122, .14);
    outline: 0;
}

.amount-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
}

.amount-step {
    display: grid;
    min-height: 52px;
    place-items: center;
    border: 1px solid rgba(230, 194, 122, .36);
    border-radius: 50%;
    background: rgba(230, 194, 122, .08);
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
}

.amount-display {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 14px;
    border: 1px solid rgba(230, 194, 122, .36);
    border-radius: 18px;
    background: rgba(0, 0, 0, .24);
}

.amount-display span {
    color: var(--muted-2);
    font-size: 15px;
    font-weight: 900;
}

.amount-display input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 30px;
    font-weight: 900;
    text-align: right;
}

.amount-display input:focus {
    box-shadow: none;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.quick-amounts button {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    color: var(--text);
    font-weight: 900;
}

.quick-amounts button.is-selected {
    border-color: var(--gold);
    background: rgba(230, 194, 122, .16);
    color: var(--gold);
}

.rate-card,
.summary-list,
.checkout-card,
.payment-select,
.notice-box,
.order-table {
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)),
        rgba(8, 28, 50, .68);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
}

.rate-card {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.rate-card span,
.rate-card small,
.summary-list span,
.order-table span {
    color: var(--muted);
}

.rate-card strong {
    color: var(--gold);
    font-size: 22px;
}

.rate-card small {
    font-size: 14px;
    font-weight: 800;
}

.bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 74px 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, .88);
    box-shadow: 0 -16px 42px rgba(0, 0, 0, .36);
    backdrop-filter: blur(18px);
}

.cart-tab {
    position: relative;
    display: grid;
    min-height: 58px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 900;
}

.cart-tab em {
    position: absolute;
    right: 8px;
    top: 1px;
    display: none;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 19px;
}

.cart-tab.has-items em {
    display: block;
}

.bag-icon {
    width: 26px;
    height: 30px;
    border: 2px solid var(--gold);
    border-radius: 6px 6px 10px 10px;
}

.bag-icon::before {
    display: block;
    width: 13px;
    height: 10px;
    margin: -10px auto 0;
    border: 2px solid var(--gold);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    content: "";
}

.primary-action,
.secondary-action {
    display: grid;
    min-height: 52px;
    place-items: center;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.primary-action {
    border: 0;
    background: linear-gradient(135deg, var(--gold-strong), var(--gold-dark));
    color: #0b0f19;
    box-shadow: 0 14px 26px rgba(184, 134, 11, .28);
}

.secondary-action {
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
}

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

.checkout-actions {
    grid-template-columns: 1fr;
}

.payment-header {
    width: calc(100% - 36px);
    max-width: 680px;
    margin: 24px auto 0;
    padding: 20px 14px;
    border: 1px solid rgba(255, 218, 124, .52);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08)),
        rgba(7, 25, 45, .72);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .26);
    text-align: center;
    backdrop-filter: blur(16px);
}

.payment-header h2 {
    margin: 0 0 18px;
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps::before {
    position: absolute;
    top: 16px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, .12);
    content: "";
}

.steps li {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    justify-items: center;
    color: var(--muted);
}

.steps span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.steps .is-active span,
.steps .is-done span {
    border-color: var(--gold);
    background: radial-gradient(circle at 35% 25%, #fff8cf, var(--gold) 56%, var(--gold-dark));
    color: #020617;
    box-shadow: 0 0 22px rgba(255, 218, 124, .58);
}

.steps .is-active b,
.steps .is-done b {
    color: var(--gold);
}

.steps b {
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
}

.checkout-scroll {
    padding-top: 22px;
    padding-bottom: 112px;
}

.screen-checkout,
.screen-complete {
    position: relative;
}

.checkout-sparkle,
.complete-sparkle {
    top: 74px;
    right: -240px;
    width: 520px;
    opacity: .28;
    transform: rotate(-18deg);
}

.checkout-items {
    display: grid;
    gap: 12px;
}

.cart-shell {
    width: min(100% - 36px, 760px);
    margin: 24px auto 116px;
}

.cart-heading {
    margin-bottom: 18px;
}

.cart-heading p {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.cart-heading h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-product,
.cart-empty {
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(15, 23, 42, .78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.cart-product {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.cart-product-index {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(230, 194, 122, .16);
    color: var(--gold);
    font-weight: 900;
}

.cart-product h3,
.cart-product p {
    margin: 0;
}

.cart-product h3 {
    font-size: 18px;
    font-weight: 900;
}

.cart-product p {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
}

.cart-product strong,
.cart-product span {
    color: var(--gold);
}

.cart-product button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(239, 68, 68, .48);
    border-radius: 999px;
    background: rgba(239, 68, 68, .1);
    color: #fecaca;
    font-weight: 900;
}

.cart-empty {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.cart-empty strong {
    color: var(--gold);
    font-size: 20px;
}

.cart-empty p {
    margin: 0;
    color: var(--muted-2);
    line-height: 1.55;
}

.cart-actions {
    grid-template-columns: 1fr 1fr;
}

.info-section {
    margin-bottom: 18px;
}

.info-section h3 {
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--gold);
    font-size: 19px;
}

.checkout-card {
    display: grid;
    grid-template-columns: 34px 66px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.checkout-card p {
    margin: 4px 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.38;
}

.checkout-card strong {
    color: var(--danger);
}

.checkout-card span {
    color: var(--gold);
}

.check-badge {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--gold);
}

.check-badge::after {
    display: block;
    width: 11px;
    height: 7px;
    margin: 6px auto;
    border-left: 3px solid #020617;
    border-bottom: 3px solid #020617;
    transform: rotate(-45deg);
    content: "";
}

.summary-list {
    position: relative;
    overflow: hidden;
    padding: 4px 16px;
}

.summary-list > p {
    position: relative;
    z-index: 1;
}

.summary-money {
    right: -40px;
    bottom: -48px;
    width: 190px;
    opacity: .22;
}

.summary-list p,
.order-table p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 14px;
    font-weight: 900;
}

.summary-list p:last-child,
.order-table p:last-child {
    border-bottom: 0;
}

.summary-list strong,
.order-table b {
    min-width: 0;
    color: var(--text);
    text-align: right;
    overflow-wrap: anywhere;
}

.summary-list p:last-child strong {
    color: var(--gold);
    font-size: 22px;
}

.payment-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 18px;
    gap: 5px 12px;
    align-items: center;
    width: 100%;
    padding: 16px;
    color: var(--text);
    text-align: left;
}

.selected-payment-logo {
    display: grid;
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
}

.selected-payment-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.payment-select span {
    grid-column: 2;
    color: var(--muted);
    font-weight: 900;
}

.payment-select .selected-payment-logo {
    grid-column: 1;
}

.payment-select strong {
    grid-column: 2;
    color: var(--gold);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.payment-select::after {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--muted);
    content: ">";
    font-size: 22px;
}

.warning {
    margin: 12px 0 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
    text-align: right;
}

.payment-code {
    margin-top: 22px;
    padding: 26px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(230, 194, 122, .13), rgba(15, 23, 42, .88));
    text-align: center;
    box-shadow: var(--shadow);
}

.payment-code p,
.payment-code span {
    margin: 0;
    color: var(--muted-2);
    font-weight: 800;
}

.payment-code-logo {
    display: block;
    width: 74px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
    padding: 7px;
}

.payment-code strong {
    display: block;
    margin: 12px 0;
    color: var(--gold);
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: 0;
}

.order-table,
.notice-box {
    margin-top: 16px;
    padding: 18px;
}

.order-table h3,
.notice-box strong {
    display: block;
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
}

.notice-box p {
    margin: 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.65;
}

.simulate-box div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.sell-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-link {
    display: grid;
    min-height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 999px;
    color: var(--gold);
    font-weight: 900;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    width: 100vw;
    max-width: 100vw;
    align-items: end;
    justify-items: stretch;
    overflow-x: hidden;
    background: rgba(0, 0, 0, .64);
    backdrop-filter: blur(4px);
}

.payment-sheet,
.confirm-modal {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    max-height: 86vh;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 26px 26px 0 0;
    background: var(--panel-strong);
    box-shadow: 0 -26px 70px rgba(0, 0, 0, .58);
}

.payment-sheet {
    position: relative;
    padding: 24px 0 18px;
}

.sheet-close {
    position: absolute;
    right: 18px;
    top: 16px;
}

.payment-sheet h2,
.confirm-modal h2 {
    margin: 0 54px 22px;
    color: var(--text);
    text-align: center;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.payment-sheet h2 span {
    color: var(--muted);
}

.pay-option {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 13px 18px;
    border-top: 1px dashed var(--line-soft);
    background: transparent;
}

.pay-option > span {
    min-width: 0;
}

.pay-option.is-selected {
    margin: 8px 12px;
    border: 1px solid var(--gold);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 226, 150, .24), rgba(255, 255, 255, .08));
}

.pay-option.is-disabled {
    color: #64748b;
    opacity: .55;
}

.pay-logo {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.pay-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.pay-option h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.pay-option p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.radio-mark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--muted);
    border-radius: 50%;
}

.pay-option.is-selected .radio-mark {
    border-color: var(--gold);
    background: radial-gradient(circle, var(--gold) 0 42%, transparent 46%);
}

.pay-option.is-selected .radio-mark::after {
    display: none;
}

.confirm-modal {
    position: relative;
    box-sizing: border-box;
    align-self: center;
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 16px;
    border-radius: 24px;
    padding: 26px 0 22px;
}

.confirm-pokeball {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .38));
}

.confirm-modal form {
    display: grid;
}

.confirm-modal label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    margin: 0 16px;
    padding: 15px 0;
    border-top: 1px dashed var(--line-soft);
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 800;
}

.confirm-modal label span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.confirm-modal input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    accent-color: var(--gold);
}

.confirm-modal .primary-action {
    width: calc(100% - 32px);
    min-width: 0;
    margin: 18px 16px 0;
}

.primary-action.is-disabled {
    opacity: .42;
    cursor: not-allowed;
}

.browser-bar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    min-height: 74px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    border-radius: 0 0 18px 18px;
    background:
        linear-gradient(180deg, rgba(235, 242, 248, .9), rgba(156, 170, 184, .72)),
        rgba(255, 255, 255, .72);
    color: #172033;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px) saturate(1.15);
}

.browser-bar div {
    min-width: 0;
    text-align: center;
}

.browser-bar strong,
.browser-bar span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-bar strong {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.12;
}

.browser-bar span {
    margin-top: 2px;
    color: rgba(23, 32, 51, .68);
    font-size: 14px;
    font-weight: 700;
}

.icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #172033;
}

.chevron-down {
    display: block;
    width: 15px;
    height: 15px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
}

.close-button::before,
.close-button::after {
    grid-area: 1 / 1;
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.close-button::before {
    transform: rotate(90deg);
}

.close-button::after {
    transform: rotate(0deg);
}

.page-product {
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 217, 123, .25), transparent 17rem),
        radial-gradient(circle at 85% 12%, rgba(94, 178, 255, .28), transparent 24rem),
        linear-gradient(180deg, rgba(6, 31, 58, .45), rgba(2, 13, 25, .78));
}

.page-product::after {
    position: fixed;
    right: -10vw;
    bottom: 72px;
    left: -10vw;
    height: 170px;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0, rgba(230, 194, 122, .38), transparent 58%),
        repeating-linear-gradient(100deg, transparent 0 42px, rgba(230, 194, 122, .15) 43px 45px),
        repeating-linear-gradient(0deg, transparent 0 24px, rgba(230, 194, 122, .12) 25px 26px);
    opacity: .58;
    transform: perspective(360px) rotateX(62deg);
    transform-origin: bottom;
    content: "";
}

.product-stage {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 24px 18px 116px;
}

.product-showcase,
.purchase-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 222, 147, .58);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .075)),
        radial-gradient(circle at 12% 12%, rgba(255, 225, 148, .26), transparent 18rem),
        rgba(26, 43, 61, .62);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .38);
    backdrop-filter: blur(18px);
}

.product-showcase::before,
.purchase-panel::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .42), transparent 28%, transparent 70%, rgba(255, 222, 147, .22)),
        radial-gradient(circle at 50% 100%, rgba(255, 218, 124, .26), transparent 45%);
    content: "";
}

.product-sparkle {
    right: -46%;
    bottom: -30%;
    width: 150%;
    max-width: 760px;
    transform: rotate(-16deg);
}

.product-money {
    right: -108px;
    bottom: -62px;
    z-index: 0;
    width: 260px;
}

.product-showcase {
    display: grid;
    justify-items: start;
    min-height: 360px;
    padding: 26px 22px;
}

.casino-seal {
    position: relative;
    display: block;
    width: 86px;
    height: 86px;
    object-fit: contain;
    border: 0;
    border-radius: 50%;
    filter: drop-shadow(0 0 14px rgba(255, 218, 124, .5)) drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
}

.casino-seal::after {
    display: none;
}

.product-showcase p {
    position: relative;
    margin: 18px 0 4px;
    color: var(--muted-2);
    font-size: 16px;
    font-weight: 900;
}

.product-showcase h2 {
    position: relative;
    margin: 0;
    color: var(--gold-strong);
    font-size: 36px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(75, 46, 5, .55), 0 8px 28px rgba(255, 218, 124, .36);
}

.product-showcase h3 {
    position: relative;
    margin: 24px 0 14px;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.featured-game {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
}

.featured-game .game-icon.large {
    width: 82px;
    height: 82px;
    margin: 0;
    border-radius: 50%;
    font-size: 34px;
}

.featured-game strong,
.featured-game span {
    display: block;
}

.featured-game strong {
    font-size: 22px;
    font-weight: 900;
}

.featured-game span {
    margin-top: 3px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.mini-game-row {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.mini-game-row a {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.mini-game-row .game-icon.small {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    font-size: 24px;
}

.mini-game-row a.is-current .game-icon.small {
    box-shadow: 0 0 0 4px rgba(230, 194, 122, .16), 0 0 28px rgba(230, 194, 122, .28);
}

.mini-game-row span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-panel {
    padding: 18px;
}

.purchase-panel > :not(.asset-money) {
    position: relative;
    z-index: 1;
}

.purchase-panel .merchant-block {
    width: 100%;
    margin: 0 0 18px;
    border-radius: 20px;
    background: rgba(2, 6, 23, .3);
    box-shadow: none;
}

.purchase-panel .buy-form {
    position: relative;
    width: 100%;
    margin: 0;
    padding-bottom: 0;
}

.role-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-label img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .28));
}

.purchase-panel select,
.purchase-panel .amount-display,
.purchase-panel .rate-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .11)),
        rgba(12, 29, 48, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 10px 24px rgba(0, 0, 0, .18);
}

.purchase-panel select {
    border-color: rgba(255, 224, 145, .88);
}

.purchase-panel .amount-display {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.purchase-panel .amount-display span,
.purchase-panel .amount-display input {
    text-shadow: 0 3px 18px rgba(230, 194, 122, .28);
}

.purchase-panel .amount-display span {
    color: var(--gold);
    font-size: 25px;
}

.purchase-panel .amount-display input {
    color: var(--gold-strong);
    font-size: 36px;
}

.purchase-panel .amount-step {
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 32px;
    box-shadow: none;
}

.purchase-panel .quick-amounts button {
    min-height: 42px;
    border-color: rgba(255, 255, 255, .28);
    background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .12));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 8px 18px rgba(0, 0, 0, .16);
}

.purchase-panel .quick-amounts button.is-selected {
    background: linear-gradient(135deg, rgba(255, 230, 156, .44), rgba(255, 255, 255, .14));
    color: var(--gold-strong);
}

.purchase-panel .rate-card {
    border-color: rgba(230, 194, 122, .3);
}

.page-product .bottom-bar {
    background:
        linear-gradient(180deg, rgba(8, 30, 54, .92), rgba(3, 16, 31, .98));
}

.page-product .primary-action {
    color: #0b0f19;
    background: linear-gradient(135deg, #fff0aa 0%, #d9a537 52%, #ffd86a 100%);
    box-shadow: 0 12px 34px rgba(255, 211, 97, .42);
}

@media (max-width: 370px) {
    .brand-head h1 {
        font-size: 20px;
    }

    .game-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .trade-choice {
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 15px;
    }

    .trade-choice span {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .game-card span {
        grid-column: 2;
    }

    .game-icon.small {
        width: 60px;
        height: 60px;
    }

    .amount-row {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .bottom-bar {
        gap: 8px;
        padding-inline: 10px;
    }

    .brand-head {
        flex-wrap: wrap;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .primary-action,
    .secondary-action {
        font-size: 14px;
    }

    .checkout-card {
        grid-template-columns: 28px 54px minmax(0, 1fr);
        gap: 10px;
    }

    .confirm-modal {
        width: calc(100% - 18px);
        margin: 9px;
        border-radius: 20px;
        padding: 20px 0 18px;
    }

    .confirm-modal h2 {
        margin-inline: 18px;
        font-size: 20px;
    }

    .confirm-modal label {
        margin-inline: 12px;
        font-size: 12px;
    }

    .confirm-modal .primary-action {
        width: calc(100% - 24px);
        margin-inline: 12px;
    }

    .mode-grid {
        grid-template-columns: 1fr;
    }

    .converter-field input {
        font-size: 20px;
    }
}

@media (max-width: 759px) {
    .payment-sheet {
        width: 100vw;
        max-width: 100vw;
        padding-top: 22px;
    }

    .payment-sheet h2,
    .confirm-modal h2 {
        margin-inline: 40px;
        font-size: 20px;
    }

    .pay-option {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        min-height: 72px;
        padding: 12px 16px;
    }

    .pay-option.is-selected {
        margin-inline: 10px;
        padding-inline: 12px;
    }

    .pay-logo {
        width: 44px;
        height: 44px;
    }

    .radio-mark {
        display: none;
    }

    .confirm-modal {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin-inline: 16px;
    }

    .confirm-modal form {
        min-width: 0;
    }

    .confirm-modal label {
        grid-template-columns: 22px minmax(0, 1fr);
        margin-inline: 16px;
    }
}

@media (min-width: 760px) {
    body {
        background:
            radial-gradient(circle at 50% -16%, rgba(255, 225, 148, .24), transparent 36rem),
            radial-gradient(circle at 86% 20%, rgba(54, 139, 235, .22), transparent 28rem),
            linear-gradient(180deg, #0c2a4a 0%, #071c33 48%, #02101f 100%);
    }

    .app-shell {
        display: grid;
        min-height: 100vh;
        grid-template-rows: auto 1fr auto;
    }

    .brand-head {
        padding: 18px clamp(34px, 6vw, 96px);
    }

    .brand-logo {
        width: 74px;
        height: 60px;
    }

    .brand-head h1 {
        font-size: 34px;
    }

    .page-catalog .screen-catalog {
        display: grid;
        grid-template-columns: minmax(280px, 34vw) minmax(0, 1fr);
        min-height: calc(100vh - 96px);
    }

    .section-band {
        min-height: auto;
        align-content: center;
        border-right: 1px solid var(--line);
        background: rgba(230, 194, 122, .08);
        font-size: 42px;
    }

    .content-pad {
        align-self: start;
        padding: 54px clamp(34px, 5vw, 86px);
    }

    .content-pad h2 {
        font-size: 32px;
    }

    .game-list {
        max-width: 940px;
    }

    .trade-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 940px;
    }

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

    .game-card {
        min-height: 118px;
        padding: 18px 22px;
    }

    .game-card h3 {
        font-size: 24px;
    }

    .page-product .screen-product {
        display: block;
        padding: 44px clamp(34px, 6vw, 96px);
    }

    .product-stage {
        width: min(1120px, 100%);
        grid-template-columns: minmax(320px, .86fr) minmax(380px, 1fr);
        align-items: stretch;
        gap: clamp(24px, 4vw, 48px);
        padding: 0;
    }

    .product-showcase {
        min-height: 590px;
        align-content: center;
        padding: 38px;
    }

    .purchase-panel {
        align-self: center;
        padding: 26px;
    }

    .product-showcase h2 {
        font-size: 44px;
    }

    .casino-seal {
        width: 92px;
        height: 92px;
    }

    .featured-game {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .featured-game .game-icon.large {
        width: 96px;
        height: 96px;
        font-size: 40px;
    }

    .mini-game-row .game-icon.small {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }

    .bottom-bar {
        position: static;
        grid-template-columns: 100px minmax(180px, 250px) minmax(180px, 250px);
        justify-content: end;
        padding: 16px clamp(34px, 6vw, 96px);
    }

    .member-grid {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    }

    .page-checkout .screen-checkout,
    .page-complete .screen-complete {
        width: min(960px, calc(100% - 48px));
        margin: 0 auto;
        padding-bottom: 28px;
    }

    .payment-header,
    .checkout-scroll,
    .payment-code,
    .order-table,
    .notice-box {
        width: 100%;
        max-width: none;
    }

    .checkout-scroll {
        padding-bottom: 30px;
    }

    .checkout-actions {
        grid-template-columns: minmax(220px, 360px);
        justify-content: center;
        background: transparent;
        border-top: 0;
        box-shadow: none;
    }

    .payment-select {
        grid-template-columns: auto minmax(0, 1fr) 22px;
    }

    .payment-select strong {
        text-align: right;
    }

    .sheet-backdrop {
        place-items: center;
        align-items: center;
    }

    .payment-sheet {
        max-width: 680px;
        border-radius: 26px;
    }

    .confirm-modal {
        border-radius: 24px;
    }
}
