/* 各页共用：字体、页面框、圆筹码、起点格按钮、提示条 */
@font-face {
  font-family: "KuaiLe";                 /* 站酷快乐体，SIL OFL，只保留页面上用到的字 */
  src: url(../fonts/kuaile-sub.woff2?v=d691ec38) format("woff2");
  font-display: block;
}
:root {
  --sky: #FCDBB8;      /* 海报顶边的颜色 */
  --ink: #2A0A1E;      /* 素材描边的深紫 */
  --red: #E8382F;      /* 起点格按钮的红 */
  --ui-font: "KuaiLe", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --text-font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #2B2420; overflow: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; font-family: var(--text-font); color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; -webkit-user-drag: none; }
[hidden] { display: none !important; }

/* 一屏一页，手机竖屏；宽屏上居中最多 480 宽。cqw 按页面宽度算 */
.screen {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; overflow: hidden; container-type: inline-size;
}

/* 圆筹码按钮（图 + 下面一行字） */
.chip { display: flex; flex-direction: column; align-items: center; width: 62px; padding-bottom: 2px; font-family: var(--ui-font); }
.chip img { width: 54px; height: 54px; }
.chip span {
  font-size: 15px; line-height: 1; margin-top: 1px; color: var(--ink);
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1.5px 1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff;
}
.chip:active img { transform: translateY(2px) scale(.94); }

/* 起点格按钮：图 + 代码写的字。字放在红色正面上（横向 17.5%–77%，纵向 5%–80%） */
.tile-btn { aspect-ratio: 1000 / 270; font-family: var(--ui-font); }
.tile-btn img { width: 100%; height: 100%; }
.tile-label {
  position: absolute; left: 17.5%; right: 23%; top: 5.4%; height: 74.8%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; white-space: nowrap; letter-spacing: .08em; text-indent: .08em;
  font-size: min(7.4vw, 36px); font-size: 7.4cqw; line-height: 1;
  text-shadow:
    0 .09em 0 var(--ink),
    .06em 0 0 var(--ink), -.06em 0 0 var(--ink), 0 .06em 0 var(--ink), 0 -.06em 0 var(--ink),
    .045em .045em 0 var(--ink), -.045em .045em 0 var(--ink), .045em -.045em 0 var(--ink), -.045em -.045em 0 var(--ink);
}
.tile-btn:active { transform: translateY(3%) scale(.97); }
.tile-btn:active img { filter: brightness(.93); }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 18%); transform: translate(-50%, 8px);
  padding: 8px 16px; border-radius: 12px; background: rgba(42, 10, 30, .88); color: #fff;
  font: 16px/1.4 var(--text-font);
  white-space: nowrap; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { transform: scale(1.035); } }
