/* Shop-Checkout (Coins kaufen) — 3-Schritt-Layout.
   Tokens oben sind bewusst generisch gehalten, damit weitere Mobile-Payment-Seiten
   sie spaeter uebernehmen koennen. */

:root {
    --shop-bg: #0e1014;
    --shop-surface: #171a21;
    --shop-surface-2: #1e222b;
    --shop-surface-3: #262b36;
    --shop-line: #2c323f;
    --shop-line-strong: #3a4252;
    --shop-text: #f3f5f9;
    --shop-muted: #98a1b3;
    --shop-brand: #2f8bff;
    --shop-brand-dim: #12283f;
    --shop-success: #35c77b;
    --shop-success-dim: #10301f;
    --shop-danger: #ff5f5f;
    --shop-danger-dim: #34191b;
    --shop-radius: 14px;
    --shop-radius-sm: 10px;
}

[x-cloak] { display: none !important; }

body.shop-page { background: var(--shop-bg); color: var(--shop-text); }
body.shop-page .container { max-width: 460px; padding: 0 15px; }
body.shop-page .footer { background: var(--shop-bg); border-top-color: var(--shop-line); }

/* ---------- Kopf mit Stepper ---------- */
.shop-head {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -15px;
    padding: 14px 15px 0;
    background: rgba(14, 16, 20, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--shop-line);
}
.shop-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.shop-head-copy { min-width: 0; flex: 1; }
.shop-title { font-size: 1.05rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.shop-location {
    font-size: .8rem;
    color: var(--shop-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-top: 2px;
}
.shop-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-code-hint {
    display: inline-block;
    margin-top: 5px;
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .01em;
    color: var(--shop-success);
    background: var(--shop-success-dim);
    border: 1px solid rgba(53, 199, 123, .35);
    border-radius: 99px;
    padding: 2px 8px;
    line-height: 1.3;
}
.shop-logo {
    flex: none;
    height: 48px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
    pointer-events: none;
    user-select: none;
}

.stepper { display: flex; align-items: flex-start; padding-bottom: 12px; }
.stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    background: none;
    border: 0;
    padding: 0;
    cursor: default;
    color: inherit;
}
.stepper-item.clickable { cursor: pointer; }
.stepper-item::before,
.stepper-item::after {
    content: '';
    position: absolute;
    top: 13px;
    height: 2px;
    background: var(--shop-line-strong);
    width: calc(50% - 14px);
}
.stepper-item::before { left: 0; }
.stepper-item::after { right: 0; }
.stepper-item:first-child::before,
.stepper-item:last-child::after { display: none; }
.stepper-item.done::before,
.stepper-item.done::after,
.stepper-item.active::before { background: var(--shop-brand); }

.stepper-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 700;
    background: var(--shop-surface-2);
    border: 2px solid var(--shop-line-strong);
    color: var(--shop-muted);
    position: relative;
    z-index: 1;
    transition: all .18s ease;
}
.stepper-item.active .stepper-dot {
    background: var(--shop-brand);
    border-color: var(--shop-brand);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(47, 139, 255, .16);
}
.stepper-item.done .stepper-dot {
    background: var(--shop-brand-dim);
    border-color: var(--shop-brand);
    color: var(--shop-brand);
}
.stepper-label { font-size: .72rem; color: var(--shop-muted); }
.stepper-item.active .stepper-label { color: var(--shop-text); font-weight: 600; }
.stepper-item.done .stepper-label { color: #b9c2d2; }

/* ---------- Schritt-Karten ---------- */
.shop-steps { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 20px; }

.step {
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    overflow: hidden;
}
.step.is-active { border-color: var(--shop-line-strong); box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
.step.is-todo { opacity: .5; }

.step-head {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 14px 15px;
    background: none;
    border: 0;
    color: inherit;
    text-align: left;
}
.step-head.clickable { cursor: pointer; }
.step-num {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 700;
    background: var(--shop-surface-3);
    color: var(--shop-muted);
}
.step.is-active .step-num { background: var(--shop-brand); color: #fff; }
.step.is-done .step-num { background: var(--shop-success-dim); color: var(--shop-success); }
.step-titles { flex: 1; min-width: 0; }
.step-title { display: block; font-size: .95rem; font-weight: 600; }
.step-summary {
    display: block;
    font-size: .82rem;
    color: var(--shop-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.step-edit { flex: none; font-size: .8rem; color: var(--shop-brand); font-weight: 600; }

.step-body { padding: 0 15px 16px; }
.step-hint { font-size: .82rem; color: var(--shop-muted); margin: -4px 0 12px; }

/* ---------- Paket-Kacheln ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-tile {
    position: relative;
    display: block;
    width: 100%;
    background: var(--shop-surface-2);
    border: 1.5px solid var(--shop-line);
    border-radius: var(--shop-radius-sm);
    padding: 14px 10px 12px;
    text-align: center;
    cursor: pointer;
    color: inherit;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.product-tile:active { transform: scale(.985); }
.product-tile.selected { border-color: var(--shop-brand); background: #16202e; }
.tile-coins { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.tile-unit { display: block; font-size: .78rem; color: var(--shop-muted); margin-top: 1px; }
.tile-price { display: block; margin-top: 8px; font-size: 1.02rem; font-weight: 700; color: var(--shop-brand); }
.tile-price.is-sale { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tile-price-old {
    font-size: .74rem;
    font-weight: 500;
    color: var(--shop-muted);
    text-decoration: line-through;
}
.tile-price-now { color: var(--shop-brand); }
.product-tile.selected .tile-price { color: #6fb0ff; }
.product-tile.selected .tile-price-now { color: #6fb0ff; }
.tile-name { display: block; font-size: .76rem; color: var(--shop-muted); margin-top: 3px; }
.tile-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--shop-success-dim);
    color: var(--shop-success);
    border: 1px solid rgba(53, 199, 123, .35);
    border-radius: 99px;
    font-size: .66rem;
    font-weight: 700;
    padding: 2px 8px;
    white-space: nowrap;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tile-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--shop-brand);
    display: grid;
    place-items: center;
}
.product-desc {
    margin: 12px 0 0;
    background: var(--shop-surface-2);
    border-radius: var(--shop-radius-sm);
    padding: 10px 12px;
    font-size: .84rem;
    color: #c3cad8;
    line-height: 1.45;
}

/* ---------- Auswahl-Zeilen (Ausgabeart, Automat) ---------- */
.opt-list { display: flex; flex-direction: column; gap: 9px; }
.opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--shop-surface-2);
    border: 1.5px solid var(--shop-line);
    border-radius: var(--shop-radius-sm);
    padding: 12px 13px;
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: border-color .15s ease, background .15s ease;
}
.opt.selected { border-color: var(--shop-brand); background: #16202e; }
.opt-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--shop-surface-3);
    display: grid;
    place-items: center;
    color: var(--shop-muted);
}
.opt.selected .opt-icon { background: var(--shop-brand-dim); color: #6fb0ff; }
.opt-text { flex: 1; min-width: 0; }
.opt-title { display: block; font-size: .9rem; font-weight: 600; }
.opt-sub { display: block; font-size: .78rem; color: var(--shop-muted); margin-top: 1px; line-height: 1.35; }
.opt-radio {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--shop-line-strong);
    display: grid;
    place-items: center;
}
.opt.selected .opt-radio { border-color: var(--shop-brand); }
.opt.selected .opt-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--shop-brand);
}

