:root {
    --bg: #060a13;
    --card: rgba(9, 20, 35, 0.72);
    --line: rgba(184, 224, 248, 0.13);
    --text: rgba(255, 255, 255, 0.94);
    --muted: rgba(229, 237, 247, 0.76);
    --gold: #62d7ff;
    --price: #8ee7ff;
    --danger: #ff405d;
    --app-top: calc(56px + env(safe-area-inset-top, 0px));
    --display: "Inter Tight", "Manrope", sans-serif;
    --sans: "Manrope", "Segoe UI", sans-serif;
    --btn: linear-gradient(108deg, rgba(218, 27, 57, 0.92) 0%, rgba(239, 46, 73, 0.88) 68%, rgba(49, 159, 213, 0.72) 100%);
}
* { box-sizing: border-box; }
html, body { overscroll-behavior: none; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--sans);
    background-color: var(--bg);
    background-image:
        radial-gradient(760px circle at 8% 0%, rgba(255, 35, 70, 0.16), transparent 58%),
        radial-gradient(820px circle at 100% 8%, rgba(50, 186, 255, 0.18), transparent 56%),
        linear-gradient(180deg, #08111f, #060b16 48%, #050812);
}
button, input { font: inherit; }
button { border: 0; padding: 0; cursor: pointer; color: inherit; background: none; appearance: none; -webkit-appearance: none; }
.wrap {
    width: min(460px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: var(--app-top) 18px calc(32px + env(safe-area-inset-bottom));
}
main { flex: 1; }
body.focus-screen .region-switch,
body.focus-screen .links,
body.focus-screen .search,
body.focus-screen .footer,
body.focus-screen .admin-link,
body.pick-screen header,
body.pick-screen .region-switch,
body.pick-screen .links,
body.pick-screen .search,
body.pick-screen .footer,
body.pick-screen .admin-link {
    display: none;
}
.footer {
    margin-top: 36px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.16em;
}
.footer a { color: var(--price); font-weight: 800; text-decoration: none; }
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: none;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(160deg, #163044, #0b1524);
    box-shadow: 0 0 0 1px rgba(98, 215, 255, 0.4), 0 10px 24px rgba(50, 186, 255, 0.18);
    color: var(--price);
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo:has(img) {
    width: auto;
    height: auto;
    padding: 5px 8px 4px;
    border-radius: 16px;
    background: #ececec;
    box-shadow: none;
}
.logo:has(img) img {
    width: auto;
    height: 68px;
    object-fit: contain;
}
.brand:has(.logo img) h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
h1 {
    margin: 0;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}
.links {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.links a {
    min-width: 0;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 12px 8px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.region-switch {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    text-align: left;
}
.region-switch[hidden] { display: none; }
.region-switch .flag { width: 28px; height: 20px; border-radius: 4px; }
.region-switch-name { font-weight: 800; font-size: 14px; }
.region-switch-edit { margin-left: auto; color: var(--price); font-size: 12px; font-weight: 800; }
.pick {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 6px;
}
.pick-head { text-align: center; }
.pick-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.pick-head p {
    margin: 8px auto 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}
.region-list { display: grid; gap: 12px; }
.region-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border-radius: 22px;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}
.region-copy { display: grid; gap: 4px; min-width: 0; }
.region-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.region-card strong {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.region-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}
.hit {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--btn);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}
.flag {
    display: block;
    width: 46px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    flex: none;
}
.flag svg { display: block; width: 100%; height: 100%; }
.pick-back {
    display: block;
    margin: 4px auto 0;
    color: var(--price);
    font-weight: 800;
}
.pick-empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
.account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--line);
}
.account-copy { display: grid; gap: 4px; min-width: 0; }
.account-copy strong {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 800;
}
.account-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.account-card .price { font-size: 16px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.head-actions .cart-btn { color: inherit; text-decoration: none; }
.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.cart-btn.active { background: var(--btn); color: #fff; border-color: transparent; }
.cart-btn svg { width: 22px; height: 22px; display: block; flex: none; }
.head-actions a.admin-link { display: none; }
body.is-admin .head-actions a.admin-link { display: grid; }
body.focus-screen .head-actions a.admin-link { display: none; }
.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.search { display: flex; align-items: center; gap: 8px; }
.search input {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-radius: 999px;
    padding: 14px 18px;
    outline: none;
}
.search input:focus { border-color: rgba(98, 215, 255, 0.7); }
.done { flex: none; color: var(--price); font-weight: 800; padding: 8px 4px; }
.section { margin-top: 28px; }
.section-head {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
}
.section-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.rail, .results { background: none; border: 0; }
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto;
    grid-auto-columns: 153px;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #62d7ff #1a3148;
    margin: 0 -2px;
    padding: 2px 2px 10px;
    scroll-padding-inline: 2px;
}
.rail.rows-2 { grid-template-rows: auto auto; }
@media (hover: hover) and (pointer: fine) {
    .rail .tile { cursor: grab; }
    .rail .add, .rail .note { cursor: pointer; }
}
.rail.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.dragging .tile { cursor: grabbing; }
.rail::-webkit-scrollbar { -webkit-appearance: none; height: 8px; }
.rail::-webkit-scrollbar-track {
    background: #1a3148;
    border-radius: 999px;
}
.rail::-webkit-scrollbar-thumb {
    background: #62d7ff;
    border-radius: 999px;
}
.results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}
.tile {
    scroll-snap-align: start;
    min-width: 0;
    cursor: pointer;
    content-visibility: auto;
    contain-intrinsic-size: 153px 242px;
}
.plats {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    gap: 4px;
}
.plats span {
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(6, 12, 22, 0.82);
    color: var(--price);
    border: 1px solid rgba(98, 215, 255, 0.35);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}
