/* KyatGG. Dark only, by design, and two halves of one logo: gold = KYAT (money, and the one action), jade = GG
   (instant, delivered). Ruby = a problem. The mint mark (rosette.svg, the engraving of a kyat note) lies behind the
   money moments only: the hero, a paid order, the wallet. Everything else stays flat and quiet. */
:root {
  --ink: #15131F;      /* ground */
  --surface: #201D2E;
  --raised: #2A2640;
  --line: #3A3554;
  --paper: #F2EDE4;    /* text */
  --muted: #A69FB8;
  --gold: #F0B44C;
  --gold-deep: #B97F1E;   /* the coin's edge */
  --jade: #34C29A;
  --ruby: #F0566A;
  --display: "Bricolage Grotesque", "Noto Sans Myanmar", "Noto Sans", system-ui, sans-serif;
  --body: "Noto Sans Myanmar", "Noto Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --xs: .8125rem; --sm: .9375rem; --md: 1.0625rem; --lg: 1.375rem; --xl: 1.875rem; --xxl: 2.5rem;   /* 13 15 17 22 30 40 */
  --lh-head: 1.7;      /* Burmese stacks need the room, headings too */
  color-scheme: dark;
}
:root:lang(en) { --lh-head: 1.3; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ink) linear-gradient(180deg, #1D1930, var(--ink) 480px) no-repeat; color: var(--paper);
  font: 400 var(--sm)/1.7 var(--body); overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1, h2 { margin: 0; font-family: var(--display); line-height: var(--lh-head); }
h1 { font-size: var(--lg); font-weight: 800; }
h2 { font-size: var(--md); font-weight: 600; }
p, dl, dd, ul, ol { margin: 0; padding: 0; }
a { color: var(--paper); text-underline-offset: 3px; }
img { max-width: 100%; }
input, select, button, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; }
.muted { color: var(--muted); }
.small { font-size: var(--xs); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* one piece: it moves to the next line whole ("from" stays behind); only when a line cannot hold it (large text) does
   "MMK" go under the number. The number never breaks. */
.price { display: inline-block; max-width: 100%; font-family: var(--display); font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
/* an agent's price with the retail price struck through beside it */
.cost { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.was { color: var(--muted); font: 400 var(--xs)/1.7 var(--body); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* parked above the page by its own height, which large text or Burmese makes much more than one line */
.skip { position: absolute; left: 16px; top: 8px; transform: translateY(-200%); z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--gold); color: var(--ink); }
.skip:focus { transform: none; }

/* ---- the logo: the coin and the wordmark ---- */
.brand { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; text-decoration: none; }
.coin { width: 32px; height: 32px; flex: none; }
.wordmark { font: 800 1.25rem/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.wordmark span { color: #FF8A00; }   /* where text cannot take a gradient: the gradient's middle colour */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark span { background: linear-gradient(90deg, #FF3D9A, #FF8A00 55%, #FFD23F); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* ---- header / footer ---- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 60px; }   /* large text: the links go under the logo */
.top .brand { margin-right: auto; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; flex: 0 1 auto; max-width: 100%; }
.top nav a, .lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 10px;
  font-size: var(--xs); font-weight: 500; text-decoration: none; white-space: nowrap; }
.lang { border: 1px solid var(--line); background: none; cursor: pointer; }
/* signed in: the wallet balance, in gold like all money; a guest's "Sign in" stays a plain quiet link */
.top nav .purse { border: 1px solid var(--line); color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .top nav a:hover, .lang:hover { background: var(--surface); } }
/* a phone: "Sign in" is its icon, and the balance takes the place of "Find my order" (the footer keeps that link);
   an agent's three links leave room for the coin alone */
@media (max-width: 479.98px) {
  .top .wrap { gap: 6px; }
  .top .brand { gap: 6px; }
  .top .coin { width: 28px; height: 28px; }
  .top .wordmark { font-size: 1.125rem; }
  .top nav a, .lang { padding: 0 8px; }
  .top nav .word, .top.agent .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top nav.in a[href="/order"], #portal:not([hidden]) + .purse .ic { display: none; }
}

#app { flex: 1 0 auto; padding-top: 16px; outline: 0; }

.foot { margin-top: 56px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--xs); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.foot .coin { width: 24px; height: 24px; }
.foot .wordmark { font-size: 1rem; color: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* ---- controls ---- */
/* a gold button is a coin's face lifted over its deep-gold edge (as the logo draws it): pressed, it sits on the edge */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 6px 20px; border: 0; border-radius: 12px; background: var(--gold); color: var(--ink);
  box-shadow: 0 3px 0 var(--gold-deep); font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn.quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); color: var(--paper); }
.btn.quiet:active { transform: translateY(1px); }
.btn:disabled { background: var(--line); box-shadow: none; color: var(--muted); transform: none; cursor: not-allowed; }
/* one shine across: the Pay button when it becomes ready, the hero's button when it arrives, a gold button under a mouse */
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); pointer-events: none; }
.btn.shine::after { animation: shine .9s ease-out .25s; }
.btn:disabled::after { animation: none; }
@media (hover: hover) { .btn:not(.quiet):not(:disabled):hover::after { animation: shine .9s ease-out; } }
@keyframes shine { to { left: 130%; } }

.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px;
  border: 1px solid var(--muted); border-radius: 10px; background: transparent; font-size: var(--xs); font-weight: 500; cursor: pointer; }
