/* 卡片裡的視覺和動畫。基本狀態就是最後一格；卡片進入畫面才播放，離開畫面就暫停。 */
.scene { position: absolute; left: 0; right: 0; top: 190px; bottom: 58px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 0 25px; --soft: color-mix(in srgb, currentColor 12%, transparent); --mid: color-mix(in srgb, currentColor 58%, transparent); text-align: left; pointer-events: none; }
.acard--s .scene { top: 132px; bottom: 54px; gap: 8px; }
.gcard .scene { top: 0; bottom: 0; padding: 0; }
.js :is(.acard, .gcard, .router):not(.in) :is(.scene, .scene *, .mini *),
.js :is(.acard, .gcard, .router):not(.in) :is(.scene *, .mini *)::after { animation-play-state: paused !important; }
.mc { border-radius: 18px; corner-shape: squircle; background: var(--sf); color: var(--sf-ink); }
@supports (corner-shape: squircle) { .mc { border-radius: 30px; } }
.rv { animation: rv .8s var(--ease) both; animation-delay: calc(var(--i, 0) * .13s + .1s); }
@keyframes rv { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.tick { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }

/* 手機的擺放 */
.sc-ph { display: block; padding: 0; }
.sc-ph .device { position: absolute; --w: 250px; animation: ph .95s var(--ease) both; }
@keyframes ph { from { opacity: 0; translate: 0 72px; } }
.ph-low .device { --w: 350px; left: calc(50% - 175px); top: 96px; }
/* 手機本身有透明度動畫也會被壓平，所以淡入放在外層 */
.ph-tilt { perspective: 900px; animation: phfade .95s var(--ease) both; }
@keyframes phfade { from { opacity: 0; } }
@keyframes phrise { from { translate: 0 72px; } }
/* filter 會把 3D 壓平，這支手機不能用投影，機身厚度才看得到；側鍵放在厚度中間 */
.ph-tilt .dv-b { transform: translateZ(calc(var(--w, 280px) * -.06)); }
/* 正面每一層都要明確排在側面前面，否則金屬框會被側面蓋住 */
.ph-tilt .dv-z[style="--z:0"] { background: var(--dv-metal); transform: translateZ(.1px); }
.ph-tilt .device::before { transform: translateZ(.2px); }
.ph-tilt .dv-rim { transform: translateZ(.3px); }
.ph-tilt .device::after { transform: translateZ(.4px); }
.ph-tilt .device > img { transform: translateZ(.5px); }
.ph-tilt .dv-cam { transform: translateZ(.6px); }
.ph-tilt .device { --w: 300px; left: calc(50% - 156px); top: 0; box-shadow: none; filter: none; transform-style: preserve-3d; transform: rotateY(-30deg) rotateX(7deg) rotateZ(3deg); animation: phrise .95s var(--ease) both, sway 7s 1s ease-in-out infinite alternate; }
@keyframes sway { to { transform: rotateY(-20deg) rotateX(3deg) rotateZ(1deg); } }
.ph-hang .device { --w: 310px; left: calc(50% - 155px); bottom: 24px; animation-name: hang; }
@keyframes hang { from { opacity: 0; translate: 0 -72px; } }
.acard--flip .acard__head { margin-top: auto; padding-bottom: 0; }
.acard--flip { justify-content: flex-end; padding-bottom: 66px; }
.acard--flip .scene { top: 0; bottom: 236px; overflow: hidden; }
.fc { position: absolute; z-index: 3; padding: 9px 15px; border-radius: 999px; background: var(--hi); color: var(--on-hi); font-size: 14px; font-weight: 600; line-height: 1.15; white-space: nowrap; box-shadow: 0 8px 22px rgba(38, 36, 33, .22); animation: pop .55s .6s var(--ease) both, bob 3.6s 1.2s ease-in-out infinite alternate; }
.fc--a { left: 18px; top: 26px; } .fc--b { right: 18px; top: 34px; } .fc--c { left: 18px; bottom: 58px; } .fc--d { right: 18px; bottom: 66px; }
@keyframes bob { to { translate: 0 -8px; } }
.ring { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 34px; corner-shape: squircle; background: var(--tile); color: var(--tile-ink); box-shadow: 0 12px 30px rgba(38, 36, 33, .24); animation: pop .6s .4s var(--ease) both; }
.ring svg { position: absolute; inset: 11px; width: 90px; height: 90px; rotate: -90deg; fill: none; stroke: currentColor; stroke-width: 7; }
.ring circle:first-child { opacity: .2; }
.ring__on { stroke-dasharray: 72 100; stroke-linecap: square; animation: ring 6s .5s var(--ease) infinite; }
@keyframes ring { 0% { stroke-dasharray: 0 100; } 45%, 90% { stroke-dasharray: 72 100; } 100% { stroke-dasharray: 72 100; opacity: 0; } }
.ring b { font-size: 16px; }
.heart { position: absolute; width: 54px; fill: var(--hi); }

/* 今日學習 */
.sc-today { justify-items: stretch; gap: 8px; }
.sc-today .ring { justify-self: start; margin-bottom: 8px; }
.td { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) 22px; align-items: center; gap: 8px; padding: 11px 13px; animation: rv .7s var(--ease) both; animation-delay: calc(var(--i) * .12s + .25s); }
.td small { color: var(--hi2); font-size: 12px; font-weight: 700; }
.td b { font-size: 17px; }
.td span { overflow: hidden; color: var(--mid); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.td .tick { color: var(--hi2); animation: chk 8s var(--ease) infinite; animation-delay: calc(var(--i) * 1.1s + .8s); }
@keyframes chk { 0% { opacity: 0; transform: scale(.3); } 5%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }

/* 六種題型 */
.sc-types { perspective: 800px; }
.dk { grid-area: 1 / 1; display: grid; align-content: center; gap: 12px; width: min(290px, 100%); height: 300px; padding: 26px; transform: translateY(calc(var(--i) * 18px)) scale(calc(1 - var(--i) * .055)); z-index: calc(6 - var(--i)); animation: deck 12s cubic-bezier(.5, 0, .2, 1) infinite; animation-delay: calc(var(--i) * 2s - 12s); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.dk:nth-child(n+4) { opacity: 0; }
.dk small { color: var(--hi2); font-size: 14px; font-weight: 700; }
.dk b { font: 600 34px/1.14 var(--font-display); }
.dk span { color: var(--mid); }
@keyframes deck { 0%, 13% { opacity: 1; transform: none; z-index: 6; } 16.600% { opacity: 0; transform: translateY(-120px) rotateX(24deg) scale(1.03); z-index: 6; } 17%, 50% { opacity: 0; transform: translateY(58px) scale(.8); z-index: 1; } 66.600%, 80% { opacity: .55; transform: translateY(36px) scale(.89); z-index: 3; } 83.300%, 96% { opacity: .85; transform: translateY(18px) scale(.945); z-index: 4; } 100% { opacity: 1; transform: none; z-index: 6; } }

/* 左右滑單字卡 */
.sw-c { position: relative; grid-area: 1 / 1; display: grid; align-content: end; gap: 6px; width: min(274px, 100%); height: 340px; padding: 24px; transform: translateY(calc(var(--i) * 14px)) scale(calc(1 - var(--i) * .05)); z-index: calc(4 - var(--i)); --dir: 1; animation: swipe 9s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: calc(var(--i) * 3s - 9s); box-shadow: 0 12px 30px rgba(38, 36, 33, .2); }
.sw-c:nth-child(2) { --dir: -1; }
.sw-c b { font: 600 38px/1.1 var(--font-display); }
.sw-c small { color: var(--mid); font-size: 15px; }
.sw-c span { font-size: 19px; }
.sw-c .heart { left: calc(50% - 27px); top: 84px; opacity: 0; animation: beat 9s ease infinite; animation-delay: inherit; }
@keyframes swipe { 0%, 21% { opacity: 1; transform: none; z-index: 4; } 31% { opacity: 0; transform: translateX(calc(var(--dir) * 150%)) rotate(calc(var(--dir) * 16deg)); z-index: 4; } 33.300% { opacity: 0; transform: translateY(44px) scale(.86); z-index: 1; } 40%, 62% { opacity: .55; transform: translateY(28px) scale(.9); z-index: 2; } 70%, 92% { opacity: .85; transform: translateY(14px) scale(.95); z-index: 3; } 100% { opacity: 1; transform: none; z-index: 4; } }
@keyframes beat { 0%, 6% { opacity: 0; transform: scale(.3); } 11% { opacity: 1; transform: scale(1.2); } 15%, 21% { opacity: 1; transform: scale(1); } 27%, 100% { opacity: 0; transform: scale(1); } }

/* 答案卡：每個學年度一張，用真正的正解 */
.yr { display: flex; gap: 8px; }
.yr span { padding: 7px 15px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 600; animation: yr 9s infinite; animation-delay: calc(var(--i) * 3s); }
.yr span:first-child { background: var(--tile); color: var(--tile-ink); }
@keyframes yr { 0%, 31% { background: var(--tile); color: var(--tile-ink); } 34%, 97% { background: var(--soft); color: inherit; } 100% { background: var(--tile); color: var(--tile-ink); } }
.ans-w { display: grid; width: min(300px, 100%); padding: 18px; }
.ans-y { grid-area: 1 / 1; display: grid; gap: 8px; animation: ansy 9s infinite; animation-delay: calc(var(--y) * 3s); }
.ans-y:not(:first-child) { opacity: 0; }
@keyframes ansy { 0%, 31% { opacity: 1; } 34%, 97% { opacity: 0; } 100% { opacity: 1; } }
.ans { display: grid; grid-template-columns: 24px repeat(4, 1fr); align-items: center; justify-items: center; gap: 6px; }
.ans small { justify-self: start; color: var(--mid); font-size: 13px; }
.ans i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--soft); color: var(--mid); font-size: 12px; font-style: normal; font-weight: 600; }
.ans .on { color: var(--on-hi2); background: var(--hi2); animation: fill 9s infinite backwards; animation-delay: calc(var(--y) * 3s + var(--i) * .1s); }
/* 這一年的答案卡淡出後就清空，下一輪淡入時才不會先露出上一輪的答案 */
@keyframes fill { 0% { background: transparent; color: var(--mid); transform: scale(.75); } 3%, 40% { background: var(--hi2); color: var(--on-hi2); transform: none; } 41%, 100% { background: transparent; color: var(--mid); transform: scale(.75); } }

