/*
 * หน้าร้าน (index.html): จอใหญ่ = landing page, จอ < 900px = แอปมือถือ (LINE OA / LIFF) ทีละหน้าจอ
 * ใช้ตัวแปรสีจาก style.css ทั้งหมด เพื่อให้ธีมมืด/สว่างและแบรนด์ตรงกับหลังร้าน
 */

/* ---------- พื้นฐาน ---------- */
.shop { touch-action: manipulation; }
.grad {
  background: linear-gradient(100deg, var(--gold) 0%, #fff3c4 22%, var(--gold-2) 45%, var(--gold) 70%, #fff3c4 85%, var(--gold-2) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-move 6s linear infinite;
}
[data-theme="light"] .grad { background-image: linear-gradient(100deg, #c97a00 0%, #f2a51c 25%, #a85f00 50%, #e98a0c 75%, #c97a00 100%); }
@keyframes grad-move { to { background-position: -220% 0; } }
.shimmer { position: relative; overflow: hidden; isolation: isolate; }
.shimmer::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 55%, 100% { transform: translateX(120%); } }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-2); }
.is-shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------- แถบบน ---------- */
.shop-top .top-nav a { position: relative; }
.shop-top .top-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.shop-top .top-nav a.is-current { color: var(--ink); }
.shop-top .top-nav a.is-current::after, .shop-top .top-nav a:hover::after { transform: scaleX(1); }
.top-cta { box-shadow: 0 6px 18px rgba(123, 108, 255, .35); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 70px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: orb 16s ease-in-out infinite alternate; }
.orb-a { width: 460px; height: 460px; background: var(--primary); top: -160px; right: 8%; }
.orb-b { width: 360px; height: 360px; background: var(--primary-2); bottom: -140px; left: -80px; animation-delay: -6s; opacity: .35; }
.orb-c { width: 260px; height: 260px; background: var(--gold-2); top: 40%; left: 42%; animation-delay: -11s; opacity: .22; }
[data-theme="light"] .orb { opacity: .22; }
@keyframes orb { to { transform: translate(40px, 30px) scale(1.12); } }
.grid-glow {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  transform: translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px));
}
.float-coins { position: absolute; inset: 0; transform: translate(calc(var(--px, 0) * 28px), calc(var(--py, 0) * 28px)); transition: transform .4s ease-out; }
.float-coins span {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%; opacity: var(--o);
  background: radial-gradient(circle at 32% 30%, #fff3c4 0 18%, #ffc94a 40%, #d97b0f 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 246, 214, .5), 0 0 18px rgba(255, 201, 74, .35);
  animation: coin-float var(--t) ease-in-out infinite; animation-delay: var(--d);
}
@keyframes coin-float {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-26px) rotateY(180deg); }
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: start; }
.hero-copy { display: grid; gap: 22px; position: relative; padding-top: 56px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 16px; border-radius: 999px; background: rgba(255, 201, 74, .12); border: 1px solid rgba(255, 201, 74, .3); color: var(--gold); font-weight: 600; font-size: .9rem; }
.kicker .ic { width: 17px; height: 17px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .28em; border-radius: 99px; background: linear-gradient(90deg, rgba(47, 199, 255, .45), rgba(123, 108, 255, .45)); z-index: -1; transform-origin: left; animation: hl-draw 1.1s .6s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes hl-draw { from { transform: scaleX(0); } }
.hero h1, .hl { isolation: isolate; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 8px 34px rgba(123, 108, 255, .65), 0 0 0 6px rgba(47, 199, 255, .1); } }
.hero-stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; }
.hero-stats li { display: grid; gap: 0; }
.hero-stats b { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.stat-note { font-size: .75rem; color: var(--muted); opacity: .7; margin-top: -14px; }
.coin-3d { position: absolute; right: -10px; bottom: -40px; width: 120px; height: 120px; perspective: 600px; opacity: .9; }
.coin-3d-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: coin-spin 6s linear infinite; }
.coin-face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden;
  font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; color: #6b3500;
  background: radial-gradient(circle at 35% 30%, #fff6d6 0 12%, #ffd66b 35%, #f29a1f 75%, #c06a00 100%);
  box-shadow: inset 0 0 0 7px rgba(255, 246, 214, .45), inset 0 -8px 16px rgba(120, 60, 0, .35), 0 0 40px rgba(255, 201, 74, .45);
  text-shadow: 0 1px 0 rgba(255, 246, 214, .7);
}
.coin-face.back { transform: rotateY(180deg); }
.coin-shadow { position: absolute; left: 15%; right: 15%; bottom: -26px; height: 14px; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(6px); animation: coin-shadow 6s linear infinite; }
@keyframes coin-spin { to { transform: rotateY(360deg); } }
@keyframes coin-shadow { 25%, 75% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }
.app-hello { display: none; }

