/* 方向 C「座次」：一幅淡彩的画，一面挂满腰牌的粉墙。墨线 + 平涂，绢纸底，石青题签，朱红只给印和签到码。 */
@font-face { font-family: 'c-kai'; src: url('fonts/c-kai.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'c-song'; src: url('fonts/c-song.woff2') format('woff2'); font-display: swap; font-weight: 400 900; }
/* 名字里的生僻字（常用 3755 字以外）在下面两个文件里，页面上真出现了才会去下载 */
@font-face { font-family: 'c-kai2'; src: url('fonts/c-kai2.woff2') format('woff2'); font-display: swap; unicode-range: U+4E00-9FFF; }
@font-face { font-family: 'c-song2'; src: url('fonts/c-song2.woff2') format('woff2'); font-display: swap; font-weight: 400 900; unicode-range: U+4E00-9FFF; }

:root {
  --paper: #eee5d0; --paper2: #e3d6ba; --paper-hi: #f8f2e3; --wall: rgba(251, 247, 236, .6); --wallc: #f4eddb;
  --ink: #241f19; --ink2: #5a5144; --line: #4a4034; --pale: #b5aa92;
  --qing: #2b5a7a; --lv: #55856a; --zhe: #9c5b38; --huang: #cfa245; --zhu: #be3a2a; --dai: #56616a; --zi: #6f5a78;
  --tagbody: #eadfc3; --lw: 1.75px;
  --kai: 'c-kai', 'c-kai2', 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  --song: 'c-song', 'c-song2', 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', serif;
  --sys: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sys); font-weight: 600; -webkit-font-smoothing: antialiased; }
html.wide body { font-family: var(--song); overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, [data-open]:focus-visible { outline: 3px solid var(--qing); outline-offset: 3px; }

/* 颜色 = 小组 */
.c-qing { --c: var(--qing); --on: var(--paper-hi); } .c-lv { --c: var(--lv); --on: var(--paper-hi); }
.c-zhe { --c: var(--zhe); --on: var(--paper-hi); } .c-huang { --c: var(--huang); --on: var(--ink); }
.c-dai { --c: var(--dai); --on: var(--paper-hi); } .c-zi { --c: var(--zi); --on: var(--paper-hi); }

/* ---------- 画布 ---------- */
#stage { position: relative; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85 .35' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .55 -.2'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"),
  repeating-linear-gradient(0deg, rgba(90, 70, 40, .035) 0 1px, transparent 1px 3px),
  radial-gradient(120% 90% at 50% 40%, var(--paper) 55%, var(--paper2) 100%); }
html.wide #stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
#sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
#sky svg { position: absolute; display: block; }
#sky .sk1 { left: 440px; top: 6px; width: 1480px; height: 190px; }
#sky .sk2 { left: 0; top: 566px; width: 660px; height: 390px; }
#sky .mist i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(238, 229, 208, .96), rgba(238, 229, 208, .7) 45%, rgba(238, 229, 208, 0)); }
#sky .gnd { position: absolute; left: 30px; right: 30px; top: 955px; height: 0; border-top: 2px solid var(--line); }
#app { position: relative; }

/* ---------- 题头 ---------- */
.ttl { display: flex; align-items: flex-start; gap: 16px; }
.ttl h1 { font: 400 100px/1 var(--kai); letter-spacing: 2px; white-space: nowrap; }
.tq { writing-mode: vertical-rl; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.1)), var(--qing); color: var(--paper-hi); font: 400 27px/1 var(--kai); padding: 10px 7px 7px; letter-spacing: 3px; margin-top: 6px; }

