/* StorePS — PlayStation blue theme */
@font-face{font-family:"Sora";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/sora-latin-400.woff2") format("woff2")}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url("fonts/golos-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url("fonts/golos-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  /* brand */
  --ps:#0043b0;--ps-deep:#00358f;--ps-ink:#00286e;--on-ps:#ffffff;--on-ps-2:#b9c9ec;
  --blue:#0070cc;--blue-hover:#005db0;--blue-soft:#e9f2fc;
  /* PlayStation symbols */
  --tri:#2fb58f;--cir:#e5484d;--x:#6e9fea;--sq:#e77fb9;
  /* neutrals */
  --page:#f2f5f9;--surface:#ffffff;--tile:#f6f8fb;--line:#e3e8ef;--line-strong:#c9d2de;
  --shadow-card:0 1px 2px rgba(11,26,46,.04),0 8px 24px -14px rgba(11,26,46,.14);--shadow-hover:0 2px 4px rgba(11,26,46,.05),0 12px 28px -14px rgba(0,67,176,.28);
  --text:#0b1a2e;--text-2:#3b4a5e;--muted:#66748a;
  /* states */
  --ok:#0f7a5c;--ok-bg:#e2f5ee;--wait:#0058a8;--wait-bg:#e6f0fb;--bad:#b42828;--bad-bg:#fcebeb;--warn:#8a5a00;--warn-bg:#fff3d6;
  --radius:14px;--radius-sm:12px;--section-gap:56px;
  --font:"Golos Text",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--page);color:var(--text);font:15px/1.55 var(--font);-webkit-font-smoothing:antialiased}
h1,h2,h3,p,ol,ul,dl,dd,figure{margin:0}
ol,ul{padding:0;list-style:none}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-hover);text-decoration:underline}
b,strong{font-weight:600}
img{display:block;max-width:100%}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
.icon{width:20px;height:20px;flex-shrink:0}
.sym{width:100%;height:100%;display:block}
.sym-tri{color:var(--tri)}.sym-cir{color:var(--cir)}.sym-x{color:var(--x)}.sym-sq{color:var(--sq)}
.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}
.skip{position:fixed;top:-100px;left:12px;z-index:100;background:var(--blue);color:#fff;padding:10px 16px;border-radius:8px}
.skip:focus{top:12px}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}
.main{flex:1;padding-bottom:24px}
.muted{color:var(--muted)}
.h2,h2{font-size:20px;line-height:1.3;font-weight:700;letter-spacing:-.01em}
h1{font-size:clamp(28px,3.2vw,40px);line-height:1.15;letter-spacing:-.02em;font-weight:700}
.lead{color:var(--text-2);font-size:17px;margin-top:10px;max-width:640px}
.eyebrow{color:var(--muted);font-size:13px;font-weight:500;margin-bottom:6px}