@media (hover: hover) { .copy:hover { border-color: var(--paper); } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; }
.input { width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--muted); border-radius: 12px;
  background: var(--surface); font-size: 1rem; }   /* 16px: iOS does not zoom */
.input::placeholder { color: var(--muted); opacity: 1; }
.input[aria-invalid="true"] { border-color: var(--ruby); }
.input:focus-visible { outline-offset: 0; border-color: var(--paper); }
/* a password field with its show / hide button */
.peek { display: flex; gap: 8px; }
.peek .input { flex: 1; min-width: 0; }

.stepper { display: inline-flex; justify-self: start; border: 1px solid var(--muted); border-radius: 12px; background: var(--surface); }
.stepper button { width: 48px; min-height: 48px; border: 0; background: none; font-size: var(--lg); line-height: 1; cursor: pointer; }
.stepper input { width: 7.5em; min-height: 48px; padding: 0 8px; border: 0; background: none; text-align: center;
  font-size: 1rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper :focus-visible { outline-offset: -3px; border-radius: 12px; }

.state { padding: 40px 0; text-align: center; color: var(--muted); }
.state .btn { margin-top: 14px; }
.tail .muted { padding: 16px 0; text-align: center; }
.tail .btn { display: flex; width: 100%; max-width: 320px; margin: 16px auto 0; }

.msg { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--ruby); border-radius: 4px 10px 10px 4px; background: var(--surface); }
.hint { margin-top: 12px; color: var(--muted); font-size: var(--xs); }
.msg:empty, .hint:empty, .card-meta:empty, .left:empty, .v-body:empty { display: none; }
/* Cloudflare's security check (only when the shop turns it on) */
.captcha { min-height: 65px; margin-top: 14px; }
.captcha .btn { margin-top: 10px; }

/* ---- the mint mark: the engraving of a kyat note, behind money only ---- */
.mint { position: relative; overflow: hidden; isolation: isolate; }
.mint::before { content: ""; position: absolute; z-index: -1; top: -150px; right: -150px; width: 300px; height: 300px;
  background: url(/rosette.svg) center / contain no-repeat; opacity: .35; pointer-events: none; }   /* a box: its centre beyond the corner */
/* centred on a cover or a badge: it fades before the words around them */
.hero.mint::before, .v-top.mint::before { -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent); mask-image: radial-gradient(closest-side, #000 50%, transparent); }

/* ---- covers: a picture, or a tile in the line's own colour with its initials ---- */
.cover { position: relative; display: block; overflow: hidden; background: var(--raised); }
.cover::before { content: ""; display: block; padding-top: 100%; }   /* square before the picture comes (no aspect-ratio before Chromium 88) */
.cover img, .cover .tile { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.cover img { display: block; object-fit: cover; }
.tile { display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 18% 8%, hsla(var(--h), 90%, 82%, .28), transparent 55%),
    linear-gradient(145deg, hsl(var(--h), 58%, 40%), hsl(calc(var(--h) + 38), 56%, 21%) 62%, hsl(calc(var(--h) + 64), 46%, 12%));
  color: hsl(var(--h), 90%, 90%); font: 800 var(--tile, 2.75rem)/1 var(--display); letter-spacing: -.04em;
  text-shadow: 0 2px 0 hsla(var(--h), 70%, 12%, .45); }

/* ---- home ---- */
.tagline { max-width: 34em; margin: 4px 0 14px; font-size: var(--md); font-weight: 600; color: var(--muted); }
.search { position: relative; max-width: 640px; }
.search .ic { position: absolute; left: 15px; top: 0; bottom: 0; margin: auto; color: var(--muted); pointer-events: none; }
.search .input { min-height: 52px; padding-left: 46px; border-radius: 14px; }

/* the hero: the first line staff feature, sitting in the mint mark like the portrait on a note. One link. A phone: the
   words beside the cover while they have 9em there, under it with large text */
.hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 16px; padding: 18px;
  border: 1px solid var(--line); border-radius: 22px; text-decoration: none;
  background: radial-gradient(90% 120% at 0 0, rgba(240, 180, 76, .13), transparent 60%), linear-gradient(160deg, var(--raised), var(--surface)); }
