/* 仕上げ：タイトル画面、キービジュアル、演出 */
#title { position: fixed; inset: 0; z-index: 8500; display: grid; place-items: center; color: #fff; background: radial-gradient(90% 70% at 50% 40%, #1a1c44cc, #07080fe8); backdrop-filter: blur(10px); animation: fade .8s; transition: opacity .6s, transform .6s; }
#title.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.t-in { width: 620px; text-align: center; }
.t-lead { margin: 0 0 6px; color: #b4b9d6; font-size: 16px; letter-spacing: .3em; animation: fadeUp2 .8s .2s both; }
#title h1 { margin: 0; font: 800 76px/1.12 "M PLUS Rounded 1c", var(--ui); letter-spacing: -.01em; animation: fadeUp2 .8s .45s both; }
.t-word { position: relative; display: inline-block; background: linear-gradient(100deg, #ff6fa3, #ff9a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-word i { position: absolute; left: -4%; top: 54%; height: 9px; width: 0; border-radius: 5px; background: #fff; box-shadow: 0 0 18px #fff8; animation: strike 4.6s cubic-bezier(.5,0,.3,1) 1.4s infinite; }
/* 取り消し線は、最後まで引ききる寸前で戻されてしまう */
@keyframes strike { 0% { width: 0; } 48% { width: 92%; } 56% { width: 92%; } 66% { width: 0; } 100% { width: 0; } }
@keyframes fadeUp2 { from { opacity: 0; transform: translateY(16px); } }
.t-rec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 34px 0 26px; animation: fadeUp2 .8s .7s both; }
.t-rec div { padding: 12px 6px; border-radius: 12px; background: #ffffff0f; border: 1px solid #ffffff14; }
.t-rec dt { font-size: 11.5px; color: #a9aecf; }
.t-rec dd { margin: 2px 0 0; font: 800 22px "M PLUS Rounded 1c", var(--ui); font-variant-numeric: tabular-nums; }
.t-seg { display: inline-flex; padding: 4px; border-radius: 24px; background: #ffffff12; animation: fadeUp2 .8s .85s both; }
.t-seg button { padding: 8px 26px; border: 0; border-radius: 20px; background: none; color: #c9cde6; font-weight: 500; font-size: 14px; transition: background .2s, color .2s; }
.t-seg button.on { background: #fff; color: #14152c; font-weight: 700; }
.t-note { margin: 10px 0 24px; color: #a9aecf; font-size: 12.5px; animation: fadeUp2 .8s .85s both; }
.t-start { padding: 16px 78px; border: 0; border-radius: 34px; background: linear-gradient(100deg, #ff6fa3, #ff9a5a); color: #2a0f1c; font: 800 20px "M PLUS Rounded 1c", var(--ui); box-shadow: 0 14px 40px #ff6fa355; transition: transform .15s, box-shadow .15s; animation: fadeUp2 .8s 1s both; }
.t-start:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 20px 50px #ff6fa377; }
.t-start:active { transform: scale(.97); }
.t-start:focus-visible, .t-seg button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.t-foot { margin: 26px 0 0; color: #7d82a6; font-size: 11.5px; animation: fadeUp2 .8s 1.1s both; }
.t-wipe { border: 0; background: none; color: #7d82a6; font-size: 11.5px; text-decoration: underline; text-underline-offset: 2px; }
.t-wipe:hover { color: #fff; }

/* キービジュアル */
.mt-thumb { background-size: cover !important; background-position: center !important; }
.mt-hero.title { background-size: 100% 100%, auto 100%; background-position: 0 0, right center; background-repeat: no-repeat; min-height: 270px; background-color: #120f1a; }
.pl-scr.art { animation: none; background: #000; padding: 0; }
.pl-scr.art canvas { display: block; width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.pl-scr.art > b { position: absolute; left: 22px; top: 16px; font-size: 16px; z-index: 1; }
.pl-scr.art > small { position: absolute; left: 22px; top: 40px; z-index: 1; }
.pl-scr.art .pl-msg { z-index: 2; }

/* 最後の1分 */
body.tense #desktop::after { content: ""; position: absolute; inset: 0; z-index: 470; pointer-events: none; box-shadow: inset 0 0 150px 20px #ff203a50; animation: tense 1s ease-in-out infinite; }
@keyframes tense { 50% { box-shadow: inset 0 0 210px 46px #ff203a85; } }
body.tense .tb-clock b { font-size: 15px; }

/* エンディング */
#sticky .done { position: relative; }
#sticky .done::after { content: ""; position: absolute; left: -4px; top: 52%; height: 3px; width: 0; background: #d6334a; border-radius: 2px; animation: cross .9s cubic-bezier(.6,0,.2,1) .1s forwards; }
#sticky .done u { text-decoration: none; }
@keyframes cross { to { width: 104%; } }
.res .cert { display: block; width: 560px; max-width: 100%; margin: 0 auto 4px; border-radius: 6px; box-shadow: 0 24px 70px #000c; animation: certIn .9s cubic-bezier(.2,.9,.2,1) both; }
@keyframes certIn { from { opacity: 0; transform: translateY(40px) rotate(-3deg) scale(.92); } }
.res.ok { width: 640px; }
