/* ============================================================
   方寸文明 · 微尘纪
   ============================================================ */

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink-0: #070b0c;
  --paper: #f1e7d2;
  --paper-dim: #cfc3aa;
  --gold: #d8b26a;
  --gold-soft: rgba(216, 178, 106, .42);
  --gold-line: rgba(216, 178, 106, .18);

  --bg-1: #14100c;
  --bg-2: #050708;
  --accent: #c8a06a;
  --accent-soft: rgba(200, 160, 106, .16);

  --frame-1: #2b2620;
  --frame-2: #151312;

  --radius: 18px;
  --ease: cubic-bezier(.22, .68, .28, 1);

  --font-serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--paper);
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-1) 0%, var(--bg-2) 70%) fixed, var(--bg-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .8s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: .055;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(78% 52% at 50% 8%, var(--accent-soft), transparent 68%);
  pointer-events: none;
  transition: background .8s var(--ease);
  z-index: 0;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 时代配色 ---------- */
body[data-era="0"] { --bg-1: #17110b; --bg-2: #06080a; --accent: #c9a06a; --accent-soft: rgba(201,160,106,.14); --frame-1: #2c241b; --frame-2: #171310; }
body[data-era="1"] { --bg-1: #111a10; --bg-2: #060a07; --accent: #9cbe74; --accent-soft: rgba(156,190,116,.13); --frame-1: #26301f; --frame-2: #12160f; }
body[data-era="2"] { --bg-1: #0d1a18; --bg-2: #050a09; --accent: #7cc6ac; --accent-soft: rgba(124,198,172,.13); --frame-1: #1f302b; --frame-2: #0f1614; }
body[data-era="3"] { --bg-1: #0f151c; --bg-2: #05080b; --accent: #8fb0d2; --accent-soft: rgba(143,176,210,.13); --frame-1: #222c38; --frame-2: #10151b; }
body[data-era="4"] { --bg-1: #1b1410; --bg-2: #080605; --accent: #d59a5f; --accent-soft: rgba(213,154,95,.15); --frame-1: #33251a; --frame-2: #18120d; }
body[data-era="5"] { --bg-1: #0d1222; --bg-2: #04060c; --accent: #85b6f0; --accent-soft: rgba(133,182,240,.14); --frame-1: #1d2740; --frame-2: #0e121e; }
body[data-era="6"] { --bg-1: #100b1e; --bg-2: #04030a; --accent: #c3a4f5; --accent-soft: rgba(195,164,245,.15); --frame-1: #241a3c; --frame-2: #110d1c; }

/* ---------- 通用控件 ---------- */
.btn {
  font-family: var(--font-serif);
  color: var(--paper);
  border: 1px solid var(--gold-line);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 15px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .16s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.975); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn[disabled] { opacity: .42; cursor: default; }

.btn--gold {
  background: linear-gradient(150deg, #e2c07a, #b9905a 62%, #9a7440);
  color: #211705;
  border: 1px solid rgba(255, 236, 196, .6);
  font-weight: 700;
  box-shadow: 0 10px 26px -12px rgba(216,178,106,.8), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--gold[disabled] { filter: grayscale(.4); }
.btn--wide { width: 100%; padding: 15px 18px; font-size: 17px; }
.btn--ghost { background: transparent; color: var(--paper-dim); }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: rgba(255,255,255,.03);
  color: var(--paper-dim);
  font-family: var(--font-serif);
  font-size: 16px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold-soft); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn[aria-pressed="false"] { opacity: .45; }

.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ============================================================
   开场
   ============================================================ */
.screen { position: relative; z-index: 2; }

.screen--intro {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 22px calc(18px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
}

.intro-art {
  position: fixed;
  inset: 0;
  background: url("../assets/hero.png") center 12% / cover no-repeat;
  transform: scale(1.02);
  animation: intro-drift 22s ease-in-out infinite alternate;
}
@keyframes intro-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-8px); }
}

.intro-scrim {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,6,7,.72) 0%, rgba(4,6,7,.18) 26%, rgba(4,6,7,.62) 52%, rgba(4,6,7,.94) 74%, #040607 100%),
    radial-gradient(90% 60% at 50% 42%, transparent 30%, rgba(3,5,6,.55) 100%);
}

.intro-inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding-bottom: 4px;
}

.intro-kicker {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .5em;
  text-indent: .5em;
  color: var(--gold);
  opacity: .9;
}

.intro-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 15vw, 66px);
  line-height: 1;
  letter-spacing: .1em;
  text-indent: .1em;
  color: #f6ecd8;
  text-shadow: 0 2px 40px rgba(216,178,106,.35), 0 1px 0 rgba(0,0,0,.6);
}
.intro-title span { display: inline-block; }
.intro-title span:last-child { color: #ecd9ac; }

.intro-sub {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .7em;
  text-indent: .7em;
  color: rgba(241,231,210,.62);
}

.intro-lede {
  margin: 22px auto 0;
  max-width: 330px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(241,231,210,.86);
}

.intro-rules {
  list-style: none;
  margin: 22px 0 24px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 10px;
}
.intro-rules li {
  position: relative;
  padding-left: 34px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(241,231,210,.68);
}
.intro-rules b {
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  background: rgba(216,178,106,.07);
}

.intro-foot {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(241,231,210,.3);
}

/* ============================================================
   主局
   ============================================================ */
.screen--game {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(10px + env(safe-area-inset-top)) 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.era-badge { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.era-badge__label {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--accent);
  opacity: .85;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 2px 5px 2px 7px;
}
.era-badge strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .12em;
  color: #f2e6cd;
}
.era-badge__sub {
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(241,231,210,.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__right { display: flex; gap: 8px; flex: none; }

/* 时代进程 */
.era-track {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 2px;
  overflow: hidden;
}
.era-track::-webkit-scrollbar { display: none; }
.era-track li {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: rgba(241,231,210,.28);
  white-space: nowrap;
}
.era-track li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  margin-right: 4px;
  flex: none;
}
.era-track li::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 5px;
  background: currentColor;
  opacity: .22;
  margin: 0 5px;
}
.era-track li:last-child::after { display: none; }
.era-track li.done { color: var(--accent); opacity: .62; }
.era-track li.done::before { background: currentColor; }
.era-track li.now { color: var(--accent); }
.era-track li.now::before { background: currentColor; box-shadow: 0 0 0 3px var(--accent-soft); }

/* 资源 */
.hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.res {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  overflow: hidden;
}
.res::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 0% 0%, var(--tint, transparent), transparent 70%);
  opacity: .5;
  pointer-events: none;
}
.res--food { --tint: rgba(226,186,110,.22); color: #f0d79c; }
.res--ind { --tint: rgba(150,190,215,.2); color: #bcd3e2; }
.res--cul { --tint: rgba(224,150,140,.2); color: #eab9ac; }

.res__icon { width: 20px; height: 20px; flex: none; opacity: .92; }
.res__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.res__name { font-size: 9.5px; letter-spacing: .2em; color: rgba(241,231,210,.5); }
.res__value {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.res__delta {
  position: absolute;
  right: 8px;
  font-family: var(--font-serif);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  color: var(--gold);
}
.res__delta.show { animation: delta-rise 1.05s var(--ease) forwards; }
@keyframes delta-rise {
  0% { opacity: 0; transform: translateY(6px); }
  22% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}
.res.is-low { border-color: rgba(224,120,96,.55); }
.res.is-low .res__value { color: #f0a08a; animation: low-pulse 1.4s ease-in-out infinite; }
@keyframes low-pulse { 50% { opacity: .55; } }

/* ---------- 棋盘 ---------- */
.board-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.board-frame {
  position: relative;
  width: min(100%, calc(100dvh - 430px), 430px);
  padding: clamp(7px, 2.2vw, 12px);
  border-radius: 22px;
  background:
    linear-gradient(158deg, var(--frame-1), var(--frame-2) 68%),
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.08), transparent);
  border: 1px solid rgba(216,178,106,.24);
  box-shadow:
    0 24px 60px -28px #000,
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -14px 30px rgba(0,0,0,.45);
  transition: background .8s var(--ease), border-color .8s var(--ease);
}
.board-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 19px;
  border: 1px solid rgba(216,178,106,.13);
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  opacity: .8;
}
.corner--tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.corner--tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.corner--br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.board {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.5vw, 8px);
  border-radius: 12px;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(255,255,255,.05), transparent 70%),
    rgba(0,0,0,.28);
  box-shadow: inset 0 2px 12px rgba(0,0,0,.5);
  padding: clamp(4px, 1.5vw, 8px);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.board.is-swiping { cursor: grabbing; }

.tile.is-dragging {
  z-index: 6;
  transition: none;
  filter: brightness(1.12);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,232,178,.5);
  pointer-events: none;
}

.tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  border-radius: 22%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--k-ink, #1a1408);
  background:
    linear-gradient(163deg, rgba(255,255,255,.13), rgba(255,255,255,0) 40%),
    var(--tex, none) center / 100% 100% no-repeat,
    radial-gradient(120% 100% at 26% 10%, var(--k-hi), transparent 60%),
    linear-gradient(158deg, var(--k-mid), var(--k-deep));
  background-blend-mode: soft-light, var(--tex-blend, normal), normal, normal;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -1px 0 rgba(0,0,0,.35),
    inset 0 -10px 18px rgba(0,0,0,.26),
    0 4px 10px -3px rgba(0,0,0,.6);
  transition: transform .18s var(--ease), box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  isolation: isolate;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* 阶数材质：素陶 → 青铜 → 青玉 → 鎏金 → 朱漆 → 星琉璃 */
.tile[data-level="1"] { --tex: url("../assets/tex-lv1.jpg"); --tex-blend: soft-light; --frame-ink: rgba(255,244,214,.3); }
.tile[data-level="2"] { --tex: url("../assets/tex-lv2.jpg"); --tex-blend: overlay;    --frame-ink: rgba(250,238,204,.46); }
.tile[data-level="3"] { --tex: url("../assets/tex-lv3.jpg"); --tex-blend: soft-light; --frame-ink: rgba(255,250,232,.52); }
.tile[data-level="4"] { --tex: url("../assets/tex-lv4.jpg"); --tex-blend: overlay;    --frame-ink: rgba(255,236,178,.64); }
.tile[data-level="5"] { --tex: url("../assets/tex-lv5.jpg"); --tex-blend: overlay;    --frame-ink: rgba(255,222,150,.68); }
.tile[data-level="6"] { --tex: url("../assets/tex-lv6.jpg"); --tex-blend: overlay;    --frame-ink: rgba(226,234,255,.74); }

.tile__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--frame-ink, rgba(252,240,210,.5));
  stroke-width: 1.7;
  stroke-linejoin: round;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.32));
}