.art {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #0c1524;
    aspect-ratio: 3 / 4;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}
.art img, .art .missing { width: 100%; height: 100%; object-fit: cover; display: block; }
.release {
    position: absolute;
    left: 8px;
    bottom: 46px;
    z-index: 2;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(6, 12, 22, 0.86);
    color: #fff;
    border: 1px solid rgba(98, 215, 255, 0.45);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
.discount {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 64, 93, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 190, 200, 0.45);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}
.art .missing {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
}
.buy {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px;
    border-radius: 999px;
    background: rgba(6, 12, 22, 0.78);
    backdrop-filter: blur(10px);
}
.note {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px rgba(255, 64, 93, 0.35);
    cursor: pointer;
}
.add {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-left: auto;
    padding: 0;
    border-radius: 999px;
    background: var(--btn);
    color: #fff;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add svg { width: 16px; height: 16px; display: block; flex: none; }
.add.in { background: rgba(255, 255, 255, 0.16); color: white; }
.when {
    margin: 4px 2px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}
.tile h3 {
    margin: 10px 2px 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    height: 2.5em;
    overflow: hidden;
}
.price {
    color: var(--price);
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
}
.buy .price {
    min-width: 0;
    white-space: nowrap;
}
.buy:has(.note) { gap: 4px; padding: 4px; }
.buy:has(.note) .note,
.buy:has(.note) .add {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
}
.buy:has(.note) .price { font-size: 11px; }
.tile.plain {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    padding: 16px 14px 14px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(9, 20, 35, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    contain-intrinsic-size: 153px 185px;
}
.tile.plain h3 {
    margin: 0;
    height: auto;
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: -0.03em;
}
.tile.plain .buy {
    position: static;
    margin-top: 16px;
    padding: 0;
    background: none;
    backdrop-filter: none;
}
.tile.plain .price { font-size: 15px; }
.cart-list { display: grid; gap: 10px; margin-top: 8px; }
.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.cart-item img, .cart-item .missing {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    background: #0c1524;
}
.cart-item .missing { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.cart-item h3 { margin: 0 0 4px; font-size: 13px; line-height: 1.3; height: auto; }
.remove { color: var(--muted); font-size: 13px; padding: 8px; }
.bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 13px;
}
.linkish { color: var(--price); font-weight: 800; }
.total, .pay, .panel { border-radius: 22px; }
.total {
    margin-top: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    background: rgba(98, 215, 255, 0.08);
    border: 1px solid rgba(98, 215, 255, 0.22);
    font-weight: 800;
}
a.pay {
    display: block;
    text-align: center;
    text-decoration: none;
}
.pay {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 999px;
    border: 1px solid rgba(255, 190, 200, 0.42);
    background: var(--btn);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(212, 31, 60, 0.22);
}
.pay:disabled { opacity: 0.55; }
.panel {
    text-align: center;
    padding: 36px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.panel h2 { margin: 0 0 8px; font-family: var(--display); }
.muted { color: var(--muted); font-size: 14px; }
.err { color: var(--danger); }
.ghost, .back {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
}
.more {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--price);
    font-weight: 800;
    background: rgba(98, 215, 255, 0.1);
}
.back { width: 100%; color: var(--text); }
.plans { display: grid; gap: 10px; }
.plan {
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
}
.plan-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}
.plan-cover {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    background: #0c1524;
}
.plan-copy { display: grid; gap: 4px; min-width: 0; }
.plan strong { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; }
.plan span { color: var(--muted); font-size: 12px; }
.periods { display: grid; gap: 8px; margin-top: 12px; }
.period {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
}
.period-info { display: grid; gap: 2px; }
.period .price { font-size: 14px; }
.period .buy, .cart-item .buy { position: static; padding: 0; background: none; backdrop-filter: none; }
.note-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-items: end;
    justify-content: center;
    padding: 18px;
}
.note-sheet[hidden] { display: none; }
.note-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.66);
}
.note-card {
    position: relative;
    width: min(460px, 100%);
    padding: 18px 18px 20px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 64, 93, 0.16), transparent 28%),
        #0c1524;
    border: 1px solid rgba(255, 64, 93, 0.38);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.note-top { display: flex; align-items: flex-start; gap: 10px; }
