@charset "utf-8";
/* ============================================================
   五行ゲーム —— 游戏组件样式
   只放游戏自己的东西。令牌、基础排版、页头、按钮、页脚在：
     · 单机 demo：site-base.css（从三才堂 site.css 摘出来的同款）
     · 接进网站后：网站自己的 site.css
   设计规范沿用三才堂：灰是画布、色是标点、彩色只给五行、圆角 6px。
   ============================================================ */

/* 五行 → 颜色。组件里一律用 var(--c) / var(--c-bg) / var(--c-line) */
.e-wood  { --c: var(--moku); --c-bg: var(--moku-bg); --c-line: var(--moku-line); }
.e-fire  { --c: var(--ka);   --c-bg: var(--ka-bg);   --c-line: var(--ka-line); }
.e-earth { --c: var(--do);   --c-bg: var(--do-bg);   --c-line: var(--do-line); }
.e-metal { --c: var(--gon);  --c-bg: var(--gon-bg);  --c-line: var(--gon-line); }
.e-water { --c: var(--sui);  --c-bg: var(--sui-bg);  --c-line: var(--sui-line); }

/* 日语按文节换行，避免「でし／た。」「水剋／火」这种断法（Chrome・Edge 119+，其他浏览器照常换行） */
h1, h2, h3, p, li, .caption, .tt, .tb { word-break: auto-phrase; }
ruby rt { font-size: .5em; font-weight: var(--w-read); letter-spacing: 0; }
.nw { white-space: nowrap; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
.btn:disabled { pointer-events: none; }
[hidden] { display: none !important; }

/* ═══ 版面 */
.page-head { padding: var(--s6) 0 var(--s5); }
.page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); letter-spacing: .04em; margin-bottom: .45rem; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 46em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; align-items: start; }
.stack { display: grid; gap: var(--s4); align-content: start; }

.card { background: var(--surface); border-radius: var(--r); padding: var(--s5); box-shadow: var(--sh-1); }
.card--sm { padding: var(--s4) var(--s5); }
/* 盘面：极淡的纸纹，让它从周围浮起来（同三才堂命式表） */
.card--paper {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
  box-shadow: var(--sh-2);
}
.block__title { font-size: var(--t-body); letter-spacing: .06em; position: relative; padding-left: .8rem; margin-bottom: var(--s3); font-weight: var(--w-emph); }
.block__title::before { content: ""; position: absolute; left: 0; top: .32em; bottom: .32em; width: 3px; background: var(--ink); border-radius: 1px; }
.muted { color: var(--ink-3); }
.tiny { font-size: var(--t-caption); }

/* ═══ 计数牌（同三才堂 .tally） */
.tally-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.tally { flex: 1 1 0; min-width: 5.5rem; display: grid; gap: .1rem; padding: .6rem .9rem .7rem; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.tally__label { font-size: var(--t-micro); color: var(--ink-3); letter-spacing: .1em; }
.tally__n { font-family: var(--mincho); font-size: var(--t-headline); line-height: 1.1; font-variant-numeric: tabular-nums; font-weight: var(--w-decl); }
.tally__n.bump { animation: bump .35s ease-out; }

/* 进度刻度（同三才堂 .gogyo__track，每格 12.5%） */
.track { position: relative; height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line-2); }
.track::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%); opacity: .7; }
.track i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .4s cubic-bezier(.2,.7,.3,1); }

/* ═══ 五行小签（同三才堂 .wxchip） */
.wxchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.wxchip { display: inline-flex; align-items: baseline; gap: .35em; font-family: var(--mincho); font-size: var(--t-caption); font-weight: var(--w-emph); padding: .3em .75em; border-radius: var(--r); background: var(--c-bg); color: var(--c); border: 1px solid var(--c-line); }
.wxchip .n { font-family: var(--gothic); opacity: .85; }
.wxchip.off { background: var(--surface-2); color: var(--ink-3); border: 1px dashed var(--line); }

/* ═══ 发现条：五生五克 */
.disc-bar { display: grid; gap: .6rem; }
.disc-line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
.disc-count { grid-column: 1 / -1; font-size: var(--t-micro); color: var(--ink-3); letter-spacing: .06em; font-weight: var(--w-emph); line-height: 1.4; }
.disc { text-align: center; font-family: var(--mincho); font-size: var(--t-caption); font-weight: var(--w-emph); line-height: 1.2; padding: .35em .2em; border-radius: var(--r); background: var(--surface-2); color: var(--ink-3); border: 1px dashed var(--line); white-space: nowrap; }
.disc.sheng.on { background: var(--moku-bg); color: var(--moku); border: 1px solid var(--moku-line); }
.disc.ke.on    { background: var(--ka-bg);   color: var(--ka);   border: 1px solid var(--ka-line); }
.disc.flash { animation: discFlash 1.3s ease-out; }
.panel .disc-bar.flat { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }

/* 五行名小签 */
.nm { display: inline-block; padding: 0 .38em; border-radius: 4px; background: var(--c-bg); color: var(--c); box-shadow: inset 0 0 0 1px var(--c-line); font-family: var(--kanshi); font-weight: var(--w-decl); line-height: 1.45; }

/* ═══ 五行の輪：外圈相生、星形相剋；没发现的是灰色虚线 */
.wheel svg { display: block; width: 100%; max-width: 230px; margin: 0 auto; overflow: visible; }
.w-rel { fill: none; stroke: #d6d6d0; stroke-width: 1.5; stroke-dasharray: 3 3; transition: stroke .3s; }
.w-sheng.on { stroke: var(--moku); stroke-width: 2.4; stroke-dasharray: none; }
.w-ke.on { stroke: var(--ka); stroke-width: 1.9; stroke-dasharray: none; }
.w-rel.flash { animation: wFlash 1.1s ease-out; }
.w-node text { font-family: var(--kanshi); font-weight: var(--w-decl); font-size: 18px; }
.w-node circle { transform-box: fill-box; transform-origin: center; }
.w-node.flash circle { animation: wNode .9s ease-out; }
.wheel-note { font-size: var(--t-micro); color: var(--ink-3); text-align: center; margin: var(--s2) 0 0; line-height: 1.6; }
.wheel.hidden-wheel svg { visibility: hidden; }
.wheel.hidden-wheel { position: relative; }
.wheel.hidden-wheel::after { content: "輪はかくしています"; position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--t-caption); color: var(--ink-3); background: var(--surface-2); border-radius: var(--r); }
@keyframes wFlash { 0% { stroke-width: 2.4; } 30% { stroke-width: 7; } 100% { stroke-width: 2.4; } }
@keyframes wNode { 30% { transform: scale(1.25); } }

/* ═══ 规则条（同三才堂 .rule） */
.rule-lines { display: grid; gap: .4rem; }
.rule { font-size: var(--t-caption); color: var(--ink-2); padding: .45rem .8rem; border-radius: var(--r); background: var(--surface-2); border-left: 3px solid var(--line); line-height: 1.6; }
.rule b { font-family: var(--mincho); color: var(--ink); }
.rule.sheng { border-left-color: var(--moku); }
.rule.ke    { border-left-color: var(--ka); }
.rule.ink   { border-left-color: var(--ink-3); }

/* 提示语 */
.tip { margin: 0; font-size: var(--t-caption); color: var(--ink-2); }
.tip b { color: var(--ink); }
.tip.nudge { animation: nudge .45s; color: var(--accent); }

/* ═══ 新发现提示（同三才堂 .note） */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
/* 宽屏把提示放到右下，别压住棋盘 */
@media (min-width: 981px) { .toasts { left: auto; right: 24px; transform: none; width: 340px; } }
.toast { padding: .8rem 1rem .85rem; border-radius: var(--r); background: var(--surface); border-left: 3px solid var(--moku); box-shadow: var(--sh-3); animation: toastIn .28s ease-out both; }
.toast.out { animation: toastOut .3s ease-in forwards; }
.toast .tt { font-family: var(--mincho); font-size: var(--t-body); font-weight: var(--w-decl); color: var(--ink); letter-spacing: .04em; line-height: 1.4; }
.toast .tb { font-size: var(--t-caption); color: var(--ink-2); margin-top: .15rem; line-height: 1.6; }

/* ═══ 结算面板 */
/* 弹层要盖过网站的吸顶页头（z-index 50） */
.panel-scrim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(26,26,25,.32); backdrop-filter: blur(2px); }
.panel { width: min(440px, 100%); padding: var(--s6) var(--s5) var(--s5); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-3); text-align: center; animation: rise .35s cubic-bezier(.2,.7,.3,1) both; }
/* 印：与三才堂 logo 同形，方框里一个字 */
.seal { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 2.5px solid var(--ink); font-family: var(--mincho); font-size: 26px; font-weight: var(--w-decl); line-height: 1; margin-bottom: var(--s4); }
.panel h2 { font-size: var(--t-headline); letter-spacing: .06em; margin-bottom: var(--s2); }
.panel p { color: var(--ink-2); margin: 0 0 var(--s4); }
.panel .big { font-family: var(--mincho); font-size: var(--t-display); font-weight: var(--w-decl); line-height: 1.05; font-variant-numeric: tabular-nums; margin: var(--s1) 0; }
.panel .row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s5); }