.tile::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 18%;
  border: 1px solid var(--k-ring, rgba(255,246,220,.2));
  box-shadow: inset 0 0 12px rgba(0,0,0,.18);
  pointer-events: none;
}

.tile__icon {
  width: 58%;
  height: 58%;
  color: var(--k-ink);
  opacity: .96;
  filter: drop-shadow(0 1.5px 0 rgba(255,255,255,.26)) drop-shadow(0 -1px 1px rgba(0,0,0,.3));
  pointer-events: none;
  z-index: 2;
}
.tile[data-level="5"] .tile__icon,
.tile[data-level="6"] .tile__icon {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.9));
}

.tile__lv {
  position: absolute;
  right: 5%;
  bottom: 4%;
  min-width: 15px;
  padding: 0 3px 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(16, 11, 3, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.45);
  font-family: var(--font-sans, inherit);
  font-size: clamp(11px, 3vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: #fdf0cf;
  pointer-events: none;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.tile[data-level="1"] .tile__lv {
  background: rgba(16, 11, 3, .42);
  color: rgba(253,244,220,.88);
  font-weight: 600;
}
.tile__pips {
  position: absolute;
  left: 6%;
  top: 5.5%;
  display: flex;
  gap: 2.5px;
  pointer-events: none;
  z-index: 2;
}
.tile__pips i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(26, 18, 6, .55);
  box-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.tile[data-level="1"] .tile__pips i { background: rgba(26, 18, 6, .5); }
/* 二阶起加内环，越高越亮 */

/* 阶数光泽 */
.tile[data-level="3"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -8px 14px rgba(0,0,0,.3), 0 3px 10px -2px rgba(0,0,0,.6), 0 0 0 1px rgba(255,238,190,.24); }
.tile[data-level="4"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -8px 16px rgba(0,0,0,.32), 0 4px 12px -2px rgba(0,0,0,.62), 0 0 0 1px rgba(255,238,190,.4), 0 0 18px -6px rgba(255,222,150,.6); }
.tile[data-level="5"],
.tile[data-level="6"] {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -8px 16px rgba(0,0,0,.34), 0 4px 14px -2px rgba(0,0,0,.65), 0 0 0 1.5px rgba(255,236,178,.6), 0 0 26px -8px rgba(255,214,120,.85);
}
.tile[data-level="5"]::after,
.tile[data-level="6"]::after { border-color: rgba(255,246,220,.5); }
.tile[data-level="6"] .tile__icon { animation: lv6-shine 3.4s ease-in-out infinite; }
@keyframes lv6-shine {
  50% { filter: drop-shadow(0 0 10px rgba(255,234,180,.9)); }
}

.tile:focus-visible { outline: 2px solid #fff6dc; outline-offset: 2px; }
.tile.is-selected {
  transform: scale(.93);
  box-shadow: inset 0 0 0 2px rgba(255,248,224,.9), 0 0 22px -4px rgba(255,226,164,.85);
  z-index: 2;
}
.tile.is-hint {
  animation: hint-pulse 1.15s ease-in-out infinite;
  z-index: 2;
}
.tile.is-link {
  box-shadow:
    inset 0 0 0 2px rgba(255,252,236,.9),
    0 0 0 2px rgba(255,214,140,.55),
    0 0 22px -2px rgba(255,226,164,.9);
  animation: link-pulse 1.4s ease-in-out infinite;
  z-index: 2;
}
@keyframes link-pulse {
  0%, 100% { filter: brightness(1.06); }
  50% { filter: brightness(1.2); }
}
@keyframes hint-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(255,248,224,.85), 0 0 18px -2px rgba(255,226,164,.7); }
  50% { box-shadow: inset 0 0 0 2px rgba(255,248,224,.35), 0 0 6px 0 rgba(255,226,164,.25); }
}

.tile.is-merging { animation: tile-merge .3s var(--ease) forwards; z-index: 3; }
@keyframes tile-merge {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.08); filter: brightness(1.5); }
  100% { transform: scale(.35) rotate(6deg); opacity: 0; filter: brightness(2); }
}

