/* แอปตรวจนับสต็อก — หน้าตาแบบ SPC (น้ำเงิน + ทอง · Prompt + Anuphan) · มือถือก่อน (D3) · Boss 01/12: "simple กดไม่เยอะ เน้นรูป motion สะดวกมือถือ"
   ภาพเคลื่อนไหวตาม rules/03: ตัวเลขนิ่ง · เล่นครั้งเดียว · transform/opacity · ปิดภาพเคลื่อนไหว = ภาพนิ่งครบ · ติ๊กหลังระบบตอบ OK เท่านั้น */
:root {
  --navy: #0d5ca1; --navy-deep: #0a3c74; --navy-ink: #0a3c74; --on-navy: #fff;
  --gold: #8f6411; --gold-bright: #d2a23a; --gold-soft: #f6ecd3;
  --bg: #f4f6fa; --surface: #fff; --surface-2: #eef2f8; --ink: #14203a; --muted: #56617a; --line: #d8dfea;
  --good: #1b7643; --good-soft: #e2f2e8; --bad: #ae2e28; --bad-soft: #fbe6e3; --warn: #9a5a00; --warn-soft: #fcefd9;
  --f-display: "Prompt", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --f-body: "Anuphan", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 16px; --tab-h: 64px;
  --shadow: 0 1px 2px rgba(15, 30, 60, .06), 0 8px 24px rgba(15, 30, 60, .08);
  color-scheme: light;
  /* ตัวแปรของชุดโค้ด SPC (กล่อง error · ป๊อปอัป) */
  --spc-primary: var(--navy); --spc-surface: var(--surface); --spc-text: var(--ink); --spc-text-2: var(--muted); --spc-line: var(--line);
  --spc-good: var(--good); --spc-bad: var(--bad); --spc-warn: var(--warn); --spc-ease-out: var(--ease-out);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .xs { font-size: .78rem; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───── โครงจอ ───── */
.top { position: sticky; top: 0; z-index: 20; display: flex; gap: 10px; align-items: center; min-height: 56px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px));
  background: var(--navy-deep); color: var(--on-navy); }
.top img { width: 30px; height: 30px; }
.top .t { flex: 1; min-width: 0; }
.top .t b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .t span { display: block; font-size: .78rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .ibtn { color: var(--on-navy); background: rgba(255, 255, 255, .12); border-color: transparent; }
main { max-width: 560px; margin: 0 auto; padding: 14px max(14px, env(safe-area-inset-left, 0px)) calc(var(--tab-h) + 28px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-right, 0px)); display: grid; gap: 14px; }
main.wide { max-width: 1100px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface);
  border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); box-shadow: 0 -6px 18px rgba(15, 30, 60, .06); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; min-height: var(--tab-h); color: var(--muted); text-decoration: none; font-size: .76rem; font-weight: 600; }
.tabs a.on { color: var(--navy); box-shadow: inset 0 3px 0 var(--gold-bright); }
.tabs a svg.i { width: 24px; height: 24px; }
.view-in { animation: view-in 320ms var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }

/* ───── ปุ่ม ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform 180ms var(--ease-out), background-color 180ms, border-color 180ms; user-select: none; }
.btn:active:not(:disabled) { transform: scale(.97); transition-duration: 70ms; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.btn.gold { background: var(--gold-bright); border-color: var(--gold-bright); color: #1d1503; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger-ghost { background: transparent; color: var(--bad); border-color: var(--bad-soft); }
.btn.block { width: 100%; }
.btn.xl { min-height: 64px; font-size: 1.15rem; border-radius: 18px; font-family: var(--f-display); }
.btn.sm { min-height: 38px; padding: 6px 12px; border-radius: 11px; font-size: .9rem; }
.ibtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; flex: none; }
.ibtn:active { transform: scale(.94); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ───── การ์ด ───── */
.card { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.p-wait { background: var(--surface-2); color: var(--muted); }
.p-ok { background: var(--good-soft); color: var(--good); }
.p-short { background: var(--bad-soft); color: var(--bad); }
.p-over { background: var(--warn-soft); color: var(--warn); }
.p-cond { background: var(--gold-soft); color: var(--gold); }
.p-found { background: #e6eefb; color: var(--navy-ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* วงความคืบหน้า + แถบ */
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring > svg { transform: rotate(-90deg); }
.ring .bgc { fill: none; stroke: var(--surface-2); }
.ring .fgc { fill: none; stroke: var(--gold-bright); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 900ms var(--ease-out); }
.ring.done .fgc { stroke: var(--good); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-weight: 600; line-height: 1.1; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; transform-origin: left; }
.bar i.g { background: var(--good); } .bar i.r { background: var(--bad); } .bar i.a { background: var(--gold-bright); } .bar i.n { background: var(--navy); }
.grow { animation: grow 900ms var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ───── หน้าแรก ───── */
.hero { display: grid; gap: 14px; padding: 18px; border-radius: 22px; color: var(--on-navy); background: radial-gradient(120% 140% at 100% 0%, #1b74c4 0%, var(--navy-deep) 62%); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(210, 162, 58, .16); pointer-events: none; }
.hero .ring .bgc { stroke: rgba(255, 255, 255, .16); }
.hero .ring .lbl { color: #fff; }
.hero .meta { display: grid; gap: 2px; min-width: 0; }
.hero .meta .d { font-size: .82rem; opacity: .85; }
.wh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wh { text-decoration: none; color: inherit; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; text-align: left; min-width: 0; }
.wh:active { transform: scale(.97); }
.wh .n { font-family: var(--f-display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh .c { font-size: .78rem; color: var(--muted); }
.wh.done { border-color: var(--good-soft); background: linear-gradient(0deg, var(--good-soft), var(--surface) 70%); }
.round-li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.round-li .dt { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 26px 16px; }
.empty .art { width: 120px; height: 120px; }

/* ───── เริ่มรอบ ───── */
.drop { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 30px 16px; border-radius: 20px; border: 2.5px dashed var(--navy); background: var(--surface); cursor: pointer; }
.drop .big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #e6eefb; color: var(--navy); }
.drop .big svg.i { width: 34px; height: 34px; }
.drop.busy { border-style: solid; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: flex; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li span:nth-child(2) { flex: 1; }
.checks li b { font-variant-numeric: tabular-nums; }
.checks.play li { animation: li-in 360ms var(--ease-out) both; }
.checks.play li:nth-child(2) { animation-delay: 70ms; } .checks.play li:nth-child(3) { animation-delay: 140ms; } .checks.play li:nth-child(4) { animation-delay: 210ms; }
.checks.play li:nth-child(5) { animation-delay: 280ms; } .checks.play li:nth-child(6) { animation-delay: 350ms; } .checks.play li:nth-child(7) { animation-delay: 420ms; }
@keyframes li-in { from { opacity: 0; transform: translateX(-10px); } }
.field { display: grid; gap: 6px; }
.field > span { font-size: .88rem; font-weight: 600; }
.input { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.05rem; }
.input:focus { outline: 3px solid var(--gold-soft); border-color: var(--gold-bright); }
.note-warn { padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: .9rem; }

/* ───── จอนับ (หัวใจของแอป) ───── */
.count-head { display: grid; gap: 8px; }
.wh-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.stage { position: relative; overflow: hidden; border-radius: 22px; touch-action: pan-y; min-height: 200px; }
.item { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); will-change: transform; }
.item.in-r { animation: in-r 300ms var(--ease-out) both; } .item.in-l { animation: in-l 300ms var(--ease-out) both; }
.item.out-l { animation: out-l 220ms ease-in both; } .item.out-r { animation: out-r 220ms ease-in both; }
@keyframes in-r { from { opacity: 0; transform: translateX(40%); } } @keyframes in-l { from { opacity: 0; transform: translateX(-40%); } }
@keyframes out-l { to { opacity: 0; transform: translateX(-45%); } } @keyframes out-r { to { opacity: 0; transform: translateX(45%); } }
.loc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .85rem; font-weight: 700; color: var(--navy-ink); }
.loc .sep { color: var(--muted); }
.gbadge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-family: var(--f-display); font-weight: 600; font-size: .95rem; flex: none; color: #fff; }
.g-FG { background: linear-gradient(135deg, #0d5ca1, #1b74c4); } .g-RM { background: linear-gradient(135deg, #1b7643, #2f9a62); }
.g-PK { background: linear-gradient(135deg, #8f6411, #d2a23a); } .g-SM { background: linear-gradient(135deg, #6b3fa0, #8c62c4); }
.g-SU { background: linear-gradient(135deg, #56617a, #7b869d); } .g-XX { background: linear-gradient(135deg, #3d4a63, #56617a); }
.item .name { font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; line-height: 1.3; overflow-wrap: anywhere; }
.item .code { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sys { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.sys .v { font-family: var(--f-display); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.qty-wrap { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 8px; }
.qty-wrap .ibtn { width: 56px; height: 64px; font-size: 1.6rem; border-radius: 16px; background: var(--surface-2); }
.qty { width: 100%; min-width: 0; height: 64px; border-radius: 16px; border: 2px solid var(--line); text-align: center; font-family: var(--f-display); font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface); }
.qty::placeholder { color: var(--muted); opacity: .45; font-size: 1.15rem; font-weight: 500; }
.qty:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 4px var(--gold-soft); }
.diff { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; min-height: 28px; font-weight: 700; }
.diff:empty { display: none; }
.conds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cond { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--muted); }
.cond svg.i { width: 26px; height: 26px; }
.cond.on { border-color: var(--gold-bright); background: var(--gold-soft); color: var(--gold); }
.cond.on.dmg { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.cond-qty { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 8px; align-items: center; animation: view-in 240ms var(--ease-out) both; }
.cond-qty .input { min-height: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.done-line { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 600; font-size: .9rem; }
.done-line.r { background: var(--bad-soft); color: var(--bad); } .done-line.a { background: var(--warn-soft); color: var(--warn); }
.navrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast-pop { position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 60; transform: translateX(-50%); display: flex; gap: 10px; align-items: center;
  padding: 12px 18px; border-radius: 16px; background: var(--good); color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); animation: pop 380ms var(--ease-out) both; max-width: calc(100vw - 32px); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -12px) scale(.94); } }
.complete { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 26px 18px; }
.complete .burst { width: 140px; height: 140px; }
.complete .burst circle.sp { animation: spark 900ms var(--ease-out) both; transform-origin: 70px 70px; }
@keyframes spark { from { opacity: 0; transform: scale(.3); } 60% { opacity: 1; } }
.chk-big { width: 64px; height: 64px; color: var(--good); }
.chk-big circle, .chk circle { fill: none; stroke: currentColor; stroke-width: 2; opacity: .3; }
.chk-big path, .chk path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.chk { width: 22px; height: 22px; flex: none; }
.play-draw path { animation: draw 450ms var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* รายการในคลัง */
.li-bin { display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px 2px; font-size: .84rem; font-weight: 700; color: var(--navy-ink); position: sticky; top: 56px; background: var(--bg); z-index: 2; }
.li { text-decoration: none; color: inherit; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.li .gbadge { width: 38px; height: 38px; border-radius: 12px; font-size: .78rem; }
.li .nm { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.li .sub { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.li .rt { display: grid; justify-items: end; gap: 3px; font-size: .82rem; font-variant-numeric: tabular-nums; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 46px; outline: none; }

/* แผ่นล่าง (sheet) */
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(10, 20, 40, .45); animation: fade 200ms both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px;
  animation: up 300ms var(--ease-out) both; max-width: 640px; margin: 0 auto; }
.sheet .grab { justify-self: center; width: 44px; height: 5px; border-radius: 99px; background: var(--line); }
@keyframes up { from { transform: translateY(100%); } }

/* ───── สรุป ───── */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tile .v { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile .l { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tile.g .v { color: var(--good); } .tile.r .v { color: var(--bad); } .tile.a .v { color: var(--warn); } .tile.c .v { color: var(--gold); } .tile.f .v { color: var(--navy-ink); }
.whbar { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.whbar:last-child { border-bottom: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--surface-2); color: var(--muted); font-size: .8rem; }
td.r, th.r { text-align: right; } tr:last-child td { border-bottom: 0; }
@media (min-width: 900px) { .sum-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 14px; align-items: start; } .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ───── เข้าระบบ ───── */
.login-wrap { min-height: 100vh; display: grid; align-content: start; background: linear-gradient(180deg, var(--navy-deep) 0 38vh, var(--bg) 38vh); }
.login-head { display: grid; justify-items: center; gap: 10px; padding: calc(48px + env(safe-area-inset-top, 0px)) 16px 26px; color: #fff; text-align: center; }
.login-head img { width: 72px; height: 72px; }
.login-card { width: min(420px, calc(100% - 32px)); margin: 0 auto; animation: view-in 420ms var(--ease-out) both; }
.pw { position: relative; }
.pw .ibtn { position: absolute; right: 4px; top: 3px; border: 0; background: transparent; }
.err-inline { color: var(--bad); font-weight: 600; font-size: .9rem; }

/* ───── ตั้งค่า ───── */
.set-li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-li:last-child { border-bottom: 0; }
.set-li .who { flex: 1; min-width: 0; }
.set-li .who b { display: block; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .08em; padding: 10px 14px; border: 2px dashed var(--gold-bright); border-radius: 12px; text-align: center; user-select: all; background: var(--gold-soft); }

/* วงเล็ก (ประวัติรอบ) — ตัวหนังสือเล็กลงให้พอดีวง */
.round-li .ring .lbl, .wh .ring .lbl { font-size: .7rem; }
.round-li .ring .lbl svg.i, .wh .ring .lbl svg.i { width: 18px; height: 18px; }
/* คอม: เมนูล่างกว้างเท่าเนื้อหา ไม่ยืดเต็มจอ */
@media (min-width: 900px) {
  .tabs { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
