/* ============================================================
   拾光游戏厅 · go.css
   围棋：木盘 / 云子 / 状态栏 / 数子面板 / 结果弹窗
   ============================================================ */

/* ---------------- 舞台与棋盘外框 ---------------- */
.go-wrap {
  width: 100%;
}

.go-stage {
  padding: clamp(12px, 1.9vw, 26px);
  background:
    radial-gradient(ellipse at 50% -4%, rgba(255, 226, 175, .11), transparent 58%),
    repeating-linear-gradient(93deg, rgba(30, 17, 8, .24) 0 2px, rgba(255, 230, 183, .014) 2px 5px, transparent 5px 21px),
    linear-gradient(155deg, #402a1b, #281a10 80%);
}

.go-stage-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.go-board-frame {
  position: relative;
  width: min(100%, 664px);
  padding: clamp(7px, 1.15vw, 14px);
  border-radius: 7px;
  border: 1px solid rgba(20, 10, 3, .85);
  background:
    linear-gradient(180deg, rgba(255, 222, 168, .17), transparent 16%),
    repeating-linear-gradient(91deg, rgba(0, 0, 0, .13) 0 2px, transparent 2px 9px),
    linear-gradient(152deg, #6d4728, #4a2d17 52%, #301d0d);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, .52),
    0 4px 0 rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 226, 176, .22),
    inset 0 -2px 7px rgba(0, 0, 0, .55);
}

.go-board-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  pointer-events: none;
  background:
    radial-gradient(circle at 3.4% 4%, rgba(238, 208, 145, .55) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 96.6% 4%, rgba(238, 208, 145, .55) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 3.4% 96%, rgba(238, 208, 145, .45) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 96.6% 96%, rgba(238, 208, 145, .45) 0 1.2px, transparent 1.9px);
}

.go-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  container-type: inline-size;
  touch-action: manipulation;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 26% 16%, rgba(255, 246, 218, .5), transparent 52%),
    radial-gradient(ellipse at 82% 90%, rgba(104, 58, 16, .18), transparent 62%),
    repeating-linear-gradient(91deg,
      rgba(120, 75, 30, .055) 0 1px,
      transparent 1px 6px,
      rgba(255, 238, 202, .045) 6px 7px,
      transparent 7px 22px),
    repeating-linear-gradient(2.5deg,
      rgba(106, 62, 21, .045) 0 1px,
      transparent 1px 10px),
    linear-gradient(136deg, #e6bd7f 0%, #dcaa68 34%, #d09d58 64%, #c08b46 100%);
  box-shadow:
    inset 0 0 0 1px rgba(66, 36, 10, .5),
    inset 0 1px 0 rgba(255, 244, 212, .55),
    inset 0 0 38px rgba(105, 60, 16, .24);
}

/* 棋盘上的内框细线（老棋盘的压边） */
.go-board::before {
  content: "";
  position: absolute;
  inset: 2.1%;
  border: 1px solid rgba(92, 54, 20, .16);
  border-radius: 1px;
  pointer-events: none;
  z-index: 0;
}

.go-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.go-grid-lines line {
  stroke: rgba(59, 36, 14, .62);
  stroke-width: 1.5;
  stroke-linecap: square;
}

.go-board[data-size="9"] .go-grid-lines line { stroke-width: 1.9; }
.go-board[data-size="13"] .go-grid-lines line { stroke-width: 1.7; }

.go-grid-stars circle {
  fill: rgba(42, 24, 7, .78);
}

.go-grid-coords text {
  fill: rgba(78, 48, 17, .55);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .02em;
  font-size: 1.55cqw;
}
.go-board[data-size="13"] .go-grid-coords text { font-size: 1.85cqw; }
.go-board[data-size="9"] .go-grid-coords text { font-size: 2.25cqw; }