@keyframes bump { 40% { transform: scale(1.14); color: var(--accent); } }
@keyframes discFlash { 0% { transform: scale(1); } 30% { transform: scale(1.14); box-shadow: 0 0 0 5px var(--line-2); } 100% { transform: scale(1); box-shadow: 0 0 0 10px transparent; } }
@keyframes nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══ 图解：小棋盘（tutorial.js） */
.mb-wrap { display: grid; justify-items: center; gap: var(--s3); }
.mb-hand { display: flex; gap: 6px; }
.mb-hc { width: 58px; height: 62px; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 4px 0 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--c); transition: transform .2s, border-color .2s, background .2s; }
.mb-hc svg { width: 36px; height: 36px; }
.mb-hc b { font-family: var(--kanshi); font-size: var(--t-micro); line-height: 1; }
.mb-hc.on { background: var(--c-bg); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); transform: translateY(-3px); }
.mb { position: relative; display: grid; grid-template-columns: repeat(var(--cols), var(--sz)); grid-auto-rows: var(--sz); gap: var(--gap); }
.mb-cell { position: relative; border-radius: var(--r); background: var(--surface-2); transition: box-shadow .25s, background .25s; }
.mb-cell[class*="e-"] { background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line); }
.mb-cell .ic { position: absolute; inset: 4%; display: grid; place-items: center; transform: scale(var(--s, .9)); transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.mb-cell .ic svg { width: 100%; height: 100%; }
.mb-cell .ic.sprout svg { animation: mbSprout .5s cubic-bezier(.3,1.6,.5,1); }
.mb-cell .ch { position: absolute; right: 3px; bottom: 1px; font-family: var(--kanshi); font-weight: var(--w-decl); font-size: calc(var(--sz) * .2); line-height: 1; color: var(--c); text-shadow: 0 0 2px var(--c-bg), 0 0 3px var(--c-bg); }
.mb-cell .pips { position: absolute; left: calc(var(--sz) * .08); bottom: calc(var(--sz) * .08); display: flex; gap: 2px; }
.mb-cell .pips i { width: calc(var(--sz) * .09); height: calc(var(--sz) * .09); min-width: 4px; min-height: 4px; border-radius: 50%; background: var(--c-line); }
.mb-cell .pips i.on { background: var(--c); }
.mb-cell .tag:empty { display: none; }
.mb-cell .tag { position: absolute; left: 3px; top: 3px; padding: 0 4px; border-radius: 3px; background: var(--c); color: #fff; font-family: var(--mincho); font-weight: var(--w-decl); font-size: calc(var(--sz) * .17); line-height: 1.3; }
.mb-cell.full { box-shadow: inset 0 0 0 2.5px var(--c); }
.mb-cell.jaki { background: var(--ink); box-shadow: none; }
.mb-cell.jaki .ic svg { filter: grayscale(1) brightness(1.7); opacity: .5; }
.mb-cell.jaki .ch { color: #fff; text-shadow: none; }
.mb-cell.jaki .pips { display: none; }
.mb-cell.jaki .tag { background: #fff; color: var(--ink); }
.mb-cell.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--moku); border-radius: var(--r); display: grid; place-items: center; }
.mb-cell.ghost .gh { font-family: var(--mincho); font-weight: var(--w-decl); color: var(--moku); font-size: calc(var(--sz) * .38); opacity: .7; }
.mb-cell.ghost.m-target { box-shadow: inset 0 0 0 2px var(--ink); animation: mbPulse 1s ease-in-out infinite; }
.mb-cell.ghost.m-target .gh { display: none; }
.mb-cell.m-src { box-shadow: inset 0 0 0 3px var(--ink); }
.mb-cell.m-sheng { box-shadow: inset 0 0 0 3px var(--moku), 0 0 0 3px rgba(29,107,70,.18); }
.mb-cell.m-ke { box-shadow: inset 0 0 0 3px var(--ka), 0 0 0 3px rgba(179,57,42,.18); }
.mb-cell.m-new { box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 3px rgba(26,26,25,.1); }
.mb-cell.dead .ic { opacity: .25; filter: grayscale(1); }
.mb-cell.wang { box-shadow: inset 0 0 0 3px var(--c), 0 3px 8px -3px rgba(26,26,25,.4); }
.mb-cell.wang .ic svg { animation: mbWang 1.6s ease-in-out infinite; }
.bare .mb-cell .pips { display: none; }
.mb-beam { position: absolute; border-radius: var(--r); background: rgba(179,57,42,.14); box-shadow: inset 0 0 0 2px rgba(179,57,42,.35); animation: mbDraw .3s ease-out both; }
.mb-links line.swap { stroke: var(--ink); stroke-width: 4; }
.mb-links line.swap-halo { stroke: #fff; stroke-width: 10; opacity: .9; }
.mb-tag.swap { background: var(--ink); }
.mb-pop.big { font-size: var(--t-title); padding: .2em .5em; }
@keyframes mbWang { 50% { transform: scale(1.07); } }

.mb-cell.dead .pips { opacity: .4; }
.tut-stage { overflow: hidden; }
.mb-links { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.mb-links line { stroke-linecap: round; stroke-width: 5; animation: mbDraw .35s ease-out both; }
.small .mb-links line { stroke-width: 3; }
.mb-links line.sheng { stroke: var(--moku); }
.mb-links line.ke, .mb-links line.purify { stroke: var(--ka); }
.mb-links line.spawn { stroke: var(--ink-2); stroke-dasharray: 3 6; }
.mb-fx { position: absolute; inset: 0; pointer-events: none; }
.mb-tag { position: absolute; transform: translate(-50%, -50%); font-family: var(--mincho); font-weight: var(--w-decl); font-size: var(--t-caption); line-height: 1; padding: .25em .4em; border-radius: 4px; color: #fff; box-shadow: 0 0 0 2px #fff; white-space: nowrap; }
.mb-tag.sheng { background: var(--moku); }
.mb-tag.ke, .mb-tag.purify { background: var(--ka); }
.mb-tag.spawn { background: var(--ink); }
.mb-pop { position: absolute; transform: translate(-50%, -50%); font-family: var(--mincho); font-weight: var(--w-decl); font-size: var(--t-body); line-height: 1; padding: .15em .38em .2em; border-radius: 5px; color: #fff; background: var(--ink); box-shadow: 0 0 0 2px #fff; white-space: nowrap; animation: mbPop .35s cubic-bezier(.3,1.6,.5,1) both; }
.small .mb-pop { font-size: 11px; padding: .1em .3em; }
.mb-pop.sheng { background: var(--moku); }
.mb-pop.ke { background: var(--ka); }
.mb-note { min-height: 1.6em; font-size: var(--t-caption); color: var(--ink-2); text-align: center; line-height: 1.6; word-break: auto-phrase; }
.mb-note b { color: var(--ink); }
@keyframes mbSprout { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
@keyframes mbPulse { 50% { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(26,26,25,.12); } }
@keyframes mbDraw { from { opacity: 0; } to { opacity: 1; } }
@keyframes mbPop { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ═══ 图解：分步弹窗 */
.tut-scrim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(26,26,25,.4); backdrop-filter: blur(2px); }
.tut { width: min(600px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: var(--s4) var(--s5) var(--s5); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-3); animation: rise .3s cubic-bezier(.2,.7,.3,1) both; }
.tut-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
.tut-count { font-size: var(--t-caption); color: var(--ink-3); letter-spacing: .08em; }
.tut-x { width: 36px; height: 36px; border-radius: var(--r); font-size: 22px; line-height: 1; color: var(--ink-3); }
.tut-x:hover { background: var(--surface-2); color: var(--ink); }
.tut-title { font-size: var(--t-headline); letter-spacing: .04em; margin-bottom: var(--s4); }
.tut-title .k-sheng, .k-sheng { color: var(--moku); }
.tut-title .k-ke, .k-ke { color: var(--ka); }
.tut-stage { min-height: 250px; display: grid; place-items: center; padding: var(--s4); border-radius: var(--r); background: var(--surface-2); margin-bottom: var(--s4); }
.tut-text { font-size: var(--t-body); color: var(--ink-2); line-height: 1.9; word-break: auto-phrase; }
.tut-text b { color: var(--ink); }
.tut-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); }
.tut-dots { display: flex; gap: 6px; }
.tut-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line); padding: 0; }
.tut-dots button.on { background: var(--ink); transform: scale(1.2); }
.cyc { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .35rem; margin-top: var(--s3); padding: .55rem .7rem; border-radius: var(--r); background: var(--surface-2); font-size: var(--t-caption); }
.cyc-k { font-family: var(--mincho); font-weight: var(--w-decl); margin-right: .3rem; }
.cyc-k.sheng { color: var(--moku); }
.cyc-k.ke { color: var(--ka); }
.cyc-sep { color: var(--moku); font-weight: var(--w-decl); }
.cyc-pair { display: inline-flex; align-items: center; gap: .15rem; margin-right: .35rem; white-space: nowrap; }
.cyc-pair b { color: var(--ka); font-family: var(--mincho); }
.tips { width: 100%; display: grid; gap: var(--s3); }
.tip-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: var(--t-caption); color: var(--ink-2); }
.tut-mock { pointer-events: none; }
.tip-list { margin: 0; padding-left: 1.4em; display: grid; gap: .45rem; font-size: var(--t-caption); color: var(--ink-2); line-height: 1.7; }
.tip-list b { color: var(--ink); }
.tip-eg { display: inline-flex; align-items: center; gap: .25rem; margin-left: .5rem; white-space: nowrap; color: var(--ink-3); }
@media (max-width: 720px) {
  .tut { padding: var(--s3) var(--s4) var(--s4); }
  .tut-stage { min-height: 200px; padding: var(--s3); }
  .tut-text { font-size: var(--t-caption); }
  .tip-eg { display: flex; margin: .1rem 0 0; }
}

/* ═══ 侧栏规则小图 */
.rule-figs { display: grid; gap: .45rem; }
.rule-lead { font-size: var(--t-caption); color: var(--ink-2); margin: 0 0 .2rem; line-height: 1.6; }
.rule-lead b { color: var(--ink); }
.rule-fig { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .7rem; padding: .45rem .7rem; border-radius: var(--r); background: var(--surface-2); border-left: 3px solid var(--line); }
.rule-fig.sheng { border-left-color: var(--moku); }
.rule-fig.ke { border-left-color: var(--ka); }
.rule-fig.ink { border-left-color: var(--ink-3); }
.rule-fig__text { font-size: var(--t-caption); color: var(--ink-2); line-height: 1.55; word-break: auto-phrase; }
.rule-fig__text b { font-family: var(--mincho); color: var(--ink); }
.rule-fig .mb-note { display: none; }
.rule-fig .mb-wrap { gap: 0; }
.guide-open { margin-top: var(--s3); width: 100%; }

/* ═══ 网站版：游戏栏目的二级导航（页头下面一行） */
.games-nav { display: flex; align-items: center; gap: 1.4rem; padding: var(--s4) 0 0; border-bottom: 1px solid var(--line-2); }
.games-nav a { text-decoration: none; position: relative; padding: .5rem 0 .6rem; font-size: var(--t-caption); color: var(--ink-2); white-space: nowrap; }
.games-nav a:hover { color: var(--ink); }
.games-nav a.is-active { color: var(--ink); font-weight: var(--w-emph); }
.games-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.games-nav button { margin-left: auto; font-size: var(--t-caption); color: var(--ink-3); padding: .5rem 0 .6rem; }
.games-nav button:hover { color: var(--ink); }
.games-note { margin: var(--s6) 0 0; font-size: var(--t-caption); color: var(--ink-3); line-height: 1.8; }
.rule-fig.rule-fig--stack { grid-template-columns: 1fr; gap: .35rem; }
.rule-fig--stack .rule-fig__pic { justify-self: start; }
.page-head__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: .45rem; }
.page-head--guide h1 { margin-bottom: 0; }
.tut-sub { margin: var(--s3) 0 0; font-size: var(--t-caption); color: var(--ink-3); }
.tips--wheel { grid-template-columns: 180px 1fr; align-items: center; gap: var(--s4); }
.tips-wheel svg { max-width: 180px; }
@media (max-width: 720px) { .tips--wheel { grid-template-columns: 1fr; justify-items: center; } .tips-wheel svg { max-width: 150px; } }

@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}
@media (max-width: 720px) {
  .page-head { padding: var(--s4) 0 var(--s3); }
  .page-head p { font-size: var(--t-caption); }
  .card { padding: var(--s4); }
  .tally { padding: .45rem .7rem .55rem; min-width: 4.6rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