.hero.mint::before { top: -86px; left: -86px; right: auto; width: 320px; height: 320px; opacity: .55; }   /* centred on the cover */
.hero .cover { flex: none; width: 112px; border-radius: 20px; --tile: 3rem; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .85); }
.hero .cover.no-img { box-shadow: 0 16px 34px -12px hsla(var(--h), 70%, 45%, .55); }
.hero-copy { flex: 1 1 9em; display: grid; justify-items: start; gap: 6px; min-width: 0; }
.eyebrow { color: var(--muted); font-size: var(--xs); font-weight: 500; }
.hero h2 { font: 800 1.5rem/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: break-word; }
.hero-foot { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line); }
.hero-price { color: var(--muted); font-size: var(--xs); }
.hero-price .price { font-size: var(--lg); }
.hero-foot .btn { flex: 1 0 auto; max-width: 100%; }
.hero-foot .btn .ic { transition: transform .15s ease; }
@media (hover: hover) { .hero:hover { border-color: rgba(240, 180, 76, .55); } .hero:hover .btn .ic { transform: translateX(3px); } }
.hero:active .btn { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }

/* "Instant": the jade sparkle */
.flash { display: inline-flex; align-items: center; gap: 4px; padding: 0 9px 0 7px; border-radius: 999px;
  background: rgba(21, 19, 31, .82); color: var(--jade); font-size: var(--xs); font-weight: 700; line-height: 1.9; white-space: nowrap; }
.flash .ic { width: 1em; height: 1em; }
.hero .flash { background: rgba(52, 194, 154, .12); }

/* the groups on sale */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(6.5em, 100%), 1fr)); gap: 10px; margin-top: 16px; }   /* 3 across on a phone, fewer with large text */
.cat { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 92px; padding: 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--paper);
  font-size: var(--xs); font-weight: 700; line-height: 1.5; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.cat-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(240, 180, 76, .14); color: var(--gold); }
.cat-ic .ic { width: 22px; height: 22px; }
.cat[data-g="giftcard"] .cat-ic, .cat[data-g="telegram"] .cat-ic { background: rgba(240, 86, 106, .14); color: var(--ruby); }
.cat[data-g="gamekey"] .cat-ic, .cat[data-g="manual"] .cat-ic { background: rgba(52, 194, 154, .14); color: var(--jade); }
.cat[data-g="steam"] .cat-ic { background: rgba(166, 159, 184, .16); color: var(--paper); }
@media (hover: hover) { .cat:hover { transform: translateY(-3px); border-color: var(--muted); } }

.chips { display: flex; gap: 8px; margin-inline: -16px; padding: 4px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 4px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; text-decoration: none; white-space: nowrap; }
.chip[aria-current] { border-color: var(--gold); background: rgba(240, 180, 76, .1); color: var(--gold); }
button.chip { cursor: pointer; }
@media (hover: hover) { .chip:hover { border-color: var(--muted); } }