.days { display: flex; gap: 11px; }
.seal { position: relative; width: 46px; height: 46px; border: 2.5px solid var(--pale); border-radius: 5px; color: var(--pale); font: 400 30px/40px var(--kai); text-align: center; margin-bottom: 22px; }
.seal small { position: absolute; left: 0; right: 0; top: 46px; font: 700 16px/20px var(--song); color: var(--pale); }
.seal.pub { border-color: var(--zhu); color: var(--zhu); }
.seal.pub small { color: var(--ink2); }
.seal.on { background: var(--zhu); color: var(--paper-hi); }
.seal.on small { color: var(--ink); }
.seal:disabled { cursor: default; }
.dline { font-size: 28px; line-height: 36px; font-weight: 700; white-space: nowrap; }
.dline b { font: 400 38px/36px var(--kai); margin-right: 14px; vertical-align: -2px; }
.dline span { margin-left: 14px; }
.sline { font-size: 19px; line-height: 26px; color: var(--ink2); white-space: nowrap; }
.sline button { color: var(--qing); font-weight: 700; margin-left: 14px; border-bottom: 2px solid var(--qing); line-height: 22px; }
.sline button + button { margin-left: 12px; }

/* ---------- 控件带：小而整齐，放在画脚最右 ---------- */
.nav { font-size: 16px; line-height: 19px; color: var(--ink2); display: grid; grid-template-columns: 1fr; align-content: space-between; }
.nav > div { display: flex; align-items: baseline; gap: 13px; white-space: nowrap; }
.nav i { font-style: normal; color: var(--pale); width: 34px; flex: none; }
.nav button, .nav a { text-decoration: none; padding: 0; line-height: 19px; border-bottom: 2px solid transparent; }
.nav button.on { color: var(--ink); font-weight: 900; border-bottom-color: var(--zhu); }
.nav a { color: var(--qing); }
.nav .sep { width: 0; height: 13px; border-left: 2px solid var(--pale); align-self: center; }
.nav .lg span::before { content: ''; display: inline-block; width: 12px; height: 12px; background: var(--c); border: 1.5px solid var(--line); margin-right: 5px; vertical-align: -1px; }

/* ---------- 签到码 ---------- */
.sign { display: flex; justify-content: center; pointer-events: none; }
.sign > div { display: flex; align-items: center; gap: 22px; background: var(--zhu); color: var(--paper-hi); border: 2px solid var(--line); box-shadow: 0 0 0 5px var(--paper); padding: 12px 22px 12px 28px; transform-origin: 50% -40px; }
.sign .w { font: 400 44px/1.12 var(--kai); text-align: center; letter-spacing: 2px; white-space: nowrap; }
.sign .w small { display: block; font: 700 22px/1.3 var(--song); letter-spacing: 6px; margin-top: 6px; }
.sign .cd { display: flex; gap: 10px; }
.sign .cd b { width: 92px; height: 118px; background: var(--paper-hi); color: var(--ink); border: 2px solid var(--line); font: 900 100px/112px var(--song); text-align: center; }
.sign.in > div { animation: drop .9s cubic-bezier(.3, 1.3, .5, 1) both; }

