:root {
  --bg: #06060b;
  --bg-2: #0b0b14;
  --surface: #101019;
  --surface-2: #16161f;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f5f3ff;
  --dim: #a9a4c2;
  --mute: #928dab;
  --violet: #8b5cff;
  --cyan: #22e3c3;
  --pink: #ff4d8d;
  --lime: #c4ff4d;
  --glow: 0 0 24px rgba(139, 92, 255, .45);
  --r: 16px;
  --r-sm: 11px;
  --pad: 18px;
  --ff: 'Anuphan', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(50% 60% at 18% 0%, rgba(139, 92, 255, .30), transparent 70%),
    radial-gradient(45% 55% at 88% 8%, rgba(34, 227, 195, .18), transparent 72%),
    radial-gradient(40% 45% at 60% 0%, rgba(255, 77, 141, .14), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
code { font-family: 'Space Grotesk', ui-monospace, monospace; }

.tiny { font-size: 12px; color: var(--mute); }
.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.center { text-align: center; }
.muted { color: var(--dim); font-size: 13.5px; }
.grow { flex: 1; min-width: 0; }

/* ------------------------------- top bar ------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  background: linear-gradient(180deg, rgba(6, 6, 11, .92), rgba(6, 6, 11, .55) 70%, transparent);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; }

.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: 16px;
  color: #0a0410;
  background: linear-gradient(140deg, var(--lime), var(--cyan) 45%, var(--violet));
  box-shadow: 0 0 18px rgba(34, 227, 195, .35);
}

.brand-word {
  font-family: 'Space Grotesk', var(--ff);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 14px;
}
.brand-word em { font-style: normal; color: var(--cyan); }

.top-actions { display: flex; align-items: center; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  background: linear-gradient(160deg, #241a3d, #101019);
}

/* ------------------------------- buttons ------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

.btn-glow {
  color: #0a0410;
  background: linear-gradient(120deg, var(--lime), var(--cyan) 55%, #7df0ff);
  box-shadow: 0 6px 22px rgba(34, 227, 195, .28);
}
.btn-glow:disabled { opacity: .38; box-shadow: none; cursor: not-allowed; }

.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* ------------------------------ base / kicker -------------------------- */

.wrap { padding: 0 var(--pad) 40px; max-width: 1180px; margin: 0 auto; }
.wrap.narrow { max-width: 640px; }

.kicker {
  font-family: 'Space Grotesk', var(--ff);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--cyan);
  margin-bottom: 8px;
}

/* ------------------------------- rails -------------------------------- */

.rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--dim);
  font-size: 13.5px;
  white-space: nowrap;
  transition: .16s ease;
}
.chip .init {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 6px;
  font-size: 9px; font-weight: 700; font-style: normal;
  background: rgba(139, 92, 255, .22);
  color: #d9cdff;
}
.chip b { font-size: 11px; color: #a39eba; font-weight: 500; }
.chip.on {
  color: #0a0410;
  border-color: transparent;
  background: linear-gradient(120deg, var(--lime), var(--cyan));
  font-weight: 600;
}
.chip.on .init { background: rgba(0, 0, 0, .18); color: #061013; }
.chip.on b { color: rgba(0, 0, 0, .5); }

.search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .035);
}
.search span { font-size: 12px; color: var(--mute); white-space: nowrap; }
.search input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  font-size: 14px;
}
.search:focus-within { border-color: rgba(34, 227, 195, .5); box-shadow: 0 0 0 3px rgba(34, 227, 195, .1); }

/* -------------------------------- lobby --------------------------------- */

.lobby { padding-top: 10px; }