.tile.is-born { animation: tile-born .42s var(--ease) backwards; }
@keyframes tile-born {
  0% { transform: scale(.5) translateY(-8px); opacity: 0; }
  60% { transform: scale(1.06) translateY(0); opacity: 1; }
  100% { transform: scale(1); }
}

.tile.is-raised { animation: tile-raise .46s var(--ease); z-index: 3; }
@keyframes tile-raise {
  0% { transform: scale(.7); }
  45% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.tile.is-empty {
  background: rgba(255,255,255,.028);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  cursor: default;
}
.tile.is-empty::after, .tile.is-empty::before { display: none; }

/* 棋盘内的浮字 */
.fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.float {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
  animation: float-up 1.1s var(--ease) forwards;
}
.float.gain { color: #ffe6ae; }
.float.warn { color: #f0a08a; }
@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.85); }
  18% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(.95); }
}

.board-hint {
  margin: 0;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(241,231,210,.34);
  text-align: center;
  min-height: 15px;
}

/* ---------- 操作区 ---------- */
.actions { display: flex; gap: 8px; align-items: stretch; }

.btn--advance {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 2px;
  text-align: left;
  padding: 10px 14px 12px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(216,178,106,.22), rgba(216,178,106,.06));
  border: 1px solid var(--gold-soft);
  overflow: hidden;
}
.btn--advance .btn__main { font-size: 16px; letter-spacing: .16em; color: #f6e7c7; }
.btn--advance .btn__sub { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .04em; color: rgba(241,231,210,.52); }
.btn--advance .btn__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(0,0,0,.35);
}
.btn--advance .btn__bar i {
  display: block; height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b9905a, #f0d9a4);
  transition: width .45s var(--ease);
}
.btn--advance.is-ready {
  background: linear-gradient(150deg, rgba(226,192,122,.42), rgba(216,178,106,.14));
  border-color: rgba(255,232,180,.7);
  box-shadow: 0 0 0 1px rgba(255,232,180,.22), 0 10px 26px -16px rgba(255,214,140,.9);
  animation: advance-glow 2.6s ease-in-out infinite;
}
@keyframes advance-glow {
  50% { box-shadow: 0 0 0 1px rgba(255,232,180,.4), 0 10px 30px -12px rgba(255,214,140,.75); }
}
.btn--advance.is-ready .btn__sub { color: rgba(255,240,208,.8); }