/* ---------------- 交叉点与棋子 ---------------- */
.go-points {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.go-pt {
  position: absolute;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

.go-board[data-phase="playing"] .go-pt:not(.has-stone) { cursor: pointer; }
.go-board[data-phase="scoring"] .go-pt.has-stone { cursor: pointer; }

.go-stone {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.55);
  transition: opacity .16s ease, transform .2s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: none;
  z-index: 2;
}

.go-pt.has-stone .go-stone {
  opacity: 1;
  transform: scale(1);
}

/* 黑子：黝黑带一点冷调高光 */
.go-stone.is-black {
  background:
    radial-gradient(circle at 31% 23%, rgba(255, 255, 255, .55) 0%, rgba(198, 208, 212, .18) 9%, transparent 24%),
    radial-gradient(circle at 38% 33%, #71787c 0%, #3c4043 20%, #1d1f21 46%, #0b0b0c 76%, #010101 100%);
  box-shadow:
    0 .34cqw .52cqw rgba(34, 16, 4, .52),
    0 .08cqw .12cqw rgba(0, 0, 0, .6),
    inset 0 -.26cqw .46cqw rgba(0, 0, 0, .72),
    inset .16cqw .18cqw .42cqw rgba(255, 255, 255, .1);
}

/* 白子：温润米白，边缘稍暗 */
.go-stone.is-white {
  background:
    radial-gradient(circle at 30% 22%, #fffefb 0%, rgba(255, 253, 245, .9) 12%, transparent 32%),
    radial-gradient(circle at 38% 32%, #fcf7ec 0%, #f5eddb 24%, #e9dec7 50%, #d5c7a9 74%, #c0ae8c 100%);
  box-shadow:
    0 .34cqw .52cqw rgba(46, 27, 8, .38),
    0 .08cqw .12cqw rgba(40, 22, 6, .28),
    inset 0 -.28cqw .48cqw rgba(126, 104, 66, .4),
    inset .15cqw .17cqw .38cqw rgba(255, 255, 255, .85);
}

/* 悬停预落子（触屏不依赖） */
.go-board[data-phase="playing"] .go-pt:not(.has-stone):hover::after,
.go-board[data-phase="playing"] .go-pt:not(.has-stone):focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: .46;
  pointer-events: none;
  z-index: 1;
}

.go-board[data-phase="playing"].is-turn-black .go-pt:not(.has-stone):hover::after,
.go-board[data-phase="playing"].is-turn-black .go-pt:not(.has-stone):focus-visible::after {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .5), transparent 30%),
    radial-gradient(circle at 38% 33%, #3c4043, #151617 62%, #000 100%);
  box-shadow: 0 .3cqw .5cqw rgba(0, 0, 0, .28);
}

.go-board[data-phase="playing"].is-turn-white .go-pt:not(.has-stone):hover::after,
.go-board[data-phase="playing"].is-turn-white .go-pt:not(.has-stone):focus-visible::after {
  background:
    radial-gradient(circle at 32% 24%, #fffefb, transparent 32%),
    radial-gradient(circle at 38% 33%, #f7f0e0, #e4d8bf 60%, #c9b995 100%);
  box-shadow: 0 .3cqw .5cqw rgba(46, 27, 8, .24);
}

/* 最后一手：红点 */
.go-pt.has-stone.is-last .go-stone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #c33b28;
  box-shadow:
    0 0 0 .4px rgba(255, 246, 224, .55),
    0 0 .7cqw rgba(178, 48, 32, .55);
  z-index: 3;
}

/* 打劫禁着点 */
.go-pt.is-ko::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px dashed rgba(178, 58, 43, .82);
  box-shadow: 0 0 .8cqw rgba(178, 58, 43, .28);
  pointer-events: none;
  z-index: 3;
}

/* 非法落点反馈 */
.go-board[data-phase="playing"] .go-pt.is-invalid::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1.5px solid rgba(178, 58, 43, .9);
  box-shadow: 0 0 .9cqw rgba(178, 58, 43, .45);
  pointer-events: none;
  z-index: 4;
}

/* 数子：死子叉、地域点 */
.go-board[data-phase="scoring"] .go-pt.is-dead .go-stone {
  opacity: .28;
  filter: saturate(.35) brightness(.92);
}

.go-board[data-phase="scoring"] .go-pt.is-dead::before,
.go-board[data-phase="scoring"] .go-pt.is-dead::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66%;
  height: max(1.5px, .42cqw);
  border-radius: 1px;
  background: linear-gradient(90deg, #8d2b1e, #c0392b 45%, #8d2b1e);
  box-shadow: 0 0 .5cqw rgba(112, 28, 18, .55);
  pointer-events: none;
  z-index: 5;
}
.go-board[data-phase="scoring"] .go-pt.is-dead::before { transform: translate(-50%, -50%) rotate(45deg); }
.go-board[data-phase="scoring"] .go-pt.is-dead::after { transform: translate(-50%, -50%) rotate(-45deg); }

.go-board[data-phase="scoring"] .go-pt.has-stone:hover .go-stone {
  filter: brightness(1.12);
}
.go-board[data-phase="scoring"] .go-pt.has-stone:hover::before {
  content: "";
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 1px solid rgba(178, 58, 43, .75);
  pointer-events: none;
  z-index: 6;
}

.go-pt.is-terr-black::before,
.go-pt.is-terr-white::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
  z-index: 1;
}
.go-pt.is-terr-black::before {
  background: linear-gradient(180deg, #2c2c2e, #08080a);
  box-shadow: 0 0 1.4px rgba(255, 246, 220, .5);
  opacity: .72;
}
.go-pt.is-terr-white::before {
  background: linear-gradient(180deg, #fffdf6, #ddcfb1);
  box-shadow: 0 0 1.4px rgba(48, 28, 8, .55), inset 0 0 0 .5px rgba(126, 104, 66, .5);
  opacity: .82;
}

/* 已结束棋盘锁盘 */
.go-board[data-phase="finished"] .go-pt { cursor: default; }
.go-board[data-phase="finished"] { filter: saturate(.96); }

/* 停手提示（棋盘下方浮签） */
.go-pass-hint {
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0 11px;
  border-radius: 2px;
  border: 1px solid rgba(198, 160, 90, .34);
  background: linear-gradient(180deg, rgba(43, 33, 25, .96), rgba(24, 18, 13, .96));
  color: rgba(230, 201, 130, .8);
  font-size: 10px;
  letter-spacing: .1em;
  transition: all .2s ease;
}
.go-pass-hint.is-on {
  height: auto;
  opacity: 1;
  margin-top: 10px;
  padding: 4px 11px;
}

/* 棋盘下的黄铜铭牌 */
.go-plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 14px 5px 7px;
  border-radius: 2px;
  border: 1px solid rgba(198, 160, 90, .32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 45%),
    linear-gradient(160deg, #2b2119, #181310);
  box-shadow: inset 0 1px 0 rgba(255, 230, 185, .1), 0 3px 8px rgba(0, 0, 0, .32);
}
.go-plate-seal {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(198, 160, 90, .45);
  color: var(--brass-hi);
  font-family: var(--font-display);
  font-size: 11px;
  background: rgba(198, 160, 90, .08);
}
.go-plate-text {
  color: rgba(230, 201, 130, .82);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .22em;
}
.go-plate-sub {
  color: rgba(198, 160, 90, .34);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .16em;
  padding-left: 9px;
  border-left: 1px solid rgba(198, 160, 90, .2);
}

/* ---------------- 侧栏 ---------------- */
.go-side .paper-card { padding: 14px 15px; }
.go-side .go-rules-card { padding-bottom: 12px; }

.go-status-body { min-height: 62px; }

.go-turn-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 2px;
  border: 1px solid rgba(100, 67, 32, .2);
  background: rgba(255, 249, 232, .42);
}

.go-swatch {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  position: relative;
}
.go-swatch--black {
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, .45), transparent 22%),
    radial-gradient(circle at 38% 33%, #5e6468, #24262a 48%, #000 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .45), inset 0 -2px 4px rgba(0, 0, 0, .65);
}
.go-swatch--white {
  background:
    radial-gradient(circle at 32% 25%, #fffef9, transparent 34%),
    radial-gradient(circle at 38% 33%, #f8f1e1, #e6dbc3 55%, #c4b391 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .28), inset 0 -2px 4px rgba(122, 100, 62, .35);
}

.go-turn-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.go-turn-text b {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .08em;
  color: #38250f;
}
.go-turn-text small { color: rgba(80, 55, 27, .58); font-size: 10.5px; }

.go-hints { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.go-chip {
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid rgba(100, 67, 32, .22);
  background: rgba(255, 249, 232, .38);
  color: rgba(74, 48, 22, .72);
  font-size: 10px;
  letter-spacing: .03em;
  line-height: 1.5;
}
.go-chip--warn {
  color: #7a571d;
  border-color: rgba(176, 140, 60, .45);
  background: rgba(198, 160, 90, .16);
}
.go-chip--ko {
  color: #8f2b1f;
  border-color: rgba(178, 58, 43, .42);
  background: rgba(178, 58, 43, .09);
}

.go-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  border: 1px solid rgba(100, 67, 32, .2);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(100, 67, 32, .16);
}
.go-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 2px;
  background: rgba(255, 249, 232, .42);
}
.go-stat-k { color: rgba(80, 55, 27, .55); font-size: 9.5px; letter-spacing: .06em; }
.go-stat-v {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.2;
  color: #3a2712;
}

/* 数子阶段 */
.go-phase-flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 2px;
  border: 1px solid rgba(47, 111, 98, .38);
  background: linear-gradient(180deg, rgba(47, 111, 98, .17), rgba(47, 111, 98, .07));
}
.go-phase-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  color: #2c5b50;
  font-weight: 700;
}
.go-phase-en {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .16em;
  color: rgba(47, 111, 98, .5);
}
.go-note {
  margin-top: 8px;
  color: rgba(70, 48, 24, .68);
  font-size: 10.5px;
  line-height: 1.7;
}
.go-score-mini {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.go-score-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  color: rgba(58, 39, 20, .82);
}
.go-score-k { white-space: nowrap; letter-spacing: .04em; }
.go-mini-stone {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
}
.go-mini-stone--black {
  background: radial-gradient(circle at 34% 28%, #6b7175, #1d1f21 55%, #000 100%);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .45);
}
.go-mini-stone--white {
  background: radial-gradient(circle at 34% 28%, #fffdf7, #e9dfc9 55%, #c6b795 100%);
  box-shadow: 0 1px 1.5px rgba(60, 35, 10, .35), inset 0 0 0 .5px rgba(120, 98, 62, .4);
}
.go-score-line b {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #38250f;
  margin-left: auto;
}
.go-score-line .go-mini-stone { align-self: center; margin-right: 1px; }
.go-score-sub {
  margin: -2px 0 3px 17px;
  color: rgba(80, 55, 27, .5);
  font-size: 9.5px;
  letter-spacing: .02em;
}
.go-score-diff {
  margin-top: 3px;
  padding: 5px 9px;
  border-radius: 2px;
  border: 1px solid rgba(47, 111, 98, .3);
  background: rgba(47, 111, 98, .1);
  color: #2c5b50;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .05em;
  text-align: center;
}
.go-score-diff.is-white {
  border-color: rgba(140, 106, 54, .32);
  background: rgba(198, 160, 90, .13);
  color: #6c5020;
}
.go-score-diff.is-draw {
  color: #5c5343;
  border-color: rgba(100, 67, 32, .24);
  background: rgba(100, 67, 32, .08);
}
.go-dead-count {
  margin-top: 8px;
  color: rgba(80, 55, 27, .58);
  font-size: 10px;
}
.go-dead-count b { color: #8f2b1f; font-size: 11px; }

/* 最近落子 */
.go-move-log {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed rgba(100, 67, 32, .2);
}
.go-log-title {
  color: rgba(80, 55, 27, .5);
  font-size: 9px;
  letter-spacing: .08em;
  margin-right: 2px;
}
.go-log-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid rgba(100, 67, 32, .18);
  background: rgba(255, 249, 232, .35);
  color: rgba(58, 39, 20, .72);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
}
.go-log-item em {
  font-style: normal;
  color: rgba(80, 55, 27, .42);
  padding-right: 2px;
  border-right: 1px solid rgba(100, 67, 32, .16);
}
.go-log-item.is-black { box-shadow: inset 2px 0 0 rgba(28, 26, 24, .55); }
.go-log-item.is-white { box-shadow: inset 2px 0 0 rgba(160, 140, 102, .65); }

/* 终局状态 */
.go-result-band {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 2px;
  border: 1px solid rgba(100, 67, 32, .24);
  background: rgba(255, 249, 232, .42);
}
.go-result-seal {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f7ead0;
  font-family: var(--font-display);
  font-size: 19px;
  background: linear-gradient(160deg, #b84a37, #7c2a1f);
  box-shadow: inset 0 1px 0 rgba(255, 214, 188, .4), 0 2px 5px rgba(80, 25, 15, .32);
}
.go-result-band.is-white .go-result-seal {
  color: #4a331d;
  background: linear-gradient(160deg, #f4ead5, #cbb993);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 5px rgba(60, 38, 12, .28);
}
.go-result-band.is-draw .go-result-seal {
  background: linear-gradient(160deg, #6f8f83, #3f5c53);
}
.go-result-text { display: flex; flex-direction: column; line-height: 1.35; }
.go-result-text b {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .07em;
  color: #38250f;
}
.go-result-text small { color: rgba(80, 55, 27, .6); font-size: 10px; }
.go-result-detail {
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.75;
  color: rgba(58, 39, 20, .72);
}

/* 操作区 */
.go-action-body { display: flex; flex-direction: column; gap: 7px; }
.go-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.go-toolbar .btn { flex: 1 1 auto; min-height: 33px; padding: 6px 10px; font-size: 11px; }
.go-toolbar .btn-block { flex: 1 1 100%; }
.go-toolbar .btn svg { width: 13px; height: 13px; }

.go-size-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  padding-top: 9px;
  border-top: 1px dashed rgba(100, 67, 32, .2);
}
.go-size-label {
  color: rgba(80, 55, 27, .6);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.go-size-label em {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-style: normal;
  letter-spacing: .18em;
  color: rgba(80, 55, 27, .38);
}
.go-size-seg { flex: 0 0 auto; }
.go-size-seg .seg-btn { padding: 4px 7px; font-size: 10px; }

.go-rules-en {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .16em;
  color: rgba(98, 67, 31, .4);
  padding-left: 8px;
}

/* ---------------- 结果弹窗 ---------------- */
.go-result-modal .modal-body { padding-top: 8px; }

.go-result-hero {
  text-align: center;
  padding: 2px 0 12px;
}
.go-result-hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: .24em;
  color: #5c2a1c;
  line-height: 1.2;
  text-indent: .24em;
}
.go-result-hero.is-white .go-result-hero-title { color: #4a3a22; }
.go-result-hero.is-draw .go-result-hero-title { color: #3f5c53; }
.go-result-hero-sub {
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: rgba(80, 55, 27, .6);
}
.go-result-hero-margin {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 13px;
  border-radius: 2px;
  border: 1px solid rgba(178, 58, 43, .3);
  background: rgba(178, 58, 43, .08);
  color: #8f2b1f;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
}

.go-receipt {
  margin-top: 4px;
  padding: 11px 13px;
  border: 1px solid rgba(100, 67, 32, .26);
  border-radius: 2px;
  background:
    repeating-linear-gradient(0deg, rgba(110, 79, 40, .025) 0 1px, transparent 1px 3px),
    rgba(255, 250, 236, .5);
}
.go-receipt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px dashed rgba(100, 67, 32, .28);
  color: #6a4c26;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: .08em;
}
.go-receipt-head em {
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .16em;
  color: rgba(98, 67, 31, .42);
}
.go-receipt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 11px;
  color: rgba(58, 39, 20, .78);
}
.go-receipt-row b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #38250f;
  white-space: nowrap;
}
.go-receipt-row.is-muted { color: rgba(80, 55, 27, .52); }
.go-receipt-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(100, 67, 32, .22);
  color: #6a2c1e;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
}
.go-receipt-total b {
  font-family: var(--font-mono);
  font-size: 16px;
  color: #8f2b1f;
}

/* ---------------- 动效 ---------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes go-drop {
    0% { transform: scale(.52); opacity: .3; }
    62% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
  }
  .go-pt.is-new .go-stone { animation: go-drop .24s cubic-bezier(.2, .9, .3, 1.15); }

  @keyframes go-ko-pulse {
    0%, 100% { opacity: .45; }
    50% { opacity: .95; }
  }
  .go-pt.is-ko::before { animation: go-ko-pulse 1.9s ease-in-out infinite; }

  @keyframes go-invalid {
    0%, 100% { transform: scale(1); opacity: 1; }
    40% { transform: scale(1.18); opacity: .55; }
  }
  .go-board[data-phase="playing"] .go-pt.is-invalid::before { animation: go-invalid .4s ease-out; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .go-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .go-rules-card { grid-column: 1 / -1; }
  .go-stage { padding: clamp(10px, 2.4vw, 20px); }
}

@media (max-width: 640px) {
  .go-side { grid-template-columns: minmax(0, 1fr); }
  .go-stage { padding: 8px 7px 12px; }
  .go-board-frame { padding: 6px; border-radius: 5px; }
  .go-board-frame::after { display: none; }
  .go-grid-coords text { font-size: 2.05cqw; }
  .go-board[data-size="13"] .go-grid-coords text { font-size: 2.4cqw; }
  .go-board[data-size="9"] .go-grid-coords text { font-size: 2.9cqw; }
  .go-plate { margin-top: 12px; padding: 4px 11px 4px 6px; }
  .go-plate-text { font-size: 11px; letter-spacing: .16em; }
  .go-plate-sub { display: none; }
  .go-side .paper-card { padding: 12px 13px; }
  .go-result-hero-title { font-size: 26px; }
  .go-stat-v { font-size: 14px; }
  .go-toolbar .btn { font-size: 11px; }
}

@media (max-width: 390px) {
  .go-stage { padding: 6px 5px 10px; }
  .go-board-frame { padding: 4px; }
  .go-size-label { font-size: 10px; }
  .go-size-seg .seg-btn { padding: 4px 6px; font-size: 9.5px; }
}
