/* ============================================================
   就抽一根 · 视觉样式（1:1 还原原版小程序氛围）
   设计基准：375 × 812，最大宽度 480px 居中
   ============================================================ */

:root {
  --bg: #0a0908;
  --ink: #f5f2ec;
  --ink-dim: rgba(245, 242, 236, 0.55);
  --ink-faint: rgba(245, 242, 236, 0.32);
  --gold: #d8b46a;
  --brand: #7a4f9e;          /* 当前烟款主色（JS 动态写入） */
  --brand-soft: rgba(122, 79, 158, 0.35);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.14);
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", serif;
  --sans: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: #050404;
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;      /* iOS 禁长按弹出菜单 */
  -webkit-text-size-adjust: 100%;   /* 禁移动端自动放大文字 */
  touch-action: manipulation;       /* 禁双击缩放 */
}

#app {
  position: relative;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}

/* ---------- 通用 ---------- */
.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hidden { display: none !important; }
.view.leaving { opacity: 0; transform: translateY(12px); }

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- 氛围背景（吸烟页） ---------- */
#smoker::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% 108%, var(--brand-soft), transparent 65%),
    radial-gradient(ellipse 70% 32% at 50% -8%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.03), transparent 40%);
  transition: background 0.6s ease;
  pointer-events: none;
}

/* ============================================================
   选烟页
   ============================================================ */
#picker { padding: max(18px, env(safe-area-inset-top)) 18px 18px; overflow-y: auto; }

.picker-head { padding: 8px 2px 18px; }
.back-btn {
  font-size: 14px;
  color: var(--ink-dim);
  padding: 6px 0;
  letter-spacing: 0.05em;
}
.picker-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 14px;
}
.picker-sub { font-size: 13px; color: var(--ink-dim); margin-top: 8px; letter-spacing: 0.12em; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-bottom: 20px;
}

.cig-card {
  position: relative;
  border-radius: 20px;
  padding: 16px 14px 14px;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease;
  /* 品牌斜纹质感 */
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.22));
}
.cig-card:active { transform: scale(0.96); }

.card-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  backdrop-filter: blur(4px);
}
.card-pill.stock { background: rgba(0, 0, 0, 0.45); color: #ffd9a0; }

.card-price {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.card-name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 18px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.card-en {
  font-size: 10px;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
}

.card-emblem {
  width: 44px;
  height: 44px;
  margin: 16px auto 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25);
}
.card-emblem i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9b0, var(--gold) 60%, #8a6420);
  box-shadow: 0 0 8px rgba(216, 180, 106, 0.7);
}

.card-taste { font-size: 11px; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.08em; margin-top: auto; }
.card-slogan { font-size: 10px; color: rgba(255, 255, 255, 0.55); margin-top: 5px; letter-spacing: 0.04em; }

.card-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 4, 4, 0.62);
  font-size: 13px;
  color: #ffd9a0;
  letter-spacing: 0.2em;
  backdrop-filter: blur(2px);
}

.picker-foot {
  text-align: center;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  padding: 6px 0 max(10px, env(safe-area-inset-bottom));
}

/* ============================================================
   云应用 Dock（选烟页底部）
   ============================================================ */
.cloud-dock { margin-top: 6px; padding: 4px 2px 10px; }
.dock-title {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.24em;
  text-align: center;
  padding: 10px 0 14px;
}
.dock-title::before, .dock-title::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 10px 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}
.dock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 6px 13px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.dock-item:active { transform: scale(0.94); }
.dock-item.current { border-color: rgba(216, 180, 106, 0.45); box-shadow: 0 0 18px rgba(216, 180, 106, 0.12); }
.dock-ico { font-size: 26px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }
.dock-name { font-size: 13.5px; letter-spacing: 0.14em; font-weight: 600; }
.dock-desc { font-size: 9.5px; color: var(--ink-faint); letter-spacing: 0.06em; }
.dock-item.current .dock-desc { color: var(--gold); }