.actions__side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; width: 84px; }
.btn--side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 13px;
  letter-spacing: .14em;
  border-radius: 13px;
  color: rgba(241,231,210,.82);
}
.badge {
  font-family: var(--font-sans);
  font-size: 9px;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(216,178,106,.22);
  color: var(--gold);
  padding: 0 4px;
}

.score-line {
  margin: 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(241,231,210,.32);
}
.score-line strong { font-family: var(--font-serif); font-size: 13px; color: rgba(241,231,210,.66); font-weight: 400; }
.score-line .dot { margin: 0 8px; opacity: .5; }

/* ============================================================
   面板
   ============================================================ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3,5,6,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in .24s var(--ease);
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
@keyframes fade-in { from { opacity: 0; } }

.sheet__panel {
  width: 100%;
  max-width: 460px;
  max-height: 84dvh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 18px 18px 22px;
  background:
    linear-gradient(170deg, #1b1915, #0c0d0c 70%),
    radial-gradient(120% 60% at 80% 0%, rgba(216,178,106,.14), transparent 60%);
  border: 1px solid rgba(216,178,106,.26);
  box-shadow: 0 -10px 60px -20px #000, inset 0 1px 0 rgba(255,255,255,.1);
  animation: sheet-up .3s var(--ease);
}
@keyframes sheet-up { from { transform: translateY(22px); opacity: 0; } }

.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sheet__head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .24em;
  color: #f2e6cd;
}
.sheet__lede { margin: 6px 0 16px; font-size: 12px; line-height: 1.6; color: rgba(241,231,210,.45); }

.help-body h3 {
  margin: 16px 0 6px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--gold);
}
.help-body p { margin: 0; font-size: 12.5px; line-height: 1.85; color: rgba(241,231,210,.62); }
.help-body b { color: rgba(255,240,214,.9); font-weight: 500; }

/* 奇观 / 技艺 条目 */
.wonder-list, .skill-list { display: grid; gap: 10px; }