.sec { margin-top: 28px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.sec-head h2 { font-size: var(--md); font-weight: 800; }
.sec-head a { flex: none; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: var(--xs); }
.sec > h2 { margin-bottom: 10px; }

/* ---- game cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(8.5em, 100%), 1fr)); gap: 12px; }   /* 2 across on a phone, 1 with large text */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 10px 12px 12px; }
.card-name { font: 600 var(--sm)/1.4 var(--display); overflow-wrap: anywhere; }
.card-meta { color: var(--muted); font-size: var(--xs); }
.card-price { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: var(--xs); }
.card-price .price { font-size: var(--sm); }
.card .flash { position: absolute; top: 8px; left: 8px; justify-content: center; width: 26px; height: 26px; padding: 0; }
.card .cover img { transition: transform .3s ease; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: rgba(240, 180, 76, .6); box-shadow: 0 16px 28px -18px #000; }
  .card:hover .cover img { transform: scale(1.04); }
}
.card:active { transform: translateY(-1px); }
/* a phone: a home list is one row that scrolls sideways, a card and a bit showing the way on */
.grid.rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max(44%, 9em); margin-inline: -16px; padding: 2px 16px 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.orders { display: grid; gap: 8px; list-style: none; }
.orders li > * { display: grid; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.orders small { color: var(--muted); font-size: var(--xs); overflow-wrap: anywhere; }
@media (hover: hover) { .orders a:hover { border-color: var(--muted); } }
/* a row of "Orders made on this device": the order, and its Remove button beside it */
.orders .rm { display: flex; gap: 8px; }
.orders .rm > a { flex: 1; min-width: 0; }
.orders .rm > button { flex: none; place-content: center; min-width: 44px; font-size: var(--xs); cursor: pointer; }
.find { max-width: 440px; }
.find .btn { margin-top: 4px; }

/* ---- one line: /g/:id ---- */
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--muted); font-size: var(--xs); text-decoration: none; }
.line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.line-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, var(--raised), var(--surface)); }
.line-head .cover { flex: none; width: 96px; margin: 0; border-radius: 16px; --tile: 2.25rem; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .85); }
.line-head .cover.no-img { box-shadow: 0 12px 28px -10px hsla(var(--h), 70%, 45%, .5); }
.line-head > div { flex: 1 1 8em; min-width: 0; }   /* large text: the name goes under the cover */
.line-head h1 { font-size: var(--lg); line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }   /* a game's name is Latin: no Burmese stacks to make room for */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: var(--xs); }
.tag.fast { border-color: rgba(52, 194, 154, .45); background: rgba(52, 194, 154, .08); color: var(--jade); }
.tag.fast .ic { width: 1em; height: 1em; }

.note { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--line); border-radius: 4px 12px 12px 4px;
  background: var(--surface); font-size: var(--xs); white-space: pre-line; }
.note.shop { border-left-color: var(--gold); font-size: var(--sm); }
.note.ok { border-left-color: var(--jade); }
.note.warn { border-left-color: var(--ruby); }
.note h2 { margin-bottom: 2px; color: var(--muted); font: 700 var(--xs)/1.7 var(--body); }
.note summary { padding: 11px 0; cursor: pointer; }
.note summary + p { padding-bottom: 6px; color: var(--muted); }