/* 兩支手機同步 */
.sc-sync { justify-items: stretch; gap: 0; }
.sy { display: grid; gap: 12px; padding: 18px; }
.sy small { font-size: 16px; font-weight: 700; }
.sy div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sy i { padding: 11px 2px; border-radius: 11px; background: var(--hi2); color: var(--on-hi2); font-size: 14px; font-style: normal; font-weight: 600; text-align: center; white-space: nowrap; animation: sy 7s infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes sy { 0% { opacity: .22; transform: scale(.94); } 8%, 86% { opacity: 1; transform: none; } 100% { opacity: .22; } }
.sy-o { z-index: 1; justify-self: center; display: grid; place-items: center; width: 60px; height: 60px; margin: -10px 0; border-radius: 21px; corner-shape: squircle; background: var(--tile); color: var(--tile-ink); box-shadow: 0 0 0 6px var(--g); }
.sy-o svg { width: 32px; fill: currentColor; animation: spin 7s linear infinite; }

/* 拍照掃描 */
.vf { position: relative; display: grid; gap: 14px; width: min(280px, 100%); padding: 26px 24px; overflow: hidden; border-radius: 22px; background: var(--sf); color: var(--sf-ink); }
.vf p { display: flex; align-items: center; gap: 8px; }
.vf u { flex: 1; height: 7px; border-radius: 2px; background: var(--soft); }
.vf b { padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--y) 72%, transparent); font-size: 17px; animation: mark 6s infinite; animation-delay: calc(var(--i) * .46s + .35s); }
@keyframes mark { 0% { background: transparent; } 5%, 86% { background: color-mix(in srgb, var(--y) 72%, transparent); } 96%, 100% { background: transparent; } }
.vf-l { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--r); box-shadow: 0 0 16px 3px color-mix(in srgb, var(--r) 45%, transparent); animation: scanl 6s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes scanl { from { top: 0; } 42% { top: 100%; } 48%, to { top: 100%; opacity: 0; } }
.vf s { position: absolute; inset: 10px; background: linear-gradient(var(--r), var(--r)) 0 0 / 20px 3px, linear-gradient(var(--r), var(--r)) 0 0 / 3px 20px, linear-gradient(var(--r), var(--r)) 100% 0 / 20px 3px, linear-gradient(var(--r), var(--r)) 100% 0 / 3px 20px, linear-gradient(var(--r), var(--r)) 0 100% / 20px 3px, linear-gradient(var(--r), var(--r)) 0 100% / 3px 20px, linear-gradient(var(--r), var(--r)) 100% 100% / 20px 3px, linear-gradient(var(--r), var(--r)) 100% 100% / 3px 20px; background-repeat: no-repeat; }
.scan-o { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 290px; margin-top: 8px; }
.scan-o span { padding: 7px 12px; border-radius: 999px; background: var(--tile); color: var(--tile-ink); font-size: 14px; font-weight: 600; animation: out 6s var(--ease) infinite; animation-delay: calc(var(--i) * .3s + 2.7s); }
@keyframes out { 0% { opacity: 0; transform: translateY(-20px) scale(.8); } 8%, 45% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; } }
.sc-scan.is-s .vf { padding: 12px 22px; gap: 7px; width: min(250px, 100%); }
.sc-scan.is-s .vf b { font-size: 14px; }
.sc-scan.is-s .vf s { inset: 6px; }

