/* ============================================================================
   抽卡頁面（卡片頁 / 完抽公開頁共用）
   ========================================================================== */
.backlink { display: inline-block; margin: 14px 0 6px; font-weight: 700; font-size: 15px; color: var(--mut); }
.backlink:hover { color: var(--gold-hi); text-decoration: none; }

/* ───────── 卡片頁：標題列 ───────── */
.cp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 4px 0 20px; }
.cp-head h1 { font-size: clamp(26px, 3.6vw, 38px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cp-head h1 .mono { color: var(--gold-hi); letter-spacing: .04em; }
.cp-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { min-width: 112px; padding: 9px 16px; border-radius: 14px; background: linear-gradient(180deg, var(--p1), var(--p2)); border: 1px solid var(--line2); }
.stat span { display: block; font-size: 12px; color: var(--mut); font-weight: 600; letter-spacing: .04em; }
.stat b { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; line-height: 1.35; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b small { font-size: 12px; font-weight: 600; }
.stat.price b { color: var(--gold-hi); }

main.cardpage { max-width: min(1760px, 100%); }      /* 抽卡頁比一般頁面寬：銀漆區才放得大 */
.cp-grid { display: grid; grid-template-columns: minmax(290px, 350px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
/* 左欄和銀漆區一樣高：獎項在上，下面剩下的空間全部給排隊面板（排隊名單太長就在裡面捲動） */
.cp-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.cp-side > .seat { order: 2; flex: 1 1 0; min-height: 190px; display: flex; flex-direction: column; }
.cp-side > .seat .seat-main { flex: none; }
.cp-side > .seat .qwrap { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.cp-side > .seat .qlist { flex: 1 1 0; min-height: 0; overflow-y: auto; align-content: start; scrollbar-width: thin; scrollbar-color: #3a4a72 transparent; }
.cp-side > .pz-panel { order: 1; flex: none; }
.cp-grid + .rule-note, .cp-grid ~ .panel { margin-top: 20px; }
.cp-main { display: grid; gap: 20px; min-width: 0; }
.cp-side h2, .cp-main h2 { font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.cp-side h2 small, .cp-main h2 small { font-size: 13px; font-weight: 600; }

/* ───────── 獎項號碼卡（每個中獎號碼一張，圖片當卡片背景） ───────── */
.pz-wrap { display: flex; flex-direction: column; gap: 12px; }
.pz-row.minors { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; }
.pz { --ac: #ffd666; position: relative; min-width: 0; }
.pz-box { position: relative; overflow: hidden; border-radius: 14px; isolation: isolate;
  background: linear-gradient(150deg, #2c3a5c, #18213a);
  box-shadow: 0 0 0 2.5px var(--ac), 0 0 0 3.5px rgba(0, 0, 0, .55), 0 10px 22px rgba(0, 0, 0, .45); transition: box-shadow .35s; }
.pz-box::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 12px 18px -12px rgba(255, 255, 255, .22); }
.pz-img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; z-index: 0; }
.pz-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(6, 10, 18, .9)); pointer-events: none; }
.pz-tag { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font: 800 11px/1.2 var(--font); letter-spacing: .12em; color: #1b1300; background: var(--ac); box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.pz-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 6px 8px 9px; text-align: center; }
.pz-name { color: var(--ac); font-weight: 800; font-size: clamp(11px, 1.1vw, 14px); line-height: 1.25; text-shadow: 0 2px 5px #000, 0 0 2px #000; overflow-wrap: anywhere; }
.pz-num { font: 800 clamp(18px, 2.1vw, 27px)/1.15 var(--mono); color: #f4f6fc; letter-spacing: .05em; text-shadow: 0 2px 6px #000; }
.pz.minor .pz-num { font-size: clamp(15px, 1.6vw, 21px); }
.pz.minor .pz-name { font-size: clamp(10px, 1vw, 12px); }
.pz-hit { position: absolute; z-index: 4; top: 8px; right: 8px; padding: 3px 10px; border-radius: 999px; font: 800 12px/1.2 var(--font); color: #fff; background: linear-gradient(#f64a4a, #be1616); box-shadow: 0 0 0 1px rgba(255, 214, 210, .75), 0 3px 10px rgba(0, 0, 0, .5); }
.pz-left { position: absolute; z-index: 4; top: 8px; right: 8px; padding: 3px 10px; border-radius: 999px; font: 800 12px/1.2 var(--font); color: #1b1300; background: var(--ac); box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 3px 10px rgba(0, 0, 0, .5); }
.pz-left.out { color: #fff; background: linear-gradient(#f64a4a, #be1616); box-shadow: 0 0 0 1px rgba(255, 214, 210, .75), 0 3px 10px rgba(0, 0, 0, .5); }
.pz.minor .pz-hit { top: 6px; right: 6px; font-size: 11px; padding: 2px 7px; }
.pz.minor .pz-tag { top: 6px; left: 6px; font-size: 10px; padding: 2px 7px; }
.pz.hit .pz-box { box-shadow: 0 0 0 3.5px #ee3636, 0 0 0 4.5px rgba(0, 0, 0, .55), 0 0 26px rgba(238, 54, 54, .6), 0 10px 22px rgba(0, 0, 0, .45); }
.pz.hit.flash .pz-box { animation: pzflash 1.2s ease-out 2; }
@keyframes pzflash { 0%, 100% { filter: none; } 40% { filter: brightness(1.5) saturate(1.3); } }
.pz-who { margin-top: 5px; font-size: 12px; text-align: center; color: var(--mut); min-height: 0; }
.pz-who:empty { display: none; }
.pz.hit .pz-who { color: #ffb9b9; }
.pz.miss .pz-box { filter: saturate(.5) brightness(.78); box-shadow: 0 0 0 2px #4a5679, 0 6px 14px rgba(0, 0, 0, .4); }
.pz.miss .pz-who { color: var(--dim); }

/* ───────── 座位 / 排隊面板 ───────── */
.seat { position: relative; overflow: hidden; }
.seat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.seat.active { border-color: rgba(255, 205, 60, .6); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 205, 60, .18), 0 0 70px rgba(255, 205, 60, .08); }
.seat.active::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.seat.done { border-color: rgba(95, 224, 160, .5); }
.seat-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.seat-msg { min-width: 0; flex: 1 1 280px; }
.seat-msg h2 { margin: 0 0 4px; font-size: 22px; }
.seat-msg p { margin: 2px 0; color: var(--mut); font-size: 15px; }
.seat-msg p b { color: var(--ink); }
.seat-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.count { display: inline-block; font: 800 36px/1 var(--mono); color: var(--gold-hi); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.count.low { color: var(--bad); animation: pulse 1s infinite; }
.count-box { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 16px; background: #0a101e; border: 1px solid var(--line3); }
.count-box small { display: block; line-height: 1.3; }
.seat-bal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #0a101e; border: 1px solid var(--line3); font-weight: 700; }
.seat-bal b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }

.qwrap { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line2); }
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; color: var(--mut); font-weight: 700; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qlist li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line3); font-size: 15px; }
.qlist li.active { background: rgba(255, 205, 60, .08); border-color: rgba(255, 205, 60, .4); }
.qlist li.me { box-shadow: inset 3px 0 0 var(--info); }
.qlist .no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--mono); color: var(--mut); background: #0a101e; }
.qlist li.active .no { color: var(--gold-ink); background: var(--gold); }
.qlist .nm { font-weight: 700; }
.qlist .me-tag { font-size: 12px; font-weight: 800; color: var(--info); }
.qlist .st { margin-left: auto; font-size: 13px; color: var(--mut); font-variant-numeric: tabular-nums; }
.qlist li.active .st { color: var(--gold-hi); font-weight: 700; }
.q-empty { color: var(--dim); font-size: 14px; padding: 4px 2px; }

/* ───────── 抽卡面（格子） ───────── */
.board-panel { padding-bottom: clamp(14px, 2vw, 22px); }
.rule-note { margin: 0; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line); background: rgba(255, 255, 255, .02); color: var(--dim); font-size: 13px; line-height: 1.8; }
.rule-note b { color: var(--gold-hi); font-weight: 700; }
.rule-note a { text-decoration: underline; text-underline-offset: 2px; }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 16px; margin-bottom: 12px; }
.board-hint { font-size: 15px; font-weight: 600; color: var(--mut); text-align: center; }
.board { display: grid; grid-template-columns: repeat(var(--cols, 10), minmax(0, 1fr)); gap: clamp(4px, .7vw, 9px); padding: clamp(8px, 1.4vw, 16px); border-radius: 18px; max-width: calc(var(--cols, 10) * 132px + 40px); margin: 0 auto; background: linear-gradient(180deg, #19253f, #0c1324); box-shadow: inset 0 0 0 1px var(--line3), inset 0 10px 30px rgba(0, 0, 0, .4); }
.cell { --ac: #ffcd3c; position: relative; aspect-ratio: 1; border: 0; padding: 0; margin: 0; border-radius: clamp(6px, 1vw, 12px); overflow: hidden; color: #2a3347; font: inherit; cursor: default; isolation: isolate; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 56%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .0) 0 3px, rgba(120, 132, 160, .12) 3px 4px),
    linear-gradient(135deg, #f1f4fa 0%, #b4bdce 38%, #e9edf5 52%, #98a3b9 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 -7px 12px rgba(58, 70, 98, .38), 0 2px 5px rgba(0, 0, 0, .5);
  transition: transform .16s, box-shadow .2s, filter .2s; }
.cell .c-idx { display: none; }   /* 銀漆上不顯示任何數字（格子編號只在完抽公開頁的左上角小字出現） */
.cell .c-num { display: none; position: absolute; inset: 0; place-items: center; font: 800 clamp(13px, 2.1vw, 24px)/1 var(--mono); letter-spacing: .03em; color: var(--ink); text-shadow: 0 2px 5px rgba(0, 0, 0, .6); }
.cell .c-seq { position: absolute; z-index: 3; right: 3px; bottom: 2px; font: 700 clamp(8px, .9vw, 11px)/1 var(--mono); font-style: normal; color: rgba(255, 255, 255, .5); }
.cell.can { cursor: pointer; }
.cell.can:hover, .cell.can:focus-visible { transform: translateY(-2px) scale(1.06); z-index: 2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 -7px 12px rgba(58, 70, 98, .3), 0 0 0 2px var(--gold), 0 10px 22px rgba(255, 205, 60, .38); }
.cell.drawn, .board.public .cell.void { background: linear-gradient(180deg, #202e4d, #121a30); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); }

.cell.drawn .c-num, .board.public .cell.void .c-num, .cell.scratching .c-num { display: grid; }
.cell.scratching { background: linear-gradient(180deg, #202e4d, #121a30); box-shadow: inset 0 0 0 1px var(--gold), 0 0 24px rgba(255, 205, 60, .35); z-index: 3; }
.cell.win { background: linear-gradient(180deg, #2c3a60, #141c33); box-shadow: inset 0 0 0 2px var(--ac), 0 0 16px var(--ac); }
.cell.win.major { box-shadow: inset 0 0 0 3px var(--ac), 0 0 26px var(--ac); }
.cell.win .c-num { color: var(--ac); }
.cell.drawn.pop { animation: cellpop .5s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes cellpop { 0% { transform: scale(.6) rotate(-6deg); } 100% { transform: none; } }
.cell.void { opacity: .55; }
.cell.void.win { opacity: .8; }
.cell.blank { visibility: hidden; }
.cell canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; touch-action: none; cursor: grab; border-radius: inherit; }
.board.locked .cell:not(.drawn):not(.scratching):not(.void) { filter: saturate(.75) brightness(.94); }

/* ───────── 抽獎紀錄 ───────── */
.loglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; scrollbar-width: thin; scrollbar-color: #3a4a72 transparent; }
.loglist li { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line3); font-size: 14px; }
.loglist li.new { animation: fadein .6s; border-color: rgba(255, 205, 60, .5); }
.loglist .sq { font: 800 13px var(--mono); color: var(--dim); }
.loglist .who { font-weight: 700; }
.loglist .who small { margin-left: 6px; }
.loglist .res { font-size: 13px; }

/* ───────── SHA-256 列 ───────── */
.shabar { margin-top: 22px; padding: 0 0 calc(10px + env(safe-area-inset-bottom)); }       /* 放在頁面最底下，不浮動 */
.shabar .in { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px 16px; border-radius: 16px; background: linear-gradient(180deg, #19233c, #101830); border: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0, 0, 0, .5); }
.shabar .lab { flex: none; font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: .06em; }
.shabar .val { flex: 1 1 260px; min-width: 0; font: 13px/1.35 var(--mono); color: #cfd9f1; word-break: break-all; user-select: all; }
.shabar .val.pending { color: var(--dim); font-style: italic; user-select: none; }
.shabar .btns { display: flex; gap: 8px; flex: none; }

/* ───────── 中獎彈窗 / 煙火 ───────── */
.win-pop { text-align: center; }
.win-pop .stars { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.win-pop h2 { font-size: 26px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.win-pop .pzbox { width: min(260px, 70%); margin: 16px auto 8px; }
.win-pop p { color: var(--mut); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }
.modal.winm { background: linear-gradient(180deg, #3a2808, #160f05); border-color: rgba(255, 205, 60, .6); box-shadow: 0 30px 90px rgba(0, 0, 0, .75), 0 0 80px rgba(255, 205, 60, .2); }

/* ───────── 完抽公開頁 ───────── */
.pub { padding-bottom: 20px; }
.pub-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin: 6px 0 22px; }
.pub-hero h1 { margin: 10px 0 6px; }
.pub-hero h1 .pub-time { margin-left: 16px; font: 600 15px/1.4 var(--font); color: var(--mut); letter-spacing: 0; white-space: nowrap; }
.pub-hero .sub { color: var(--mut); max-width: 40em; margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.stats div { min-width: 120px; padding: 10px 16px; border-radius: 14px; background: linear-gradient(180deg, var(--p1), var(--p2)); border: 1px solid var(--line2); }
.stats dt { font-size: 12px; color: var(--mut); font-weight: 600; letter-spacing: .04em; }
.stats dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats dd.sm { font-size: 15px; line-height: 2; }
.stats dd small { font-size: 12px; color: var(--mut); font-weight: 600; }
.pub .panel { margin-bottom: 20px; }
.hashbox { padding: 12px 14px; border-radius: 12px; background: #0a101e; border: 1px solid var(--line3); color: var(--gold-hi); font-size: 14px; word-break: break-all; user-select: all; }
.rawbox { width: 100%; padding: 12px 14px; border-radius: 12px; background: #0a101e; border: 1px solid var(--line3); color: #cfd9f1; font-size: 13px; line-height: 1.55; resize: vertical; word-break: break-all; outline: none; }
.rawbox:focus { border-color: var(--gold); }
.vact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vres { margin-top: 14px; padding: 0; border-radius: 12px; line-height: 1.7; }
.vres.ok, .vres.bad { padding: 12px 16px; }
.vres.ok { background: rgba(95, 224, 160, .1); border: 1px solid rgba(95, 224, 160, .55); color: #c8f7e0; }
.vres.bad { background: rgba(255, 122, 134, .1); border: 1px solid rgba(255, 122, 134, .55); color: #ffd5d9; }
.vres .mono { display: block; margin-top: 4px; font-size: 12.5px; word-break: break-all; color: #e6ecfa; }
.anat { margin-top: 14px; color: var(--mut); }
.anat summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.anat ol { margin: 8px 0 0; padding-left: 1.4em; }
.anat li { margin: 4px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--mut); margin: 0 0 10px; }
.legend .lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; background: linear-gradient(180deg, #202e4d, #121a30); box-shadow: inset 0 0 0 1px var(--line); }
.legend .lg.win { box-shadow: inset 0 0 0 2px var(--gold), 0 0 8px var(--gold); }
.legend .lg.void { opacity: .5; }
.public-page .pz-wrap { flex-direction: row; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; }
.public-page .pz-row.majors { flex: 0 0 min(100%, 330px); }
.public-page .pz-row.minors { flex: 1 1 100%; grid-template-columns: repeat(auto-fill, minmax(104px, 128px)); justify-content: start; }
.board.public .cell { cursor: default; }
.board.public .cell .c-idx { display: block; position: absolute; left: 4px; top: 3px; font: 700 clamp(8px, 1vw, 11px)/1 var(--mono); font-style: normal; color: rgba(255, 255, 255, .38); text-align: left; }
.board.public .cell .c-num { display: grid; }
/* 公開頁：「已被抽出」和「未被抽出（作廢）」要一眼分得出來——已抽亮、有實線外框與順序號；作廢暗、灰階、虛線 */
.board.public .cell.drawn { background: linear-gradient(180deg, #3f5a94, #26396a); box-shadow: inset 0 0 0 2px #9db8ff; color: #fff; }
.board.public .cell.drawn .c-seq { color: #ffe08a; font-weight: 800; }
.board.public .cell.drawn .c-idx { color: rgba(255, 255, 255, .7); }
.board.public .cell.void { background: #0b1020; box-shadow: inset 0 0 0 1px rgba(150, 165, 200, .25); border: 1px dashed rgba(150, 165, 200, .3); opacity: .38; filter: grayscale(1); }
.board.public .cell.void.win { opacity: .55; }
.board.public .cell.drawn.win { background: linear-gradient(180deg, #4a5f95, #2b3a68); box-shadow: inset 0 0 0 2px var(--ac), 0 0 16px var(--ac); }
.board.public .cell.drawn.win.major { box-shadow: inset 0 0 0 3px var(--ac), 0 0 26px var(--ac); }
.legend .lg.drawn { background: linear-gradient(180deg, #3f5a94, #26396a); box-shadow: inset 0 0 0 2px #9db8ff; }
.legend .lg.void { background: #0b1020; border: 1px dashed rgba(150, 165, 200, .45); box-shadow: none; opacity: .5; filter: grayscale(1); }

/* ───────── 響應式 ───────── */
@media (max-width: 980px) {
  .cp-grid { grid-template-columns: 1fr; }
  .cp-side { display: contents; }                     /* 手機 / 窄螢幕：獎項 → 排隊面板 → 抽卡面 */
  .cp-side > .seat { order: 2; min-height: 0; display: block; }
  .cp-side > .seat .qwrap { display: block; }
  .cp-side > .seat .qlist { overflow: visible; }
  .cp-side > .pz-panel { margin-top: 0; }
  .cp-side > .pz-panel { order: 1; }
  .cp-main { order: 3; }
  .pz-row.minors { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .pz-row.majors { max-width: 480px; }
}
@media (max-width: 560px) {
  .cp-head h1 { font-size: 24px; }
  .stat { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .seat-main { gap: 12px; }
  .seat-act { width: 100%; }
  .seat-act .btn { flex: 1 1 auto; }
  .count { font-size: 30px; }
  .shabar .in { padding: 10px 12px; }
  .shabar .btns { width: 100%; }
  .shabar .btns .btn { flex: 1; }
  .loglist li { grid-template-columns: 44px 1fr auto; padding: 8px 10px; }
}

.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.instant { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mut); cursor: pointer; user-select: none; }
.instant input { accent-color: var(--gold); width: 16px; height: 16px; }

.board-tools { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ───── 手機 / 觸控裝置：格子很多，每格的陰影、濾鏡會讓捲動卡頓 → 簡化 ───── */
@media (max-width: 900px), (hover: none) {
  .cell { transition: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 -6px 10px rgba(58, 70, 98, .34); }
  .cell.drawn, .board.public .cell.void { box-shadow: inset 0 0 0 1px var(--line2); }
  .cell.win { box-shadow: inset 0 0 0 2px var(--ac); }
  .cell.win.major { box-shadow: inset 0 0 0 3px var(--ac); }
  .board.locked .cell:not(.drawn):not(.scratching):not(.void) { filter: none; opacity: .88; }
  .board { box-shadow: inset 0 0 0 1px var(--line3); }
  .pz-box { box-shadow: 0 0 0 2.5px var(--ac), 0 0 0 3.5px rgba(0, 0, 0, .55); transition: none; }
  .pz.hit .pz-box { box-shadow: 0 0 0 3.5px #ee3636, 0 0 0 4.5px rgba(0, 0, 0, .55); }
  .pz.miss .pz-box { filter: none; opacity: .72; box-shadow: 0 0 0 2px #4a5679; }
  .shabar .in { box-shadow: none; }
  .seat.active { box-shadow: var(--shadow); }
}
/* 手機版：提示文字在左，「直接刮開」、「隨機抽」放在它右邊同一排、同一個高度（提示太長時文字自己換行） */
@media (max-width: 980px) {
  .board-head { flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; }
  .board-hint { flex: 1 1 auto; min-width: 0; text-align: left; font-size: 13px; line-height: 1.3; }
  .board-tools { flex: none; flex-wrap: nowrap; gap: 8px; align-items: center; }
  .instant { height: 32px; font-size: 13px; line-height: 1; white-space: nowrap; gap: 4px; }
  #randDraw.btn { height: 32px; padding: 0 10px; font-size: 13px; line-height: 1; border-radius: 9px; white-space: nowrap; }
}