/* ---------- กล่องเติม (wizard) ---------- */
.order-wrap { position: relative; scroll-margin-top: 84px; }
.order-card {
  position: relative; border-radius: 26px; padding: 22px; background: var(--surface);
  box-shadow: 0 30px 80px rgba(3, 6, 25, .45); isolation: isolate;
}
[data-theme="light"] .order-card { box-shadow: 0 30px 70px rgba(30, 40, 90, .16); }
.order-card::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: 27px; z-index: -1; padding: 1.5px;
  background: conic-gradient(from var(--ang, 0deg), var(--primary), var(--primary-2), var(--gold), var(--primary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 6s linear infinite; opacity: .85;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes border-spin { to { --ang: 360deg; } }
.wiz-top { display: grid; gap: 10px; margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; font-weight: 500; transition: color .3s; }
.steps i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-style: normal; font-weight: 600; font-size: .84rem; flex: none; transition: background .3s, color .3s, transform .3s; }
.steps li.is-active { color: var(--ink); }
.steps li.is-active i { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 5px rgba(47, 199, 255, .15); }
.steps li.is-done i { background: var(--ok); color: #05301c; }
.wiz-bar { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--gold)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.wiz-step { display: grid; gap: 16px; }
.wiz-step.step-in { animation: step-in .42s cubic-bezier(.2, .8, .2, 1); }
.wiz-step.step-back { animation: step-back .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-28px); } }