.card-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(216,178,106,.14);
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
}
.card-row.is-owned { border-color: rgba(216,178,106,.5); background: linear-gradient(150deg, rgba(216,178,106,.14), rgba(216,178,106,.02)); }
.card-row.is-locked { opacity: .45; }

.card-row__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(216,178,106,.28);
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--accent);
  background: rgba(0,0,0,.25);
}
.card-row__title {
  margin: 0 0 3px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: .12em;
  color: #f2e6cd;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-row__tag {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--gold);
  border: 1px solid rgba(216,178,106,.3);
  border-radius: 4px;
  padding: 1px 4px;
}
.card-row__desc { margin: 0; font-size: 11.5px; line-height: 1.55; color: rgba(241,231,210,.5); }

.mini-btn {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .1em;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(216,178,106,.32);
  background: rgba(216,178,106,.1);
  color: #f0e0bd;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .16s;
  -webkit-tap-highlight-color: transparent;
}
.mini-btn:hover { background: rgba(216,178,106,.2); }
.mini-btn:active { transform: scale(.96); }
.mini-btn[disabled] { opacity: .35; cursor: default; }
.mini-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 时代过场 ---------- */
.era-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 40% at 50% 50%, var(--accent-soft), transparent 70%),
    rgba(4,6,7,.94);
  animation: fade-in .4s var(--ease);
  padding: 24px;
}
.era-veil__inner { text-align: center; animation: veil-in .9s var(--ease); }
@keyframes veil-in { from { opacity: 0; transform: scale(.96); } }