.lobby-bar {
  position: sticky;
  top: calc(50px + env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 10px;
  margin-bottom: 4px;
  background: linear-gradient(rgba(6, 6, 11, .97) 74%, rgba(6, 6, 11, 0));
  backdrop-filter: blur(10px);
}
.lobby-bar .rail { flex: 1; min-width: 0; }
.lobby-bar .chip {
  border: 0;
  background: none;
  padding: 6px 2px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  border-bottom: 2px solid transparent;
}
.lobby-bar .chip b { display: none; }
.lobby-bar .chip.on {
  background: none;
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--cyan);
}
.lobby-bar .search {
  flex: 0 1 210px;
  height: 38px;
  border-radius: 999px;
  border-color: transparent;
  background: #18212e;
}
.lobby-bar .search .mag { font-size: 15px; color: var(--mute); line-height: 1; }
.lobby-bar .search input { font-size: 13.5px; }
.lobby-bar .search:focus-within { border-color: rgba(34, 227, 195, .55); background: #1c2836; box-shadow: none; }

.crumb { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; flex-wrap: wrap; }
.crumb h1 { font-size: clamp(20px, 4.8vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.crumb .chip { padding: 6px 12px; font-size: 12.5px; }

/* -------------------------------- rows --------------------------------- */

.rows { display: grid; gap: 26px; min-width: 0; }
.grow { min-width: 0; }

.row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; min-height: 28px; }
.row-head h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #e9eef3;
}
.row-head .meta { color: var(--mute); font-size: 11.5px; }

.row-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.row-more {
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  border-radius: 6px;
}
.row-more:hover { color: #fff; }

.arw {
  display: none;
  width: 28px; height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #1e2a37;
  color: #dfe7ee;
  font-size: 16px;
  line-height: 1;
  padding-bottom: 2px;
  transition: background .15s ease, opacity .15s ease;
}
.arw:hover { background: #2a3b4c; }
.arw:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.grow.at-start [data-scroll="-1"], .grow.at-end [data-scroll="1"] { opacity: .35; }
.rows.filtered .arw, .rows.single .arw { display: none; }

.row-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  padding: 2px 2px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.row-strip::-webkit-scrollbar { display: none; }
.row-strip .tile { flex: 0 0 clamp(112px, 31vw, 164px); scroll-snap-align: start; }

.rows.filtered .row-strip,
.rows.single .row-strip {
  flex-wrap: wrap;
  overflow-x: visible;
}
.rows.filtered .row-more,
.rows.single .row-more { display: none; }
.rows.single .row-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
.rows.single .row-head h2 { font-size: 17px; }

.grow.sk-grow .row-head { height: 28px; width: 120px; margin: 0 0 10px; background: linear-gradient(100deg, #12121c 20%, #1b1b28 40%, #12121c 60%); background-size: 220% 100%; animation: shim 1.15s linear infinite; border-radius: 6px; }

.empty.rowless { margin-top: 4px; }
.empty.sm { padding: 18px 14px; font-size: 12.5px; grid-column: auto; flex: 1 1 100%; }

/* -------------------------------- tiles -------------------------------- */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #16202b;
  transition: transform .18s ease, background .18s ease;
  isolation: isolate;
}
.tile:hover { transform: translateY(-2px); background: #1c2a37; }
.tile:active { transform: scale(.98); }
.tile[hidden] { display: none; }
.tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.tile .cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(139, 92, 255, .3), transparent 70%),
    linear-gradient(160deg, #1a2430, #0d131a 70%);
}
/* absolute เพื่อไม่ให้สัดส่วนรูปไปดันความสูงของ cover (height:100% ของกล่อง aspect-ratio) */
.tile .cover img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
}

.tile .fallback {
  position: absolute; inset: 0 0 auto 0;
  z-index: 0;
  aspect-ratio: 4 / 5;
  display: grid; place-content: center; gap: 6px;
  padding: 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #cfc7ee;
  letter-spacing: .01em;
  background:
    radial-gradient(70% 45% at 50% 12%, rgba(255, 77, 141, .18), transparent 70%),
    linear-gradient(170deg, #1b2330, #0a0f15 80%);
}
.tile .fallback i {
  font-family: 'Space Grotesk', var(--ff);
  font-size: 22px; font-style: normal; letter-spacing: .1em;
  color: rgba(255, 255, 255, .2);
}

.tile .fallback .fn {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: #cfc7ee;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.tile .play {
  position: absolute;
  z-index: 2;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 12px;
  color: #06110f;
  background: var(--cyan);
  opacity: 0;
  transform: scale(.7);
  transition: .18s ease;
  box-shadow: 0 0 14px rgba(34, 227, 195, .5);
}
.tile:hover .play, .tile:focus-visible .play { opacity: 1; transform: scale(1); }

.tile.locked::after {
  content: 'เข้าสู่ระบบเพื่อเล่น';
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(5, 5, 10, .58);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  transition: .18s ease;
}
.tile.locked:hover::after { opacity: 1; }

/* skeleton */
.tile.sk { border-color: transparent; }
.tile.sk .cover {
  background: linear-gradient(100deg, #12121c 20%, #1b1b28 40%, #12121c 60%);
  background-size: 220% 100%;
  animation: shim 1.15s linear infinite;
}
@keyframes shim { to { background-position: -220% 0; } }

.grid-foot { margin-top: 18px; text-align: center; }

.empty {
  grid-column: 1 / -1;
  padding: 34px 18px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  color: var(--dim);
  font-size: 13.5px;
}

/* -------------------------------- footer ------------------------------- */

.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.foot p + p { margin-top: 4px; }

.strip {
  position: fixed;
  inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px;
  z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 14, 22, .86);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.strip a { color: var(--cyan); font-weight: 600; }

/* -------------------------------- modal -------------------------------- */

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(3, 3, 8, .72); backdrop-filter: blur(6px); }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  border: 1px solid var(--line-2);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #14141f, #0a0a11);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
  animation: rise .26s cubic-bezier(.2, .9, .3, 1);
}
@keyframes rise { from { transform: translateY(24px); opacity: .4; } }

.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.modal-card h2 { font-size: 21px; margin-bottom: 6px; letter-spacing: -.01em; }
.modal-card .muted { margin-bottom: 16px; }

.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: 12px; color: var(--mute); margin-bottom: 6px; }
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  outline: none;
  font-size: 16px;
  letter-spacing: .03em;
}
.field input:focus { border-color: rgba(34, 227, 195, .55); box-shadow: 0 0 0 3px rgba(34, 227, 195, .1); }

.hint { font-size: 12.5px; color: var(--dim); margin: 4px 0 12px; min-height: 18px; }
.hint.good { color: var(--cyan); }
.hint.bad { color: #ff7ba5; }

.steps { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--mute); }
.steps li i {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  flex: none;
  display: grid; place-items: center;
  font-size: 10px;
}
.steps li.on { color: var(--text); }
.steps li.on i { border-color: var(--cyan); box-shadow: 0 0 10px rgba(34, 227, 195, .5); }
.steps li.done { color: var(--dim); }
.steps li.done i { background: var(--cyan); border-color: var(--cyan); color: #04120f; }
.steps li.done i::after { content: '✓'; }
.steps li.on i::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 12px; }
.bar span { display: block; height: 100%; width: 6%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .5s ease; }

.cred {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .03);
  margin-bottom: 8px;
  font-size: 13px;
}
.cred span { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.cred code { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.cred button { color: var(--cyan); font-size: 12px; font-weight: 600; flex: none; }

.warn {
  font-size: 12.5px;
  color: #ffd08a;
  background: rgba(255, 168, 76, .1);
  border: 1px solid rgba(255, 168, 76, .25);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin: 4px 0 14px;
}

.row { display: flex; gap: 8px; align-items: center; }
.row .btn { flex: none; }
.row + .btn-block, .row .btn-block { flex: 1; }

/* --------------------------------- solo -------------------------------- */

.solo {
  max-width: 420px;
  margin: 0 auto;
  padding: 8vh var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.solo .brand { margin: 0 0 18px; }
.solo h1 { font-size: 27px; letter-spacing: -.02em; }
.form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.solo .tiny a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

.h1 { font-size: 24px; margin: 6px 0 16px; letter-spacing: -.02em; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 16px;
  margin-bottom: 12px;
}
.card .muted { margin-bottom: 8px; }
.card .btn { margin-top: 6px; }
.big-bal { font-family: 'Space Grotesk', var(--ff); font-size: 28px; font-weight: 700; margin-bottom: 4px; }

/* -------------------------------- player -------------------------------- */

body.playing { overflow: hidden; }

.play-top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  background: linear-gradient(180deg, rgba(4, 4, 9, .95), rgba(4, 4, 9, .6) 70%, transparent);
}

.icon-btn {
  width: 40px; height: 40px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(12, 12, 20, .7);
  font-size: 17px;
  backdrop-filter: blur(8px);
}

.play-title { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
.play-title small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.play-title strong { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stage { position: fixed; inset: 0; background: #04040a; }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #04040a; }

.stage-msg {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: #04040a;
  transition: opacity .35s ease, visibility .35s;
}
.stage-msg[hidden] { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }
.stage-msg p { color: var(--dim); font-size: 14px; max-width: 30ch; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stage-actions[hidden] { display: none; }

.spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12);
  border-top-color: var(--cyan);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------- deposit ------------------------------- */

.dep .card { margin-bottom: 12px; }
.dep .tiny a { text-decoration: underline; text-underline-offset: 2px; }
.dep .card .muted { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.between { justify-content: space-between; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 12px; }
.card .btn-xs { margin-top: 0; }

.bankline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  padding: 12px 14px; border-radius: 14px; margin: 4px 0 8px;
  background: linear-gradient(135deg, rgba(34, 227, 195, .12), rgba(255, 61, 154, .08));
  border: 1px solid rgba(34, 227, 195, .25);
}
.bankline code { font-family: 'Space Grotesk', monospace; letter-spacing: .1em; font-size: 15px; }
.bankline .tiny { flex-basis: 100%; }

.bankform .field select,
.amountbox input {
  width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); font: inherit; padding: 0 14px; min-height: 46px;
}
.amountbox { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; }
.amountbox span { font-size: 20px; color: var(--dim); }
.amountbox input { font-size: 20px; font-family: 'Space Grotesk', monospace; }
.amountbox input::-webkit-outer-spin-button,
.amountbox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amountbox input[type='number'] { -moz-appearance: textfield; appearance: textfield; }

.dep .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dep .chip { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); min-height: 34px; padding: 0 14px; }
.dep .btn-glow { margin-top: 10px; }

.dep .steps { counter-reset: s; }
.dep .steps li { counter-increment: s; font-size: 13px; align-items: flex-start; }
.dep .steps li::before {
  content: counter(s);
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-family: 'Space Grotesk', monospace;
  background: rgba(34, 227, 195, .15); color: var(--cyan); border: 1px solid rgba(34, 227, 195, .3);
}

body.locked-scroll { overflow: hidden; }

.pay {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: #06060b;
}
.pay[hidden] { display: none; }
.pay:focus { outline: none; }
.pay:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.pay-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: #0a0a12;
}
.pay-bar b { font-size: 14px; font-family: 'Space Grotesk', sans-serif; }
.pay-x, .pay-ext {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; text-decoration: none;
}
.pay-x { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
#payNew { margin-left: auto; color: var(--cyan); }
#payFull { color: var(--dim); }
.pay iframe { flex: 1; width: 100%; border: 0; background: #06060b; }

@media (min-width: 560px) {
  .pay { inset: 24px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
  .pay-bar { padding: 12px 16px; }
}

/* ------------------------------- responsive ----------------------------- */

@media (min-width: 560px) {
  .row-strip .tile { flex-basis: clamp(132px, 16vw, 168px); }
  .modal { place-items: center; }
  .modal-card { border-radius: 24px; padding-bottom: 24px; }
}

@media (min-width: 900px) {
  :root { --pad: 28px; }
  .rows { gap: 32px; }
  .arw { display: grid; }
  .row-head { margin-bottom: 12px; }
  .grow.sk-grow .row-head { margin-bottom: 12px; }
  .wrap { padding-bottom: 56px; }
  .strip { width: max-content; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