.blk { display: grid; gap: 8px; min-width: 0; }
.blk-label { font-weight: 600; font-size: .92rem; }
.blk-hint { font-size: .8rem; color: var(--muted); }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .ic, .input-icon > b { position: absolute; left: 14px; color: var(--muted); pointer-events: none; transition: color .2s; }
.input-icon > b { font-family: var(--font-head); font-size: 1.05rem; color: var(--gold); }
.input-icon input { padding-left: 44px !important; min-height: 52px; font-size: 1.05rem; font-weight: 500; }
.input-icon:focus-within > .ic { color: var(--primary-2); }
.input-icon.is-valid input { border-color: rgba(61, 220, 151, .6); }
.input-ok { position: absolute; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #05301c; animation: pop-check .35s cubic-bezier(.2, .9, .3, 1.5); }
.input-ok .ic { width: 15px; height: 15px; stroke-width: 3; }
@keyframes pop-check { from { transform: scale(0); } }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amount-tile {
  position: relative; display: grid; gap: 1px; justify-items: center; padding: 12px 6px 10px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--bg-2); color: var(--ink); cursor: pointer;
  transition: border-color .2s, transform .2s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s, background .2s;
  animation: tile-in .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 40ms + 200ms);
}
@keyframes tile-in { from { opacity: 0; transform: translateY(12px) scale(.94); } }
.amount-tile b { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; }
.amount-tile small { font-size: .72rem; color: var(--muted); }
.amount-tile em { position: absolute; top: -9px; padding: 1px 8px; border-radius: 99px; font-style: normal; font-size: .66rem; font-weight: 700; background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #4a2600; box-shadow: 0 4px 10px rgba(242, 154, 31, .35); }
.amount-tile:hover { border-color: var(--primary); }
.amount-tile:active { transform: scale(.95); }
.amount-tile.is-active { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(135deg, var(--primary), var(--primary-2), var(--gold)) border-box; box-shadow: 0 10px 26px rgba(47, 199, 255, .22); transform: translateY(-2px); }
.amount-tile.is-active small { color: var(--gold); font-weight: 600; }
.custom-amount { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: 4px; }
.custom-amount > span:first-child { font-size: .86rem; color: var(--muted); white-space: nowrap; }

.calc {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 201, 74, .22), transparent 55%), var(--bg-2);
  border: 1px solid rgba(255, 201, 74, .32);
}
.calc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.calc.is-pop::after { animation: shine-once .9s ease-out; }
@keyframes shine-once { to { transform: translateX(120%); } }
.calc.is-pop .calc-total { animation: num-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes num-pop { 40% { transform: scale(1.08); } }
.calc-coin { width: 54px; height: 54px; flex: none; perspective: 300px; }
.calc-coin .ic { width: 100%; height: 100%; animation: coin-spin 3.5s linear infinite; filter: drop-shadow(0 6px 14px rgba(242, 154, 31, .45)); }
.calc.is-ready .calc-coin .ic { animation-duration: 1.6s; }
.calc-body { display: grid; min-width: 0; }
.calc-label { font-size: .82rem; color: var(--muted); }
.calc-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.calc-total { display: inline-block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.calc-main span { font-weight: 600; }
.calc-sub { font-size: .82rem; color: var(--muted); }
.calc-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 14px; background: rgba(123, 108, 255, .1); border: 1px dashed rgba(123, 108, 255, .45); font-size: .86rem; animation: step-in .35s ease-out; }
.calc-next .ic { width: 18px; height: 18px; color: var(--gold); animation: twinkle 1.6s ease-in-out infinite; }
.calc-next span { flex: 1; min-width: 150px; }
.calc-next .chip-btn { padding: 4px 12px; font-size: .82rem; }
@keyframes twinkle { 50% { transform: scale(1.25) rotate(15deg); opacity: .7; } }

.pay-options { display: grid; gap: 8px; }
.pay-option {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.pay-option:active { transform: scale(.985); }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.po-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary-2); flex: none; transition: background .2s, color .2s; }
.po-text { display: grid; flex: 1; min-width: 0; }
.po-text b { font-size: .95rem; }
.po-text small { font-size: .76rem; color: var(--muted); }
.po-badge { font-style: normal; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.po-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: all .25s cubic-bezier(.2, .9, .3, 1.4); }
.po-check .ic { width: 14px; height: 14px; stroke-width: 3; color: #fff; transform: scale(0); transition: transform .25s cubic-bezier(.2, .9, .3, 1.6); }
.pay-option:has(input:checked) { border-color: var(--primary-2); background: rgba(47, 199, 255, .08); }
.pay-option:has(input:checked) .po-icon { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.pay-option:has(input:checked) .po-check { background: var(--primary-2); border-color: var(--primary-2); }
.pay-option:has(input:checked) .po-check .ic { transform: scale(1); }
.pay-option:has(input:focus-visible) { outline: 3px solid rgba(47, 199, 255, .55); outline-offset: 2px; }
.wiz-cta { display: flex; gap: 10px; }
.wiz-cta .btn-primary { flex: 1; }
.wiz-cta .btn-lg { min-height: 54px; border-radius: 16px; font-size: 1.05rem; }
.wiz-cta .btn-primary .ic { transition: transform .2s; }
.wiz-cta .btn-primary:hover .ic { transform: translateX(3px); }

/* ขั้น 2 */
.pay-head { text-align: center; display: grid; justify-items: center; gap: 2px; }
.pay-amount { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1.15; }
.pay-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.pay-meta span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-size: .8rem; color: var(--muted); }
.pay-meta .ic { width: 14px; height: 14px; }
.pay-box { gap: 8px; }
.qr-wrap { display: grid; justify-items: center; gap: 8px; padding: 4px 0 6px; }
.qr-frame { position: relative; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgba(3, 6, 25, .3); }
.qr-frame::before { content: ''; position: absolute; inset: -6px; border-radius: 26px; border: 2px solid transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--gold)) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.qr { display: block; width: 196px; height: 196px; }
.qr-scan { position: absolute; left: 12px; right: 12px; top: 12px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--primary-2), transparent); box-shadow: 0 0 14px var(--primary-2); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 50% { top: calc(100% - 15px); } }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.pay-row span { color: var(--muted); font-size: .84rem; flex: none; }
.pay-row b { margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.pay-note { display: flex; gap: 8px; font-size: .84rem; color: var(--muted); }
.pay-note .ic { width: 18px; height: 18px; color: var(--primary-2); margin-top: 2px; }
.pay-note.warn { color: var(--warn); }
.pay-note.warn .ic { color: var(--warn); }
.drop {
  position: relative; display: grid; place-items: center; min-height: 130px; padding: 16px; border-radius: 20px; cursor: pointer; text-align: center;
  border: 2px dashed var(--line); background: var(--bg-2); transition: border-color .2s, background .2s, transform .2s;
}
.drop:hover, .drop.is-over { border-color: var(--primary-2); background: rgba(47, 199, 255, .06); }
.drop.is-over { transform: scale(1.01); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.drop-empty { display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.drop-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; margin-bottom: 4px; animation: bob 2.2s ease-in-out infinite; }
.drop-icon .ic { width: 24px; height: 24px; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.drop-empty small { color: var(--muted); font-size: .8rem; }
.drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); min-height: 0; animation: drop-ok .5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes drop-ok { 40% { transform: scale(1.02); } }
.drop-file { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; pointer-events: none; }
.drop-file img { width: 54px; height: 70px; object-fit: cover; border-radius: 10px; flex: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.drop-file span { display: grid; flex: 1; }
.drop-file small { color: var(--muted); font-size: .8rem; }
.drop-file > .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--ok); color: #05301c; stroke-width: 3; animation: pop-check .4s cubic-bezier(.2, .9, .3, 1.5); }
.demo-field { padding: 12px; border-radius: 16px; border: 1px dashed rgba(255, 201, 74, .5); background: rgba(255, 201, 74, .05); }
.demo-field > span { color: var(--gold); }
.demo-field .ic { width: 16px; height: 16px; }

/* ขั้น 3 */
.status-hero { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 12px 8px; }
.status-hero h3 { font-size: 1.5rem; font-weight: 700; margin-top: 6px; }
.sh-order { font-size: .82rem; color: var(--muted); }
.sh-text { color: var(--muted); max-width: 30em; overflow-wrap: anywhere; }
.sh-coins { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--gold); }
.sh-coins b { font-size: 2.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-visual { width: 110px; height: 110px; display: grid; place-items: center; position: relative; }
.sh-icon { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); animation: pop-check .45s cubic-bezier(.2, .9, .3, 1.4); }
.sh-icon .ic { width: 40px; height: 40px; }
.sh-warn .sh-icon { background: var(--warn-soft); color: var(--warn); }
.sh-warn .sh-icon .ic { animation: tick-tock 2s ease-in-out infinite; }
@keyframes tick-tock { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.sh-bad .sh-icon { background: var(--bad-soft); color: var(--bad); }
.sh-radar { position: relative; width: 100px; height: 100px; display: grid; place-items: center; color: var(--info); }
.sh-radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--info); opacity: 0; animation: radar 2.2s ease-out infinite; }
.sh-radar i:nth-child(2) { animation-delay: .7s; }
.sh-radar i:nth-child(3) { animation-delay: 1.4s; }
.sh-radar .ic { width: 44px; height: 44px; position: relative; padding: 10px; box-sizing: content-box; border-radius: 50%; background: var(--info-soft); }
@keyframes radar { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
.sh-send { position: relative; width: 110px; height: 90px; }
.sh-coin { position: absolute; left: 6px; bottom: 6px; color: var(--gold); animation: fly 1.4s cubic-bezier(.4, 0, .2, 1) infinite; }
.sh-coin .ic { width: 30px; height: 30px; }
.sh-coin:nth-child(2) { animation-delay: .45s; }
.sh-coin:nth-child(3) { animation-delay: .9s; }
@keyframes fly { 0% { transform: translate(0, 0) scale(.7); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(70px, -52px) scale(1.1) rotate(200deg); opacity: 0; } }
.sh-check svg { width: 100px; height: 100px; }
.sh-check circle { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .6s ease-out forwards; }
.sh-check path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sh-ok h3 { color: var(--ok); }

/* ---------- ส่วนต่างๆ ---------- */
.band { position: relative; padding: 84px 0; }
.section-head { display: grid; gap: 8px; margin-bottom: 30px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.2; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; overflow: hidden; }
.feat p { color: var(--muted); }
.feat h3 { font-size: 1.15rem; }
.feat-big { grid-row: span 2; background: radial-gradient(120% 90% at 100% 0%, rgba(123, 108, 255, .22), transparent 55%), var(--surface); }
.feat-wide { grid-column: span 2; }
.feat-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 10px 24px rgba(123, 108, 255, .35); }
.feat-icon.gold { background: linear-gradient(135deg, #ffd66b, #f29a1f); color: #4a2600; box-shadow: 0 10px 24px rgba(242, 154, 31, .35); }
.feat-icon.green { background: linear-gradient(135deg, #5ff0b0, #13a86b); color: #053a24; box-shadow: 0 10px 24px rgba(19, 168, 107, .3); }
.feat-demo { margin-top: 18px; display: grid; justify-items: center; gap: 14px; padding: 22px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.scan-card { position: relative; width: 150px; height: 190px; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px rgba(3, 6, 25, .3); display: grid; align-content: start; gap: 10px; padding: 22px 16px; overflow: hidden; }
.scan-card i { height: 9px; border-radius: 5px; background: #e3e7f4; }
.scan-card i:nth-child(1) { width: 60%; background: #c9d0ea; }
.scan-card i:nth-child(2) { width: 90%; }
.scan-card i:nth-child(3) { width: 45%; height: 22px; background: #ffe7ae; margin-top: 18px; }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(180deg, transparent, rgba(47, 199, 255, .35)); border-bottom: 2px solid var(--primary-2); animation: scan-card 2.6s ease-in-out infinite; }
@keyframes scan-card { 50% { top: calc(100% - 36px); } }
.scan-ok { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .88rem; animation: ok-blink 2.6s ease-in-out infinite; }
.scan-ok .ic { width: 16px; height: 16px; stroke-width: 3; }
@keyframes ok-blink { 0%, 45% { opacity: .25; transform: scale(.95); } 60%, 100% { opacity: 1; transform: none; } }

.marquee-band { padding: 8px 0 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.mq-item .ic { color: var(--primary-2); }
.mq-item.gold { color: var(--gold); border-color: rgba(255, 201, 74, .4); }
.mq-item.gold .ic { color: var(--gold); }

.rates-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tier-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tier { position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.tier:hover { transform: translateY(-3px); border-color: var(--primary); }
.tier-range { font-size: .84rem; color: var(--muted); }
.tier-rate { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.tier-rate small { font-family: var(--font); font-size: .78rem; font-weight: 500; color: var(--muted); }
.tier-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.tier-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--gold)); transition: width 1.1s cubic-bezier(.2, .8, .2, 1) .2s; }
.tier.is-in .tier-bar i { width: var(--w); }
.tier.is-best { border-color: rgba(255, 201, 74, .55); background: radial-gradient(120% 120% at 100% 0%, rgba(255, 201, 74, .18), transparent 60%), var(--surface); }
.tier em { position: absolute; top: -10px; right: 14px; font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: #4a2600; }
.rate-card { padding: 10px; border-radius: 24px; }
.rate-head { display: flex; justify-content: space-between; padding: 8px 14px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.rate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rate-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; transition: background .15s; }
.rate-row:hover { background: var(--surface-2); }
.rate-row > b { font-family: var(--font-head); font-weight: 600; min-width: 80px; }
.rr-coins { flex: 1; display: grid; text-align: right; }
.rr-coins b { color: var(--gold); font-variant-numeric: tabular-nums; }
.rr-coins small { font-size: .74rem; color: var(--muted); }
.rate-row > .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.rate-row:hover > .ic { transform: translateX(3px); color: var(--primary-2); }

.how-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.how-steps::before { content: ''; position: absolute; top: 36px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.how-steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; }
.how-steps p { color: var(--muted); max-width: 24em; }
.how-icon { position: relative; width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--primary-2); box-shadow: 0 14px 30px rgba(3, 6, 25, .25); }
.how-icon .ic { width: 32px; height: 32px; }
.how-icon i { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .85rem; background: linear-gradient(135deg, #ffd66b, #f29a1f); color: #4a2600; }
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-title { font-size: 1.3rem; margin-bottom: 4px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: rgba(47, 199, 255, .5); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; color: var(--primary-2); transition: transform .3s cubic-bezier(.2, .9, .3, 1.4); flex: none; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }
.faq details[open] p { animation: faq-in .35s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

.track-card { display: grid; gap: 14px; max-width: 820px; padding: 18px; border-radius: 24px; }
.track-form { display: flex; gap: 10px; }
.search { position: relative; display: block; flex: 1; min-width: 0; }
.track-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.track-list li { animation: tile-in .4s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.track-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .2s, transform .15s; color: var(--ink); }
.track-item:hover { border-color: var(--primary); }
.track-item:active { transform: scale(.985); }
.ti-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--info-soft); color: var(--info); }
.ti-ok { background: rgba(255, 201, 74, .16); color: var(--gold); }
.ti-bad { background: var(--bad-soft); color: var(--bad); }
.ti-warn { background: var(--warn-soft); color: var(--warn); }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 26px 10px; color: var(--muted); text-align: center; }
.empty-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); animation: bob 2.6s ease-in-out infinite; }
.empty-icon .ic { width: 28px; height: 28px; }

.cta-band { padding: 30px 0 90px; }
.cta-inner {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 44px 48px; border-radius: 30px; color: #fff;
  background: linear-gradient(120deg, #4a3df0, #6c5cff 35%, #1fb7f2 100%);
  box-shadow: 0 30px 70px rgba(74, 61, 240, .35);
}
.cta-inner::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 107, .55), transparent 65%); animation: orb 10s ease-in-out infinite alternate; }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.cta-inner p { opacity: .85; }
.cta-btn { background: linear-gradient(135deg, #ffe08a, #f29a1f); color: #4a2600; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.cta-btn:hover { filter: brightness(1.05); }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: .86rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot .brand-mark { width: 32px; height: 32px; }
.foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.foot .ic { width: 16px; height: 16px; }

/* ---------- จอกลาง ---------- */
@media (max-width: 1100px) and (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; }
  .hero-stats { gap: 20px; }
  .coin-3d { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat-big { grid-row: auto; }
  .rates-grid { grid-template-columns: 1fr; }
}

/* ================= มือถือ / LINE LIFF: หน้าตาแบบแอป ================= */
@media (max-width: 899px) {
  html { scroll-padding-top: 70px; }
  .shop { background: var(--bg); }
  .scroll-progress, .landing-only, .hero-copy, .top-cta, .orb, .grid-glow, .foot { display: none !important; }
  .screen { display: none; }
  .screen.is-active { display: block; }
  .screen.screen-in { animation: screen-in .38s cubic-bezier(.2, .8, .2, 1); }
  @keyframes screen-in { from { opacity: 0; transform: translateY(14px); } }
  .screen [data-reveal] { opacity: 1; transform: none; }

  .shop-top .top-in { min-height: 58px; }
  .hero { padding: 10px 0 18px; overflow: visible; }
  .hero-bg { overflow: hidden; height: 260px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
  .float-coins span { opacity: calc(var(--o) * .55); }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .app-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 2px 0; animation: screen-in .5s ease-out; }
  .app-hello h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
  .promo-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .85rem; color: #4a2600; background: linear-gradient(135deg, #ffe08a, #f29a1f); box-shadow: 0 8px 20px rgba(242, 154, 31, .35); }
  .promo-pill .ic { width: 17px; height: 17px; animation: twinkle 1.8s ease-in-out infinite; }

  /* กล่องเติม: ไม่มีกรอบ แบ่งเป็นบล็อกแบบแอป */
  .order-card { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .order-card::before { display: none; }
  .wiz-top { position: sticky; top: 58px; z-index: 6; margin: 0 -16px 12px; padding: 10px 16px; background: var(--top-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .wiz-step { gap: 12px; }
  .blk { padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
  .demo-field, .calc, .drop, .status-hero { border-radius: 22px; }
  .pay-head { padding: 8px 0 2px; }
  .status-hero { background: var(--surface); border: 1px solid var(--line); padding: 22px 14px 18px; }
  .amount-tile { padding: 14px 4px 12px; border-radius: 16px; }
  .amount-tile b { font-size: 1.15rem; }
  .custom-amount { grid-template-columns: 1fr; gap: 6px; }
  .calc-total { font-size: 2rem; }
  .pay-option { padding: 12px; min-height: 64px; }
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px; } /* กัน iOS ซูมตอนแตะช่อง */
  .wiz-cta {
    position: sticky; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 5;
    margin: 4px -6px 0; padding: 8px 6px; border-radius: 22px;
    background: linear-gradient(180deg, transparent, var(--bg) 35%);
  }
  .wiz-cta .btn-primary { box-shadow: 0 14px 30px rgba(123, 108, 255, .45); }
  .row-actions .btn-ghost { flex: none; }
  .row-actions:not(:has(.btn-primary:not([hidden]))) .btn-ghost { flex: 1; }

  .band { padding: 18px 0 10px; }
  .section-head { margin-bottom: 16px; gap: 4px; }
  .section-head h2 { font-size: 1.6rem; }
  .rates-grid { grid-template-columns: 1fr; gap: 14px; }
  .tier-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tier { padding: 14px; border-radius: 18px; }
  .tier-rate { font-size: 1.6rem; }
  .rate-card { padding: 6px; }
  .rate-row { min-height: 56px; }
  .how-steps { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .how-steps::before { top: 30px; bottom: 30px; left: 37px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .how-steps li { grid-template-columns: 74px 1fr; justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; padding: 4px 0; }
  .how-steps .how-icon { grid-row: span 2; }
  .how-steps h3 { align-self: end; font-size: 1.02rem; }
  .how-steps p { font-size: .88rem; }
  .faq summary { min-height: 58px; }
  .track-card { padding: 14px; border-radius: 22px; }
}
@media (max-width: 380px) {
  .amount-grid { gap: 6px; }
  .amount-tile b { font-size: 1rem; }
  .amount-tile small { font-size: .66rem; }
  .tier-cards { grid-template-columns: 1fr; }
  .app-hello h1 { font-size: 1.4rem; }
  .pay-amount { font-size: 2rem; }
  .qr { width: 170px; height: 170px; }
}

/* ---------- อันดับนักเติม + VIP ---------- */
.vip-hint { display: grid; gap: 6px; margin-top: 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .84rem; animation: hint-in .35s ease-out; }
.vip-hint.is-vip { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, rgba(255, 201, 74, .18), rgba(242, 154, 31, .08)); border: 1px solid rgba(255, 201, 74, .4); }
.vip-hint .vh-text { color: var(--muted); }
.vip-hint .vh-text b { color: var(--ink); }
@keyframes hint-in { from { opacity: 0; transform: translateY(-4px); } }

.rank-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rank-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.podium { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; height: 300px; }
.pod { position: relative; display: grid; justify-items: center; align-content: end; gap: 4px; height: 100%; padding-bottom: 14px; text-align: center; min-width: 0; }
.pod-bar {
  order: 9; width: 100%; height: calc(var(--bar, 60) * 1.3px); margin-top: 6px; border-radius: 18px 18px 8px 8px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--pod-c1), var(--pod-c2)); box-shadow: 0 16px 34px var(--pod-glow);
  transform-origin: bottom; transition: transform .9s cubic-bezier(.2, .9, .3, 1.1);
}
.pod-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%); transform: translateX(-100%); animation: pod-shine 3.5s ease-in-out infinite; }
@keyframes pod-shine { 60%, 100% { transform: translateX(100%); } }
.podium:not(.is-in) .pod-bar { transform: scaleY(.15); }
.podium.is-in .pod-1 .pod-bar { transition-delay: .25s; }
.podium.is-in .pod-3 .pod-bar { transition-delay: .1s; }
.pod-1 { --pod-c1: #ffe08a; --pod-c2: #f29a1f; --pod-glow: rgba(242, 154, 31, .35); }
.pod-2 { --pod-c1: #eef2ff; --pod-c2: #9aa6c8; --pod-glow: rgba(154, 166, 200, .3); }
.pod-3 { --pod-c1: #ffc9a1; --pod-c2: #c26a2d; --pod-glow: rgba(194, 106, 45, .3); }
.pod-medal { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--pod-c1), var(--pod-c2)); color: #3b2200; box-shadow: 0 8px 20px var(--pod-glow); }
.pod-medal b { font-family: var(--font-head); font-size: 1.35rem; }
.pod-1 .pod-medal { width: 64px; height: 64px; animation: bob 2.8s ease-in-out infinite; }
.pod-medal .ic { position: absolute; top: -20px; width: 28px; height: 28px; color: var(--gold); fill: var(--gold); stroke: var(--gold-2); filter: drop-shadow(0 3px 6px rgba(242, 154, 31, .5)); }
.pod-id { font-size: .86rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-amount { font-family: var(--font-head); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pod-1 .pod-amount { font-size: 1.35rem; color: var(--gold); }
[data-theme="light"] .pod-1 .pod-amount { color: #b86e00; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-list li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: hint-in .45s ease-out backwards; animation-delay: calc(var(--i, 0) * 50ms);
}
.rk-no { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-id { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.rk-amount { display: grid; justify-items: end; line-height: 1.3; }
.rk-amount b { font-variant-numeric: tabular-nums; }
.rk-amount small { color: var(--muted); font-size: .76rem; }
.rank-note { margin-top: 12px; font-size: .8rem; color: var(--muted); }
.my-rank { display: grid; gap: 14px; position: sticky; top: 90px; }
.my-rank h3 { font-family: var(--font-head); font-size: 1.15rem; }
.my-rank-body { display: grid; gap: 12px; }
.mr-card { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.mr-card.is-vip { background: linear-gradient(135deg, #ffe08a, #f2a51f); border-color: transparent; color: #3b2200; box-shadow: 0 14px 32px rgba(242, 154, 31, .35); }
.mr-label { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.mr-label .ic { width: 16px; height: 16px; }
.mr-rank { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.2; }
.mr-rank small { font-family: var(--font); font-size: .8rem; font-weight: 500; opacity: .75; }
.mr-amount { font-size: .9rem; opacity: .85; }
.mr-progress { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.mr-progress b { color: var(--gold); }
[data-theme="light"] .mr-progress b { color: #b86e00; }

@media (max-width: 899px) {
  .rank-grid { grid-template-columns: 1fr; gap: 16px; }
  .my-rank { position: static; order: -1; }
  .podium { height: 250px; gap: 8px; }
  .pod-bar { height: calc(var(--bar, 60) * .9px); }
  .pod-medal { width: 44px; height: 44px; }
  .pod-1 .pod-medal { width: 54px; height: 54px; }
  .pod-amount { font-size: .98rem; }
  .pod-1 .pod-amount { font-size: 1.1rem; }
  .pod-id { font-size: .76rem; }
  .rank-list li { padding: 9px 12px; gap: 10px; grid-template-columns: 34px minmax(0, 1fr) auto; }
  .rk-no { width: 30px; height: 30px; }
}
@media (max-width: 380px) {
  .pod .vip-badge { font-size: .62rem; padding: 0 6px 0 4px; }
}
