@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@400;600&family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

:root {
  --ink: #14121c;
  --ink-2: #1c1826;
  --ink-3: #262034;
  --paper: #f3ede2;
  --hot: #ff2038;
  --gold: #ff6b7a;
  --line-green: #06c755;
  --text: #ece7f2;
  --muted: #948da8;
  --rule: #322b44;

  --display: 'Archivo Black', 'Noto Sans TC', sans-serif;
  --body: 'Noto Sans TC', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html {
  background: var(--ink);
  color-scheme: dark;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}

html { background-color: #15121d; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body > header.site { flex: none; width: 100%; }
body > main { flex: 1 0 auto; width: 100%; align-self: stretch; }
body > footer.site { flex: none; width: 100%; margin-top: auto; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--mono); }

/* ── 招牌列 ───────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(21, 18, 29, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }

.brand {
  font-family: var(--display);
  font-size: 1.1rem; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 7px;
}
.brand em {
  font-style: normal; font-family: var(--mono); font-weight: 600;
  font-size: 0.75rem; letter-spacing: .14em;
  color: var(--ink); background: var(--hot);
  padding: 3px 7px; border-radius: 3px;
}

nav.main { display: flex; gap: 20px; align-items: center; }
nav.main a { font-size: 0.88rem; color: var(--muted); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); }
.spacer { flex: 1; }

.user-box { display: flex; align-items: center; gap: 9px; }
.user-box img { width: 30px; height: 30px; border-radius: 50%; }
.user-box .name {
  font-size: 0.85rem; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


/* ── 表單控制項：全站基準，裸元素也不掉回瀏覽器預設 ── */
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="image"]):not([type="hidden"]),
select, textarea {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-height: 44px;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--rule); border-radius: 9px;
  padding: 11px 14px; font-size: 0.92rem; line-height: 1.5;
  transition: border-color .14s, background .14s, box-shadow .14s;
}
textarea { min-height: 84px; resize: vertical; }

input::placeholder, textarea::placeholder { color: #6f6883; }

input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: #453c58; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  outline: none; border-color: var(--hot); background: var(--ink-2);
  box-shadow: 0 0 0 3px rgba(255, 32, 56, .16);
}
input:disabled, select:disabled, textarea:disabled {
  opacity: .5; cursor: not-allowed; background: var(--ink-2);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button { -webkit-appearance: none; display: none; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23948da8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: var(--ink-2); color: var(--text); }

input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; min-height: 0; flex: none; padding: 0;
  border: 1.5px solid var(--rule); background: var(--ink);
  border-radius: 5px; cursor: pointer; position: relative;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked {
  background: var(--hot); border-color: var(--hot);
}
input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: solid #fff;
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}
input[type="radio"]:checked::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff;
}