/* ---------- Formularfelder ---------- */
.field-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--shop-line);
}
.shop-field { margin-bottom: 12px; }
.shop-field:last-child { margin-bottom: 0; }
.field-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #c3cad8;
    margin-bottom: 6px;
}
.opt-tag { font-weight: 400; color: var(--shop-muted); }
.shop-field input, .shop-field textarea {
    width: 100%;
    background: var(--shop-surface-2);
    color: var(--shop-text);
    border: 1.5px solid var(--shop-line);
    border-radius: var(--shop-radius-sm);
    padding: 12px 13px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s ease;
}
.shop-field input:focus, .shop-field textarea:focus { border-color: var(--shop-brand); }
.shop-field input::placeholder, .shop-field textarea::placeholder { color: #5f6879; }
.shop-field input[type="datetime-local"] { color-scheme: dark; }
.shop-field textarea { resize: vertical; min-height: 66px; }
.shop-field.has-error input { border-color: var(--shop-danger); }
.field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .78rem;
    color: var(--shop-danger);
    margin-top: 6px;
}
.field-error svg { flex: none; margin-top: 2px; }

.shop-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .86rem;
    color: #c3cad8;
    line-height: 1.4;
    margin: 0;
    padding: 2px 1px;
}
.shop-check input {
    flex: none;
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--shop-brand);
}
.check-sub { display: block; font-size: .76rem; color: var(--shop-muted); margin-top: 2px; }
.receipt-field { margin-top: 9px; }
.link-btn {
    background: none;
    border: 0;
    padding: 0 0 0 4px;
    color: var(--shop-brand);
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Zusammenfassung und Zahlung ---------- */
.shop-summary {
    background: var(--shop-surface-2);
    border-radius: var(--shop-radius-sm);
    padding: 4px 13px;
    margin-bottom: 14px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: .87rem;
    border-bottom: 1px solid var(--shop-line);
}
.summary-row:last-child { border-bottom: 0; }
.summary-key { color: var(--shop-muted); flex: none; }
.summary-val { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.summary-row.total { font-size: 1.05rem; }
.summary-row.total .summary-val { color: var(--shop-brand); font-size: 1.25rem; font-weight: 700; }

.pay-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--shop-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 16px 0 10px;
}
.pay-label::after { content: ''; flex: 1; height: 1px; background: var(--shop-line); }

.pay-instant {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--shop-success-dim);
    border: 1px solid rgba(53, 199, 123, .4);
    color: var(--shop-success);
    border-radius: var(--shop-radius-sm);
    padding: 10px 12px;
    margin: 0 0 12px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
    text-align: center;
}
.pay-instant svg { flex: none; }