/* the form is a sequence (pack, account, way to pay): its headings carry their step number */
.buy { counter-reset: step; }
.buy > h2 { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.buy > h2:first-child { margin-top: 0; }
.buy > h2::before { counter-increment: step; content: counter(step); flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font: 800 var(--xs)/1 var(--display); }
.buy .lead { margin: -6px 0 12px; }
.buy .note + .field { margin-top: 14px; }   /* the quantity right under the packs: a gift card has no account fields between them */

/* packs: the amount is the hero, the price under it */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9em, 100%), 1fr)); gap: 10px; }   /* 2 across on a phone, 1 with large text */
.pack { position: relative; display: block; cursor: pointer; }
.pack input { position: absolute; top: 12px; left: 12px; width: 1px; height: 1px; margin: 0; opacity: 0; }
.pack-face { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 96px; padding: 12px 14px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 3px 0 #0D0B14;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.pack-name { padding-right: 26px; font: 700 var(--md)/1.35 var(--display); overflow-wrap: anywhere; }
.pack-name.amt { display: flex; flex-direction: column; }
.pack-name b { font: 800 1.75rem/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pack-name .plus { color: var(--jade); font-size: var(--md); letter-spacing: 0; }
.pack-name .unit { color: var(--muted); font: 600 var(--xs)/1.5 var(--display); }
.pack-price { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: var(--xs); }
.pack-price .price { font-size: 1rem; }
.pack-tick { position: absolute; top: 10px; right: 10px; display: none; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 12px; }
.pack-tick .ic { stroke-width: 3.5; }
@media (hover: hover) { .pack:hover .pack-face { border-color: var(--muted); } }
.pack:active .pack-face { transform: translateY(2px); box-shadow: 0 1px 0 #0D0B14; }
.pack input:checked + .pack-face { border-color: var(--gold); box-shadow: 0 3px 0 var(--gold-deep);
  background: linear-gradient(180deg, rgba(240, 180, 76, .14), rgba(240, 180, 76, .03) 70%), var(--surface); }
.pack:active input:checked + .pack-face { box-shadow: 0 1px 0 var(--gold-deep); }
.pack input:checked + .pack-face .pack-tick { display: grid; }
.pack input:focus-visible + .pack-face { outline: 2px solid var(--paper); outline-offset: 2px; }
.pack input:disabled + .pack-face { opacity: .45; cursor: not-allowed; transform: none; }

.check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.check-out { flex: 1 1 180px; min-width: 0; }
.check-out.ok { color: var(--jade); }
.check-out.bad { color: var(--ruby); }

/* total + Pay: sticks to the bottom of the phone screen until the form's end scrolls into view. The total is never
   squeezed under the button: when both do not fit on one row (a small phone, large text), the button takes a second */
.paybar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 18px -16px 12px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -14px 24px -14px rgba(0, 0, 0, .7); }
.sum { flex: 1 0 auto; max-width: 100%; }
.sum small { display: block; color: var(--muted); font-size: var(--xs); }
.sum .price { display: block; font-size: 1.5rem; line-height: 1.2; }
.sum .cost { display: flex; }
.paybar .btn { flex: 1 0 auto; max-width: 100%; padding-inline: 18px; }   /* a phone: as wide as the row leaves it, the whole row on a second one */

/* ---- the order voucher ---- */
.voucher { max-width: 440px; margin: 8px auto 0; border-radius: 20px; background: var(--raised); }
.v-top { padding: 22px 20px 20px; border-radius: 20px 20px 0 0; text-align: center; }
.v-top.mint::before { top: -104px; left: 50%; right: auto; width: 320px; height: 320px; margin-left: -160px; opacity: .45; }   /* centred on the badge */
.v-status { font-size: var(--lg); }
.voucher[data-stage="delivered"] .v-status { color: var(--jade); }
.voucher[data-stage="problem"] .v-status { color: var(--ruby); }
.badge { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--ruby); color: var(--ink); font-size: 1.5rem; }
/* delivered: the logo's sparkle on jade, two small ones around it that twinkle once */
.badge.gg { width: 68px; height: 68px; background: var(--jade); font-size: 2.125rem; animation: pop .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.twinkle { position: absolute; top: -6px; right: -12px; color: var(--jade); font-size: 1.125rem; animation: twinkle 1.6s ease-out .35s both; }
.twinkle + .twinkle { top: auto; right: auto; bottom: 2px; left: -14px; font-size: .75rem; animation-delay: .55s; }
@keyframes pop { from { transform: scale(.4) rotate(-40deg); opacity: 0; } }
.badge.coin { width: 68px; height: 68px; background: none; }
.badge.coin svg { display: block; width: 100%; height: 100%; }
@keyframes twinkle { 0% { transform: scale(0); opacity: 0; } 40% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.v-body { margin-top: 8px; }
.v-body > * + * { margin-top: 10px; }
.v-more { margin-top: 20px; }
.v-amount { font-size: var(--xl); line-height: 1.2; }
.tip { padding: 12px 14px; border-radius: 12px; background: var(--surface); text-align: left; }
.tip h2 { font-size: var(--sm); }
.tip p { font-size: var(--xs); }
.v-body .note { text-align: left; }
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* the payment slip, as MyanMyanPay asks: white like the logo and the QR are made for; nothing on either */
.slip { display: grid; justify-items: center; gap: 10px; margin: -6px -8px 18px; padding: 18px 14px 18px; border-radius: 16px;
  background: #FFF; color: var(--ink); }
.mmqr { display: block; width: auto; height: 60px; }
.clock { position: relative; width: 72px; height: 72px; }
.clock svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 6; }
.clock .ring { stroke: #E9E3D8; }
.clock .arc { stroke: var(--gold-deep); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.clock.low .arc { stroke: #C8364B; }
.clock b { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; place-items: center;
  font: 800 1rem/1 var(--display); font-variant-numeric: tabular-nums; }
.clock.low b, .slip .left { color: #C8364B; }
.slip .left { font-size: var(--xs); font-weight: 700; }
.qr { display: block; width: 248px; height: auto; image-rendering: pixelated; }   /* the PNG as it comes: its own white border is the quiet zone */
.slip .v-amount { font: 800 var(--xl)/1.15 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.powered { margin-top: -6px; color: #5E5870; font-size: var(--xs); }
.btn.dark { background: var(--ink); box-shadow: 0 3px 0 #000; color: var(--paper); }
.btn.dark:active { box-shadow: 0 1px 0 #000; }
.slip :focus-visible { outline-color: var(--ink); }   /* the page's light ring would not show on the white slip */
/* "Cancel payment": under Download QR and quieter than it; its question and its Yes / No in the same place */
.quit { display: grid; justify-items: center; gap: 8px; }
.btn.ghost { min-height: 44px; background: transparent; box-shadow: inset 0 0 0 1px #8A8399; color: var(--ink); font-weight: 500; }
.btn.ghost:active { transform: translateY(1px); }
.slip .msg { margin-top: 0; background: #F6F1F3; }

/* "Save this order to your account" on a guest's order page */
.keep { margin-top: 16px; }
.keep h2 { margin-top: 0; }
.keep .acts, .keep > .btn { margin-top: 12px; }
.kept { margin-top: 16px; text-align: center; }

/* Pay -> Paid -> Sending -> Delivered */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 22px; list-style: none; counter-reset: stop; }   /* 4 stops, 3 for a top-up or a wallet payment */
.track li { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; counter-increment: stop;
  color: var(--muted); font-size: var(--xs); }
.track li::before { content: counter(stop); position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px;
  border: 2px solid var(--line); border-radius: 50%; background: var(--raised); font: 600 var(--xs)/1 var(--display); }
.track li + li::after { content: ""; position: absolute; top: 13px; right: calc(50% + 14px); width: calc(100% - 28px); height: 2px; background: var(--line); }
.track .done, .track .now, .track .bad { color: var(--paper); }
.track .done::before { content: ""; border-color: var(--jade);
  background: var(--jade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315131F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.track .done + li::after { background: var(--jade); }
.track .now { font-weight: 700; }
.track .now::before { border-color: var(--gold); color: var(--gold); animation: pulse 1.8s ease-out infinite; }
.track .bad::before { content: "!"; border-color: var(--ruby); color: var(--ruby); }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(240, 180, 76, .5); } to { box-shadow: 0 0 0 9px rgba(240, 180, 76, 0); } }

/* the perforation: two notches punched out to the ground colour, a dashed rule between them */
.tear { position: relative; height: 28px;
  background: radial-gradient(circle at 0 50%, var(--ink) 13px, transparent 14px),
              radial-gradient(circle at 100% 50%, var(--ink) 13px, transparent 14px); }
.tear::before { content: ""; position: absolute; top: 13px; left: 22px; right: 22px; border-top: 2px dashed var(--muted); opacity: .45; }

.v-stub { padding: 14px 20px 20px; }
.v-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.v-id > div { min-width: 0; }
.v-id small { display: block; color: var(--muted); font-size: var(--xs); }
.v-id .mono { font-size: var(--md); font-weight: 700; overflow-wrap: anywhere; }
.rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.rows dt { color: var(--muted); font-size: var(--xs); padding-top: 2px; }
.rows dd { text-align: right; overflow-wrap: anywhere; }
.rows dd small { display: block; font-size: var(--xs); }
.codes { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
/* a code sits in the dashed slot of a gift card */
.code { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 8px 8px 14px;
  border: 2px dashed rgba(52, 194, 154, .5); border-radius: 12px; background: var(--ink); }
.code code { flex: 1; min-width: 0; font: 600 1.0625rem/1.5 var(--mono); letter-spacing: .02em; white-space: pre-wrap; word-break: break-all; user-select: all; }
.codes .note { margin-bottom: 10px; }
.v-foot { margin-top: 16px; text-align: center; }
.net { margin-top: 12px; text-align: center; }

/* ---- account, wallet, agent portal ---- */
.acct { margin-top: 16px; }
.acct .sec:first-child { margin-top: 0; }
.box { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.box h2 { margin: 18px 0 10px; }
.box .input, .box .chip { background: var(--ink); }
.box .v-amount { font-size: clamp(1.875rem, 9vw, 2.5rem); line-height: 1.15; }   /* a six-figure balance on one line of a phone */
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.row-top { display: flex; justify-content: space-between; gap: 12px; }
.row-top > :first-child { min-width: 0; overflow-wrap: anywhere; }
.plus { color: var(--jade); }
.orders + .tail .muted, .prices + .tail .muted { padding: 8px 0; text-align: left; }
#oq { margin-bottom: 10px; }
.fold { border-bottom: 1px solid var(--line); }
.fold summary { padding: 12px 0; font-weight: 500; cursor: pointer; }
.fold > :last-child { padding-bottom: 16px; }
.fold p + form { margin-top: 10px; }
.fold + .btn { margin-top: 20px; }

.purse-row .sum { flex: 1 0 auto; }
.purse-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 12px; }
.filters { display: grid; gap: 8px; margin-bottom: 12px; }
.prices { width: 100%; border-collapse: collapse; text-align: left; }
.prices th, .prices td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.prices thead th { color: var(--muted); font-size: var(--xs); }
.prices tbody tr { cursor: pointer; }
.prices td[data-l] { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices td[data-l] > span { white-space: nowrap; }   /* on a phone "from" may take a line of its own; an amount never breaks */
.prices thead th:nth-child(n+3) { text-align: right; }
/* a phone has no room for five columns: each row is a card, the three numbers side by side under their names */
@media (max-width: 719.98px) {
  .prices, .prices tbody { display: block; }
  .prices thead { display: none; }
  .prices tbody tr { display: grid; grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(0, 1fr); gap: 2px 10px; margin-bottom: 8px; padding: 10px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .prices th, .prices td { padding: 0; border: 0; }
  .prices th, .prices td:not([data-l]) { grid-column: 1 / -1; }
  .prices td:not([data-l]) { color: var(--muted); font-size: var(--xs); }
  .prices td[data-l] { margin-top: 6px; text-align: left; white-space: normal; }
  .prices td[data-l] > span, .prices td[data-l] .price { white-space: normal; }   /* "MMK" may take a line of its own */
  .prices td[data-l]::before { content: attr(data-l); display: block; color: var(--muted); font-size: var(--xs); }
}

/* a phone: keyboard focus is never left under the sticky pay bar; a low screen (a phone on its side) has no room for one */
@media (max-width: 719.98px) { html { scroll-padding-bottom: 10rem; } }
@media (max-width: 719.98px) and (max-height: 479.98px) { .paybar { position: static; } }
/* very narrow: a phone at 200 % zoom. Nothing scrolls sideways, the header wraps, one column */
@media (max-width: 299.98px) {
  .top .wrap, .v-id, .line-head, .sec-head, .hero-foot { flex-wrap: wrap; }
  .orders .rm { flex-direction: column; }   /* Remove under its order, not beside it */
  .top nav { flex: 1 1 100%; flex-wrap: wrap; }
  .packs, .grid:not(.rail), .cats { grid-template-columns: minmax(0, 1fr); }
  .grid.rail { grid-auto-columns: 78%; }
  .hero { padding: 12px; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .btn { padding-inline: 12px; }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .rows dt { padding-top: 6px; }
  .rows dd { text-align: left; }
  .stepper input { width: 3em; }
  .v-amount, .box .v-amount, .slip .v-amount { font-size: var(--lg); }
  .slip { margin-inline: -14px; }
}

/* ---- wider screens ---- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.rail { grid-auto-columns: max(30%, 9em); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  /* a wide screen: the home lists are grids again (a mouse does not swipe) */
  .grid.rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: 0; padding: 0; overflow: visible; }
  .tagline { font-size: var(--lg); }
  /* the portrait on the right, in the middle of the mint mark; the words on the left */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 18px 48px; padding: 32px 40px; }
  .hero.mint::before { top: calc(50% - 280px); right: -164px; left: auto; width: 560px; height: 560px; opacity: .6; }
  .hero .cover { grid-column: 2; grid-row: 1 / span 2; width: 100%; --tile: 5rem; border-radius: 28px; }
  .hero h2 { font-size: var(--xxl); line-height: 1.1; }
  .hero-copy { gap: 10px; }
  .hero-foot { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 16px 28px; padding-top: 18px; }
  .hero-foot .btn { flex: 0 0 auto; padding-inline: 28px; }
  .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .line-head h1 { font-size: var(--xl); }
  .line-head .cover { width: 112px; }
  .paybar { position: static; margin-inline: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
  .paybar .btn { flex: 0 1 auto; padding-inline: 28px; }
}
@media (min-width: 900px) {
  .grid, .grid.rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .line { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1080px) { .grid, .grid.rail { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* no lift, no shine, no twinkle, no draining: the same page, still */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .cat:hover, .card:active, .pack:active .pack-face, .btn:active, .hero:active .btn { transform: none; }
}