/* ---------- 前三名的旗幡：颜色按名次固定（石青、石绿、赭石） ---------- */
.flags { position: relative; }
.flag { position: absolute; bottom: 0; }
.flag .post { position: absolute; left: 50%; margin-left: -3.5px; top: 0; bottom: 0; width: 7px; background: #8a5a3c; border: var(--lw) solid var(--line); }
.flag .post::before { content: ''; position: absolute; left: -6.5px; top: -15px; width: 17px; height: 17px; border-radius: 50%; background: var(--huang); border: var(--lw) solid var(--line); }
.flag .arm { position: absolute; left: 3px; right: 3px; top: 16px; height: 8px; background: #8a5a3c; border: var(--lw) solid var(--line); border-radius: 3px; }
.fl { position: relative; margin-top: 23px; transform-origin: 50% 0; }
.fl[data-open] { cursor: pointer; }
.cloth { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; color: var(--on); transform-origin: 50% 0; }
.cloth svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cloth svg path { fill: var(--c); stroke: var(--line); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cloth svg .trim { fill: var(--paper-hi); stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cloth > span { position: relative; }
.cloth .rk { font: 700 1em/1 var(--song); margin-top: 1.3em; letter-spacing: .1em; white-space: nowrap; }
.cloth .nm { writing-mode: vertical-rl; text-orientation: upright; font: 400 3.8em/1.04 var(--kai); flex: 1; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.cloth .nm.n3 { font-size: 2.85em; } .cloth .nm.n4 { font-size: 2.1em; } .cloth .nm.n5 { font-size: 1.7em; }
.cloth .who { font: 700 .64em/1 var(--song); letter-spacing: .06em; opacity: .92; margin-bottom: .7em; white-space: nowrap; min-height: 1em; }
.cloth .pt { font: 900 2.5em/1 var(--song); white-space: nowrap; text-align: center; }
.cloth .pt small { font-size: .36em; font-weight: 700; margin-left: .2em; }
.cloth .pt.long { font-size: 2.05em; }
.cloth .pt.long small { display: block; font-size: .36em; margin: .3em 0 0; }
.cloth .dv { font: 700 .8em/1 var(--song); height: 1em; margin: .5em 0 2.5em; white-space: nowrap; }
.f1 .cloth .pt { font-size: 2.9em; } .f1 .cloth .pt.long { font-size: 2.3em; }
.flag.stat .cloth .nm { writing-mode: horizontal-tb; font: 900 3.6em/1 var(--song); }
.flag.stat .cloth .nm small { font-size: .3em; font-weight: 700; margin: .9em 0 0 .2em; }
.flag.stat .cloth .rk { font-size: 1.05em; }
.flag.stat .cloth .dv { height: auto; margin-bottom: 3.2em; }
.f1 .fl { font-size: 30px; } .f2 .fl, .f3 .fl { font-size: 21px; }
.f2 .cloth .who, .f3 .cloth .who { font-size: .78em; }
.fl > .plus { top: -6px; right: -18px; }
/* 朱印「榜首」 */
.shou { position: absolute; right: -15px; top: 84px; width: 58px; height: 58px; background: var(--zhu); color: var(--paper-hi); font: 400 25px/1.02 var(--kai); writing-mode: vertical-rl; display: grid; place-items: center; border-radius: 4px 6px 4px 5px; transform: rotate(4deg); box-shadow: inset 0 0 0 3px var(--zhu), inset 0 0 0 4.5px rgba(248, 242, 227, .75), 0 0 0 1.5px rgba(74, 64, 52, .5); }

/* ---------- 墙 ---------- */
.wall { position: relative; background: var(--wall); border: solid var(--line); border-width: 0 var(--lw); }
.wall::after { content: ''; position: absolute; left: -9px; right: -9px; bottom: 0; height: 12px; background: #cfc8b4; border: var(--lw) solid var(--line); }
.roof { position: absolute; left: -18px; right: -18px; top: 0; height: 40px; border: var(--lw) solid var(--line); border-radius: 3px 3px 0 0;
  background: repeating-linear-gradient(90deg, transparent 0 14.5px, rgba(36, 31, 25, .5) 14.5px 16px), linear-gradient(180deg, #626d75, var(--dai)); }
.roof::before { content: ''; position: absolute; left: -15px; right: -15px; top: -12px; height: 12px; background: #47525a; border: var(--lw) solid var(--line); border-radius: 7px 7px 2px 2px; }
.roof::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 9px;
  background: radial-gradient(circle at 8px 0, var(--dai) 0 5.5px, var(--line) 6px 7.4px, transparent 7.8px) 0 0 / 16px 9px repeat-x; }
.roof i { position: absolute; top: -22px; width: 11px; height: 15px; background: #47525a; border: var(--lw) solid var(--line); border-radius: 8px 8px 0 0; }
.roof i:first-child { left: -13px; transform: rotate(-14deg); } .roof i:last-child { right: -13px; transform: rotate(14deg); }

.pegs { --u: 10px; --nw: calc(var(--u) * 5.4); display: grid; grid-template-columns: repeat(var(--cols, 7), 1fr); }
.slot { position: relative; border-top: 3px solid #a87550; font-size: var(--u); height: 18.7em; }
.slot::before { content: ''; position: absolute; left: calc(var(--nw) + var(--u) * 5.9 - 4px); top: -6px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.slot.empty::before { background: var(--wallc); border: 1.5px solid var(--line); }
.slot .no { position: absolute; left: 0; top: calc(var(--u) * 1.3); width: var(--nw); text-align: center; font: 900 calc(var(--u) * 3.6)/1 var(--song); color: var(--ink); letter-spacing: -.02em; }
.slot .dv { position: absolute; left: 0; top: calc(var(--u) * 5.5); width: var(--nw); text-align: center; font: 900 calc(var(--u) * 2.4)/1 var(--song); font-style: normal; white-space: nowrap; letter-spacing: -.03em; }
.slot .dv::first-letter { font-size: .8em; }
.dv.up { color: var(--zhu); } .dv.dn { color: var(--qing); }
.tag { position: absolute; left: var(--nw); top: -2px; width: 11.8em; height: 18.4em; transform-origin: 50% 0; cursor: pointer; }
.sw { position: absolute; inset: 0; transform-origin: 50% 1px; --tag: var(--tagbody); }
.sw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#tg .cord { fill: none; stroke: #a87550; stroke-width: 1.75; stroke-linecap: round; }
#tg .bd { fill: var(--tag); stroke: var(--line); stroke-width: 1.75; stroke-linejoin: round; }
#tg .bn { fill: var(--bn, var(--c)); stroke: var(--line); stroke-width: 1.75; stroke-linejoin: round; }
#tg .ho { fill: var(--wallc); stroke: var(--line); stroke-width: 1.5; }
.tag .nm { position: absolute; left: .6em; right: .6em; top: 2.6em; height: 11.9em; display: grid; place-items: center; font-family: var(--kai); font-weight: 400; color: var(--ink); }
.tag .nm span { writing-mode: vertical-rl; text-orientation: upright; line-height: 1.04; font-size: 5.2em; white-space: nowrap; }
.tag .nm.n3 span { font-size: 3.86em; line-height: 1; }
/* 四个字以上横着排成两行，照现在人的读法从左到右 */
.tag .nm.n4 span { writing-mode: horizontal-tb; font-size: 3.9em; width: 2.06em; line-height: 1.14; white-space: normal; text-align: center; }
.tag .nm.n5 span { writing-mode: horizontal-tb; font-size: 2.9em; width: 3.08em; line-height: 1.12; white-space: normal; text-align: center; }
.tag .pt { position: absolute; left: 0; right: 0; top: calc(var(--u) * 14.6); text-align: center; font: 900 calc(var(--u) * 2.7)/1.2 var(--song); color: var(--on); white-space: nowrap; }
.tag .pt.txt { font-size: calc(var(--u) * 2); line-height: 1.62; font-weight: 700; letter-spacing: .06em; }
.tag.ghost .sw { --tag: var(--wallc); --c: var(--wallc); }
.tag.ghost .nm, .tag.ghost .pt { color: var(--ink2); }
/* 还没公布：没有名次，牌子居中挂 */
.pegs.bare .tag { left: 50%; margin-left: -5.9em; }
.pegs.bare .slot::before { left: calc(50% - 4px); }
/* 小组 / 门店：一根杆上挂一组——组牌是整块色，后面跟着组里每个人 */
.pegs.cl { display: flex; flex-wrap: wrap; column-gap: calc(var(--u) * 3); align-content: flex-start; }
.pegs.cl .blk { display: flex; }
.pegs.cl .brk { flex-basis: 100%; height: 0; }
.slot.head { width: calc(var(--u) * 17.6); flex: none; }
.slot.mem { width: calc(var(--u) * 12.4); flex: none; --nw: calc(var(--u) * .3); }
.tag.hd { cursor: default; }
.tag.hd .sw { --tag: var(--c); --bn: var(--paper-hi); }
.tag.hd .nm { color: var(--on); } .tag.hd .pt { color: var(--ink); }
.plus { position: absolute; top: -4px; right: -22px; z-index: 6; font: 900 38px/1 var(--song); font-style: normal; color: var(--zhu); background: var(--paper-hi); border: 2px solid var(--zhu); border-radius: 4px; padding: 3px 8px 5px; white-space: nowrap; animation: plus 3.2s ease-out var(--el, 0ms) both; pointer-events: none; }

.msg { position: absolute; left: 0; right: 0; top: 34%; text-align: center; }
.msg h2 { font: 400 76px/1.1 var(--kai); }
.msg p { font-size: 26px; line-height: 1.6; margin-top: 18px; color: var(--ink2); }

/* ---------- 画脚：四个之最 + 今日动态 + 控件带 ---------- */
.foot { display: flex; gap: 26px; position: relative; }
.best { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0 22px; flex: 0 0 50%; }
.best small { display: block; font-size: 17px; line-height: 22px; color: var(--ink2); white-space: nowrap; }
.best strong { font: 400 38px/50px var(--kai); margin-right: 9px; white-space: nowrap; }
.best strong.n { font: 900 34px/50px var(--song); }
.best span { font-size: 20px; font-weight: 700; color: var(--zhe); white-space: nowrap; }
.feed { flex: 1; min-width: 0; border-left: 2px solid var(--line); padding-left: 24px; }
.feed h4 { font-size: 17px; line-height: 22px; color: var(--ink2); font-weight: 600; white-space: nowrap; }
.feed h4 time { margin-left: 10px; font-variant-numeric: tabular-nums; }
.feed h4.off { color: var(--zhu); }
.feed p { font-size: 20px; line-height: 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed p i { font-style: normal; color: var(--zhu); font-weight: 900; margin-left: 8px; }
.feed p + p { color: var(--ink2); }
.foot .nav { flex: none; border-left: 2px solid var(--line); padding-left: 22px; }

/* ---------- 一个人的明细（册页） ---------- */
.card { background: var(--paper-hi); border: 2px solid var(--line); outline: 1.5px solid var(--line); outline-offset: -11px; padding: 36px 44px 34px; z-index: 20; animation: unroll .35s ease-out both; }
.card .hd { display: flex; align-items: baseline; gap: 20px; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.card .hd h3 { font: 400 64px/1 var(--kai); }
.card .hd span { font-size: 22px; color: var(--ink2); }
.card .hd strong { font-size: 30px; font-weight: 900; margin-left: auto; }
.card .hd button { font-size: 20px; color: var(--qing); border-bottom: 2px solid var(--qing); margin-left: 18px; font-weight: 700; }
.card .l { display: grid; grid-template-columns: 90px 262px 176px 206px 1fr 60px; gap: 14px; padding: 12px 0; border-bottom: 2px solid #cdbf9f; font-size: 20px; line-height: 28px; }
.card .l b { font-weight: 900; }
.card .l .r { text-align: right; font-weight: 900; font-size: 24px; }
.card .l em { font-style: normal; font-weight: 900; color: var(--zhe); margin-left: 6px; }
.card .bad { color: var(--zhu); }
.veil { position: absolute; inset: 0; z-index: 19; background: rgba(237, 228, 207, .72); }

/* ---------- 汇报、规则（一张铺开的纸） ---------- */
.sheet { background: var(--paper-hi); border: var(--lw) solid var(--line); padding: 30px 40px 40px; overflow-y: auto; font-size: 20px; line-height: 1.6; }
.sheet h2 { font: 400 40px/1.2 var(--kai); margin-top: 34px; }
.sheet h2:first-child { margin-top: 0; }
.sheet > p { color: var(--ink2); margin: 4px 0 14px; }
.hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hero > div { border-top: 5px solid var(--qing); padding-top: 10px; }
.hero small { display: block; font-size: 18px; color: var(--ink2); }
.hero strong { font: 900 56px/1.15 var(--song); }
.hero strong em { font-style: normal; font-size: 24px; margin-left: 4px; font-weight: 700; }
.hero span { display: block; font-size: 17px; color: var(--ink2); }
.trends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.trend h4 { font-size: 19px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 30px; border-bottom: 2px solid var(--line); }
.bars .b { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; }
.bars .b i { display: block; width: 100%; height: var(--h); min-height: 3px; background: var(--lv); border: var(--lw) solid var(--line); border-bottom: 0; }
.bars .b.cur i { background: var(--zhu); }
.bars .b em { position: absolute; left: -6px; right: -6px; bottom: calc(var(--h) + 4px); text-align: center; font-style: normal; font-size: 15px; font-weight: 700; display: none; white-space: nowrap; }
.bars .b.cur em, .bars .b:hover em { display: block; }
.bars .b span { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-size: 16px; color: var(--ink2); }
.trends { margin-bottom: 36px; }
.srow { display: grid; grid-template-columns: 40px 130px 60px 1fr 90px 90px 120px 130px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 2px solid #cdbf9f; }
.srow.h { color: var(--ink2); font-size: 17px; border-bottom: 2px solid var(--line); }
.srow .rk { font-weight: 900; font-size: 24px; }
.srow .bar { height: 16px; background: var(--qing); border: var(--lw) solid var(--line); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.warn { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
.warn .w { padding: 9px 0; border-bottom: 2px solid #cdbf9f; display: flex; gap: 12px; align-items: baseline; }
.warn .w b { font: 400 30px/1.2 var(--kai); }
.warn .w small { color: var(--ink2); font-size: 16px; }
.warn .w span { margin-left: auto; color: var(--zhu); font-weight: 700; }
.note { white-space: pre-wrap; border-left: 5px solid var(--zhe); padding: 6px 0 6px 18px; font-family: var(--sys); }
.btn { margin-top: 14px; background: var(--qing); color: var(--paper-hi); padding: 8px 22px; font-weight: 700; border: var(--lw) solid var(--line); }
.rule { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 2px solid #cdbf9f; }
.rule > b { font: 400 38px/1.2 var(--kai); }
.rule span b { color: var(--zhu); font-weight: 900; }
.rule small { display: block; color: var(--ink2); font-size: 17px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: var(--ink); color: var(--paper-hi); padding: 10px 22px; font-size: 18px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; }

/* ---------- 大屏：1920×1080 定位 ---------- */
html.wide .ttl { position: absolute; left: 58px; top: 22px; }
html.wide .days { position: absolute; left: 58px; top: 138px; }
html.wide .dline { position: absolute; left: 58px; top: 210px; }
html.wide .sline { position: absolute; left: 58px; top: 249px; }
html.wide .sign { position: absolute; left: 600px; width: 900px; top: 16px; z-index: 8; }
html.wide .flags { position: absolute; left: 58px; top: 290px; width: 540px; height: 666px; }
html.wide .f2 { left: 0; width: 146px; top: 128px; } html.wide .f1 { left: 162px; width: 216px; top: 0; } html.wide .f3 { left: 394px; width: 146px; top: 158px; }
html.wide .f1 .fl { height: 562px; } html.wide .f2 .fl { height: 408px; } html.wide .f3 .fl { height: 384px; }
html.wide .wall { position: absolute; left: 630px; top: 150px; width: 1232px; height: 806px; }
html.wide .pegs { position: absolute; left: 18px; right: 18px; top: 57px; }
html.wide .foot { position: absolute; left: 58px; right: 58px; top: 971px; height: 78px; }
html.wide .card { position: absolute; left: 700px; top: 220px; width: 1110px; max-height: 700px; overflow-y: auto; }
html.wide .sheet { position: absolute; left: 630px; top: 150px; width: 1232px; height: 806px; }

/* ---------- 手机：同一幅画，竖着排。首屏是标题、第几天、三面旗；控件在页面最下面 ---------- */
html.narrow #stage { min-height: 100%; padding: 14px 16px 40px; overflow: hidden; }
html.narrow #sky .sk1 { left: auto; right: -40px; top: 0; width: 620px; height: 80px; opacity: .8; }
html.narrow #sky .sk2, html.narrow #sky .gnd, html.narrow #sky .m2 { display: none; }
html.narrow .slot.empty, html.narrow .pegs.cl .brk { display: none; }
html.narrow .ttl h1 { font-size: 60px; }
html.narrow .tq { font-size: 21px; padding: 8px 5px; }
html.narrow .days { gap: 5px; justify-content: space-between; margin-top: 10px; }
html.narrow .seal { width: 34px; height: 34px; font-size: 22px; line-height: 29px; border-width: 2px; }
html.narrow .seal small { top: 33px; font-size: 13px; }
html.narrow .dline { font-size: 20px; margin-top: 2px; white-space: normal; } html.narrow .dline b { font-size: 28px; }
html.narrow .sline { font-size: 15px; white-space: normal; }
html.narrow .sign { margin: 12px 0 0; }
html.narrow .sign > div { gap: 10px; padding: 10px 10px 10px 12px; box-shadow: none; }
html.narrow .sign .w { font-size: 24px; } html.narrow .sign .w small { font-size: 14px; letter-spacing: 2px; }
html.narrow .sign .cd { gap: 5px; } html.narrow .sign .cd b { width: 48px; height: 64px; font-size: 50px; line-height: 58px; }
html.narrow .flags { height: 372px; margin: 26px 0 0; border-bottom: 2px solid var(--line); }
html.narrow .f2 { left: 0; width: 29%; top: 76px; } html.narrow .f1 { left: 31.5%; width: 37%; top: 0; } html.narrow .f3 { right: 0; width: 29%; top: 96px; }
html.narrow .f1 .fl { font-size: 18px; height: 318px; } html.narrow .f2 .fl, html.narrow .f3 .fl { font-size: 14px; } html.narrow .f2 .fl { height: 252px; } html.narrow .f3 .fl { height: 236px; }
html.narrow .shou { width: 36px; height: 36px; font-size: 15px; right: -8px; top: 50px; }
html.narrow .wall { margin: 34px 4px 0; padding: 58px 6px 28px; }
html.narrow .roof { left: -14px; right: -14px; }
html.narrow .pegs { --cols: 3 !important; --u: 7.15px !important; --nw: calc(var(--u) * 4); }
html.narrow .slot { height: 19.6em; }
html.narrow .slot .no { font-size: calc(var(--u) * 3.1); } html.narrow .slot .dv { font-size: calc(var(--u) * 2.1); top: calc(var(--u) * 5.2); }
html.narrow .pegs.cl .blk { flex-wrap: wrap; width: 100%; } html.narrow .pegs.cl { column-gap: 0; }
html.narrow .plus { font-size: 24px; right: -8px; }
html.narrow .msg { position: static; padding: 40px 0; } html.narrow .msg h2 { font-size: 44px; } html.narrow .msg p { font-size: 17px; }
html.narrow .foot { display: block; margin-top: 24px; }
html.narrow .best { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
html.narrow .best small { font-size: 14px; } html.narrow .best strong { font-size: 28px; line-height: 34px; } html.narrow .best span { font-size: 15px; display: block; }
html.narrow .feed { border-left: 0; border-top: 2px solid var(--line); padding: 12px 0 0; margin-top: 16px; }
html.narrow .feed h4 { font-size: 14px; } html.narrow .feed p { font-size: 16px; white-space: normal; }
html.narrow .foot .nav { border-left: 0; border-top: 2px solid var(--line); padding: 14px 0 0; margin-top: 16px; font-size: 16px; line-height: 30px; gap: 4px; }
html.narrow .nav > div { flex-wrap: wrap; gap: 0 14px; }
html.narrow .veil { position: fixed; }
html.narrow .card { position: fixed; left: 10px; right: 10px; top: 8%; max-height: 84%; overflow-y: auto; padding: 24px 22px; }
html.narrow .card .hd { flex-wrap: wrap; gap: 6px 12px; } html.narrow .card .hd h3 { font-size: 44px; } html.narrow .card .hd span { font-size: 15px; } html.narrow .card .hd strong { font-size: 22px; }
html.narrow .card .l { grid-template-columns: 1fr; gap: 0; font-size: 16px; line-height: 24px; position: relative; } html.narrow .card .l .r { position: absolute; right: 0; top: 10px; }
html.narrow .sheet { margin-top: 20px; padding: 18px 16px 26px; font-size: 16px; }
html.narrow .sheet h2 { font-size: 30px; }
html.narrow .hero { grid-template-columns: 1fr 1fr; gap: 14px; } html.narrow .hero strong { font-size: 38px; } html.narrow .hero small, html.narrow .hero span { font-size: 13px; }
html.narrow .trends { grid-template-columns: 1fr; }
html.narrow .srow { grid-template-columns: 24px 1fr 62px 58px 62px; gap: 8px; font-size: 15px; } html.narrow .c-hide { display: none; }
html.narrow .warn { grid-template-columns: 1fr; } html.narrow .warn .w { flex-wrap: wrap; }
html.narrow .rule { grid-template-columns: 70px 1fr; gap: 12px; } html.narrow .rule > b { font-size: 28px; }

/* ---------- 动 ---------- */
@keyframes sway { from { transform: rotate(-.9deg) skewX(.7deg); } to { transform: rotate(.9deg) skewX(-.7deg); } }
@keyframes unfurl { from { clip-path: inset(0 -20px 100% -20px); } to { clip-path: inset(0 -20px -20px -20px); } }
@keyframes hang { 0% { opacity: 0; transform: translateY(-34px) rotate(-7deg); } 40% { opacity: 1; transform: translateY(0) rotate(5deg); } 62% { transform: rotate(-3deg); } 82% { transform: rotate(1.4deg); } 100% { opacity: 1; transform: none; } }
@keyframes swing { 0% { transform: rotate(0); } 18% { transform: rotate(7deg); } 40% { transform: rotate(-5deg); } 62% { transform: rotate(3deg); } 82% { transform: rotate(-1.4deg); } 100% { transform: rotate(0); } }
@keyframes jolt { 0% { transform: rotate(0); } 25% { transform: rotate(3.4deg) skewX(-3deg); } 55% { transform: rotate(-2.4deg) skewX(2deg); } 100% { transform: rotate(-.9deg) skewX(.7deg); } }
@keyframes plus { 0% { opacity: 0; transform: translateY(16px) scale(.6); } 12% { opacity: 1; transform: translateY(0) scale(1.12); } 20% { transform: translateY(0) scale(1); } 78% { opacity: 1; transform: translateY(-14px); } 100% { opacity: 0; transform: translateY(-34px); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.7) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-150px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes unroll { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.f1 .cloth { animation: sway 5.2s ease-in-out infinite alternate; }
.f2 .cloth { animation: sway 6.1s ease-in-out -2s infinite alternate; }
.f3 .cloth { animation: sway 5.6s ease-in-out -3.4s infinite alternate; }
.flag.hit .cloth { animation: jolt 1.1s ease-out var(--el, 0ms), sway 5.2s ease-in-out 1.1s infinite alternate; }
.tag.hit .sw { animation: swing 1.3s ease-out var(--el, 0ms); }
.intro .tag .sw { animation: hang .8s cubic-bezier(.3, .7, .3, 1) both; animation-delay: calc(var(--i) * 42ms + 150ms); }
.intro .f3 .cloth { animation: unfurl .9s cubic-bezier(.2, .7, .2, 1) 1.35s both, sway 5.6s ease-in-out -3.4s infinite alternate; }
.intro .f2 .cloth { animation: unfurl .9s cubic-bezier(.2, .7, .2, 1) 1.65s both, sway 6.1s ease-in-out -2s infinite alternate; }
.intro .f1 .cloth { animation: unfurl 1.1s cubic-bezier(.2, .7, .2, 1) 1.95s both, sway 5.2s ease-in-out infinite alternate; }
.intro .seal.pub { animation: stamp .32s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.intro .foot { animation: rise .7s ease-out 2.6s both; }

@media (prefers-reduced-motion: reduce) {
  .cloth, .sw, .seal, .foot, .sign > div, .card { animation: none !important; }
  .plus { animation: none; }
}

/* ---------- 接到现在的分数上以后补的几条：签到挂二维码、明细一天一行 ---------- */
.sign .ckqr { display: block; width: 300px; height: 300px; background: #fff; padding: 12px; border: 2px solid var(--line); }
.sign .ckqr svg { display: block; width: 100%; height: 100%; }
html.narrow .sign .ckqr { width: 150px; height: 150px; padding: 6px; }
html.wide .card { left: 664px; width: 1164px; }
.card .l { grid-template-columns: 78px 250px 246px 196px 1fr 52px; gap: 12px; font-size: 18px; }
html.narrow .card .l { grid-template-columns: 1fr; }
.card .l .w3 { grid-column: 2 / span 3; } .card .l .w4 { grid-column: 2 / span 4; }
html.narrow .card .l .w3, html.narrow .card .l .w4 { grid-column: auto; }