.payment-container { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.payment-button { width: 100%; }
.btn-free {
    width: 100%;
    height: 50px;
    background: var(--shop-brand);
    color: #fff;
    border: 0;
    border-radius: var(--shop-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-free:disabled { opacity: .6; cursor: default; }
#google-pay-button-container { height: 50px; }
#google-pay-button-container > div { width: 100%; height: 100%; }
.apple-pay-button {
    display: inline-block;
    -webkit-appearance: -apple-pay-button;
    -webkit-apple-pay-button-type: plain;
    -webkit-apple-pay-button-style: white;
    width: 100%;
    height: 50px;
    border-radius: var(--shop-radius-sm);
}
.pay-note {
    font-size: .76rem;
    color: var(--shop-muted);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
}
.pay-note a { color: var(--shop-muted); }

.shop-notice {
    background: var(--shop-danger-dim);
    border: 1px solid rgba(255, 95, 95, .3);
    color: #ffb3b3;
    border-radius: var(--shop-radius-sm);
    padding: 11px 12px;
    font-size: .82rem;
    line-height: 1.4;
    margin-top: 12px;
}
.shop-notice.info {
    background: #16202e;
    border-color: rgba(47, 139, 255, .3);
    color: #a9cbff;
}

/* ---------- Sticky Fussleiste ---------- */
.shop-paybar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 0 -15px;
    padding: 11px 15px calc(11px + env(safe-area-inset-bottom));
    background: rgba(14, 16, 20, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--shop-line);
    display: flex;
    align-items: center;
    gap: 12px;
}
.paybar-sum { flex: 1; min-width: 0; }
.paybar-key { font-size: .72rem; color: var(--shop-muted); }
.paybar-val { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.paybar-sub {
    font-size: .74rem;
    color: var(--shop-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-next {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--shop-brand);
    color: #fff;
    border: 0;
    border-radius: var(--shop-radius-sm);
    padding: 0 22px;
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-next.locked { background: var(--shop-surface-3); color: #6f7889; }

/* ---------- Standortauswahl (Einstieg ohne location) ---------- */
.shop-head-plain { padding-bottom: 14px; }

.loc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 0;
}
.loc-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--shop-radius);
    border: 1px solid var(--shop-line);
    background: var(--shop-surface);
    text-decoration: none;
    color: var(--shop-text);
    -webkit-tap-highlight-color: transparent;
}
.loc-card:active { transform: scale(.99); }
.loc-card:hover { border-color: var(--shop-line-strong); }
.loc-card-img {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
}
.loc-card-img.is-logo {
    object-fit: contain;
    object-position: center;
    background: var(--shop-surface-2);
    padding: 18px 56px;
}
.loc-card-body {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 40px 14px 12px;
    background: linear-gradient(to top, rgba(8, 10, 14, .94) 30%, rgba(8, 10, 14, 0));
}
.loc-card-text { flex: 1; min-width: 0; }
.loc-card-name {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.loc-card-addr {
    display: block;
    margin-top: 2px;
    font-size: .8rem;
    color: #c3cbd9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.loc-card-go {
    flex: none;
    color: var(--shop-brand);
    margin-bottom: 2px;
}

.loc-note {
    margin: 16px 0 0;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--shop-muted);
}
.loc-empty {
    margin-top: 16px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 20px 16px;
    color: var(--shop-muted);
    font-size: .9rem;
}

/* ---------- Spiel-Checkout ---------- */
.shop-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}
.help-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--shop-line);
    background: var(--shop-surface-2);
    color: var(--shop-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.help-btn:hover { color: var(--shop-text); border-color: var(--shop-line-strong); }

.machine-card {
    overflow: hidden;
    border-radius: var(--shop-radius-sm);
    background: var(--shop-surface-2);
    border: 1px solid var(--shop-line);
    margin-bottom: 14px;
}
.machine-art {
    height: 148px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(120% 80% at 50% 120%, rgba(47, 139, 255, .18), transparent 55%),
        linear-gradient(180deg, #1a2030 0%, #12151c 100%);
}
.machine-art-img {
    display: block;
    max-width: 100%;
    max-height: 148px;
    object-fit: contain;
}
.machine-meta {
    padding: 11px 13px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.machine-name { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.machine-unit { display: block; font-size: .78rem; color: var(--shop-muted); margin-top: 2px; }
.machine-price {
    flex: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop-brand);
    white-space: nowrap;
}

.qty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.qty {
    background: var(--shop-surface-2);
    border: 1.5px solid var(--shop-line);
    border-radius: var(--shop-radius-sm);
    padding: 14px 0 12px;
    text-align: center;
    cursor: pointer;
    color: inherit;
}
.qty:active { transform: scale(.97); }
.qty.selected { border-color: var(--shop-brand); background: #16202e; }
.qty-n { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.qty-u { display: block; font-size: .72rem; color: var(--shop-muted); margin-top: 2px; }
.qty.selected .qty-n { color: #6fb0ff; }

.shop-notice-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.shop-notice-row .notice-title { display: block; font-weight: 700; margin-bottom: 3px; }
.shop-notice.warn {
    background: #2f2610;
    border-color: rgba(232, 184, 74, .35);
    color: #f3d48a;
}

.shop-result {
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 28px 18px 22px;
    text-align: center;
}
.shop-result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}
.shop-result-icon.ok { background: var(--shop-success-dim); color: var(--shop-success); }
.shop-result-icon.bad { background: var(--shop-danger-dim); color: var(--shop-danger); }
.shop-result-icon.warn { background: #2f2610; color: #e8b84a; }
.shop-result h2 { font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -.01em; }
.shop-result p { color: var(--shop-muted); font-size: .9rem; line-height: 1.5; margin: 0 0 14px; }
.shop-result-meta { font-size: .78rem; color: #6b7383; margin: 0 0 8px; }
.shop-result .shop-notice { text-align: left; margin: 0 0 12px; }
.btn-shop, .btn-shop-ghost {
    display: block;
    width: 100%;
    height: 48px;
    border-radius: var(--shop-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    text-align: center;
    line-height: 48px;
}
.btn-shop { background: var(--shop-brand); color: #fff; border: 0; }
.btn-shop-ghost {
    background: var(--shop-surface-2);
    color: var(--shop-text);
    border: 1px solid var(--shop-line);
}

.sheet-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.sheet {
    width: 100%;
    max-width: 460px;
    max-height: 86vh;
    overflow: auto;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: 16px 16px 0 0;
    padding: 16px 16px 22px;
}
.sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sheet-top h3 { margin: 0; font-size: 1rem; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--shop-surface-2);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius-sm);
    padding: 11px 12px;
    text-align: left;
    color: inherit;
    width: 100%;
    cursor: pointer;
}
.faq-q { display: block; font-size: .86rem; font-weight: 650; }
.faq-a { display: block; font-size: .8rem; color: var(--shop-muted); margin-top: 6px; line-height: 1.45; }
.support-row { display: flex; gap: 8px; margin-top: 14px; }
.support-row a {
    flex: 1;
    height: 42px;
    border-radius: var(--shop-radius-sm);
    border: 1px solid var(--shop-line);
    background: var(--shop-surface-2);
    color: var(--shop-text);
    font-size: .8rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    text-decoration: none;
}

@media (max-width: 360px) {
    .tile-coins { font-size: 1.3rem; }
    .btn-next { padding: 0 16px; }
    .loc-card-img { height: 118px; }
    .qty-n { font-size: 1.15rem; }
    .machine-art { height: 128px; }
    .machine-art-img { max-height: 128px; }
}

/* ---------- Standort-Home & Spiele-Maske ---------- */
.shop-wallet-slot {
    flex: none;
    width: 36px;
    height: 36px;
}
.shop-back {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 99px;
    background: var(--shop-surface-2);
    border: 1px solid var(--shop-line-strong);
    color: var(--shop-text);
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 1rem;
}
.home-hero {
    border-radius: var(--shop-radius);
    overflow: hidden;
    border: 1px solid var(--shop-line);
    background:
        linear-gradient(160deg, rgba(47, 139, 255, .28), rgba(14, 16, 20, .1) 55%),
        radial-gradient(120% 90% at 85% 0%, #223154 0%, #171a21 60%);
    padding: 22px 18px 18px;
    margin-bottom: 16px;
}
.home-hero-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--shop-brand);
    background: var(--shop-brand-dim);
    border: 1px solid rgba(47, 139, 255, .4);
    border-radius: 99px;
    padding: 3px 9px;
    margin-bottom: 10px;
}
.home-hero h2 { margin: 0 0 4px; font-size: 1.45rem; letter-spacing: -.02em; }
.home-hero p { margin: 0; font-size: .85rem; color: var(--shop-muted); }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.home-action {
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: var(--shop-text);
    text-decoration: none;
    text-align: left;
}
.home-action.primary {
    background: linear-gradient(150deg, var(--shop-brand-dim), var(--shop-surface) 70%);
    border-color: rgba(47, 139, 255, .5);
}
.home-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    background: var(--shop-surface-3);
    border: 1px solid var(--shop-line-strong);
}
.home-action b { font-size: .95rem; }
.home-action span { font-size: .76rem; color: var(--shop-muted); line-height: 1.35; }
.home-section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--shop-muted);
    margin: 8px 0 8px;
}
.home-recents { display: flex; flex-direction: column; gap: 10px; }
.home-recent {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 10px 12px;
}
.home-recent-thumb {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--shop-radius-sm);
    background: var(--shop-surface-3);
    border: 1px solid var(--shop-line-strong);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}
.home-recent-copy { flex: 1; min-width: 0; }
.home-recent-copy b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-recent-copy span { font-size: .74rem; color: var(--shop-muted); }
.home-recent-cta {
    flex: none;
    background: var(--shop-brand);
    border: 0;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    border-radius: 99px;
    padding: 8px 14px;
    text-decoration: none;
}
.code-panel {
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 16px 14px 14px;
    text-align: center;
    margin-bottom: 16px;
}
.code-panel h3 { margin: 0 0 2px; font-size: .95rem; }
.code-panel p { margin: 0 0 12px; font-size: .76rem; color: var(--shop-muted); }
.code-boxes { display: flex; justify-content: center; gap: 8px; margin-bottom: 4px; }
.code-box {
    width: 52px;
    height: 64px;
    border-radius: var(--shop-radius-sm);
    background: var(--shop-surface-2);
    border: 2px solid var(--shop-line-strong);
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    font-weight: 800;
}
.code-box.active { border-color: var(--shop-brand); box-shadow: 0 0 0 3px rgba(47, 139, 255, .18); }
.code-box.empty { color: var(--shop-line-strong); }
.code-error { color: var(--shop-danger) !important; font-weight: 650; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.numpad button {
    background: var(--shop-surface-2);
    border: 1px solid var(--shop-line-strong);
    color: var(--shop-text);
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: var(--shop-radius-sm);
    padding: 12px 0;
    cursor: pointer;
}
.numpad button.ghost { background: none; border-color: transparent; color: var(--shop-muted); font-size: .95rem; }
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: 99px;
    padding: 9px 14px;
    margin-bottom: 12px;
}
.search-box input {
    flex: 1;
    background: none;
    border: 0;
    outline: 0;
    color: var(--shop-text);
    font-size: .88rem;
}
.search-box input::placeholder { color: var(--shop-muted); }
.game-list { display: flex; flex-direction: column; gap: 10px; }
.game-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 10px 12px;
    cursor: pointer;
    color: inherit;
    text-align: left;
    width: 100%;
}
.game-card.offline { opacity: .55; cursor: default; }
.game-thumb {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: var(--shop-radius-sm);
    background: var(--shop-surface-3);
    border: 1px solid var(--shop-line-strong);
    object-fit: cover;
}
.game-copy { flex: 1; min-width: 0; }
.game-copy b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.game-price { font-size: .78rem; font-weight: 700; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 99px;
    padding: 2px 8px;
    line-height: 1.4;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.badge.ok { color: var(--shop-success); background: var(--shop-success-dim); border: 1px solid rgba(53, 199, 123, .35); }
.badge.ok .dot { background: var(--shop-success); }
.badge.off { color: var(--shop-danger); background: var(--shop-danger-dim); border: 1px solid rgba(255, 95, 95, .35); }
.badge.off .dot { background: var(--shop-danger); }
.badge.group { color: #f5b23c; background: #33270f; border: 1px solid rgba(245, 178, 60, .35); }
.game-number {
    flex: none;
    min-width: 46px;
    text-align: center;
    background: var(--shop-surface-2);
    border: 1px dashed var(--shop-line-strong);
    border-radius: var(--shop-radius-sm);
    padding: 6px 8px;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--shop-muted);
}
.station-head {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 14px;
    margin-bottom: 16px;
}
.station-head .game-thumb { width: 64px; height: 64px; }
.station-head b { font-size: 1.02rem; }
.station-head p { margin: 3px 0 0; font-size: .78rem; color: var(--shop-muted); }
.station-num {
    display: inline-block;
    background: var(--shop-surface-2);
    border: 1px dashed var(--shop-line-strong);
    border-radius: 8px;
    padding: 2px 8px;
    font-weight: 800;
    font-size: .82rem;
    color: var(--shop-muted);
    margin-top: 5px;
}
.station-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.station-card {
    background: var(--shop-surface);
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--shop-text);
    text-decoration: none;
    text-align: center;
}
.station-card.offline { opacity: .55; }
.station-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--shop-brand-dim);
    border: 2px solid var(--shop-brand);
    color: var(--shop-brand);
}
.station-card.offline .station-icon {
    background: var(--shop-surface-3);
    border-color: var(--shop-line-strong);
    color: var(--shop-muted);
}
