:root {
    color-scheme: dark;
    --bg: #0b0e0f;
    --bg-raised: #111516;
    --panel: #171b1c;
    --panel-soft: #1d2223;
    --line: #303638;
    --line-soft: rgba(255, 255, 255, .08);
    --text: #f2f0eb;
    --muted: #9ca2a2;
    --orange: #d94b32;
    --orange-hover: #ed5b3f;
    --orange-deep: #8f2f20;
    --green: #8fbd42;
    --gold: #e3b85b;
    --content-width: 1480px;
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
    min-height: 92px;
    padding: 0 max(24px, calc((100vw - var(--content-width)) / 2));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    background: rgba(14, 17, 18, .98);
    border-bottom: 1px solid #252a2b;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.brand { display: flex; align-items: center; gap: 17px; text-decoration: none; padding-right: 54px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; background: var(--orange); box-shadow: 5px 5px 0 #26100c; transform: skew(-2deg); }
.brand-mark span { font-size: 24px; font-weight: 900; transform: skew(2deg); }
.brand-word { font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 1000; letter-spacing: -.07em; }

.main-navigation { display: flex; align-items: stretch; }
.main-navigation a { position: relative; display: flex; align-items: center; padding: 0 27px; text-decoration: none; color: #b1b5b4; font-size: .79rem; font-weight: 900; letter-spacing: .12em; }
.main-navigation a::after { content: ""; position: absolute; left: 27px; right: 27px; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transition: transform .18s ease; }
.main-navigation a:hover, .main-navigation a.active { color: #fff; background: rgba(255,255,255,.025); }
.main-navigation a:hover::after, .main-navigation a.active::after { transform: scaleX(1); }

.account-box { align-self: center; min-width: 206px; display: flex; align-items: center; gap: 13px; padding: 12px 16px; border-left: 2px solid var(--orange); background: #191d1e; text-decoration: none; }
.account-avatar { width: 36px; height: 36px; display: grid; place-items: center; background: #2d3334; color: var(--orange); font-weight: 1000; }
.account-box strong, .account-box small { display: block; }
.account-box strong { font-size: .78rem; letter-spacing: .08em; }
.account-box small { margin-top: 5px; color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.menu-toggle { display: none; }

.store-hero {
    min-height: 410px;
    padding: 70px max(24px, calc((100vw - var(--content-width)) / 2));
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    align-items: center;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(90deg, rgba(11,14,15,.98) 0%, rgba(11,14,15,.9) 48%, rgba(11,14,15,.35) 100%),
        repeating-linear-gradient(118deg, transparent 0 42px, rgba(255,255,255,.025) 43px 44px),
        radial-gradient(circle at 82% 50%, #552218 0, #1c1917 24%, #0b0e0f 64%);
    border-bottom: 1px solid #24292a;
}
.store-hero::before { content: ""; position: absolute; inset: 0; opacity: .2; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, black, transparent 72%); }
.hero-copy { position: relative; z-index: 1; }
.section-kicker { margin: 0 0 16px; color: #babfbd; font-size: .73rem; font-weight: 900; letter-spacing: .2em; }
.section-kicker span { display: inline-block; width: 31px; height: 3px; margin: 0 10px 3px 0; background: var(--orange); }
.store-hero h1 { margin: 0; font-size: clamp(3.4rem, 6.7vw, 7.7rem); line-height: .83; letter-spacing: -.065em; font-weight: 1000; }
.store-hero h1 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 660px; margin: 28px 0 0; color: #aeb3b2; font-size: 1.05rem; line-height: 1.7; }

.coin-emblem { width: min(360px, 31vw); aspect-ratio: 1; justify-self: center; position: relative; transform: rotate(-8deg); }
.coin-emblem-shadow { position: absolute; inset: 18%; background: #000; filter: blur(30px); opacity: .52; }
.coin-emblem-face { position: absolute; inset: 12%; display: grid; place-items: center; border-radius: 50%; color: #fff2cc; font-size: clamp(5rem, 10vw, 10rem); font-weight: 1000; background: radial-gradient(circle at 36% 31%, #f2d178 0 7%, #d9a83d 32%, #9f6d21 70%, #5d3b12 100%); border: clamp(9px, 1.4vw, 17px) solid #c19032; outline: 4px solid #6f4817; box-shadow: inset 0 0 0 5px #f0c75d, inset 15px -20px 28px rgba(74,39,6,.52), 14px 22px 38px rgba(0,0,0,.48); text-shadow: 6px 7px 0 #87561b; }
.coin-emblem-face::before, .coin-emblem-face::after { content: ""; position: absolute; inset: 8%; border: 2px dashed rgba(100,62,12,.65); border-radius: 50%; }
.coin-emblem-face::after { inset: 18%; border-style: solid; border-color: rgba(255,233,164,.36); }
.coin-spark { position: absolute; width: 11px; height: 11px; background: var(--orange); box-shadow: 0 0 20px var(--orange); transform: rotate(45deg); }
.spark-one { top: 12%; right: 7%; }.spark-two { left: 3%; bottom: 20%; width: 6px; height: 6px; }.spark-three { right: 1%; bottom: 7%; width: 5px; height: 5px; }

.store-content { padding: 68px max(24px, calc((100vw - var(--content-width)) / 2)) 80px; background: linear-gradient(180deg, #111516, #0c0f10); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 28px; }
.section-heading h2, .checkout-panel h2, .payment-strip h2, .history-hero h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.04em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.55; text-align: right; }
.purchase-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.coin-package { min-height: 316px; padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 0; background: linear-gradient(145deg, #1d2223, #15191a 72%); color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.coin-package::before { content: "R"; position: absolute; right: -6px; bottom: -36px; color: rgba(255,255,255,.025); font-size: 12rem; font-weight: 1000; line-height: 1; }
.coin-package:hover { transform: translateY(-3px); border-color: #5b6263; }
.coin-package.selected { border-color: var(--orange); background: linear-gradient(145deg, #242323, #191a1a 72%); box-shadow: inset 0 0 0 1px var(--orange), 0 16px 35px rgba(0,0,0,.2); }
.coin-package.featured { padding-top: 45px; }
.package-ribbon { position: absolute; top: 0; left: 0; right: 0; padding: 9px 24px; background: var(--orange); color: #fff; font-size: .64rem; font-weight: 1000; letter-spacing: .16em; }
.package-topline { display: flex; justify-content: space-between; color: #a8afae; font-size: .67rem; font-weight: 900; letter-spacing: .14em; }
.package-topline span:last-child { color: #666d6d; }
.package-coins { display: flex; align-items: flex-start; gap: 9px; margin-top: 28px; }
.package-coins strong { font-size: clamp(3.2rem, 5vw, 5.2rem); line-height: .8; letter-spacing: -.065em; }
.package-coins span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #b6802c; color: #251603; font-weight: 1000; }
.package-bonus { align-self: flex-start; margin-top: 19px; padding: 7px 10px; color: #cfe5a7; background: #354621; border-left: 3px solid var(--green); font-size: .69rem; font-weight: 900; letter-spacing: .08em; }
.package-bonus.no-bonus { color: #878e8d; background: #262b2c; border-color: #555d5d; }
.package-price { margin: auto 0 20px; display: flex; align-items: baseline; gap: 8px; }
.package-price strong { font-size: 1.75rem; }.package-price small { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.package-action { position: relative; z-index: 1; padding-top: 16px; display: flex; justify-content: space-between; border-top: 1px solid var(--line-soft); color: #aeb3b2; font-size: .67rem; font-weight: 900; letter-spacing: .13em; }
.coin-package.selected .package-action { color: #fff; }.coin-package.selected .package-action b { color: var(--orange); }

.checkout-panel { position: sticky; top: 118px; padding: 28px; background: #191d1e; border: 1px solid #3a4041; box-shadow: 0 25px 55px rgba(0,0,0,.25); }
.checkout-panel::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: var(--orange); }
.summary-lines { margin: 27px 0 0; }
.summary-lines div { padding: 14px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line-soft); }
.summary-lines dt { color: var(--muted); font-size: .75rem; }.summary-lines dd { margin: 0; font-size: .77rem; font-weight: 900; text-align: right; }
.summary-lines .bonus-line dd { color: var(--green); }
.summary-lines .bonus-line.muted dd { color: #7f8786; }
.summary-total, .summary-price { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.summary-total { padding: 22px 0; }.summary-price { padding: 17px 0 2px; border-top: 1px solid #4a5051; }
.summary-total span, .summary-price span { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .11em; }
.summary-total strong { color: var(--gold); font-size: 1.65rem; }.summary-price strong { font-size: 1.1rem; }
.checkout-button { width: 100%; margin-top: 25px; padding: 17px 18px; display: flex; justify-content: space-between; border: 0; border-radius: 0; background: var(--orange); color: white; font-size: .72rem; font-weight: 1000; letter-spacing: .13em; cursor: pointer; transition: background .18s, transform .18s; }
.checkout-button:hover { background: var(--orange-hover); transform: translateY(-1px); }.checkout-button:disabled { opacity: .58; cursor: wait; transform: none; }
.store-message { min-height: 0; margin-top: 14px; color: #f3a58e; font-size: .78rem; line-height: 1.45; }
.store-message:empty { display: none; }.store-message.success { color: #a4cf70; }
.secure-note { margin: 19px 0 0; color: #7f8786; font-size: .69rem; line-height: 1.45; }.secure-note span { margin-right: 6px; color: var(--green); }

.payment-strip { padding: 50px max(24px, calc((100vw - var(--content-width)) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 24px 60px; align-items: center; border-top: 1px solid #2a2f30; border-bottom: 1px solid #2a2f30; background: #15191a; }
.payment-methods { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.payment-methods span { min-height: 54px; padding: 0 22px; display: flex; align-items: center; gap: 10px; background: #202526; border: 1px solid #383e3f; color: #d6d8d7; font-size: .77rem; font-weight: 900; letter-spacing: .08em; }
.payment-methods .blik { color: #fff; font-size: 1rem; letter-spacing: -.03em; }.payment-methods b { color: var(--orange); }
.payment-strip > p { grid-column: 1 / -1; margin: 0; color: #7f8786; font-size: .75rem; }
.site-footer { min-height: 86px; padding: 0 max(24px, calc((100vw - var(--content-width)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #666d6c; font-size: .65rem; font-weight: 800; letter-spacing: .13em; }

.history-main { min-height: calc(100vh - 178px); background: linear-gradient(145deg, #111516, #0b0e0f 65%); }
.history-hero { padding: 70px max(24px, calc((100vw - var(--content-width)) / 2)) 48px; display: flex; justify-content: space-between; align-items: end; gap: 30px; border-bottom: 1px solid #262b2c; }
.history-hero p:last-child { margin: 18px 0 0; color: var(--muted); }
.primary-link { min-width: 220px; padding: 16px 18px; display: inline-flex; justify-content: space-between; align-items: center; background: var(--orange); color: #fff; text-decoration: none; font-size: .72rem; font-weight: 1000; letter-spacing: .12em; }
.primary-link:hover { background: var(--orange-hover); }
.history-panel { margin: 0 auto; width: min(var(--content-width), calc(100% - 48px)); padding: 46px 0 80px; }
.history-panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 22px; }
.history-panel-heading h2 { margin: 0; font-size: clamp(1.7rem, 2.5vw, 2.6rem); }
.secondary-button { padding: 13px 17px; border: 1px solid #454b4c; background: #1b2021; color: #c4c8c7; font-size: .68rem; font-weight: 900; letter-spacing: .11em; cursor: pointer; }
.secondary-button:hover { border-color: var(--orange); color: #fff; }
.history-state, .history-empty { padding: 60px 28px; background: #171b1c; border: 1px solid #303637; color: var(--muted); text-align: center; }
.history-state { font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.empty-mark { width: 66px; height: 66px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: #b6802c; border: 5px solid #654517; color: #281803; font-size: 2rem; font-weight: 1000; }
.history-empty h3 { margin: 0; color: var(--text); font-size: 1.5rem; }.history-empty p { margin: 12px auto 25px; max-width: 520px; line-height: 1.6; }.history-empty .primary-link { min-width: 250px; }
.orders-table-wrap { overflow-x: auto; border: 1px solid #33393a; }
.orders-table { width: 100%; min-width: 860px; border-collapse: collapse; background: #171b1c; }
.orders-table th, .orders-table td { padding: 18px 19px; border-bottom: 1px solid #2b3031; text-align: left; }
.orders-table th { color: #777f7e; background: #111516; font-size: .64rem; letter-spacing: .14em; }
.orders-table td { color: #cbd0ce; font-size: .78rem; }.orders-table td:first-child { color: #7f8786; font-family: ui-monospace, monospace; font-size: .7rem; }.orders-table td:nth-child(3) { color: var(--gold); font-weight: 900; }
.order-status { display: inline-block; padding: 6px 9px; border-left: 3px solid #777; background: #282d2e; font-size: .62rem; font-weight: 1000; letter-spacing: .1em; }.order-status.paid { border-color: var(--green); color: #b8d98c; background: #29351e; }.order-status.pending { border-color: var(--gold); color: #e8c979; }.order-status.failed, .order-status.cancelled { border-color: var(--orange); color: #ef9c87; }.order-status.refunded { border-color: #5d9bbe; color: #a6d1e8; }

.login-page { background: #0a0d0e; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.15fr) minmax(440px, .85fr); }
.login-art { min-height: 100vh; padding: 48px max(42px, calc((100vw - var(--content-width)) / 2)); position: relative; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(90deg, rgba(11,14,15,.92), rgba(11,14,15,.35)), repeating-linear-gradient(118deg, transparent 0 48px, rgba(255,255,255,.025) 49px 50px), radial-gradient(circle at 75% 60%, #652319, #221714 30%, #0b0e0f 70%); }
.login-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 52px 52px; opacity: .35; pointer-events: none; }
.login-art .brand { position: relative; z-index: 2; align-self: flex-start; }
.login-art-copy { position: relative; z-index: 2; margin: auto 0; }.login-art-copy h1 { margin: 0; font-size: clamp(4rem, 7vw, 8rem); line-height: .82; letter-spacing: -.07em; }.login-art-copy h1 em { color: var(--orange); font-style: normal; }.login-art-copy > p:last-child { max-width: 550px; color: #aeb4b2; line-height: 1.65; }
.login-emblem { position: absolute; z-index: 1; right: -7vw; bottom: -14vw; width: 35vw; min-width: 420px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 22px solid #9b6a23; outline: 5px solid #5e3b12; background: radial-gradient(circle at 38% 30%, #eaca70, #a56f22 65%, #5c390e); color: #f9e8b1; font-size: 16vw; font-weight: 1000; opacity: .35; transform: rotate(-13deg); }
.login-form-panel { min-height: 100vh; padding: 45px clamp(34px, 6vw, 100px); display: flex; flex-direction: column; justify-content: center; background: #121617; border-left: 1px solid #303536; }
.back-link { position: absolute; top: 42px; color: #868e8c; text-decoration: none; font-size: .68rem; font-weight: 900; letter-spacing: .12em; }.back-link:hover { color: #fff; }
.login-form-wrap { width: min(480px, 100%); margin: auto; }.login-form-wrap h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -.055em; }.login-description { margin: 14px 0 32px; color: var(--muted); line-height: 1.55; }
.login-form-wrap form { display: grid; }.login-form-wrap label { margin: 17px 0 8px; color: #bfc3c2; font-size: .68rem; font-weight: 1000; letter-spacing: .14em; }.login-form-wrap input { width: 100%; padding: 16px; border: 1px solid #3d4445; border-radius: 0; outline: none; background: #0d1112; color: #fff; font: inherit; }.login-form-wrap input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(217,75,50,.13); }
.login-submit { margin-top: 24px; }.login-error { margin-top: 18px; padding: 13px 14px; border-left: 3px solid var(--orange); background: #2a1916; color: #f1a18c; font-size: .78rem; line-height: 1.45; }
.login-links { margin-top: 20px; display: flex; justify-content: space-between; gap: 16px; }.login-links a { color: #aeb4b2; font-size: .66rem; font-weight: 900; letter-spacing: .08em; }.login-links a:hover { color: var(--orange); }
.login-security { margin-top: 34px; padding-top: 22px; border-top: 1px solid #303536; color: #737b79; font-size: .7rem; line-height: 1.55; }

@media (max-width: 1120px) {
    .site-header { grid-template-columns: auto auto 1fr; min-height: 78px; }
    .brand { padding-right: 24px; }.brand-mark { width: 42px; height: 42px; }.brand-word { font-size: 1.8rem; }
    .menu-toggle { justify-self: end; align-self: center; order: 3; display: grid; gap: 4px; width: 43px; height: 43px; padding: 11px; border: 1px solid #353a3b; background: #191d1e; }
    .menu-toggle span:not(.sr-only) { height: 2px; background: #d9dcdb; }
    .main-navigation { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 10px 24px 20px; flex-direction: column; background: #111415; border-bottom: 1px solid #333; }
    .main-navigation.open { display: flex; }.main-navigation a { min-height: 54px; padding: 0 12px; border-bottom: 1px solid #252a2b; }.main-navigation a::after { left: 0; right: auto; width: 3px; height: 100%; }
    .account-box { grid-column: 2; grid-row: 1; min-width: 190px; margin-right: 14px; }.menu-toggle { grid-column: 3; grid-row: 1; }
    .purchase-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 880px) {
    .store-hero { min-height: 360px; grid-template-columns: 1fr; }.coin-emblem { position: absolute; right: -80px; width: 300px; opacity: .32; }
    .hero-copy { max-width: 650px; }.purchase-layout { grid-template-columns: 1fr; }.checkout-panel { position: relative; top: auto; }
    .payment-strip { grid-template-columns: 1fr; }.payment-methods { justify-content: flex-start; }
    .login-shell { grid-template-columns: 1fr; }.login-art { min-height: 420px; padding: 35px 30px; }.login-art-copy { margin-top: auto; }.login-art-copy h1 { font-size: clamp(3.8rem, 12vw, 6rem); }.login-emblem { right: -100px; bottom: -180px; }.login-form-panel { min-height: 650px; padding: 90px 30px 50px; }.back-link { top: auto; transform: translateY(-50px); }
}

@media (max-width: 650px) {
    .site-header { padding: 0 15px; }.brand { gap: 10px; }.brand-word { font-size: 1.45rem; }.brand-mark { width: 38px; height: 38px; }
    .account-box { min-width: 0; width: 48px; padding: 6px; border: 0; background: transparent; }.account-box > span:last-child { display: none; }.account-avatar { width: 36px; }
    .store-hero, .store-content, .payment-strip { padding-left: 18px; padding-right: 18px; }.store-hero { min-height: 335px; padding-top: 50px; padding-bottom: 50px; }
    .store-hero h1 { font-size: clamp(3.1rem, 16vw, 5rem); }.hero-lead { font-size: .95rem; }.coin-emblem { right: -115px; }
    .store-content { padding-top: 48px; }.section-heading { display: block; }.section-heading > p { margin-top: 16px; text-align: left; }
    .package-grid { grid-template-columns: 1fr; }.coin-package { min-height: 282px; }.purchase-layout { gap: 18px; }
    .checkout-panel { padding: 24px 20px; }.payment-methods span { flex: 1 1 140px; justify-content: center; padding: 0 12px; }
    .site-footer { padding: 30px 18px; flex-direction: column; align-items: flex-start; }
    .history-hero { padding: 48px 18px 36px; display: block; }.history-hero .primary-link { margin-top: 26px; }.history-panel { width: calc(100% - 36px); }.history-panel-heading { align-items: flex-start; flex-direction: column; }.history-panel-heading .secondary-button { align-self: flex-start; }
    .login-art { min-height: 360px; }.login-art-copy h1 { font-size: clamp(3.3rem, 16vw, 5rem); }.login-form-panel { padding-left: 20px; padding-right: 20px; }.login-links { flex-direction: column; }
}