/* ---------- 子页面返回按钮 ---------- */
.page-back {
  position: absolute;
  z-index: 9;
  top: max(14px, env(safe-area-inset-top));
  left: 16px;
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
  padding: 6px 4px;
}

/* ============================================================
   云喝酒 · 啤酒杯
   ============================================================ */
#drink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% 108%, rgba(216, 158, 42, 0.22), transparent 65%),
    radial-gradient(ellipse 70% 32% at 50% -8%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}
#mug {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 19%;
  transform: translateX(-50%);
  width: 150px;
  height: 240px;
  transition: filter 0.5s ease, rotate 0.5s ease;
}
.mug-glass {
  position: absolute;
  inset: 0 18px 0 0;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-width: 2px;
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.09));
  overflow: hidden;
  box-shadow: inset 0 -14px 26px rgba(0, 0, 0, 0.35), 0 20px 40px rgba(0, 0, 0, 0.5);
}
.mug-liquid {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #f2b32c, #d98e12 55%, #b06a08);
  transition: height 0.15s linear;
  overflow: hidden;
}
.mug-liquid i {  /* 酒泡 */
  position: absolute;
  bottom: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25));
  animation: bubbleUp linear forwards;
}
@keyframes bubbleUp {
  to { transform: translateY(-260px); opacity: 0; }
}
.mug-foam {
  position: absolute;
  left: -2%; right: -2%;
  bottom: 0;
  height: 0;
  background:
    radial-gradient(circle at 12% 20%, #fff 0 9px, transparent 10px),
    radial-gradient(circle at 34% 10%, #fff 0 12px, transparent 13px),
    radial-gradient(circle at 55% 24%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 76% 8%, #fff 0 13px, transparent 14px),
    radial-gradient(circle at 93% 22%, #fff 0 9px, transparent 10px),
    linear-gradient(180deg, #fffdf4, #f3ead2);
  border-radius: 10px 10px 0 0;
  opacity: 0.96;
  transition: height 0.15s linear, bottom 0.15s linear;
}
.mug-handle {
  position: absolute;
  right: -6px;
  top: 52px;
  width: 34px;
  height: 92px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-left: none;
  border-radius: 0 16px 16px 0;
}
.pour-stream {
  position: absolute;
  left: 50%;
  bottom: 96%;
  width: 7px;
  height: 120px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(242, 179, 44, 0), #f2b32c 30%, #d98e12);
  border-radius: 4px;
  animation: pourWobble 0.35s ease-in-out infinite alternate;
}
@keyframes pourWobble {
  from { transform: translateX(-50%) scaleX(1); }
  to { transform: translateX(-46%) scaleX(0.8); }
}
#mug.cheers { animation: clink 0.5s ease; }
@keyframes clink {
  0% { transform: translateX(-50%) rotate(0); }
  30% { transform: translateX(-50%) rotate(-9deg) translateY(-8px); }
  60% { transform: translateX(-50%) rotate(5deg); }
  100% { transform: translateX(-50%) rotate(0); }
}

/* ============================================================
   云烫头 · 舞台
   ============================================================ */
#perm::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% 108%, rgba(214, 106, 146, 0.20), transparent 65%),
    radial-gradient(ellipse 70% 32% at 50% -8%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}
#permStage {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24%;
  transform: translateX(-50%);
}
.p-head {
  position: relative;
  width: 170px;
  height: 190px;
  background: linear-gradient(140deg, #f0c194, #dda670);
  border-radius: 48% 48% 46% 46% / 42% 42% 52% 52%;
  box-shadow: inset -10px -14px 30px rgba(120, 70, 20, 0.25), 0 22px 44px rgba(0, 0, 0, 0.5);
}
.p-hair {
  position: absolute;
  left: 50%;
  top: -6px;
  width: 178px;
  height: 96px;
  transform: translateX(-50%);
  background: #2e2622;
  border-radius: 50% 50% 30% 30% / 90% 90% 20% 20%;
  transition: all 0.4s ease;
}
/* 烫完爆炸头 */
.p-head.done .p-hair {
  top: -74px;
  width: 250px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 30%, #4a3d36 0 22px, transparent 23px),
    radial-gradient(circle at 50% 18%, #453832 0 26px, transparent 27px),
    radial-gradient(circle at 78% 30%, #4a3d36 0 22px, transparent 23px),
    radial-gradient(circle at 32% 62%, #3c302a 0 24px, transparent 25px),
    radial-gradient(circle at 68% 62%, #3c302a 0 24px, transparent 25px),
    radial-gradient(circle at 50% 46%, #2e2622 0 62px, transparent 63px);
}
.p-curlers {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  transition: opacity 0.3s ease;
}
.p-curlers i {
  width: 16px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(90deg, #c94f7c, #e87ba0 45%, #a83a63);
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.4);
}
.p-curlers i:nth-child(odd) { transform: rotate(-7deg); background: linear-gradient(90deg, #3f7ec9, #7ba8e8 45%, #2f63a8); }
.p-head.done .p-curlers { opacity: 0; }
.p-face {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translateX(-50%);
  font-size: 46px;
  filter: grayscale(0.15);
}
.p-head.heating { animation: shake 0.18s linear infinite; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  75% { transform: translateX(1.5px); }
}

/* ============================================================
   吸烟页 · 顶部状态
   ============================================================ */
.smoke-head {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: max(46px, calc(env(safe-area-inset-top) + 30px)) 20px 0;
}
.brand-en {
  font-size: 13px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink-dim);
  font-weight: 500;
}
.scene-line {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.scene-text { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.14em; }
.scene-line .dot { color: var(--ink-faint); font-size: 12px; }
.big-action {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.progress-wrap { margin-top: 14px; }
.progress-bar {
  width: 132px;
  height: 2px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #ffe9b0);
  transition: width 0.2s linear;
}
.progress-text {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}

/* ---------- 位置标签 ---------- */
.loc-pill {
  position: absolute;
  z-index: 6;
  left: 16px;
  top: 33%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(20, 18, 16, 0.6);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 8px 13px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.loc-pill:active { transform: scale(0.95); }
.loc-caret { font-size: 10px; color: var(--ink-dim); }

/* ============================================================
   香烟本体
   ============================================================ */
#cig {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}
.cig-stick {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 34px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55));
}
.cig-ash {
  width: 30px;
  height: 0;
  background: linear-gradient(90deg, #8f8f8f, #cfcfcf 40%, #7d7d7d);
  /* 锯齿燃烧边缘 */
  clip-path: polygon(0 100%, 0 22%, 8% 8%, 18% 18%, 30% 4%, 44% 16%, 58% 2%, 72% 15%, 84% 5%, 100% 20%, 100% 100%);
  border-radius: 0 0 3px 3px;
  transition: height 0.25s linear;
}
.cig-body {
  width: 30px;
  height: 300px; /* JS 按燃烧进度改写 */
  background: linear-gradient(90deg, #d8d4cc, #fdfcf8 38%, #f3f0e8 62%, #c9c4b9);
  transition: height 0.2s linear;
}
.cig-band {
  width: 30px;
  height: 7px;
  background: linear-gradient(90deg, #8a6420, #ffe9b0 45%, #d8b46a 65%, #8a6420);
}
.cig-filter {
  width: 30px;
  height: 96px;
  border-radius: 0 0 4px 4px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), var(--brand) 40%, var(--brand) 65%, rgba(0, 0, 0, 0.45));
  transition: background 0.4s ease;
}

/* ============================================================
   右侧功能按钮组
   ============================================================ */
.side-btns {
  position: absolute;
  z-index: 6;
  right: 12px;
  top: 31%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 74px;
}
.sbtn { text-align: center; }
.sbtn-circle {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, background 0.2s ease;
}
.sbtn:active .sbtn-circle, .sbtn-circle.on { transform: scale(0.92); background: rgba(255, 255, 255, 0.14); }
.ash-char { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.sbtn-label { margin-top: 7px; font-size: 11.5px; letter-spacing: 0.08em; }
.sbtn-status { margin-top: 2px; font-size: 9.5px; color: var(--ink-faint); letter-spacing: 0.05em; }

/* ---------- 底部引导 ---------- */
.smoke-foot {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 14px));
  text-align: center;
  pointer-events: none;
}
.again { font-family: var(--serif); font-size: 18px; letter-spacing: 0.3em; text-indent: 0.3em; }
.hint { margin-top: 9px; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.2em; }

/* ============================================================
   画布（置于香烟与按钮之下，还原原版"烟在烟后"的层次）
   ============================================================ */
#fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
#picker { z-index: 8; }
#smoker { touch-action: none; } /* 吸烟页禁一切手势默认行为（防橡皮筋/滚动干扰按压） */

/* ============================================================
   浮层通用
   ============================================================ */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 3, 3, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- 模拟广告 ---------- */
.ad-box { width: min(320px, 84%); }
.ad-screen {
  position: relative;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, #1c1a18, #0d0c0b);
  border: 1px solid var(--glass-line);
  display: grid;
  place-items: center;
}
.ad-shimmer {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(216, 180, 106, 0.25), transparent 88%);
  animation: spin 2.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ad-slogan { position: relative; font-size: 14px; letter-spacing: 0.14em; color: var(--ink-dim); padding: 0 20px; text-align: center; }
.ad-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ad-tag {
  font-size: 10px;
  color: var(--gold);
  border: 1px solid rgba(216, 180, 106, 0.5);
  border-radius: 4px;
  padding: 2px 6px;
}
.ad-count { font-size: 12px; color: var(--ink-dim); }
.ad-claim {
  width: 100%;
  margin-top: 14px;
  padding: 13px 0;
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: #241a05;
  font-weight: 700;
  background: linear-gradient(120deg, #ffe9b0, var(--gold));
}

/* ---------- 场景底部弹层 ---------- */
#sceneOverlay { align-items: flex-end; }
.sheet {
  width: 100%;
  background: #171512;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--glass-line);
  padding: 20px 18px max(22px, env(safe-area-inset-bottom));
  animation: up 0.28s ease;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-title { font-family: var(--serif); font-size: 17px; letter-spacing: 0.2em; text-align: center; }
.sheet-list { margin-top: 14px; display: flex; flex-direction: column; }
.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.sheet-item .s-ico { font-size: 19px; }
.sheet-item .s-line { margin-left: auto; font-size: 11px; color: var(--ink-faint); }
.sheet-item.cur { color: var(--gold); }
.sheet-cancel {
  width: 100%;
  margin-top: 14px;
  padding: 13px 0;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}

/* ---------- 结算 ---------- */
.finish-box {
  width: min(300px, 82%);
  text-align: center;
  background: #171512;
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  padding: 30px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.finish-emoji { font-size: 40px; filter: grayscale(0.4); }
.finish-title { font-family: var(--serif); font-size: 21px; letter-spacing: 0.22em; text-indent: 0.22em; margin-top: 12px; }
.finish-stats { font-size: 12px; color: var(--ink-dim); letter-spacing: 0.1em; margin-top: 10px; }
.finish-btn {
  width: 100%;
  margin-top: 12px;
  padding: 13px 0;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.18em;
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.finish-btn.primary { background: linear-gradient(120deg, #ffe9b0, var(--gold)); color: #241a05; font-weight: 700; border: none; }
.finish-btn.ghost { color: var(--ink-faint); border-color: transparent; }

/* ---------- Toast ---------- */
.toast {
  position: absolute;
  z-index: 40;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
  max-width: 78%;
  background: rgba(20, 18, 16, 0.92);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  animation: toastIn 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@keyframes toastIn { from { transform: translate(-50%, 8px); opacity: 0; } }