.era-veil__from {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .5em;
  text-indent: .5em;
  color: rgba(241,231,210,.4);
}
.era-veil__line { width: 160px; color: var(--gold); opacity: .5; }
.era-veil__to {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 12vw, 54px);
  letter-spacing: .18em;
  text-indent: .18em;
  color: #f8eed6;
  text-shadow: 0 0 50px rgba(216,178,106,.5);
}
.era-veil__note {
  margin: 16px 0 0;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--accent);
}

/* ---------- 结局 ---------- */
.sheet--end { align-items: center; z-index: 70; }
.sheet__panel--end {
  max-width: 420px;
  text-align: center;
  padding: 30px 22px 26px;
  border-color: rgba(216,178,106,.34);
}
.end-kicker {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: .45em;
  text-indent: .45em;
  color: var(--accent);
}
.sheet__panel--end h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: .2em;
  text-indent: .2em;
  color: #f8eed6;
}
.end-text { margin: 12px 0 20px; font-size: 12.5px; line-height: 1.85; color: rgba(241,231,210,.5); }

.end-stats {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(216,178,106,.14);
  border: 1px solid rgba(216,178,106,.14);
  border-radius: 14px;
  overflow: hidden;
}
.end-stats > div {
  background: #101010;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.end-stats dt { font-size: 10px; letter-spacing: .16em; color: rgba(241,231,210,.4); }
.end-stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: #f0e0bd;
  font-variant-numeric: tabular-nums;
}
.end-actions { display: grid; gap: 10px; }