/* 公告不斷進來 */
/* 手機瀏覽器會回收長條移動層畫面外的部分，所以每則公告各自循環，也不用遮罩；上下淡出改用卡片底色蓋住 */
.scene.sc-tick { display: block; padding: 0; }
/* 淡出層比裁切範圍多蓋 1px，邊緣才不會露出細線 */
.sc-tick::before, .sc-tick::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; pointer-events: none; }
.sc-tick::before { top: -1px; height: 8%; background: linear-gradient(var(--g) 3px, transparent); }
.sc-tick::after { bottom: -1px; height: 14%; background: linear-gradient(transparent, var(--g) calc(100% - 3px)); }
.tick-t { --h: 106px; display: grid; grid-template-rows: 96px; align-content: start; height: 100%; overflow: hidden; padding: 0 20px; }
.tick-t .nr { grid-area: 1 / 1; transform: translateY(calc(var(--h) * var(--i))); will-change: transform; animation: feed 17.5s cubic-bezier(.7, 0, .2, 1) infinite; animation-delay: calc(var(--i) * -3.5s); }
.nr { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 10px; height: 96px; padding: 13px; }
.nr > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--hi2); color: var(--on-hi2); font-size: 15px; font-weight: 600; }
.nr small { display: block; color: var(--mid); font-size: 12px; }
.nr b, .sr b, .ct b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 600; line-height: 1.32; }
@keyframes feed { 0%, 16% { transform: none; } 20%, 36% { transform: translateY(var(--h)); } 40%, 56% { transform: translateY(calc(var(--h) * 2)); } 60%, 76% { transform: translateY(calc(var(--h) * 3)); } 80% { transform: translateY(calc(var(--h) * 4)); } 80.01%, 96% { transform: translateY(calc(var(--h) * -1)); } 100% { transform: none; } }

/* 五所學校 */
/* 列表以整張卡片的高度置中 */
.scene.sc-schools { position: absolute; top: 0; bottom: 0; gap: 0; justify-items: stretch; align-content: center; padding-inline: 25px; }
.sch { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 68px; border-top: 1px solid var(--soft); font-size: 25px; text-align: center; }
.sch b { font-weight: 600; }
.sch .tick { position: absolute; right: 14px; width: 26px; height: 26px; color: var(--hi); animation: pop .5s var(--ease) both; animation-delay: calc(var(--i) * .2s + .35s); }
.sch-h { position: absolute; left: 13px; right: 13px; top: calc(50% - 170px); height: 68px; border-radius: 16px; background: var(--soft); animation: rowh 10s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes rowh { 0%, 16% { translate: 0 0; } 20%, 36% { translate: 0 68px; } 40%, 56% { translate: 0 136px; } 60%, 76% { translate: 0 204px; } 80%, 96% { translate: 0 272px; } 100% { translate: 0 0; } }

/* 字體和顏色 */
.lk { position: relative; display: grid; place-items: center; width: min(280px, 100%); height: 196px; overflow: hidden; border-radius: 32px; corner-shape: squircle; background: #fffdf6; }
.lk b { grid-area: 1 / 1; color: var(--c); font-size: 58px; line-height: 1; opacity: 0; animation: lk 14s infinite; animation-delay: calc(var(--i) * 2s); }
.lk b:first-child { opacity: 1; }
.f-sys { font-family: var(--font-display); font-weight: 600; } .f-rnd { font-family: ui-rounded, "SF Pro Rounded", "Yuanti TC", var(--font-display); font-weight: 700; } .f-ser { font-family: ui-serif, "New York", "Songti TC", "Noto Serif TC", serif; font-weight: 700; } .f-mon { font-family: ui-monospace, "SF Mono", Menlo, "PingFang TC", monospace; font-weight: 600; }
@keyframes lk { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 1.5%, 12.5% { opacity: 1; transform: none; } 14.28%, 100% { opacity: 0; transform: translateY(-14px); } }
.lk-n { display: grid; height: 24px; font-size: 15px; font-weight: 600; }
.lk-n span { grid-area: 1 / 1; text-align: center; opacity: 0; animation: lkn 14s infinite; animation-delay: calc(var(--i) * 2s); }
.lk-n span:first-child { opacity: 1; }
@keyframes lkn { 0%, 12.5% { opacity: 1; } 14.28%, 100% { opacity: 0; } }
.lk-s { display: flex; gap: 8px; }
.lk-s i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--g), 0 0 0 3px var(--soft); animation: pop .4s var(--ease) both, swr 14s infinite; animation-delay: calc(var(--i) * .07s), calc(var(--i) * 2s); }
.lk-s i:first-child { box-shadow: 0 0 0 2px var(--g), 0 0 0 4px currentColor; }
@keyframes swr { 0%, 13% { box-shadow: 0 0 0 2px var(--g), 0 0 0 4px currentColor; } 14.28%, 100% { box-shadow: 0 0 0 2px var(--g), 0 0 0 3px var(--soft); } }