.note-mark {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--danger);
    color: white;
    font-family: var(--display);
    font-weight: 700;
}
.note-card h2 {
    flex: 1;
    margin: 0;
    font-family: var(--display);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}
.note-close {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.note-card p {
    margin: 14px 0 0;
    white-space: pre-wrap;
    line-height: 1.45;
    color: var(--text);
}
.game-back {
    margin: 0 0 16px;
    padding: 0;
    color: var(--price);
    font-weight: 800;
}
.game-hero {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    align-items: end;
}
.game-hero .art {
    width: 118px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}
.game-copy { min-width: 0; }
.game-copy h2 {
    margin: 10px 0 0;
    font-family: var(--display);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(98, 215, 255, 0.12);
    color: var(--price);
    border: 1px solid rgba(98, 215, 255, 0.28);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}
.langs { display: grid; gap: 8px; margin-top: 16px; }
.lang {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.lang strong { font-family: var(--display); font-size: 13px; }
.lang-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
}
.lang-line span { color: var(--muted); }
.lang-line b { font-weight: 800; }
.game-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 64, 93, 0.1);
    border: 1px solid rgba(255, 64, 93, 0.35);
}
.game-note p { margin: 2px 0 0; white-space: pre-wrap; line-height: 1.4; }
.offers { display: grid; gap: 8px; }
.offer {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.offer-art {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #0c1524;
}
.offer-art img, .offer-art .missing { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-art .missing { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.offer-info { min-width: 0; }
.offer-info h3 { margin: 0; font-size: 13px; line-height: 1.3; }
.offer-note {
    margin-top: 6px;
    color: var(--price);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}
.offer-note.sale-note { color: #ffb0c0; }
.offer-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
}
.sale {
    color: #ff6578;
    font-family: var(--display);
    font-size: 11px;
    font-weight: 700;
}
.old {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: line-through;
}