/* ---------- 大屏 ---------- */
@media (min-width: 720px) and (min-height: 620px) {
  .screen--game {
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-rows: auto auto auto auto auto auto auto;
    grid-template-areas:
      "top top"
      "track track"
      "board hud"
      "board cul"
      "board goals"
      "board actions"
      "board score";
    column-gap: 28px;
    row-gap: 12px;
    align-content: center;
    align-items: stretch;
    padding: 26px;
  }
  .topbar { grid-area: top; }
  .era-track { grid-area: track; }
  .board-stage { grid-area: board; align-self: center; }
  .hud { grid-area: hud; grid-template-columns: 1fr; gap: 10px; align-content: end; }
  .cul-wrap { grid-area: cul; align-self: end; }
  .actions { grid-area: actions; display: grid; grid-template-columns: 1fr; gap: 10px; align-self: center; }
  .goal-strip { grid-area: goals; }
  .score-line { grid-area: score; text-align: left; align-self: start; }
  .res { padding: 11px 13px; }
  .res__value { font-size: 21px; }
  .actions__side { width: auto; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .board-frame { width: min(100%, 68dvh, 520px); }
}

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

/* ============================================================
   微尘纪 · 资源 / 文化 / 技艺 / 科技
   ============================================================ */
.res { position: relative; }
.res__sub {
  position: absolute;
  right: 7px; bottom: 5px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: rgba(241,231,210,.45);
  white-space: nowrap;
}
.res--pop { --tint: rgba(196,186,240,.18); color: #d7d2f2; }

.cul-wrap { display: grid; gap: 4px; }
.cul-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(216,178,106,.16);
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: border-color .3s, box-shadow .3s;
}
.cul-bar.is-full {
  border-color: rgba(255,232,180,.6);
  box-shadow: 0 0 0 1px rgba(255,232,180,.18), 0 8px 22px -18px rgba(255,214,140,.9);
}
.cul-bar__icon { width: 15px; height: 15px; color: #e9c48c; flex: none; opacity: .9; }
.cul-bar__track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
  overflow: hidden;
  min-width: 0;
}
.cul-bar__track i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9c6f3f, #f0d9a4);
  transition: width .45s var(--ease);
}
.cul-bar.is-full .cul-bar__track i { background: linear-gradient(90deg, #c9903f, #fff0c8); }
.cul-bar__text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: rgba(241,231,210,.62);
  flex: none;
}
.cul-note {
  margin: 0 2px;
  font-size: 9.5px;
  letter-spacing: .08em;
  color: rgba(241,231,210,.3);
}

/* 野兽地块 */
.tile--beast { filter: saturate(.85); }
.tile--beast::after { border-style: dashed; border-color: rgba(255,200,190,.28); }

/* 操作区：技艺 + 奇观 */
.actions {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 8px;
  align-items: stretch;
}
.skill-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}
.skill-btn {
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 7px 6px;
  border-radius: 12px;
  border: 1px solid rgba(216,178,106,.2);
  background: linear-gradient(150deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  color: rgba(241,231,210,.86);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  min-width: 0;
  transition: transform .16s var(--ease), border-color .2s, background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.skill-btn:active { transform: scale(.97); }
.skill-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skill-btn[disabled] { opacity: .38; cursor: default; }
.skill-btn__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-btn__meta {
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: .02em;
  color: rgba(241,231,210,.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn--wonders {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  border-radius: 13px;
  border: 1px solid var(--gold-soft);
  background: linear-gradient(150deg, rgba(216,178,106,.16), rgba(216,178,106,.04));
  color: rgba(246,231,199,.92);
  font-size: 13px;
  letter-spacing: .14em;
  cursor: pointer;
}
.btn--wonders:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 科技卡 */
.tech-list { display: grid; gap: 10px; }
.tech-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(216,178,106,.24);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255,235,190,.08), transparent 60%),
    linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  color: #f2e6cd;
  cursor: pointer;
  transition: transform .16s var(--ease), border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.tech-card:active { transform: scale(.985); }
.tech-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tech-card__name {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: .16em;
  color: #f7e8c6;
}
.tech-card__desc { font-size: 12px; line-height: 1.7; color: rgba(241,231,210,.62); }
.tech-card__pick {
  justify-self: end;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--gold);
  opacity: .85;
}

/* 奇观条目 */
.wonder {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(216,178,106,.14);
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  color: #f2e6cd;
  cursor: pointer;
  transition: border-color .2s, transform .16s var(--ease);
}
.wonder:active { transform: scale(.99); }
.wonder[disabled] { cursor: default; }
.wonder.is-built { border-color: rgba(216,178,106,.5); background: linear-gradient(150deg, rgba(216,178,106,.14), rgba(216,178,106,.02)); }
.wonder.is-locked { opacity: .45; }
.wonder__body { display: grid; gap: 3px; min-width: 0; }
.wonder__body strong { font-family: var(--font-serif); font-size: 15px; font-weight: 400; letter-spacing: .12em; }
.wonder__body em { font-style: normal; font-size: 11.5px; line-height: 1.6; color: rgba(241,231,210,.55); }
.wonder__cost {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--gold);
  white-space: nowrap;
}

@media (max-width: 360px) {
  .skill-btn { font-size: 12px; padding: 6px 4px; }
  .actions { grid-template-columns: 1fr 66px; }
}

/* ============================================================
   微尘纪 · 目标 / 世事 / 连锁
   ============================================================ */