/* Header */
.header{position:sticky;top:0;z-index:40;background:var(--ps);color:var(--on-ps);box-shadow:0 1px 0 rgba(255,255,255,.08);transition:background-color .3s,box-shadow .3s}
/* once the page scrolls, the header turns into blue glass and the content shows through it */
.header.is-scrolled{background:rgba(0,67,176,.6);-webkit-backdrop-filter:blur(18px) saturate(180%);backdrop-filter:blur(18px) saturate(180%);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(255,255,255,.14),0 14px 34px -18px rgba(0,25,80,.6)}
.header.is-scrolled::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0) 55%)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.header.is-scrolled{background:var(--ps)}}
.header-inner{display:flex;align-items:center;gap:28px;height:56px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--on-ps)}
.brand:hover{color:var(--on-ps);text-decoration:none}
.logo-mark{display:block;flex-shrink:0}
/* logotype: "store" regular, "PS" hollow with a thin white outline */
.wordmark{font-family:"Sora",var(--font);font-weight:400;font-size:22px;line-height:1;letter-spacing:-.01em}
.wordmark-ps{margin-left:1px}
@supports (-webkit-text-stroke:1px #fff){.wordmark-ps{color:transparent;-webkit-text-stroke:1px #fff}}
.nav{display:flex;gap:4px;height:100%;margin-left:auto}
.nav a{display:flex;align-items:center;height:100%;padding:0 12px;color:var(--on-ps-2);font-weight:500;font-size:15px;border-bottom:3px solid transparent;border-top:3px solid transparent}
.nav a:hover{color:#fff;text-decoration:none}
.nav a[aria-current=page]{color:#fff;border-bottom-color:#fff}

/* Hero band */
.band{position:relative;overflow:hidden;background:var(--ps);color:var(--on-ps);border-top:1px solid rgba(255,255,255,.12)}
.band::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 40%,rgba(0,20,70,.18))}
.band-inner{position:relative;z-index:1;padding-top:30px;padding-bottom:32px}
.band h1{font-size:clamp(26px,3vw,36px);line-height:1.15;letter-spacing:-.02em;text-wrap:balance}
.band-sub{color:var(--on-ps-2);font-size:16px;margin-top:6px}
.trust{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:18px;font-weight:500;font-size:14px}
.trust li{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 10px;border-radius:999px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.trust li>span{width:15px;height:15px;flex-shrink:0}
/* floating PlayStation symbols: a diamond of four with small satellites */
.band-deco{position:absolute;right:24px;top:50%;width:260px;height:170px;margin-top:-85px;pointer-events:none}
.band-deco .f{position:absolute;width:34px;height:34px;opacity:.9;animation:drift 9s ease-in-out infinite}
.band-deco .sym{stroke-width:2.4}
.band-deco .f1{left:113px;top:2px;animation-duration:10s}
.band-deco .f3{left:56px;top:66px;animation-duration:11s;animation-delay:-5s}
.band-deco .f2{left:170px;top:66px;animation-duration:8.5s;animation-delay:-2s}
.band-deco .f4{left:113px;top:130px;animation-duration:12s;animation-delay:-1s}
.band-deco .f5,.band-deco .f6,.band-deco .f7,.band-deco .f8,.band-deco .f9,.band-deco .f10{width:13px;height:13px;opacity:.45}
.band-deco .f5{left:18px;top:18px;animation-duration:9s;animation-delay:-6s}
.band-deco .f6{left:228px;top:22px;animation-duration:10s;animation-delay:-3s}
.band-deco .f7{left:12px;top:130px;animation-duration:13s;animation-delay:-4s}
.band-deco .f8{left:232px;top:124px;animation-duration:11s;animation-delay:-7s}
.band-deco .f9{left:2px;top:76px;width:10px;height:10px;animation-duration:12s;animation-delay:-2.5s}
.band-deco .f10{left:250px;top:78px;width:10px;height:10px;animation-duration:14s;animation-delay:-8s}
.band-inner>h1,.band-sub,.trust{max-width:calc(100% - 300px)}
@keyframes drift{0%,100%{transform:translate3d(0,0,0) rotate(0deg)}50%{transform:translate3d(0,-9px,0) rotate(10deg)}}

/* Notice */
.notice{display:flex;align-items:flex-start;gap:10px;margin-top:20px;padding:12px 16px;border-radius:var(--radius-sm);background:var(--wait-bg);color:var(--wait);font-size:14px;font-weight:500;box-shadow:inset 0 0 0 1px rgba(0,88,168,.14)}
.notice .icon{width:18px;height:18px;margin-top:1px}
.notice-test{background:var(--warn-bg);color:var(--warn);box-shadow:inset 0 0 0 1px rgba(138,90,0,.16)}

/* Toasts */
.toasts{display:grid;gap:10px;margin-top:20px}
.toast{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--line);color:var(--text-2);font-size:14px}
.toast .icon{width:18px;height:18px;margin-top:1px;color:var(--blue)}
.toast.error{background:var(--bad-bg);border-color:#f3c5c5;color:var(--bad)}.toast.error .icon{color:var(--bad)}
.toast.warning{background:var(--warn-bg);border-color:#f0dca8;color:var(--warn)}.toast.warning .icon{color:var(--warn)}
.toast.success{background:var(--ok-bg);border-color:#b8e6d4;color:var(--ok)}.toast.success .icon{color:var(--ok)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 22px;border-radius:999px;border:1px solid transparent;font-weight:600;font-size:15px;line-height:1;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.btn:hover{text-decoration:none}
.btn .icon{width:18px;height:18px}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 18px -10px rgba(0,112,204,.75),inset 0 1px 0 rgba(255,255,255,.18)}
.btn-primary:hover{background:var(--blue-hover);color:#fff}
.btn-secondary{background:var(--surface);border-color:var(--line-strong);color:var(--text)}
.btn-secondary:hover{border-color:var(--blue);color:var(--blue)}
.btn-ghost{background:transparent;border-color:var(--line-strong);color:var(--text-2)}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn-light{background:#fff;color:var(--ps)}
.btn-light:hover{background:var(--blue-soft);color:var(--ps)}
.btn-block{width:100%}
.btn:disabled{cursor:not-allowed;background:#c9d3df;color:#fff;border-color:transparent;box-shadow:none}
.link-button{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;color:var(--blue);font-weight:500;font-size:14px}
.link-button:hover{color:var(--blue-hover);text-decoration:underline}
.link-button .icon{width:16px;height:16px}

/* Inputs */
input[type=email],input[type=text]{width:100%;height:48px;padding:0 14px;border-radius:var(--radius-sm);background:#fff;border:1px solid var(--line-strong);color:var(--text);transition:border-color .15s,box-shadow .15s}
input::placeholder{color:#97a3b4}
input[type=email]:focus,input[type=text]:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,112,204,.18)}
.field{display:grid;gap:6px}
.field>span{font-size:13px;font-weight:600;color:var(--text-2)}
.field>small{font-size:12px;color:var(--muted)}
.consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--muted);line-height:1.45;cursor:pointer}
.consent input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--blue);flex-shrink:0}

/* Cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-card)}
.card>h2{margin-bottom:16px}

/* Shop */
.shop{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:24px;align-items:start;margin-top:28px}
.shop-main{display:grid;gap:20px}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-card)}
.step-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.step-head .link-button{margin-left:auto}
.step-num{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--ps);color:#fff;font-weight:700;font-size:14px;flex-shrink:0}
.step-head h2{font-size:19px}