/* 原生 details 的三角形一律換掉 */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ── 按鈕 ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--rule); border-radius: 4px;
  background: var(--ink-3); color: var(--text);
  font-family: var(--body); font-size: 0.89rem; font-weight: 700;
  cursor: pointer; transition: background .14s, border-color .14s;
}
.btn:hover { background: #322a45; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 6px 13px; font-size: 0.8rem; }
.btn-hot { background: var(--hot); border-color: var(--hot); color: #fff; }
.btn-hot:hover { background: #e00d24; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { background: #05a648; }
.btn-line svg { width: 17px; height: 17px; fill: currentColor; }
.btn-quiet { background: transparent; }


/* ── 觸控目標補強 ─────────────────────────── */
.btn { min-height: 44px; }
.btn-sm { min-height: 40px; padding: 8px 14px; }
.cart-btn { width: 46px; height: 46px; }
footer.site a { min-height: 40px; padding: 8px 0; }

@media (max-width: 780px) {
  .btn-sm { min-height: 44px; }
  footer.site a { min-height: 44px; }
  .cart-btn { width: 44px; height: 44px; }
}

/* ── 看板 ─────────────────────────────────── */
.board {
  position: relative;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px;
  align-items: end;
  margin: 0 calc(50% - 50vw) 0;
  padding: 68px calc(50vw - 50%) 52px;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, transparent 62%, #17131f 96%),
    linear-gradient(90deg, #17131f 22%, rgba(23, 19, 31, .78) 48%, rgba(23, 19, 31, .3)),
    radial-gradient(56% 76% at 78% 36%, rgba(255, 32, 56, .24), transparent 64%),
    url('/img/og.jpg') right 6% / 118% auto no-repeat,
    #17131f;
}

.board h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.4vw, 4.1rem);
  line-height: .96; letter-spacing: -.025em;
  text-shadow: 0 4px 30px rgba(10, 8, 16, .9);
}
.board h1 u { text-decoration: none; color: var(--hot); }
.board .lede { color: #c9c2d6; margin: 20px 0 26px; max-width: 42ch; font-size: 0.96rem; }
.board .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* 繳費單：三步驟本身就是流程，用單據行呈現而非編號卡 */
.slip {
  background: var(--paper); color: #1a1622;
  border-radius: 4px; padding: 20px 22px 22px;
  font-family: var(--mono); font-size: 0.82rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.slip .t {
  font-weight: 600; letter-spacing: .1em; font-size: 0.75rem;
  padding-bottom: 10px; border-bottom: 2px solid #1a1622;
}
.slip ol { list-style: none; margin: 12px 0; }
.slip li {
  display: flex; gap: 12px; padding: 7px 0;
  border-bottom: 1px dashed #b4ab9c;
}
.slip li b { font-weight: 600; color: #8a8172; }
.slip .sum {
  display: flex; justify-content: space-between;
  margin-top: 12px; font-weight: 600;
}

/* ── 區塊標題 ─────────────────────────────── */
.head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 48px 0 18px;
}
.head h2 { font-family: var(--display); font-size: 1.42rem; letter-spacing: -.015em; }
.head .tag {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: .13em;
  color: var(--gold);
}
.head .r { margin-left: auto; font-size: 0.85rem; color: var(--muted); }



/* ── 觸控目標下限 ─────────────────────────── */
.head .r {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 2px;
}
footer.site a { display: inline-flex; align-items: center; padding: 6px 0; }
.brand { min-height: 44px; }
.qa summary { min-height: 52px; }
.pricelist a { min-height: 52px; }
.line-del { min-height: 36px; padding: 8px 4px; }
.fineprint a { display: inline-block; padding: 4px 0; }

@media (max-width: 780px) {
  .head .r { min-height: 44px; }
  footer.site .wrap { flex-wrap: wrap; gap: 4px 16px; align-items: center; }
  footer.site a { padding: 8px 0; }
  footer.site .spacer { display: none; }
  .note a, .legend-note a { display: inline-block; padding: 3px 0; }
}

/* ── 分類籤 ───────────────────────────────── */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  margin-bottom: 18px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--ink-2);
  color: var(--muted); font-family: var(--body); font-size: 0.87rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: color .14s, border-color .14s, background .14s;
}
.chip span {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 400;
  color: var(--muted); opacity: .8;
}
.chip:hover { color: var(--text); border-color: #4a4058; }
.chip.is-on {
  background: var(--hot); border-color: var(--hot); color: #fff;
}
.chip.is-on span { color: #fff; opacity: .82; }

/* ── 站台氛圍：柔和光暈加細噪點，噪點用於消除深色漸層的色帶 ── */
body {
  background-color: #15121d;
  background-image:
    radial-gradient(58% 22% at 88% 6%, rgba(255, 32, 56, .15), transparent 62%),
    radial-gradient(52% 18% at 6% 26%, rgba(126, 34, 92, .12), transparent 64%),
    radial-gradient(56% 20% at 92% 46%, rgba(255, 32, 56, .10), transparent 62%),
    radial-gradient(50% 17% at 4% 66%, rgba(88, 36, 128, .11), transparent 64%),
    radial-gradient(60% 22% at 86% 88%, rgba(255, 32, 56, .09), transparent 62%),
    linear-gradient(180deg, #1a1522 0%, #16131e 38%, #141119 72%, #17131f 100%);
  background-attachment: scroll;
  background-repeat: no-repeat;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── 遊戲價目表 ───────────────────────────── */
.pricelist { border-top: 1px solid var(--rule); margin-bottom: 56px; }
.pricelist a {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 18px; align-items: center;
  padding: 15px 4px; border-bottom: 1px solid var(--rule);
  transition: background .12s, padding-left .12s;
}
.pricelist a:hover { background: var(--ink-2); padding-left: 12px; }
.pricelist .g { font-weight: 700; font-size: 1.02rem; }
.pricelist .c { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.pricelist .p { font-family: var(--mono); font-size: 0.85rem; color: var(--gold); }

/* ── 點數卡 ───────────────────────────────── */
.cards { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.topup {
  position: relative; display: grid; grid-template-columns: 116px 1fr;
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 5px;
  overflow: hidden; transition: border-color .14s, transform .14s;
}
.topup:hover { border-color: #5c2a35; transform: translateY(-2px); }

/* 卡面左半：面額，像點數卡印刷 */
.topup .face {
  background: linear-gradient(160deg, var(--ink-3), #191428);
  padding: 16px 12px; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.topup .face .n {
  font-family: var(--display); font-size: 1.85rem; line-height: 1;
  color: var(--gold); letter-spacing: -.02em;
}
.topup .face .u {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: .1em;
  color: var(--muted); margin-top: 5px;
}

/* 打孔虛線 */
.topup::before {
  content: ''; position: absolute; left: 116px; top: 8px; bottom: 8px;
  border-left: 1px dashed #4d3540;
}
.topup .info { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.topup .sku { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: .06em; }
.topup h3 { font-size: 0.98rem; font-weight: 700; }
.topup .row { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; }
.topup .price { font-family: var(--mono); font-weight: 600; font-size: 1.12rem; color: var(--text); }
.topup .price s { color: var(--muted); font-weight: 400; font-size: 0.78rem; margin-left: 6px; }
.topup .row .btn { margin-left: auto; }



.topup { box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.topup .face { position: relative; gap: 2px; }
.topup .face .n { font-size: 1.95rem; }
.topup .bonus {
  font-size: 0.75rem; line-height: 1.6; letter-spacing: .01em;
  color: #fff; background: var(--hot);
  padding: 1px 8px; border-radius: 999px; margin: 4px auto 2px;
  display: inline-block; white-space: nowrap; font-weight: 700;
}
.topup .unit {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-top: 2px;
}
.topup .price { font-variant-numeric: tabular-nums; }
.topup .ribbon {
  position: absolute; top: 0; right: 0; z-index: 2;
  font-size: 0.75rem; line-height: 1.5; letter-spacing: .04em;
  color: #2a0d12; background: var(--gold);
  padding: 3px 11px; border-radius: 0 5px 0 9px; font-weight: 700;
  white-space: nowrap;
}
.topup .lowstock {
  font-family: var(--mono); font-size: 0.75rem; color: var(--gold); margin-top: 7px;
}
.topup .soldout {
  margin-left: auto; font-size: 0.8rem; color: var(--muted);
  border: 1px dashed var(--rule); border-radius: 4px; padding: 5px 12px;
}
.topup.is-out { opacity: .58; }
.topup.is-out:hover { transform: none; border-color: var(--rule); }

/* ── 購物車抽屜 ───────────────────────────── */
.cart-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--ink-2);
  color: var(--text); cursor: pointer;
  transition: border-color .14s, background .14s;
}
.cart-btn:hover { border-color: var(--hot); background: var(--ink-3); }
.cart-btn svg {
  width: 21px; height: 21px; fill: none;
  stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cart-btn circle { fill: currentColor; stroke: none; }
.cart-btn.has-items { border-color: var(--hot); }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px;
  background: var(--hot); color: #fff; border-radius: 999px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  border: 2px solid var(--ink);
}

.cart-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 6, 12, .62);
  backdrop-filter: blur(2px);
}
.cart-scrim[hidden] { display: none; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(420px, 100vw);
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border-left: 1px solid var(--rule);
  box-shadow: -18px 0 50px rgba(0, 0, 0, .55);
  transform: translateX(100%);
  transition: transform .2s ease-out;
}
.drawer.is-open { transform: translateX(0); }
.drawer[hidden] { display: none; }
body.drawer-open { overflow: hidden; }

.drawer-top {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--rule);
}
.drawer-top h2 { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.01em; }
.drawer-sub {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-top: 3px;
}
.icon-btn {
  margin-left: auto; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--rule); border-radius: 9px;
  background: transparent; color: var(--muted);
  font-size: 1rem; cursor: pointer;
  transition: color .14s, border-color .14s;
}
.icon-btn:hover { color: var(--text); border-color: #4a4058; }

.drawer-body { flex: 1; overflow-y: auto; padding: 6px 20px; }

.line {
  display: grid; grid-template-columns: 54px 1fr auto;
  gap: 13px; align-items: start;
  padding: 16px 0; border-bottom: 1px dashed var(--rule);
}
.line-face {
  width: 54px; height: 54px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(155deg, var(--ink-3), #191428);
  border: 1px solid var(--rule);
  font-family: var(--display); font-size: 1.02rem; color: var(--gold);
  letter-spacing: -.02em;
}
.line-main { min-width: 0; }
.line-name { font-weight: 700; font-size: 0.94rem; line-height: 1.35; }
.line-unit {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-top: 2px;
}
.stepper {
  display: inline-flex; align-items: center; margin-top: 10px;
  border: 1px solid var(--rule); border-radius: 9px; overflow: hidden;
  background: var(--ink);
}
.stepper button {
  width: 46px; height: 44px; flex: none;
  border: 0; background: transparent; color: var(--text);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: background .12s;
}
.stepper button:hover { background: var(--ink-3); }
.stepper button:active { background: #3a3050; }
.stepper output {
  min-width: 40px; text-align: center;
  font-family: var(--mono); font-size: 0.92rem; font-weight: 600;
  border-inline: 1px solid var(--rule); padding: 11px 0;
}
.line-end { text-align: right; display: grid; gap: 8px; justify-items: end; }
.line-sum { font-family: var(--mono); font-weight: 600; font-size: 1rem; }
.line-del {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 0.78rem; padding: 6px 2px; min-height: 32px;
  text-decoration: underline; text-underline-offset: 3px;
}
.line-del:hover { color: var(--hot); }

.drawer-empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.drawer-empty p { margin-bottom: 18px; font-size: 0.92rem; }

.drawer-foot {
  border-top: 1px solid var(--rule);
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  display: grid; gap: 11px;
  background: var(--ink-2);
}
.drawer-foot[hidden] { display: none; }
.tally { display: flex; justify-content: space-between; align-items: baseline; }
.tally span { color: var(--muted); font-size: 0.88rem; }
.tally strong { font-family: var(--mono); font-size: 1.35rem; font-weight: 600; }
.tally-note {
  font-size: 0.8rem; color: var(--gold); line-height: 1.5;
  border-left: 2px solid var(--gold); padding-left: 10px;
}
.tally-note[hidden] { display: none; }
.btn-lg { padding: 14px 20px; font-size: 0.96rem; }
.drawer-acts { display: flex; gap: 8px; }
.drawer-acts .btn { flex: 1; }

@media (max-width: 780px) {
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 88vh; border-left: 0;
    border-top: 1px solid var(--rule); border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .drawer.is-open { transform: translateY(0); }
  .drawer-top { padding: 16px 16px 14px; }
  .drawer-body { padding: 4px 16px; }
  .drawer-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
  .line { grid-template-columns: 46px 1fr auto; gap: 11px; }
  .line-face { width: 46px; height: 46px; font-size: 0.92rem; }
  .cart-btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer { transition: none; }
}



/* ── 全幅深色帶：打斷卡片節奏 ─────────────── */
.band {
  margin: 54px calc(50% - 50vw);
  padding: 46px calc(50vw - 50%);
  border-block: 1px solid var(--rule);
  background: rgba(255, 255, 255, .018);
}
.band .head { margin-top: 0; }

/* 保障條目改為無卡片的清單，與卡片格拉開差異 */
.claims { display: grid; gap: 0; }
.claims > div {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.claims > div:last-child { border-bottom: 0; }
.claims .mk {
  font-family: var(--mono); font-size: 0.75rem; color: var(--hot);
  padding-top: 3px; letter-spacing: .04em;
}
.claims b { display: block; font-size: 1rem; margin-bottom: 5px; }
.claims span { color: var(--muted); font-size: 0.87rem; line-height: 1.75; }

/* 流程改為橫向時間軸，不再是四張等寬卡 */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 8px; }
.rail div { position: relative; padding: 26px 16px 0 0; }
.rail div::before {
  content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 1px;
  background: var(--rule);
}
.rail div::after {
  content: ''; position: absolute; top: 4px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hot); box-shadow: 0 0 0 4px rgba(255,32,56,.14);
}
.rail .n {
  font-family: var(--mono); font-size: 0.75rem; color: var(--hot);
  letter-spacing: .1em; display: block; margin-bottom: 4px;
}
.rail b { display: block; font-size: 0.97rem; margin-bottom: 5px; }
.rail span { color: var(--muted); font-size: 0.84rem; line-height: 1.7; }

@media (max-width: 780px) {
  .band { margin: 36px 0; padding: 32px 0; }
  .rail { grid-template-columns: 1fr; gap: 0; }
  .rail div { padding: 20px 0 20px 20px; }
  .rail div::before { top: 0; left: 4px; right: auto; bottom: 0; width: 1px; height: auto; }
  .rail div::after { top: 22px; left: 0; }
  .claims > div { grid-template-columns: 28px 1fr; gap: 12px; padding: 15px 0; }
}

/* ── 結帳 ─────────────────────────────────── */
.steps {
  display: flex; gap: 0; margin: 22px 0 26px;
  font-family: var(--mono); font-size: 0.75rem;
}
.steps li { list-style: none; flex: 1; text-align: center; position: relative; color: var(--muted); }
.steps li::before {
  content: ''; display: block; height: 2px; background: var(--rule); margin-bottom: 8px;
}
.steps li.now { color: var(--text); }
.steps li.now::before { background: var(--hot); }
.steps li.done::before { background: var(--gold); }

.fieldset {
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--ink-2); padding: 18px 18px 20px; margin-bottom: 14px;
}
.fieldset > legend, .fieldset .legend {
  display: flex; align-items: baseline; gap: 9px;
  font-weight: 700; font-size: 1rem; margin-bottom: 4px;
}
.fieldset .legend em {
  font-style: normal; font-family: var(--mono); font-size: 0.75rem;
  color: var(--ink); background: var(--gold);
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.fieldset .legend-note {
  font-size: 0.81rem; color: var(--muted); margin-bottom: 14px; line-height: 1.6;
}

.order-slip {
  border: 1px solid var(--rule); border-radius: 10px;
  background: rgba(255, 32, 56, .05);
  padding: 16px 18px; margin-bottom: 18px;
}
.order-slip .rows { display: grid; gap: 7px; margin-bottom: 12px; }
.order-slip .r {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.88rem;
}
.order-slip .r span:first-child { color: var(--muted); }
.order-slip .r b { font-family: var(--mono); font-weight: 600; }
.order-slip .grand {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--rule); padding-top: 12px;
}
.order-slip .grand span { font-size: 0.88rem; color: var(--muted); }
.order-slip .grand b { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--text); }

.submit-bar {
  position: sticky; bottom: 0; z-index: 20;
  background: linear-gradient(transparent, var(--ink) 22%);
  padding: 18px 0 calc(14px + env(safe-area-inset-bottom));
  margin-top: 6px;
}
.submit-bar .btn { width: 100%; }
.submit-bar .fineprint {
  text-align: center; font-size: 0.76rem; color: var(--muted); margin-top: 9px; line-height: 1.6;
}

@media (max-width: 780px) {
  .fieldset { padding: 15px 15px 17px; }
  .steps { font-size: 0.75rem; }
  .order-slip .grand b { font-size: 1.3rem; }
}

/* ── 表單 ─────────────────────────────────── */
.form { display: grid; gap: 13px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field label b { color: var(--hot); font-weight: 400; }

.field .hint { font-size: 0.76rem; color: var(--muted); }
.pays { display: flex; flex-wrap: wrap; gap: 7px; }
.pays label {
  font-family: var(--mono); font-size: 0.78rem; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 3px; padding: 7px 12px;
}
.pays input { position: absolute; opacity: 0; }
.pays input:checked + span { color: var(--gold); }
.pays label:has(input:checked) { border-color: var(--gold); }

/* ── 雜項 ─────────────────────────────────── */
.note {
  border-left: 2px solid var(--gold); padding: 4px 0 4px 16px;
  color: var(--muted); font-size: 0.88rem; margin: 22px 0;
}
.alert {
  border-left: 2px solid var(--hot); background: #2a1418;
  padding: 12px 16px; border-radius: 0 4px 4px 0;
  font-size: 0.88rem; margin: 18px 0;
}
.empty, .center { text-align: center; color: var(--muted); padding: 56px 20px; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--paper); color: var(--ink); font-size: 0.86rem; font-weight: 700;
  padding: 11px 20px; border-radius: 4px; z-index: 60;
  animation: rise .18s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 7px); } }

.gate {
  max-width: 420px; margin: 76px auto; text-align: center;
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 5px; padding: 38px 30px;
}
.gate h1 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 8px; }
.gate p { color: var(--muted); font-size: 0.89rem; margin-bottom: 26px; }

/* 訂單 = 收據 */
.receipt {
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 5px;
  padding: 17px 19px; margin-bottom: 12px; font-family: var(--mono); font-size: 0.84rem;
}
.receipt .top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px dashed var(--rule); margin-bottom: 10px;
}
.receipt .no { color: var(--gold); font-weight: 600; }
.receipt .ln {
  display: grid; grid-template-columns: 10em 1fr;
  gap: 14px; padding: 4px 0; align-items: baseline;
}
.receipt .ln span:first-child { white-space: nowrap; }
.receipt .ln span:first-child { color: var(--muted); }
.receipt .ln span:last-child {
  color: var(--text); word-break: break-word; text-align: left;
}
.receipt .tot {
  display: flex; justify-content: space-between; font-weight: 600;
  border-top: 1px dashed var(--rule); margin-top: 12px; padding-top: 12px;
  font-size: 1.02rem;
}
.receipt .tot span:last-child { color: var(--text); }
.state { font-size: 0.75rem; letter-spacing: .08em; padding: 3px 9px; border-radius: 3px; }
.state.pending { background: #3a2e14; color: var(--gold); }
.state.done { background: #12301f; color: var(--line-green); }

footer.site {
  border-top: 1px solid var(--rule); margin-top: 60px;
  padding: 26px 0 calc(40px + env(safe-area-inset-bottom));
  padding-right: 0;
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
}
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; padding-right: 170px; }

@media (max-width: 780px) {
  nav.main { display: none; }
  .board { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 34px; }
  .pricelist a { grid-template-columns: 1fr auto; }
  .pricelist .c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

/* ── 品牌 LOGO ────────────────────────────── */
.brand img { height: 34px; width: auto; border-radius: 5px; }
.brand .txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand .txt b { font-family: var(--display); font-size: 0.98rem; }
.brand .txt small {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: .18em;
  color: var(--muted); font-weight: 400;
}

/* ── 搜尋列 ───────────────────────────────── */
.search { position: relative; margin: 0 0 22px; }
.search input {
  width: 100%; background: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 6px;
  color: var(--text); font-family: var(--body); font-size: 0.95rem;
  padding: 13px 16px 13px 44px;
}
.search input:focus { border-color: var(--hot); outline: none; }
.search input::placeholder { color: var(--muted); }
.search .ic {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; fill: var(--muted); pointer-events: none;
}
.search .clr {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1rem; width: 40px; height: 40px; line-height: 1;
  border-radius: 8px;
}
.search .clr:hover { color: var(--text); background: var(--ink-3); }

/* ── 遊戲卡片格 ───────────────────────────── */
.games {
  display: grid; gap: 12px; margin-bottom: 52px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.game {
  display: grid; grid-template-columns: 52px 1fr auto;
  gap: 12px; align-items: center;
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 8px;
  padding: 12px; position: relative; overflow: hidden;
  transition: border-color .14s, transform .14s;
}
.game:hover { border-color: var(--hot); transform: translateY(-2px); }
.game:hover .go { background: var(--hot); border-color: var(--hot); color: #fff; }

/* 沒有官方圖示授權，用遊戲名首字做識別色塊 */
.game .ico {
  width: 52px; height: 52px; border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.35rem; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
/* span 預設 inline，不設 block 會讓名稱與數量擠在同一行 */
.game .meta { min-width: 0; display: block; }
.game .nm {
  display: block; font-weight: 700; font-size: 0.94rem; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.game .sub {
  display: flex; gap: 8px; align-items: baseline;
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.4;
}
.game .ct { color: var(--muted); white-space: nowrap; }
.game .pr { color: var(--gold); white-space: nowrap; }
.game .go {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--ink-3);
  display: grid; place-items: center; font-size: 0.85rem; color: var(--muted);
  transition: background .14s, color .14s, border-color .14s;
}
/* 靠右上，避開左側圖示 */
.game .hot {
  position: absolute; top: 0; right: 0;
  background: var(--hot); color: #fff;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 0 7px 0 7px;
}

/* ── 手機選單 ─────────────────────────────── */
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex: none; margin-right: -10px;
  padding: 0; touch-action: manipulation; border-radius: 9px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger:active { background: var(--ink-3); }
.burger span {
  display: block; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; flex: none;
  transition: transform .18s, opacity .18s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 手機版 ───────────────────────────────── */
@media (max-width: 780px) {
  .wrap { padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-left)); }
  header.site .wrap { height: 56px; gap: 10px; }
  .brand img { height: 30px; }
  .brand .txt small { display: none; }
  .burger { display: flex; }
  .cart-btn { margin-left: 2px; }

  nav.main {
    display: none;
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--ink-2); border-bottom: 1px solid var(--rule);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  }
  nav.main.open { display: flex; }
  nav.main a {
    padding: 14px 20px; font-size: 0.95rem; color: var(--text);
    border-bottom: 1px solid var(--rule);
  }

  nav.main .user-box {
    width: 100%; padding: 14px 20px; gap: 11px;
    justify-content: flex-start; background: var(--ink-3);
  }
  nav.main .user-box img { width: 34px; height: 34px; }
  nav.main .user-box .name { max-width: none; flex: 1; }
  nav.main .user-box .btn { min-height: 40px; }
  nav.main .user-box > a.btn-line { width: 100%; justify-content: center; }

  .board {
    grid-template-columns: 1fr; gap: 26px;
    padding: 34px max(16px, env(safe-area-inset-left)) 30px;
    background:
      linear-gradient(180deg, transparent 68%, #17131f 98%),
      radial-gradient(74% 42% at 74% 6%, rgba(255, 32, 56, .22), transparent 62%),
      #191420;
  }
  .board .acts .btn { flex: 1; }
  .head { margin: 32px 0 14px; flex-wrap: wrap; }
  .head h2 { font-size: 1.24rem; }

  /* 兩欄，符合手機拇指操作寬度 */
  .games { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .game { grid-template-columns: 42px 1fr; padding: 10px; gap: 9px; }
  .game .ico { width: 42px; height: 42px; font-size: 1.1rem; }
  .game .nm { font-size: 0.85rem; }
  .game .sub { flex-direction: column; gap: 0; font-size: 0.75rem; }
  .game .go { display: none; }

  .cards { grid-template-columns: 1fr; }
  .topup { grid-template-columns: 96px 1fr; }
  .topup::before { left: 96px; }
  .topup .face .n { font-size: 1.5rem; }


  .slip { font-size: 0.78rem; padding: 16px 18px 18px; }
  .receipt { font-size: 0.8rem; padding: 14px; }
  footer.site .wrap { flex-wrap: wrap; gap: 4px 16px; align-items: center; padding-right: 120px; }
  footer.site .spacer { display: none; }
}

/* 手機橫向與小平板 */
@media (min-width: 781px) and (max-width: 1000px) {
  .games { grid-template-columns: repeat(3, 1fr); }
}

/* 觸控裝置不要 hover 位移，避免點擊時跳動 */
@media (hover: none) {
  .game:hover, .topup:hover, .card:hover { transform: none; }
  .pricelist a:hover { padding-left: 4px; }
}




/* ── 後台：會員密集列表 ───────────────────── */
.mlist { display: grid; gap: 8px; margin-bottom: 48px; }

.mrow {
  display: grid; align-items: center; gap: 8px 16px;
  grid-template-columns: 3.4em minmax(0, 1fr) 13em 10em 5.6em auto;
  background: var(--ink-2); border: 1px solid var(--rule);
  border-radius: 10px; padding: 12px 15px;
}
.mrow:hover { border-color: #4a4058; }
.mrow.has-avatar { grid-template-columns: 40px 3.4em minmax(0, 1fr) 13em 10em 5.6em auto; }
.mavatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--rule);
  font-family: var(--display); font-size: .95rem; color: var(--muted);
}
.mavatar img { width: 100%; height: 100%; object-fit: cover; }
.macts { display: flex; gap: 7px; align-items: center; }
.credshow {
  font-family: var(--mono); font-size: .88rem;
  background: #2a1418; border: 1px solid var(--hot); border-radius: 7px;
  padding: 6px 7px 6px 11px;
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.credshow code {
  font-family: var(--mono); color: var(--text); user-select: all;
  word-break: break-all;
}
.credshow .btn { min-height: 34px; padding: 6px 11px; font-size: .78rem; }

.bound {
  font-size: .74rem; color: var(--line-green); white-space: nowrap;
  border: 1px solid rgba(6,199,85,.4); border-radius: 999px; padding: 5px 10px;
}

.unbound {
  font-size: .74rem; color: var(--muted); white-space: nowrap;
  border: 1px dashed var(--rule); border-radius: 999px; padding: 5px 10px;
}
.mrow .mid { font-family: var(--mono); color: var(--gold); font-weight: 600; font-size: .84rem; }
.mrow .mname {
  font-weight: 600; font-size: .92rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mrow .mstats { display: flex; gap: 14px; align-items: baseline; }
.mrow .mstat {
  font-family: var(--mono); font-size: .76rem; color: var(--muted);
  white-space: nowrap;
}
.mrow .mstat b {
  color: var(--text); font-size: .84rem; font-weight: 600; margin-left: 5px;
}
.mrow .btn { min-height: 40px; padding: 8px 14px; }

.kyc {
  font-size: .72rem; line-height: 1.7; padding: 2px 9px; border-radius: 999px;
  white-space: nowrap; justify-self: start;
}
.kyc.none { background: var(--ink-3); color: var(--muted); }
.kyc.light { background: #2a2410; color: var(--gold); }
.kyc.verified { background: #12301f; color: var(--line-green); }
.kyc.review { background: #2a1418; color: var(--hot); }
.kyc.rejected { background: #241f2e; color: var(--muted); }

@media (max-width: 860px) {
  .mrow {
    grid-template-columns: 3.4em minmax(0, 1fr) auto;
    grid-template-areas: 'id name kyc' 'id stats act';
    row-gap: 8px;
  }
  .mrow.has-avatar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: 'av name kyc' 'av stats act';
  }
  .mavatar { grid-area: av; }
  .mrow.has-avatar .mid { display: none; }
  .macts { grid-area: act; }
  .mrow .mid { grid-area: id; }
  .mrow .mname { grid-area: name; }
  .mrow .kyc { grid-area: kyc; justify-self: end; }
  .mrow .mstats { grid-area: stats; display: flex; gap: 14px; flex-wrap: wrap; }
  .mrow .btn { grid-area: act; }
}

/* ── 後台：遊戲分組 ───────────────────────── */
.gamegroup {
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--ink-2); margin-bottom: 9px; overflow: hidden;
}
.gamegroup[open] { border-color: #4a4058; }
.gamegroup > summary {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer; min-height: 56px;
}
.gamegroup > summary:hover { background: var(--ink-3); }
.gamegroup > summary::after {
  content: '＋'; margin-left: auto; color: var(--muted); font-size: 1rem; flex: none;
}
.gamegroup[open] > summary::after { content: '－'; }
.gamegroup[open] > summary { border-bottom: 1px solid var(--rule); }
.gname { font-weight: 700; font-size: 1rem; }
.gmeta { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.gbody { padding: 10px 12px 12px; display: grid; gap: 8px; }
.gbody .prow { background: var(--ink); }

/* ── 後台：商品密集列表 ───────────────────── */
.plist { display: grid; gap: 8px; margin-bottom: 48px; }

.prow {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 56px 9em minmax(0, 1fr) 7em 7em 8.5em 8.4em auto;
  background: var(--ink-2); border: 1px solid var(--rule);
  border-radius: 10px; padding: 12px 15px;
}
.prow.is-off { opacity: .52; }
.prow:hover { border-color: #4a4058; }

.pthumb {
  width: 56px; height: 56px; flex: none; padding: 0; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  background: var(--ink); display: grid; place-items: center;
  transition: border-color .14s;
}
.pthumb:hover { border-color: var(--hot); }
.pthumb.is-drop { border-color: var(--gold); border-style: solid; box-shadow: 0 0 0 3px rgba(255,180,61,.25); }
.pthumb.is-busy { opacity: .5; pointer-events: none; }
.pthumb.is-busy::after { content: '…'; position: absolute; color: var(--gold); font-size: 1.1rem; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb.is-empty {
  border-style: dashed;
  background: linear-gradient(150deg, var(--ink-3), #191428);
}
.pthumb.is-empty span {
  font-family: var(--display); font-size: 1.2rem; color: var(--muted);
}
.pthumb.is-empty::after {
  content: '＋'; position: absolute; font-size: .8rem; color: var(--hot);
  transform: translate(16px, 16px);
}

.prow-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.psku {
  font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .04em;
}
.ptag {
  align-self: flex-start; font-size: .68rem; line-height: 1.6;
  color: #2a0d12; background: var(--gold);
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
}
.ptag.off { background: var(--rule); color: var(--muted); }

.prow-name { min-width: 0; }
.prow-name b {
  display: block; font-size: .94rem; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prow-name span {
  display: block; font-size: .78rem; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.prow-price { display: grid; gap: 4px; }
.prow-price > span, .prow-stock > span:first-child {
  font-size: .72rem; color: var(--muted);
}
.prow-price .px, .prow-price .pxa { width: 100%; min-height: 40px; padding: 8px 11px; font-family: var(--mono); }
.prow-price .pmode { min-height: 40px; padding: 8px 30px 8px 10px; font-size: .82rem; }

.prow-stock { display: grid; gap: 4px; justify-items: start; }
.prow-stock .qty button { width: 38px; height: 40px; font-size: .95rem; }
.prow-stock .qty > span { min-width: 42px; height: 40px; font-size: .82rem; }

.prow-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.prow-acts .btn { min-height: 40px; padding: 8px 13px; white-space: nowrap; }

@media (max-width: 1100px) {
  .prow {
    grid-template-columns: 56px minmax(0, 1fr) 7em 7em;
    grid-template-areas: 'thumb name price pricea' 'thumb id mode stock' 'acts acts acts acts';
    row-gap: 10px;
  }
  .prow-price:nth-of-type(2) { grid-area: pricea; }
  .prow-price:nth-of-type(3) { grid-area: mode; }
  .pthumb { grid-area: thumb; align-self: start; }
  .prow-id { grid-area: id; flex-direction: row; align-items: center; gap: 8px; }
  .prow-name { grid-area: name; }
  .prow-price { grid-area: price; }
  .prow-stock { grid-area: stock; }
  .prow-acts { grid-area: acts; justify-content: flex-end; }
}

@media (max-width: 620px) {
  .prow {
    grid-template-columns: 48px 1fr;
    grid-template-areas: 'thumb name' 'thumb id' 'price pricea' 'mode stock' 'acts acts';
    padding: 13px 14px; column-gap: 11px;
  }
  .pthumb { width: 48px; height: 48px; }
  .prow-acts { justify-content: stretch; }
  .prow-acts .btn { flex: 1; }
  .prow-price { justify-self: stretch; }
}

/* ── 後台：可展開訂單列 ───────────────────── */
.ordrow {
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--ink-2); margin-bottom: 9px; overflow: hidden;
}
.ordrow[open] { border-color: #4a4058; }
.ordrow > summary {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; cursor: pointer; min-height: 54px;
  font-size: 0.86rem;
}
.ordrow .no { flex: none; width: 3.4em; }
.ordrow .state { flex: none; }
.ordrow .who { flex: 1 1 auto; min-width: 3em; }
.ordrow .acct { flex: 0 1 9em; min-width: 0; }
.ordrow .amt { flex: none; width: 6.6em; }
.ordrow .when { flex: none; width: 5.4em; }
.ordrow > summary > .state:last-of-type { margin-left: 0; }
.ordrow > summary:hover { background: var(--ink-3); }
.ordrow > summary::after {
  content: '＋'; color: var(--muted); font-size: 0.95rem; flex: none; margin-left: auto;
}
.ordrow[open] > summary::after { content: '－'; }
.ordrow[open] > summary { border-bottom: 1px dashed var(--rule); }

.ordrow .no { font-family: var(--mono); color: var(--gold); font-weight: 600; }
.ordrow .who {
  font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ordrow .acct {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ordrow .amt { font-family: var(--mono); font-weight: 600; text-align: right; }
.ordrow .when { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.ordrow .state { justify-self: start; }

.ordbody { padding: 14px 16px 16px; font-family: var(--mono); font-size: 0.84rem; }
.ordbody .ln {
  display: grid; grid-template-columns: 8em 1fr; gap: 14px;
  padding: 4px 0; align-items: baseline;
}
.ordbody .ln span:first-child { color: var(--muted); white-space: nowrap; }
.ordbody .tot {
  display: flex; justify-content: space-between; font-weight: 600;
  border-top: 1px dashed var(--rule); margin-top: 12px; padding-top: 12px;
}

/* ── 數量步進（後台庫存調整沿用）─────────── */
.qty { display: inline-flex; align-items: center; }
.qty button {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--rule); background: var(--ink-3); color: var(--text);
  cursor: pointer; font-size: 1rem; line-height: 1;
  transition: background .12s;
}
.qty button:first-child { border-radius: 8px 0 0 8px; }
.qty button:last-child { border-radius: 0 8px 8px 0; }
.qty button:hover { background: #37304b; }
.qty button:active { background: #443a5c; }
.qty > span, .qty > output {
  min-width: 46px; height: 40px; display: grid; place-items: center;
  border-block: 1px solid var(--rule); background: var(--ink);
  font-family: var(--mono); font-size: 0.88rem; font-weight: 600;
}

@media (max-width: 900px) {
  .ordrow > summary { flex-wrap: wrap; row-gap: 7px; padding: 12px 14px; }
  .ordrow .who { flex: 1 1 40%; }
  .ordrow .acct { display: none; }
  .ordrow .amt { width: auto; }
  .ordrow .when { width: auto; }
  .ordbody .ln { grid-template-columns: 6.5em 1fr; gap: 10px; }
}


.catrow {
  display: grid; grid-template-columns: 8em 1fr auto; gap: 14px;
  align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule);
}
.catrow:last-child { border-bottom: 0; }
.catrow b { font-size: .94rem; }
.catrow span { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.catbtns { display: flex; gap: 6px; }
.catrow .btn { min-height: 38px; }

.mrow select { min-height: 42px; }
.mrow[data-game] { grid-template-columns: minmax(0, 1fr) 11em 11em auto; }

@media (max-width: 860px) {
  .mrow[data-game] {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'name name' 'stats stats' 'sel btn';
    row-gap: 9px;
  }
  .mrow[data-game] .mname { grid-area: name; }
  .mrow[data-game] .mstats { grid-area: stats; }
  .mrow[data-game] select { grid-area: sel; }
  .mrow[data-game] .btn { grid-area: btn; }
  .catrow { grid-template-columns: 1fr auto; grid-template-areas: 'name btn' 'meta btn'; row-gap: 3px; }
  .catbtns { grid-area: btn; }
  .catrow b { grid-area: name; }
  .catrow span { grid-area: meta; }
  .catrow .btn { grid-area: btn; }
}

/* ── 後台：設定頁 ─────────────────────────── */
.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; min-height: 44px; }
.switch input { flex: none; }
.switch span { font-size: .92rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.optrow {
  display: grid; align-items: center; gap: 9px;
  grid-template-columns: 44px minmax(0, 1fr) 9em 6.5em 6.5em auto;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.optrow:last-of-type { border-bottom: 0; }
.optrow input, .optrow select { min-height: 42px; }
.optrow .switch { min-height: 42px; justify-content: center; }
.optrow .btn { min-height: 42px; }

@media (max-width: 780px) {
  .optrow {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: 'sw label del' 'sw code code' 'fee fee mode';
    row-gap: 8px; padding: 12px 0;
  }
  .optrow .switch { grid-area: sw; }
  .optrow [data-f="label"] { grid-area: label; }
  .optrow [data-f="code"] { grid-area: code; }
  .optrow [data-f="fee"] { grid-area: fee; }
  .optrow [data-f="mode"] { grid-area: mode; }
  .optrow .btn { grid-area: del; }
}

.ordrow .itm {
  flex: 0 1 12em; min-width: 0; font-size: .8rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 900px) { .ordrow .itm { display: none; } }

/* ---------- 後台 ---------- */
/* 訂單狀態徽章：沿用既有 .state.pending / .state.done 的硬編碼色系 */
.state.paid { background: #2a2410; color: var(--gold); }
.state.cancelled { background: #241f2e; color: var(--muted); }

.hint-line { font-size: 0.76rem; color: var(--muted); margin: 8px 0 22px; }


.daily .form, .daily .pricelist { padding: 4px 16px 16px; margin-bottom: 0; }
.daily .pricelist a { cursor: default; }
.daily .pricelist a:hover { background: none; padding-left: 0; }

/* KPI 卡：不再沿用點數卡，避免帶進打孔虛線 */
.kpi-grid {
  display: grid; gap: 12px; margin-bottom: 8px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; } }
@media (max-width: 900px) {
  .topup.kpi { padding: 11px 13px; }
  .topup.kpi .sku { font-size: .76rem; }
  .topup.kpi .price { font-size: 1.2rem; }
}
.topup.kpi {
  display: block; grid-template-columns: none;
  border-radius: 10px; padding: 15px 17px;
}
.topup.kpi::before { display: none; }
.topup.kpi:hover { transform: none; border-color: var(--rule); }
.topup.kpi .face { display: none; }
.topup.kpi .info { padding: 0; gap: 5px; }
.topup.kpi .sku {
  font-family: var(--body); font-size: 0.8rem; color: var(--muted); letter-spacing: 0;
}
.topup.kpi .price {
  font-family: var(--mono); font-size: 1.5rem; color: var(--text); font-weight: 600;
}
.topup.kpi.is-alert .price { color: var(--hot); }

.daily {
  border: 1px solid var(--rule); border-radius: 10px;
  margin-bottom: 20px; background: var(--ink-2); overflow: hidden;
}
.daily > summary {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 17px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  min-height: 48px;
}
.daily > summary::after {
  content: '＋'; margin-left: auto; color: var(--muted); font-size: 1rem;
}
.daily[open] > summary::after { content: '－'; }
.daily > summary:hover { background: var(--ink-3); }

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px;
}
.filters input { flex: 1 1 220px; width: auto; min-width: 0; }
.filters select { flex: 0 1 14em; width: auto; min-height: 44px; }
.fcount { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-left: auto; }
.filters .btn { min-height: 44px; }

.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.acts .px { width: 110px; min-height: 40px; font-family: var(--mono); padding: 8px 11px; }
.receipt .acts { border-top: 1px dashed var(--rule); padding-top: 13px; margin-top: 4px; }
.receipt .top { align-items: center; gap: 8px; }
.receipt .top .state { margin-left: auto; }
.receipt .top .state + .state { margin-left: 0; }

.tiles {
  display: grid; gap: 12px 12px; margin-bottom: 56px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 14px 10px 15px;
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 14px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.tile:hover {
  border-color: var(--hot); transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(255, 32, 56, .16);
}
.tile .art {
  position: relative; width: 100%; max-width: 92px; aspect-ratio: 1 / 1;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--rule);
  background: linear-gradient(150deg, var(--ink-3), #191428);
}
.tile .art img { width: 100%; height: 100%; object-fit: cover; }
.tile .art .mark {
  font-family: var(--display); font-size: 2.4rem; line-height: 1;
  color: #fff; letter-spacing: -.04em;
  text-shadow: 0 0 22px rgba(255, 32, 56, .5), 0 3px 9px rgba(0, 0, 0, .7);
}
.tile .nm {
  width: 100%; text-align: center;
  font-weight: 600; font-size: 0.86rem; line-height: 1.32;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile .flag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--hot); color: #fff;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; margin: 6px 0 8px;
}
.trust div { background: var(--ink-2); padding: 18px 14px; text-align: center; }
.trust .v {
  font-family: var(--display); font-size: 1.55rem; color: var(--text);
  line-height: 1.1; letter-spacing: -.02em;
}
.trust .v em { font-style: normal; font-size: 0.82rem; color: var(--muted); margin-left: 2px; }
.trust .k { font-size: 0.76rem; color: var(--muted); margin-top: 5px; }

.assure { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.assure div {
  background: var(--ink-2); border: 1px solid var(--rule);
  border-left: 2px solid var(--hot); border-radius: 0 8px 8px 0; padding: 14px 16px;
}
.assure b { display: block; font-size: 0.93rem; margin-bottom: 4px; }
.assure span { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

.qa { border-top: 1px solid var(--rule); margin-bottom: 20px; }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 16px 4px; font-weight: 700; font-size: 0.97rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; margin-left: auto; color: var(--hot);
  font-family: var(--mono); font-size: 1.25rem; line-height: 1;
  transition: transform .18s;
}
.qa details[open] summary::after { content: '−'; }
.qa summary:hover { color: var(--gold); }
.qa .a { padding: 0 4px 18px; color: var(--muted); font-size: 0.89rem; line-height: 1.75; }

.cta {
  text-align: center; padding: 46px 24px; margin: 40px 0 8px;
  background: rgba(255, 32, 56, .05);
  border: 1px solid var(--rule); border-radius: 12px;
}
.cta h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 8px; }
.cta p { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.cta .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.helpdesk {
  position: fixed; right: 18px; bottom: 18px; z-index: 35;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--line-green); color: #fff;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 0.89rem;
  box-shadow: 0 8px 24px rgba(6, 199, 85, .3);
  transition: transform .15s, box-shadow .15s;
}
.helpdesk:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(6, 199, 85, .42); }
.helpdesk svg { width: 19px; height: 19px; fill: currentColor; }


.crumb {
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
  margin: 22px 0 -8px;
}
.crumb a:hover { color: var(--text); }
.crumb span { margin: 0 6px; opacity: .5; }

@media (max-width: 780px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .tile { padding: 11px 7px 12px; gap: 8px; border-radius: 13px; }
  .tile .art { max-width: 100%; border-radius: 15px; }
  .tile .art .mark { font-size: 1.9rem; }
  .tile .nm { font-size: 0.78rem; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust .v { font-size: 1.3rem; }
  .cta { padding: 34px 18px; }
  .cta .acts .btn { flex: 1; }
  .helpdesk {
    padding: 11px 15px; font-size: 0.84rem; right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

body[data-liff] header.site nav.main,
body[data-liff] header.site .burger,
body[data-liff] footer.site { display: none; }

.liff-state[hidden], #liff-ready[hidden] { display: none; }

.liff-state .alert { text-align: left; margin: 0 0 22px; }

.liff-actions { display: flex; flex-direction: column; gap: 10px; }

.liff-profile {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 18px; font-size: 0.88rem;
}
.liff-profile:empty { display: none; }
.liff-profile img { width: 30px; height: 30px; border-radius: 50%; }
.liff-profile .name { color: var(--muted); }

@media (max-width: 780px) {
  .head { flex-wrap: wrap; align-items: center; row-gap: 4px; }
  .head h2 { font-size: 1.3rem; }
  .head .tag { font-size: 0.75rem; }
  .head .r {
    margin-left: 0; width: 100%; order: 3;
    font-size: 0.82rem; color: var(--gold);
  }

  .note { font-size: 0.85rem; line-height: 1.7; padding-left: 13px; }

  .tile .flag { font-size: 0.75rem; padding: 3px 7px; }
  .tile .sub { font-size: 0.76rem; }
  .tile .nm { font-size: 0.92rem; }

  .topup { grid-template-columns: 86px 1fr; }
  .topup::before { left: 86px; }
  .topup .face { padding: 12px 6px; }
  .topup .face .n { font-size: 1.4rem; }
  .topup .face .u { font-size: 0.75rem; letter-spacing: .06em; }
  .topup .info { padding: 12px 13px; }
  .topup .sku { font-size: 0.75rem; }
  .topup h3 { font-size: 0.93rem; line-height: 1.35; }
  .topup .row { gap: 8px; padding-top: 12px; }
  .topup .price { font-size: 1.02rem; }
  .topup .row .btn { padding: 7px 16px; }

  .trust .v { font-size: 1.2rem; }
  .trust .v em { font-size: 0.75rem; }
  .trust .k { font-size: 0.75rem; }
  .trust div { padding: 14px 10px; }

  .slip { font-size: 0.8rem; }
  .slip .t { font-size: 0.75rem; }
  .slip li { gap: 10px; }

  .assure b { font-size: 0.9rem; }
  .assure span { font-size: 0.82rem; }

  .qa summary { font-size: 0.93rem; padding: 15px 2px; }
  .qa .a { font-size: 0.85rem; line-height: 1.8; padding-bottom: 16px; }

  .field label { font-size: 0.85rem; }
  .field .hint { font-size: 0.79rem; line-height: 1.6; }
  .pays label { font-size: 0.82rem; padding: 8px 13px; }
  .receipt { font-size: 0.82rem; }
}

@media (max-width: 780px) {
  .chips {
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    margin-bottom: 16px; padding: 0 16px 4px; max-width: 100vw;
  }
  .chip { min-height: 44px; padding: 0 14px; font-size: 0.84rem; }
  body::before { background-attachment: scroll, scroll, scroll; }
}

@media (max-width: 380px) {
  .tiles { gap: 8px; }
  .tile .nm { font-size: 0.86rem; }
  .tile .sub { font-size: 0.75rem; }
  .topup { grid-template-columns: 76px 1fr; }
  .topup::before { left: 76px; }
  .topup .face .n { font-size: 1.25rem; }
  .head h2 { font-size: 1.18rem; }
}

/* ── 自訂對話框 ─────────────────────────── */
body.modal-open { overflow: hidden; }

.modal-back {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(9, 7, 14, .72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: modalIn .16s ease-out;
}
.modal-back.is-out { animation: modalOut .13s ease-in forwards; }

@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalOut { to { opacity: 0; } }

.modal {
  width: min(440px, 100%);
  max-height: calc(100svh - 40px);
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
  animation: modalRise .18s cubic-bezier(.2, .9, .3, 1);
}

@keyframes modalRise {
  from { transform: translateY(12px) scale(.985); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-head {
  padding: 19px 21px 0;
}
.modal-head h3 {
  font-family: var(--display); font-size: 1.06rem; line-height: 1.3; margin: 0;
}
.modal-head p {
  margin: 6px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5;
}

.modal-body { padding: 17px 21px 4px; overflow-y: auto; }
.modal-msg { margin: 0; font-size: .9rem; line-height: 1.65; color: var(--text); }

.modal-body .field { margin: 0; }
.modal-body .field label {
  display: block; font-size: .8rem; color: var(--muted); margin-bottom: 7px;
}

.modal-err {
  display: block; margin-top: 8px; font-size: .79rem; line-height: 1.5;
  color: #ff8b9c;
}

.modal-foot {
  display: flex; gap: 9px; justify-content: flex-end;
  padding: 17px 21px 19px;
}
.modal-foot .btn { min-height: 46px; padding: 12px 19px; }

.btn-danger {
  background: linear-gradient(160deg, #c2183a, #8e0f28);
  border-color: #d8264a; color: #fff;
}
.btn-danger:hover { background: linear-gradient(160deg, #d81c43, #a1122e); }

/* ── 圖片上傳區 ─────────────────────────── */
.uploader {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  align-items: center; gap: 15px;
  padding: 15px; cursor: pointer;
  background: var(--ink);
  border: 1.5px dashed var(--rule); border-radius: 11px;
  transition: border-color .15s, background .15s;
}
.uploader:hover, .uploader:focus-visible {
  border-color: var(--hot); background: var(--ink-3); outline: none;
}
.uploader.is-drop {
  border-color: var(--gold); border-style: solid;
  background: rgba(255, 180, 61, .07);
  box-shadow: inset 0 0 0 2px rgba(255, 180, 61, .2);
}
.uploader.is-busy { opacity: .6; pointer-events: none; }

.uploader-preview {
  width: 96px; height: 96px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--rule); border-radius: 9px;
}
.uploader-preview img { width: 100%; height: 100%; object-fit: cover; }
.uploader-none { font-size: .74rem; color: var(--muted); text-align: center; padding: 0 6px; }

.uploader-copy b { display: block; font-size: .9rem; margin-bottom: 5px; }
.uploader-copy span { display: block; font-size: .77rem; color: var(--muted); line-height: 1.6; }

.uploader-bar {
  grid-column: 1 / -1; height: 3px; border-radius: 2px;
  background: var(--rule); overflow: hidden;
}
.uploader-bar i {
  display: block; width: 40%; height: 100%; border-radius: 2px;
  background: var(--hot); animation: barSlide 1s ease-in-out infinite;
}
@keyframes barSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@media (max-width: 480px) {
  .modal-back { padding: 12px; }
  .uploader { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-back, .modal { animation: none; }
  .uploader-bar i { animation: none; width: 100%; }
}

/* ── 新增商品的圖片選擇鈕 ─────────────────── */
.newimg {
  display: grid; grid-template-columns: 64px minmax(0, 1fr);
  align-items: center; gap: 13px; width: 100%;
  padding: 11px 13px; text-align: left; cursor: pointer;
  background: var(--ink); color: var(--text);
  border: 1.5px dashed var(--rule); border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.newimg:hover { border-color: var(--hot); background: var(--ink-3); }
.newimg.has-image { border-style: solid; }
.newimg.is-drop {
  border-color: var(--gold); border-style: solid;
  background: rgba(255, 180, 61, .07);
}
.newimg.is-busy { opacity: .6; pointer-events: none; }

.newimg-preview {
  width: 64px; height: 64px; overflow: hidden;
  display: grid; place-items: center;
  font-size: .7rem; color: var(--muted); text-align: center; line-height: 1.4;
  background: var(--ink-3); border: 1px solid var(--rule); border-radius: 8px;
}
.newimg-preview img { width: 100%; height: 100%; object-fit: cover; }

.newimg-copy b { display: block; font-size: .87rem; margin-bottom: 4px; }
.newimg-copy > span { display: block; font-size: .75rem; color: var(--muted); }

/* ── 卡面商品圖 ─────────────────────────── */
.topup .face.has-art { background: #120f19; }

.topup .face .art {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .34; filter: saturate(.85) contrast(1.05);
  transition: opacity .18s, transform .18s;
}
.topup:hover .face .art { opacity: .46; transform: scale(1.04); }

.topup .face.has-art::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 50%, rgba(18, 15, 25, .18), rgba(18, 15, 25, .82) 100%),
    linear-gradient(180deg, rgba(18, 15, 25, .5), rgba(18, 15, 25, .25) 45%, rgba(18, 15, 25, .72));
}

.topup .face .n,
.topup .face .u,
.topup .face .bonus { position: relative; z-index: 2; }

.topup .face.has-art .n { text-shadow: 0 2px 10px rgba(0, 0, 0, .75); }
.topup .face.has-art .u { color: #b9adc6; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

@media (prefers-reduced-motion: reduce) {
  .topup .face .art { transition: none; }
  .topup:hover .face .art { transform: none; }
}