/* 單字頁 */
.wp { display: grid; gap: 9px; width: 100%; }
.wp > small { color: var(--hi); font-size: 14px; font-weight: 700; }
.wp > b { font: 600 62px/1.05 var(--font-display); }
.wp-s { display: flex; align-items: center; gap: 8px; color: var(--mid); }
.wp-s svg { width: 22px; height: 22px; fill: var(--hi); }
.wv { display: flex; align-items: center; gap: 3px; height: 20px; }
.wv i { width: 3px; height: 100%; background: var(--hi); transform-origin: center; animation: wv 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); }
@keyframes wv { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.wp-z { font-size: 25px; font-weight: 600; }
.wp blockquote { margin: 12px 0 0; padding: 14px 15px; border-left: 3px solid var(--hi); background: var(--soft); line-height: 1.36; }
.wp mark { background: none; color: var(--hi); font-weight: 700; }
.wp blockquote small { display: block; margin-top: 4px; color: var(--mid); font-size: 14px; }

/* 學習日曆 */
.cal { width: min(306px, 100%); padding: 18px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal small { color: var(--mid); font-size: 12px; text-align: center; }
.cal i { aspect-ratio: 1; background: var(--soft); animation: cell .42s var(--ease) both; animation-delay: calc(var(--i) * .035s + .2s); }
.cal .c1 { background: color-mix(in srgb, var(--y) 42%, var(--sf)); } .cal .c2 { background: var(--y); } .cal .c3 { background: var(--r); }
.cal .now { animation: cell .42s 1.3s var(--ease) both, now 1.6s 1.8s ease-in-out infinite alternate; }
@keyframes cell { from { opacity: 0; transform: scale(.2); } }
@keyframes now { to { box-shadow: 0 0 0 4px color-mix(in srgb, var(--r) 28%, transparent); } }
.medal { display: grid; place-items: center; width: 68px; height: 68px; margin-top: 8px; border-radius: 22px; corner-shape: squircle; background: var(--tile); color: var(--tile-ink); font-size: 32px; animation: pop .55s 1.5s var(--ease) both; }

/* 字庫清單與數字 */
.sc-shelf { justify-items: stretch; gap: 16px; }
.sh { display: grid; grid-template-columns: 1fr auto; gap: 6px; animation: rv .7s var(--ease) both; animation-delay: calc(var(--i) * .1s); }
.sh span { font-weight: 600; } .sh b { font-size: 15px; font-weight: 600; }
.sh i, .sc-count i { grid-column: 1 / -1; height: 10px; background: var(--hi); transform: scaleX(var(--v)); transform-origin: left; animation: bar 1.15s var(--ease) both; animation-delay: calc(var(--i, 0) * .1s + .2s); }
@keyframes bar { from { transform: scaleX(0); } }
.sc-count { justify-items: stretch; align-content: end; padding-bottom: 12px; }
.sc-count b { font: 600 54px/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* 翻卡片 */
.fl { width: min(270px, 100%); height: 272px; perspective: 900px; }
.fl-c { position: relative; height: 100%; transform-style: preserve-3d; animation: flip 7s cubic-bezier(.65, 0, .2, 1) infinite; }
@keyframes flip { 0%, 34% { transform: none; } 46%, 84% { transform: rotateY(180deg); } 96%, 100% { transform: rotateY(360deg); } }
.fl-f { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 30px; corner-shape: squircle; }
.fl-b { background: var(--y); color: var(--k); transform: rotateY(180deg); }
.fl-f b { font: 600 38px/1.1 var(--font-display); }
.fl-f small { font-size: 15px; opacity: .65; }
.fl-a { display: flex; gap: 8px; margin-top: 8px; }
.fl-a span { padding: 10px 24px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 600; }
.fl-a span:last-child { background: var(--tile); color: var(--tile-ink); animation: ok 7s infinite; }
@keyframes ok { 0%, 76% { transform: none; } 80% { transform: scale(.9); } 86%, 100% { transform: none; } }

/* 克漏字：點選項，答案在底線上打出來 */
.cz { position: relative; width: 300px; height: 238px; max-width: 100%; }
.cz p { font: 600 26px/1.45 var(--font-display); }
.cz-b { display: inline-flex; align-items: flex-end; justify-content: center; min-width: 120px; height: 34px; margin-bottom: -7px; border-bottom: 3px solid var(--hi); color: var(--hi); line-height: 30px; }
/* 由第一個字母打到最後一個，退場時從最後一個字母刪回來 */
.cz-b i { display: inline-block; overflow: hidden; max-width: 1em; font-style: normal; animation: cz0 6s steps(1) infinite; }
.cz-b i:nth-child(2) { animation-name: cz1; } .cz-b i:nth-child(3) { animation-name: cz2; } .cz-b i:nth-child(4) { animation-name: cz3; }
.cz-b i:nth-child(5) { animation-name: cz4; } .cz-b i:nth-child(6) { animation-name: cz5; } .cz-b i:nth-child(7) { animation-name: cz6; }
@keyframes cz0 { 0% { max-width: 0; } 24% { max-width: 1em; } 91.2%, 100% { max-width: 0; } }
@keyframes cz1 { 0% { max-width: 0; } 25.83% { max-width: 1em; } 90%, 100% { max-width: 0; } }
@keyframes cz2 { 0% { max-width: 0; } 27.66% { max-width: 1em; } 88.8%, 100% { max-width: 0; } }
@keyframes cz3 { 0% { max-width: 0; } 29.49% { max-width: 1em; } 87.6%, 100% { max-width: 0; } }
@keyframes cz4 { 0% { max-width: 0; } 31.32% { max-width: 1em; } 86.4%, 100% { max-width: 0; } }
@keyframes cz5 { 0% { max-width: 0; } 33.15% { max-width: 1em; } 85.2%, 100% { max-width: 0; } }
@keyframes cz6 { 0% { max-width: 0; } 34.98% { max-width: 1em; } 84%, 100% { max-width: 0; } }
/* 游標不佔寬度，單字才會在底線上置中 */
.cz-b s { width: 2px; height: 26px; margin: 0 -3px 2px 1px; background: var(--hi); animation: czc 1s steps(1) infinite; }
@keyframes czc { 50% { opacity: 0; } }
.cz small { display: block; margin-top: 6px; color: var(--mid); font-size: 14px; }
.cz-o { position: absolute; top: 190px; left: calc(var(--x) * 100px); display: grid; place-items: center; width: 94px; height: 40px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 600; }
.cz-a { background: var(--hi); color: var(--on-hi); animation: cza 6s var(--ease) infinite; }
@keyframes cza { 0%, 13% { background: var(--soft); color: inherit; transform: none; } 16% { background: var(--soft); color: inherit; transform: scale(.9); } 20%, 91% { background: var(--hi); color: var(--on-hi); transform: none; } 96%, 100% { background: var(--soft); color: inherit; } }
.cz-t { position: absolute; top: 193px; left: 130px; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, currentColor 30%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 40%, transparent); opacity: 0; animation: czt 6s var(--ease) infinite; }
@keyframes czt { 0%, 6% { opacity: 0; transform: translate(26px, 26px) scale(1.2); } 13% { opacity: 1; transform: scale(1.1); } 16% { opacity: 1; transform: scale(.75); } 24%, 100% { opacity: 0; transform: scale(1.5); } }

/* 拼單字 */
.sp-h { font-size: 26px; font-weight: 600; } .sp-h small { margin-left: 8px; color: var(--mid); font-size: 14px; }
.sp { --c: min(34px, 8.200vw); display: flex; gap: 3px; margin: 8px 0; }
.sp b { display: grid; place-items: center; width: var(--c); height: 46px; border-radius: 9px; background: var(--sf); box-shadow: inset 0 0 0 1px var(--soft); font-size: 22px; font-weight: 600; animation: tile 8s var(--ease) infinite; animation-delay: calc(var(--i) * .26s); }
@keyframes tile { 0% { color: transparent; transform: scale(.82); } 5%, 78% { color: inherit; transform: none; } 88%, 100% { color: transparent; } }
.sp-k { display: flex; align-items: center; gap: 6px; color: var(--hi); font-weight: 600; animation: sk 8s infinite; }
@keyframes sk { 0%, 28% { opacity: 0; transform: scale(.8); } 33%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; } }

/* 聽力 */
.ls { display: flex; align-items: center; gap: 12px; width: 100%; }
.ls-p { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tile); color: var(--tile-ink); }
.ls-p svg { width: 28px; fill: currentColor; }
.ls-b { display: flex; flex: 1; align-items: center; justify-content: space-between; height: 86px; }
.ls-b i { width: 4px; height: calc(var(--h) * 100%); background: currentColor; animation: wv 1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
.ls-s { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--soft); }
.ls-s span { padding: 6px 17px; border-radius: 999px; font-size: 14px; font-weight: 600; animation: spd 8s infinite; }
.ls-s span:first-child { background: var(--tile); color: var(--tile-ink); }
.ls-s span:last-child { animation-delay: -4s; }
@keyframes spd { 0%, 46% { background: var(--tile); color: var(--tile-ink); } 50%, 96% { background: transparent; color: inherit; } 100% { background: var(--tile); color: var(--tile-ink); } }
.ls-o { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 8px; }
.ls-o span { padding: 13px; border-radius: 13px; background: var(--soft); font-weight: 600; text-align: center; }
.ls-o .ok { background: var(--r); color: #fff; animation: right 8s infinite; }
@keyframes right { 0%, 50% { background: var(--soft); color: inherit; } 56%, 92% { background: var(--r); color: #fff; } 100% { background: var(--soft); } }

/* 新增單字的小卡 */
.q, .q-r, .pa { display: flex; align-items: center; width: 100%; }
.q { gap: 8px; height: 44px; padding: 0 13px; border-radius: 15px; }
.q svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.q code { display: inline-block; overflow: hidden; width: 7ch; border-right: 2px solid var(--r); font: 16px/1.3 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; animation: type 6s steps(7) infinite; }
@keyframes type { 0% { width: 0; } 28%, 86% { width: 7ch; } 94%, 100% { width: 0; } }
.q-r { justify-content: space-between; gap: 8px; padding: 9px 13px; border-radius: 15px; animation: res 6s var(--ease) infinite; }
.q-r span { margin-right: auto; color: var(--mid); font-size: 14px; }
.q-r i { color: var(--r); font-size: 20px; font-style: normal; font-weight: 700; }
@keyframes res { 0%, 30% { opacity: 0; transform: translateY(10px); } 36%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
.sc-paste { gap: 5px; }
.pa-t { position: absolute; right: 25px; top: -6px; z-index: 1; padding: 4px 11px; border-radius: 999px; background: var(--tile); color: var(--tile-ink); font-size: 12px; font-weight: 600; animation: pt 6s infinite; }
@keyframes pt { 0%, 8% { transform: none; } 11% { transform: scale(.88); } 15%, 100% { transform: none; } }
.pa { justify-content: space-between; padding: 7px 13px; border-radius: 12px; font-size: 15px; animation: res 6s var(--ease) infinite; animation-delay: calc(var(--i) * .16s - 1.4s); }
.pa span { color: var(--mid); font-size: 14px; }
.sc-files { grid-template-columns: repeat(3, minmax(0, 76px)); justify-content: center; gap: 14px; }
/* 文件圖示的比例約 77:100，右上角折起來 */
.fi { position: relative; display: grid; place-items: end center; justify-self: stretch; width: 100%; aspect-ratio: .77; padding-bottom: 10px; background: var(--sf); color: var(--sf-ink); clip-path: polygon(0 0, 68% 0, 100% 24.640%, 100% 100%, 0 100%); font-size: 13px; animation: fi 6s var(--ease) infinite; animation-delay: calc(var(--i) * .24s); }
.fi::before { content: ""; position: absolute; top: 0; right: 0; width: 32%; aspect-ratio: 1; background: color-mix(in srgb, var(--sf-ink) 20%, var(--sf)); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.fi b { font-weight: 600; }
@keyframes fi { 0% { opacity: 0; transform: translateY(-34px) rotate(-7deg); } 12%, 72% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: translateY(18px) scale(.85); } }
.fi-t { grid-column: 1 / -1; width: 100%; height: 8px; background: var(--soft); }
.fi-t i { display: block; height: 100%; background: var(--r); transform-origin: left; animation: load 6s infinite; }
@keyframes load { 0%, 18% { transform: scaleX(0); } 70%, 100% { transform: none; } }
.cd { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; width: 100%; }
.cd b { display: grid; place-items: center; height: 54px; border-radius: 9px; background: color-mix(in srgb, currentColor 14%, transparent); font: 600 20px ui-monospace, "SF Mono", Menlo, monospace; animation: tile 7s var(--ease) infinite; animation-delay: calc(var(--i) * .2s); }
.ai { display: grid; gap: 2px; width: 100%; padding: 12px 16px; }
.ai b { font-size: 19px; }
.ai i { position: absolute; right: 42px; color: var(--r); font-size: 28px; font-style: normal; animation: spk 3s ease-in-out infinite; }
.ai span { width: max-content; background: linear-gradient(100deg, var(--r) 30%, var(--y) 50%, var(--r) 70%) 0 0 / 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 21px; font-weight: 700; animation: shine 3s linear infinite; }
@keyframes spk { 50% { transform: scale(.6) rotate(45deg); opacity: .5; } }
@keyframes shine { to { background-position: -240% 0; } }
.sc-lights { display: flex; flex-wrap: wrap; align-content: center; justify-content: flex-start; gap: 7px; }
.sc-lights span, .ct-c span { padding: 7px 13px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 600; animation: lit 6s infinite; animation-delay: calc(var(--i) * .75s); }
@keyframes lit { 0% { background: var(--soft); color: inherit; } 5%, 50% { background: var(--tile); color: var(--tile-ink); } 58%, 100% { background: var(--soft); color: inherit; } }

/* 分類和公告內頁 */
.sc-cats { justify-items: stretch; gap: 9px; }
.ct-c { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.ct { padding: 12px 14px; animation: rv .7s var(--ease) both; animation-delay: calc(var(--i) * .13s + .25s); }
.ct small { color: var(--r); font-size: 12px; font-weight: 700; }
.pg { grid-area: 1 / 1; width: min(262px, 90%); height: 340px; border-radius: 18px; background: var(--sf2); box-shadow: 0 10px 28px rgba(38, 36, 33, .16); animation: fan 1.1s var(--ease) both; }
.pg-a { rotate: -9deg; translate: -22px 8px; } .pg-b { rotate: 6deg; translate: 22px 4px; }
.pg-c { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 22px; background: #fffdf6; color: var(--k); }
@keyframes fan { from { rotate: 0deg; translate: 0 34px; opacity: 0; } }
.pg small { color: var(--r); font-size: 12px; font-weight: 700; }
.pg b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 19px; line-height: 1.28; margin-bottom: 6px; }
.pg u, .pn u { display: block; height: 7px; background: rgba(38, 36, 33, .1); transform-origin: left; animation: bar 1s var(--ease) both .4s; }
.pg u:nth-of-type(3n) { width: 72%; }
.pg-f { margin-top: auto; width: max-content; padding: 8px 12px; border-radius: 10px; background: var(--y); font-size: 13px; font-weight: 700; animation: bob 2.6s ease-in-out infinite alternate; }
.pg-l { color: var(--r); font-size: 14px; font-weight: 600; }

/* 焦點卡的場景：手機放大，超出卡片的部分直接裁掉 */
.sc-fan { display: block; overflow: visible; }
.sc-fan .device { position: absolute; --w: min(47%, 236px); animation: ph 1s var(--ease) both; }
.sc-fan .device:nth-child(1) { left: 0; top: 128px; rotate: -6deg; animation-delay: .1s; }
.sc-fan .device:nth-child(2) { left: 27%; top: 46px; z-index: 2; }
.sc-fan .device:nth-child(3) { right: -5%; top: 160px; rotate: 6deg; animation-delay: .2s; }
.sc-stage { display: block; overflow: hidden; }
.sc-stage > .device { position: absolute; top: 18px; --w: min(32%, 296px); animation: ph 1s var(--ease) both; }
.sc-stage > .device:nth-child(1) { left: 4%; rotate: -4deg; } .sc-stage > .device:nth-child(2) { right: 4%; rotate: 4deg; animation-delay: .12s; }
.st-c { position: absolute; left: 50%; top: 92px; display: grid; justify-items: center; gap: 12px; width: 92px; margin-left: -46px; }
.st-o { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 26px; corner-shape: squircle; background: var(--tile); color: var(--tile-ink); }
.st-o svg { width: 42px; fill: currentColor; animation: spin 9s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.st-l { display: grid; justify-items: center; font-size: 17px; font-weight: 600; }
.st-l span { grid-area: 1 / 1; opacity: 0; animation: stl 9s infinite; animation-delay: calc(var(--i) * 3s); }
.st-l span:first-child { opacity: 1; }
@keyframes stl { 0%, 30% { opacity: 1; transform: none; } 33%, 97% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; } }
.sc-exam { align-content: center; gap: 14px; padding: 28px 40px 28px 0; }
.sc-exam .scene { position: static; padding: 0; width: 100%; }
.ex-y { display: flex; gap: 8px; width: 100%; max-width: 340px; }
.ex-y span { flex: 1; padding: 12px; border-radius: 18px; corner-shape: squircle; background: var(--soft); text-align: center; animation: rv .7s var(--ease) both, yr 9s infinite; animation-delay: calc(var(--i) * .12s), calc(var(--i) * 3s); }
.ex-y span:first-child { background: var(--tile); color: var(--tile-ink); }
.ex-y b { display: block; font: 600 30px/1 var(--font-display); } .ex-y small { font-size: 12px; }
.sc-exam .ans-w { width: 100%; max-width: 340px; margin: auto; }
.sc-levels { display: block; overflow: hidden; }
.sc-levels .device { position: absolute; right: -7%; top: 34px; --w: min(60%, 290px); rotate: 5deg; animation: ph 1s var(--ease) both; }
.lv-r { position: absolute; left: 4px; top: 70px; z-index: 2; display: grid; gap: 2px; padding: 14px 18px; border-radius: 22px; corner-shape: squircle; background: var(--k); color: var(--y); animation: pop .55s .5s var(--ease) both; }
.lv-r small { font-size: 13px; font-weight: 600; } .lv-r b { font: 600 30px/1.1 var(--font-display); }
.lv { --bw: 25px; --gp: 4px; --sx: calc(var(--bw) + var(--gp)); --sy: 46px; position: absolute; left: 4px; bottom: 52px; z-index: 2; display: flex; align-items: flex-end; gap: var(--gp); }
.lv > i { position: relative; display: grid; place-items: end center; width: var(--bw); height: calc(52px + var(--i) * var(--sy)); padding-bottom: 8px; background: var(--k); color: var(--y); font-style: normal; transform-origin: bottom; animation: lv .7s var(--ease) both; animation-delay: calc(var(--i) * .07s); }
.lv b { font-size: 15px; }
@keyframes lv { from { transform: scaleY(.2); opacity: 0; } }
.lv em { position: absolute; left: 4px; bottom: 62px; width: 17px; height: 17px; background: var(--r); animation: hop 9s cubic-bezier(.3, 1.3, .5, 1) infinite; }
@keyframes hop { 0%, 12% { translate: 0 0; } 18%, 30% { translate: var(--sx) calc(var(--sy) * -1); } 36%, 48% { translate: calc(var(--sx) * 2) calc(var(--sy) * -2); } 54%, 66% { translate: var(--sx) calc(var(--sy) * -1); } 72%, 84% { translate: calc(var(--sx) * 2) calc(var(--sy) * -2); } 90%, 100% { translate: calc(var(--sx) * 3) calc(var(--sy) * -3); } }
.sc-gate { display: block; overflow: hidden; container-type: inline-size; }
.gt { position: absolute; left: calc(50% - 125px); top: 22px; bottom: 34px; z-index: 2; display: grid; place-items: center; width: 250px; border-radius: 30px; corner-shape: squircle; background: var(--tile); color: var(--tile-ink); }
.gt i { font-size: 24px; font-style: normal; font-weight: 700; }
.sc-gate span { position: absolute; left: 0; top: calc(38px + var(--l) * 58px); padding: 9px 17px; border-radius: 999px; background: #fffdf6; color: var(--k); font-weight: 600; white-space: nowrap; animation: 9s linear infinite; animation-delay: calc(var(--i) * 1.5s - 9s); }
.sc-gate .go { animation-name: pass; } .sc-gate .no { background: var(--r); color: #fff; animation-name: stop; }
@keyframes pass { from { transform: translateX(-120px); } to { transform: translateX(calc(100cqw + 20px)); } }
@keyframes stop { 0% { transform: translateX(-120px); opacity: 1; } 34% { transform: translateX(calc(50cqw - 225px)); opacity: 1; } 42% { transform: translateX(calc(50cqw - 255px)) translateY(46px) rotate(-12deg); opacity: 0; } 100% { opacity: 0; } }
.sc-panes { display: block; overflow: hidden; }
.pn-t { position: absolute; left: 50%; top: 22px; bottom: -24px; display: flex; gap: 14px; margin-left: -140px; animation: pane 12s cubic-bezier(.7, 0, .2, 1) infinite; }
.pn { flex: none; width: 280px; padding: 20px; overflow: hidden; }
.pn small { color: var(--r); font-size: 13px; font-weight: 700; }
.pn p { padding: 10px 0; border-top: 1px solid rgba(38, 36, 33, .1); overflow: hidden; font-size: 15px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.pn b { display: block; margin: 10px 0 14px; font-size: 19px; line-height: 1.28; }
.pn u { margin-bottom: 10px; }
@keyframes pane { 0%, 24% { transform: translateX(0); } 33%, 57% { transform: translateX(-294px); } 66%, 90% { transform: translateX(-588px); } 100% { transform: none; } }
.sc-stream { display: block; overflow: hidden; }
.sc-stream .device { position: absolute; left: 1%; top: 40px; --w: min(52%, 244px); rotate: -4deg; animation: ph 1s var(--ease) both; }
.sr-w { position: absolute; left: 57%; right: 4%; top: 44px; display: grid; gap: 10px; }
.sr { padding: 12px 14px; animation: sr 8s var(--ease) infinite; animation-delay: calc(var(--i) * .32s); }
.sr small { color: var(--mid); font-size: 12px; }
@keyframes sr { 0% { opacity: 0; transform: translateX(26px); } 7%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* 雙圖塊的小圖 */
.mini { --soft2: color-mix(in srgb, currentColor 14%, transparent); display: grid; place-items: center; height: 104px; margin-bottom: 12px; color: var(--hi); }
.m-lock { width: 72px; fill: currentColor; }
.m-lock path { fill: none; stroke: currentColor; stroke-width: 7; animation: shut 5s var(--ease) infinite; }
.m-lock circle { fill: var(--g); animation: key 5s infinite; }
@keyframes shut { 0%, 12% { transform: translateY(-11px); } 26%, 88% { transform: none; } 100% { transform: translateY(-11px); } }
@keyframes key { 0%, 24% { transform: none; opacity: .4; } 30%, 88% { opacity: 1; } 100% { opacity: .4; } }
.m-code { display: grid; gap: 10px; width: 150px; }
.m-code i { display: block; width: var(--w); height: 10px; margin-left: var(--x); background: currentColor; transform-origin: left; animation: codel 5s var(--ease) infinite; animation-delay: calc(var(--i) * .25s); }
.m-code i:nth-child(even) { opacity: .55; }
@keyframes codel { 0% { transform: scaleX(0); } 14%, 84% { transform: none; } 96%, 100% { transform: scaleX(0); } }
.m-merge { position: relative; width: 150px; height: 72px; }
.m-merge i { position: absolute; top: 8px; width: 56px; height: 56px; background: currentColor; animation: mg 5s var(--ease) infinite; }
.m-merge i:nth-child(1) { left: 47px; --x: -47px; } .m-merge i:nth-child(2) { left: 47px; --x: 47px; opacity: .55; }
.m-merge b { position: absolute; left: 47px; top: 8px; display: grid; place-items: center; width: 56px; height: 56px; color: var(--on-hi); font-size: 26px; animation: mgb 5s infinite; }
@keyframes mg { 0%, 12% { translate: var(--x) 0; } 34%, 84% { translate: 0 0; } 100% { translate: var(--x) 0; } }
@keyframes mgb { 0%, 32% { opacity: 0; transform: scale(.5); } 40%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.m-tg { width: 112px; height: 62px; padding: 6px; border-radius: 999px; background: currentColor; }
.m-tg i { display: block; width: 50px; height: 50px; border-radius: 50%; background: var(--g); translate: 50px 0; animation: tg 5s var(--ease) infinite; }
@keyframes tg { 0%, 40% { translate: 0 0; } 50%, 90% { translate: 50px 0; } 100% { translate: 0 0; } }
.m-free { display: grid; gap: 8px; width: 190px; }
.m-free span { position: relative; padding: 9px 14px; border-radius: 12px; background: var(--soft2); font-size: 15px; text-align: left; }
.m-free span::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--hi); transform-origin: left; animation: strike 5s var(--ease) infinite; }
.m-free span:last-child::after { animation-delay: .3s; }
@keyframes strike { 0%, 12% { transform: scaleX(0); } 28%, 86% { transform: none; } 96%, 100% { transform: scaleX(0); } }
.m-src { position: relative; display: grid; align-content: center; gap: 9px; width: 78px; height: 96px; padding: 16px; background: currentColor; }
.m-src u { display: block; height: 6px; background: var(--g); }
.m-src b { position: absolute; right: -18px; top: -12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--on-hi); color: var(--hi); animation: bob 1.8s ease-in-out infinite alternate; }

.more .glyph { animation: pop .55s var(--ease) both; animation-delay: calc(var(--i) * .05s); }
.js .more:not(.in) .glyph { animation-play-state: paused; }

/* 左右排版的卡片變窄時，圖表跟著縮，才不會壓到手機 */
@media (min-width: 834px) and (max-width: 1068px) {
  .lv { --bw: 20px; --gp: 3px; }
  .lv em { left: 3px; width: 14px; height: 14px; }
}
@media (max-width: 833px) {
  .sc-fan .device { --w: 36%; }
  .sc-fan .device:nth-child(1) { left: -5%; top: 34px; rotate: -3deg; } .sc-fan .device:nth-child(2) { left: 32%; top: 10px; } .sc-fan .device:nth-child(3) { right: -5%; top: 34px; rotate: 3deg; }
  .sc-exam { padding: 8px 22px 18px; }
  .sc-exam .ans { grid-template-columns: 22px repeat(4, 1fr); }
  .sc-exam .ans:nth-child(n+7) { display: none; }
  .sc-levels .device { top: 14px; right: -5%; --w: 45%; rotate: 3deg; }
  .lv-r { left: 32px; top: 10px; padding: 9px 13px; border-radius: 16px; } .lv-r small { font-size: 12px; } .lv-r b { font-size: 21px; }
  .lv { --bw: 25px; --gp: 3px; --sy: 22px; left: 32px; bottom: 32px; }
  .lv > i { height: calc(38px + var(--i) * var(--sy)); padding-bottom: 5px; }
  .lv b { font-size: 13px; }
  .lv em { left: 5px; bottom: 44px; width: 15px; height: 15px; }
  .sc-stream .device { --w: 44%; left: 1%; top: 12px; rotate: -3deg; }
  .sr-w { left: 49%; right: 3%; top: 16px; gap: 7px; }
  .sr { padding: 9px 11px; }
  .sr:nth-child(n+4) { display: none; }
  .sc-stage > .device { --w: 40%; top: 14px; } .sc-stage > .device:nth-child(1) { left: -4%; rotate: -2deg; } .sc-stage > .device:nth-child(2) { right: -4%; rotate: 2deg; }
  .st-c { top: 70px; width: 76px; margin-left: -38px; } .st-o { width: 60px; height: 60px; border-radius: 21px; } .st-o svg { width: 33px; } .st-l { font-size: 15px; }
}
@media (max-width: 734px) {
  .scene { top: 176px; bottom: 54px; padding: 0 22px; }
  .acard--s .scene { top: 156px; }
  .gcard .scene { top: 0; bottom: 0; padding: 0; }
  .lv-r { left: 22px; }
  .lv { --bw: 21px; left: 22px; bottom: 24px; }
  .lv em { left: 3px; }
  .sc-ph { padding: 0; }
  .sc-ph .device { --w: 250px; }
  .ph-low .device { --w: min(92vw, 316px); left: calc(50% - min(46vw, 158px)); top: 84px; }
  .ph-tilt .device { --w: 268px; left: calc(50% - 140px); }
  .ph-hang .device { --w: 284px; left: calc(50% - 142px); }
  .acard--flip { padding-bottom: 60px; } .acard--flip .scene { bottom: 214px; }
  .ring { width: 92px; height: 92px; } .ring svg { inset: 9px; width: 74px; height: 74px; } .td { padding-block: 8px; }
  .dk { height: 270px; } .sw-c { height: 300px; }
  .sy { padding: 15px; gap: 10px; } .sy i { font-size: 13px; }
  .wp > b { font-size: 52px; }
  .sch { height: 60px; font-size: 22px; } .sch-h { height: 60px; top: calc(50% - 150px); }
  @keyframes rowh { 0%, 16% { translate: 0 0; } 20%, 36% { translate: 0 60px; } 40%, 56% { translate: 0 120px; } 60%, 76% { translate: 0 180px; } 80%, 96% { translate: 0 240px; } 100% { translate: 0 0; } }
  .lk { height: 160px; } .lk-s { gap: 6px; } .lk-s i { width: 22px; height: 22px; }
  .cz { width: 280px; }
  .cz-o { left: calc(var(--x) * 96px); width: 88px; }
  .cz-t { left: 123px; }
  .gt { left: calc(50% - 82px); width: 164px; } .gt i { font-size: 19px; }
  .sc-gate span { padding: 7px 12px; font-size: 14px; top: calc(28px + var(--l) * 50px); }
  @keyframes stop { 0% { transform: translateX(-120px); opacity: 1; } 34% { transform: translateX(calc(50cqw - 150px)); opacity: 1; } 42% { transform: translateX(calc(50cqw - 178px)) translateY(40px) rotate(-12deg); opacity: 0; } 100% { opacity: 0; } }
  .pn-t { margin-left: -115px; top: 14px; } .pn { width: 230px; padding: 16px; }
  @keyframes pane { 0%, 24% { transform: translateX(0); } 33%, 57% { transform: translateX(-244px); } 66%, 90% { transform: translateX(-488px); } 100% { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene *, .scene *::before, .scene *::after, .mini *, .mini *::after, .more .glyph { animation: none !important; }
  .sc-gate span { display: none; }
  .sc-gate .go { display: block; left: auto; right: calc(var(--l) * 20px + 16px); }
}

/* 所有方形圖示都用 iOS App 圖示的裁切。放在最後，蓋過前面各處的圓角 */
.glyph, .medal, .st-o, .m-merge i, .gnav__logo img, .hero__icon, .gcard__icon, .close__icon, .ring::before, .sy-o::before, .sy-o::after {
  border-radius: 0; corner-shape: round; -webkit-mask-box-image: none; mask-border: none;
  -webkit-mask: var(--ios-icon) center / 100% 100% no-repeat; mask: var(--ios-icon) center / 100% 100% no-repeat;
}
/* 遮罩會切掉 box-shadow，這兩個的底色改放在偽元素，陰影和外圈才留得住 */
.ring, .sy-o { border-radius: 0; background: none; box-shadow: none; }
.ring { filter: drop-shadow(0 12px 15px rgba(38, 36, 33, .24)); }
.sy-o { position: relative; isolation: isolate; }
.ring::before, .sy-o::before, .sy-o::after { content: ""; position: absolute; z-index: -1; }
.ring::before, .sy-o::after { inset: 0; background: var(--tile); }
.sy-o::before { inset: -6px; background: var(--g); }