.regions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px}
.region{position:relative;display:flex;align-items:center;gap:12px;padding:14px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--line-strong);color:var(--text);transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}
.region:hover{color:var(--text);border-color:#8fb6e6;box-shadow:var(--shadow-hover);transform:translateY(-1px);text-decoration:none}
.region .flag{width:36px;height:24px;border-radius:4px;object-fit:cover;box-shadow:0 0 0 1px rgba(11,26,46,.12);flex-shrink:0}
.region-text{display:grid;line-height:1.3;min-width:0}
.region-text b{font-size:15px}
.region-text small{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.region-check{position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:50%;background:var(--blue);color:#fff;display:none;place-items:center;box-shadow:0 0 0 2px #fff}
.region-check .icon{width:12px;height:12px;stroke-width:3}
.region[aria-pressed=true]{border-color:var(--blue);background:var(--blue-soft);box-shadow:inset 0 0 0 1px var(--blue),0 8px 20px -12px rgba(0,112,204,.45);transform:none}
.region[aria-pressed=true] .region-check{display:grid}

.denoms{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.denom{position:relative;display:grid;align-content:start;gap:4px;text-align:left;padding:14px 16px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--line-strong);transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}
.denom:hover:not(:disabled){border-color:#8fb6e6;box-shadow:var(--shadow-hover);transform:translateY(-1px)}
.denom-value{font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.denom-value small{font-size:13px;font-weight:600;color:var(--muted);margin-left:5px;letter-spacing:0}
.denom-price{font-size:14px;color:var(--text-2);font-weight:500}
/* out of stock: not selectable, quiet hatched tile */
.denom.is-unavailable{cursor:not-allowed;border-style:dashed;border-color:var(--line-strong);background-color:#fbfcfd;background-image:repeating-linear-gradient(135deg,transparent 0 9px,rgba(102,116,138,.07) 9px 10px)}
.denom.is-unavailable .denom-value{color:#a3adbb}
.denom.is-unavailable .denom-value small{color:#b5bdc8}
.denom.is-unavailable .denom-price{color:#a3adbb}
.denom.is-unavailable s{text-decoration-thickness:1.5px;text-decoration-color:rgba(180,40,40,.55)}
.denom-badge{justify-self:start;margin-top:6px;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;font-weight:600;color:var(--bad);background:var(--bad-bg);padding:2px 8px 2px 7px;border-radius:999px}
.denom-badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.denom[aria-pressed=true],.denom[aria-pressed=true]:hover{border-color:var(--blue);background:var(--blue-soft);box-shadow:inset 0 0 0 1px var(--blue),0 8px 20px -12px rgba(0,112,204,.45);transform:none}
.hint{display:flex;align-items:flex-start;gap:8px;margin-top:16px;color:var(--muted);font-size:13px}
.hint .icon{width:16px;height:16px;margin-top:2px}
.hint b{color:var(--text-2)}

/* Region without stock */
.denoms-empty{display:flex;gap:16px;align-items:flex-start;padding:20px;border-radius:var(--radius-sm);background:var(--tile);border:1px dashed var(--line-strong)}
.denoms-empty-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:var(--blue-soft);color:var(--ps)}
.denoms-empty b{font-size:16px}
.denoms-empty p{color:var(--muted);font-size:13px;margin:4px 0 10px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips li{padding:4px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--text-2);font-size:13px;font-weight:500}

/* Checkout */
.checkout{position:sticky;top:84px}
.checkout-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;display:grid;gap:18px;box-shadow:var(--shadow-card)}
.giftcard{position:relative;overflow:hidden;aspect-ratio:1.586;border-radius:14px;padding:18px 20px;color:#fff;display:flex;flex-direction:column;background:var(--ps);box-shadow:0 12px 28px -14px rgba(0,67,176,.65),inset 0 0 0 1px rgba(255,255,255,.08)}
.giftcard::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,rgba(255,255,255,.10),transparent 38%)}
.giftcard-top{display:flex;justify-content:space-between;align-items:flex-start}
.giftcard-brand{display:grid;font-weight:700;font-size:16px;line-height:1.15}
.giftcard-brand small{font-size:10px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--on-ps-2)}
.giftcard .flag{width:30px;height:20px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.giftcard-shapes{position:absolute;right:20px;top:50%;transform:translateY(-50%);display:grid;grid-template-columns:repeat(2,24px);gap:12px}
.giftcard-shapes span{width:24px;height:24px}
.giftcard-value{margin-top:auto;display:flex;align-items:baseline;gap:6px}
.giftcard-value strong{font-size:40px;font-weight:700;letter-spacing:-.03em;line-height:1}
.giftcard-value span{font-size:16px;font-weight:600;color:var(--on-ps-2)}
.giftcard.is-empty .giftcard-value{visibility:hidden}
.giftcard.is-empty .giftcard-caption{font-size:14px;color:#fff;font-weight:500}
.giftcard-caption{font-size:12px;color:var(--on-ps-2);margin-top:4px}

.summary{display:grid;gap:10px;font-size:14px}
.summary>div{display:flex;justify-content:space-between;gap:12px}
.summary dt{color:var(--muted)}
.summary dd{font-weight:600;text-align:right}
.summary-total{padding-top:12px;border-top:1px solid var(--line);align-items:baseline}
.summary-total dt{color:var(--text);font-weight:600}
.summary-total dd{font-size:28px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
.checkout-form{display:grid;gap:14px}
.pay-methods{display:flex;flex-wrap:wrap;gap:6px;margin-top:-4px}
.pay-methods li{padding:5px 10px;border-radius:8px;background:var(--tile);border:1px solid var(--line);font-size:12px;font-weight:600;color:var(--text-2)}
.notify-head b{font-size:16px}
.notify-head p{color:var(--muted);font-size:13px;margin-top:2px}
.pay-notes{display:grid;gap:10px;font-size:13px;color:var(--muted)}
.pay-notes li{display:flex;align-items:flex-start;gap:10px}
.pay-notes .icon{width:16px;height:16px;margin-top:2px;color:var(--ps)}

/* Sections */
.section{margin-top:var(--section-gap)}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.section-head h2{font-size:clamp(22px,2.4vw,28px);letter-spacing:-.02em;font-weight:700}
.how{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;counter-reset:how}
.how li{counter-increment:how;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:grid;gap:8px;align-content:start;box-shadow:var(--shadow-card)}
.how-sym{width:34px;height:34px;margin-bottom:10px}
.how b{font-size:17px}
.how b::before{content:counter(how) ". ";color:var(--muted)}
.how p{color:var(--muted);font-size:14px}
.faq{display:grid;border-top:1px solid var(--line-strong)}
.faq-group{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-card)}
.faq-group-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;cursor:pointer;list-style:none}
.faq-group-head::-webkit-details-marker{display:none}
.faq-group-head h2{font-size:clamp(20px,2.2vw,24px);letter-spacing:-.02em;font-weight:700}
.faq-group-head small{display:block;margin-top:2px;color:var(--muted);font-size:14px}
.faq-group-head>.icon{color:var(--muted);transition:transform .2s;flex-shrink:0}
.faq-group-head:hover h2{color:var(--blue)}
.faq-group[open]>.faq-group-head>.icon{transform:rotate(180deg)}
.faq-group .faq{border-top:1px solid var(--line);margin:0 24px 8px}
.faq-group .faq details:last-child{border-bottom:0}
.faq details{border-bottom:1px solid var(--line-strong)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 4px;cursor:pointer;font-weight:600;font-size:16px;list-style:none}
.faq summary:hover{color:var(--blue)}
.faq summary::-webkit-details-marker{display:none}
.faq summary .icon{color:var(--muted);transition:transform .2s}
.faq details[open] summary .icon{transform:rotate(180deg)}
.faq details p{padding:0 4px 20px;color:var(--text-2);max-width:820px}
.cta{margin-top:var(--section-gap);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:28px 32px;border-radius:16px;background:linear-gradient(125deg,rgba(255,255,255,.08),transparent 40%),var(--ps);color:#fff;box-shadow:0 14px 30px -18px rgba(0,67,176,.7)}
.cta h2{font-size:22px}
.cta p{color:var(--on-ps-2);margin-top:4px}

/* Orders */
.order-list{display:grid;gap:8px}
.order-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:16px;padding:14px 18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--text);transition:border-color .15s}
.order-row:hover{color:var(--text);border-color:#8fb6e6;box-shadow:var(--shadow-hover);text-decoration:none}
.order-row .flag{width:36px;height:24px;border-radius:4px;box-shadow:0 0 0 1px rgba(11,26,46,.12)}
.order-row-main{display:grid;min-width:0}
.order-row-main b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-row-main small{color:var(--muted);font-size:13px}
.order-row-price{font-weight:700;white-space:nowrap}
.order-row-arrow{color:var(--muted)}
.order-row-arrow .icon{width:18px;height:18px}
.status{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:#eef1f5;color:var(--text-2)}
.status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.status-delivered{background:var(--ok-bg);color:var(--ok)}
.status-pending,.status-creating{background:var(--wait-bg);color:var(--wait)}
.status-review{background:var(--warn-bg);color:var(--warn)}
.status-canceled{background:var(--bad-bg);color:var(--bad)}
.status-lg{font-size:14px;padding:7px 14px}

/* Page head */
.page-head{padding:36px 0 24px}
.page-head-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;font-weight:500;margin-bottom:14px}
.back:hover{color:var(--blue);text-decoration:none}
.back .icon{width:16px;height:16px;transform:rotate(180deg)}
.order-title{display:flex;align-items:center;gap:14px;font-size:clamp(24px,3vw,34px)}
.order-title .flag{width:42px;height:28px;border-radius:5px;box-shadow:0 0 0 1px rgba(11,26,46,.12)}

.progress{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-card)}
.progress li{display:flex;align-items:center;gap:10px;font-weight:500;font-size:14px;color:var(--muted)}
.progress li:not(:last-child)::after{content:"";flex:1;height:2px;margin:0 14px;background:var(--line);border-radius:2px}
.progress .dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:#fff;border:2px solid var(--line-strong);font-size:13px;font-weight:700}
.progress .dot .icon{width:14px;height:14px;stroke-width:3}
.progress .is-done{color:var(--text)}
.progress .is-done .dot{background:var(--ok);border-color:var(--ok);color:#fff}
.progress .is-done:not(:last-child)::after{background:var(--ok)}
.progress .is-current{color:var(--text)}
.progress .is-current .dot{background:var(--blue);border-color:var(--blue);color:#fff}
.progress .is-failed .dot{background:var(--bad);border-color:var(--bad);color:#fff}
.progress .is-warn .dot{background:#e5a100;border-color:#e5a100;color:#fff}

.order-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:20px;align-items:start}
.code-box{display:flex;gap:12px;align-items:stretch;margin-bottom:16px}
.gift-code{flex:1;display:flex;align-items:center;justify-content:center;padding:16px 20px;border-radius:var(--radius-sm);background:var(--blue-soft);border:2px dashed #8bb8e6;color:var(--ps);font:700 clamp(20px,3vw,28px)/1.2 var(--mono);letter-spacing:.12em;user-select:all;-webkit-user-select:all;overflow-wrap:anywhere;text-align:center}
.note{display:flex;align-items:flex-start;gap:10px;color:var(--text-2);font-size:14px;margin-top:10px}
.note .icon{width:18px;height:18px;margin-top:1px;color:var(--ps)}
.note-ok,.note-ok .icon{color:var(--ok)}
.note-subtle{color:var(--muted);font-size:13px;margin-top:20px}
.note-subtle .icon{color:var(--muted);width:16px;height:16px}
.state{display:grid;gap:10px;justify-items:start}
.state p{color:var(--text-2);max-width:520px}
.state .btn{margin-top:6px}
.state-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin-bottom:4px}
.state-icon .icon{width:24px;height:24px}
.state-icon-wait{background:var(--wait-bg);color:var(--wait)}
.state-icon-warn{background:var(--warn-bg);color:var(--warn)}
.state-icon-bad{background:var(--bad-bg);color:var(--bad)}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.actions .btn{margin-top:0}
.order-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.order-meta dt{color:var(--muted);font-size:12px}
.order-meta dd{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.steps-list{counter-reset:s;display:grid;gap:14px;margin-bottom:20px}
.steps-list li{counter-increment:s;position:relative;min-height:26px;padding:2px 0 0 38px;color:var(--text-2);font-size:14px}
.steps-list li::before{content:counter(s);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--ps);color:#fff;font-weight:700;font-size:13px}
.check-list{display:grid;gap:14px}
.check-list li{display:flex;gap:12px;color:var(--text-2);font-size:14px}
.check-list .icon{color:var(--ps)}

/* Account */
.account-bar{display:flex;align-items:center;gap:14px;padding:16px 20px}
.account-bar-text{display:grid;flex:1;min-width:0}
.account-bar-text small{color:var(--muted);font-size:12px}
.account-bar-text b{overflow:hidden;text-overflow:ellipsis}
.login-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px;align-items:center}
.login-card h2{margin-bottom:6px}
.inline-form{display:flex;gap:10px}
.inline-form .btn{flex-shrink:0}
.account-bar+.section,.login-card+.section{margin-top:24px}
.empty{display:grid;justify-items:center;text-align:center;gap:10px;padding:48px 24px}
.empty-icon{width:56px;height:56px;border-radius:50%;background:var(--blue-soft);color:var(--ps);display:grid;place-items:center;margin-bottom:6px}
.empty-icon .icon{width:26px;height:26px}
.empty .btn{margin-top:10px}

/* Support */
.contact-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;margin-bottom:20px}
.contact{display:flex;align-items:center;gap:14px;color:var(--text);transition:border-color .15s}
a.contact:hover{color:var(--text);border-color:var(--blue);text-decoration:none}
.contact>span:nth-child(2){display:grid;flex:1;min-width:0}
.contact small{color:var(--muted);font-size:14px;overflow:hidden;text-overflow:ellipsis}
.contact>.icon{color:var(--muted)}
.contact-icon{width:46px;height:46px;border-radius:50%;background:var(--ps);color:#fff;display:grid;place-items:center;flex-shrink:0}
.security .check-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 24px}

/* Prose (legal) */
.prose{max-width:780px;margin:36px auto 0;padding:36px 40px}
.prose h1{font-size:clamp(26px,3vw,34px);margin-bottom:20px}
.prose h2{font-size:19px;margin:28px 0 10px}
.prose p{color:var(--text-2);line-height:1.7;margin-top:10px}
.prose strong{color:var(--text)}

/* Small pages */
.narrow{max-width:460px;margin:56px auto 0}
.center{text-align:center;display:grid;justify-items:center;gap:12px;padding:36px 28px}
.center form{width:100%;margin-top:8px}
.big-code{font-size:84px;font-weight:700;letter-spacing:-.05em;line-height:1;color:var(--ps)}

/* Dialog */
dialog{border:0;border-radius:16px;background:var(--surface);color:var(--text);max-width:480px;width:calc(100% - 32px);padding:28px;box-shadow:0 24px 60px rgba(0,29,79,.25)}
dialog::backdrop{background:rgba(0,29,79,.45)}
dialog h2{padding-right:32px;margin-bottom:18px}
dialog .muted{font-size:14px;margin-bottom:20px}
.dialog-close{position:absolute;right:16px;top:14px;width:36px;height:36px;border-radius:50%;border:0;background:var(--tile);color:var(--text-2);font-size:22px;line-height:1}
.dialog-close:hover{color:var(--text);background:#e9edf2}

/* Footer */
.footer{margin-top:var(--section-gap);background:var(--ps-ink);color:var(--on-ps-2);padding:18px 0;font-size:13px}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;gap:6px 24px}
.footer-links{display:flex;flex-wrap:wrap;gap:4px 20px}
.footer-links a{color:#fff;font-weight:500}
.footer-links a:hover{color:#fff}
.footer-legal{flex-basis:100%;font-size:12px;color:#8ea3cf}

/* Mobile tab bar */
.tabbar{display:none}

@media (max-width:1040px){
  .shop{grid-template-columns:1fr}
  .checkout{position:static}
  .checkout-card{max-width:560px;width:100%;margin:0 auto}
}
@media (max-width:820px){
  .nav{display:none}
  .header-inner{height:52px}
  .wordmark{font-size:20px}
  .logo-mark{width:26px;height:26px}
  .tabbar{display:grid;grid-template-columns:repeat(2,1fr);position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
  .tabbar a{display:grid;justify-items:center;gap:2px;padding:6px 4px;border-radius:10px;color:var(--muted);font-size:11px;font-weight:600}
  .tabbar a:hover{text-decoration:none}
  .tabbar a[aria-current=page]{color:var(--ps);background:var(--blue-soft)}
  .tabbar .icon{width:22px;height:22px}
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .how{grid-template-columns:1fr}
  .how li{grid-template-columns:auto minmax(0,1fr);column-gap:16px;row-gap:4px;padding:18px}
  .how-sym{grid-row:span 2;width:28px;height:28px;margin:2px 0 0}
  .order-layout,.login-card,.security .check-list{grid-template-columns:1fr}
  .progress{display:flex;justify-content:space-between;gap:8px;padding:14px 16px}
  .progress li{font-size:12px;gap:6px}
  .progress li:not(:last-child)::after{display:none}
}
@media (max-width:560px){
  :root{--section-gap:40px}
  .container{padding:0 16px}
  .band-inner{padding-top:20px;padding-bottom:22px}
  .band h1{font-size:24px}
  .band-sub{font-size:14px}
  .trust{flex-direction:column;align-items:flex-start;gap:6px;margin-top:12px;font-size:13px}
  .trust li{padding:4px 10px 4px 8px}
  .band-inner>h1,.band-sub,.trust{max-width:none}
  .band-deco{right:-30px;top:auto;bottom:6px;margin-top:0;transform:scale(.55);transform-origin:right bottom;opacity:.45}
  .shop{margin-top:20px}
  .step,.card{padding:18px}
  .step-head{flex-wrap:wrap;margin-bottom:14px}
  .regions{gap:8px}
  .region{flex-direction:column;align-items:flex-start;padding:12px;gap:8px}
  .regions:has(.region:nth-child(4)){grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
  .regions:has(.region:nth-child(4)) .region{flex-direction:row;align-items:center}
  .region .flag{width:30px;height:20px}
  .denoms{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .denom{padding:12px 10px}
  .denom-value{font-size:18px}
  .denom-value small{display:block;margin:2px 0 0;font-size:11px}
  .denom-price{font-size:13px}
  .denom-badge{font-size:10px;padding:3px 6px;line-height:1.2;white-space:normal;border-radius:6px}
  .denom-badge::before{display:none}
  .denom.is-unavailable{padding-right:6px}
  .checkout-card{padding:16px}
  .giftcard-value strong{font-size:34px}
  .cta{padding:22px}
  .cta .btn{width:100%}
  .order-row{grid-template-columns:auto minmax(0,1fr) auto;gap:4px 12px;padding:14px}
  .order-row .flag{grid-row:span 2}
  .order-row-price{grid-column:3;grid-row:1;text-align:right}
  .order-row .status{grid-column:3;grid-row:2;justify-self:end}
  .order-row-main{grid-row:span 2}
  .order-row-arrow{display:none}
  .page-head{padding:24px 0 18px}
  .code-box{flex-direction:column}
  .order-meta{grid-template-columns:1fr 1fr}
  .order-meta div:nth-child(2){grid-column:1/-1;order:3}
  .inline-form{flex-direction:column}
  .prose{padding:24px 20px;margin-top:24px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}.region:hover,.denom:hover:not(:disabled){transform:none}}