.goal-strip {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px 11px;
  border-radius: 13px;
  border: 1px solid rgba(216,178,106,.22);
  background:
    linear-gradient(120deg, rgba(216,178,106,.1), rgba(255,255,255,.015) 55%),
    rgba(10,10,10,.5);
  color: rgba(241,231,210,.9);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, transform .16s var(--ease);
}
.goal-strip:active { transform: scale(.994); }
.goal-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.goal-strip.is-done { border-color: rgba(216,178,106,.55); background: linear-gradient(120deg, rgba(216,178,106,.2), rgba(255,255,255,.02)); }
.goal-strip__seal {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(216,178,106,.45);
  font-family: var(--font-serif);
  font-size: 12px;
  color: #f0d7a4;
  background: rgba(216,178,106,.12);
}
.goal-strip__body { display: grid; gap: 2px; min-width: 0; }
.goal-strip__label {
  font-size: 9.5px;
  letter-spacing: .16em;
  color: rgba(216,178,106,.8);
  display: flex;
  align-items: center;
  gap: 6px;
}
.goal-strip__label i { font-style: normal; color: rgba(241,231,210,.45); letter-spacing: .06em; }
.goal-strip__text {
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #f2e6cd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goal-strip__pips { display: flex; gap: 4px; }
.goal-strip__pips i {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(216,178,106,.5);
  background: transparent;
}
.goal-strip__pips i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 6px rgba(216,178,106,.7); }
.goal-strip__chev { color: rgba(241,231,210,.35); font-size: 14px; }

/* 目标清单 */
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.goal-item {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid rgba(216,178,106,.16);
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.goal-item.is-done {
  border-color: rgba(216,178,106,.5);
  background: linear-gradient(150deg, rgba(216,178,106,.15), rgba(216,178,106,.02));
}
.goal-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.goal-item__title {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: .08em;
  color: #f4e7c9;
}
.goal-item__num {
  font-family: var(--font-serif);
  font-size: 12px;
  color: rgba(241,231,210,.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.goal-item.is-done .goal-item__num { color: var(--gold); }
.goal-item__track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.goal-item__track i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(216,178,106,.6), #f0d7a4);
  transition: width .35s var(--ease);
}
.goal-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-item__reward { font-size: 10.5px; letter-spacing: .05em; color: rgba(216,178,106,.85); }
.goal-item__tip { font-size: 10.5px; line-height: 1.5; color: rgba(241,231,210,.4); }
.goal-item__mark {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--gold);
  opacity: 0;
}
.goal-item.is-done .goal-item__mark { opacity: 1; }

/* 世事 */
.event-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: .3em;
  color: rgba(216,178,106,.8);
}
#sheet-event .sheet__panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .18em;
  color: #f7e8c6;
}
.event-text {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(241,231,210,.62);
}
.event-opts { display: grid; gap: 10px; }
.event-opt {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  text-align: left;
  border-radius: 15px;
  border: 1px solid rgba(216,178,106,.24);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255,235,190,.07), transparent 60%),
    linear-gradient(150deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  color: #f2e6cd;
  cursor: pointer;
  transition: transform .16s var(--ease), border-color .2s;
}
.event-opt:active { transform: scale(.99); }
.event-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.event-opt__body { display: grid; gap: 3px; min-width: 0; }
.event-opt__label { font-family: var(--font-serif); font-size: 14.5px; letter-spacing: .1em; }
.event-opt__note { font-size: 11px; line-height: 1.6; color: rgba(241,231,210,.55); }
.event-opt__go { font-size: 10px; letter-spacing: .16em; color: var(--gold); }

/* 达成提示 */
.toast {
  position: fixed;
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  transform: translate(-50%, -16px);
  z-index: 60;
  display: grid;
  gap: 3px;
  min-width: 190px;
  max-width: min(88vw, 340px);
  padding: 10px 16px;
  border-radius: 13px;
  border: 1px solid rgba(216,178,106,.45);
  background: rgba(14,13,11,.94);
  box-shadow: 0 18px 40px -18px #000, inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast strong {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .14em;
  color: #f6e5c0;
}
.toast span { font-size: 10.5px; letter-spacing: .04em; color: rgba(241,231,210,.55); }

/* 结算星级 */
.end-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: .1em;
  color: rgba(241,231,210,.2);
}
.end-stars i { font-style: normal; }
.end-stars i.on { color: #f0cf8e; text-shadow: 0 0 14px rgba(240,207,142,.55); }

@media (max-width: 360px) {
  .goal-strip { grid-template-columns: 24px minmax(0, 1fr) auto 10px; gap: 8px; padding: 7px 9px; }
  .goal-strip__text { font-size: 12px; }
}
