/* オープニングのスタイルが style.css にあった頃、その .ph の指定がこのページにも当たっていた（intro.css へ移したあとも見た目を変えないよう、その分を残す） */
.ph { position: relative; width: min(88%, 300px); height: 118%; margin: 14px auto 0; border-radius: 42px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 0 0 7px var(--bg-2), 0 0 0 8px var(--line), 0 40px 70px -40px rgba(0, 0, 0, .35); font-family: var(--font-body); font-weight: 400; text-align: left; line-height: 1.5; letter-spacing: .02em; }
.ct-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 56px); align-items: start; }
/* タブレットの縦向きから、アカウントの設定を画面の横に並べ、変化を同時に見られるようにする */
@media (min-width: 760px) { .ct-stage { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (min-width: 1000px) { .ct-stage { grid-template-columns: minmax(0, 1fr) 340px; } }

/* 画面（スマートフォンとつながりの図を同じ場所に重ねる） */
.screen { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; }
.phone, .net { grid-area: 1 / 1; }

/* スマートフォン（どちらのテーマでも明るい画面のため、色は固定） */
.phone { width: min(360px, 100%); background: #131417; border-radius: 44px; padding: 10px; box-shadow: 0 0 0 1px rgba(128, 128, 128, .28), 0 40px 80px -40px rgba(0, 0, 0, .55); transition: transform .8s cubic-bezier(.7, 0, .2, 1), opacity .45s ease .35s, visibility 0s; }
.ph { position: relative; overflow: hidden; background: #fff; color: #1b1b1b; border-radius: 34px; height: clamp(540px, 72vh, 640px); display: flex; flex-direction: column; font-family: var(--font-body); letter-spacing: .02em; }
.ph-sb { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 4px; font-size: .75rem; font-weight: 700; flex: none; }
.ph-sb .ic { display: flex; align-items: flex-end; gap: 2px; }
.ph-sb .ic i { width: 3px; background: #1b1b1b; border-radius: 1px; }
.ph-sb .ic i:nth-child(1) { height: 5px; } .ph-sb .ic i:nth-child(2) { height: 7px; } .ph-sb .ic i:nth-child(3) { height: 9px; }
.ph-sb .ic b { width: 20px; height: 10px; border: 1.5px solid #1b1b1b; border-radius: 3px; margin-left: 6px; position: relative; }
.ph-sb .ic b::after { content: ""; position: absolute; inset: 1px 5px 1px 1px; background: #1b1b1b; border-radius: 1px; }
.ph-bar { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px; border-bottom: 1px solid #ececec; flex: none; }
.ph-back { font-size: 1.5rem; line-height: 1; color: #555; margin-right: 2px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #e3922f, #b9471a); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .86rem; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e9a04a; }
.ph-who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ph-who b { font-size: .9rem; }
.ph-who small { font-size: .75rem; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-log { flex: 1; overflow-y: auto; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.m { max-width: 80%; font-size: .84rem; line-height: 1.7; padding: 8px 13px; border-radius: 18px; animation: rise .32s cubic-bezier(.2, .8, .2, 1) both; overflow-wrap: anywhere; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.m.them { align-self: flex-start; background: #f0f0f3; border-bottom-left-radius: 6px; }
.m.me { align-self: flex-end; background: #ffe2c4; color: #3a1d05; border-bottom-right-radius: 6px; }
.m.code { font-family: var(--mono); font-size: 1rem; letter-spacing: .18em; }
.m.sys { align-self: center; background: none; color: #6b6b6b; font-size: .75rem; padding: 0; }
.m.typing { color: #8a8a8a; letter-spacing: .3em; }
.pcard { display: block; margin: 2px 0 8px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e4e4e8; }
.pimg { display: block; height: 96px; background: radial-gradient(circle at 68% 62%, #fff4c9 0 9%, transparent 10%), linear-gradient(180deg, #f6c66c 0%, #f08a5d 52%, #7b5a8f 100%); position: relative; }
.pimg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: #3d3149; clip-path: polygon(0 60%, 12% 40%, 22% 55%, 35% 20%, 48% 50%, 60% 35%, 74% 60%, 86% 30%, 100% 50%, 100% 100%, 0 100%); }
.pcap { display: block; padding: 6px 10px 8px; font-size: .78rem; line-height: 1.55; font-weight: 700; }
.pcap small { display: block; font-weight: 400; color: #666; font-size: .75rem; }
.ph-rep { flex: none; padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 8px; background: #fafafa; border-top: 1px solid #ececec; min-height: 66px; }
.ph-rep:focus { outline: none; }
.rp { appearance: none; min-height: 44px; border: 1.5px solid #c2531c; background: #fff; color: #8f3a0e; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: .82rem; font-weight: 700; line-height: 1.5; cursor: pointer; touch-action: manipulation; animation: rise .3s ease both; transition: background .2s, transform .15s; }
@media (hover: hover) { .rp:hover { background: #fff1e4; } }
.rp:active { transform: scale(.98); }
.rp.quiet { border-color: #9a9a9a; color: #444; font-weight: 400; }
.rp:focus-visible, .pc-end:focus-visible { outline: 2px solid #c03a22; outline-offset: 2px; }

/* 通知 */
.ph-nts { position: absolute; left: 8px; right: 8px; top: 34px; z-index: 7; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.nt { background: rgba(244, 244, 247, .98); color: #1b1b1b; border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .05); padding: 9px 12px; display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; font-size: .78rem; line-height: 1.6; animation: ntIn .55s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes ntIn { from { transform: translateY(-130%); opacity: 0; } }
.nt .ic { grid-row: span 2; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; margin-top: 2px; }
.nt .ic svg { width: 16px; height: 16px; }
.nt .ic.sms { background: #2a9d4f; }
.nt .ic.app { background: linear-gradient(135deg, #f2a53a, #c9531b); }
.nt .hd { display: flex; justify-content: space-between; gap: 8px; color: #555; font-size: .75rem; }
.nt .bd b { font-family: var(--mono); letter-spacing: .12em; }
.nt.bad .bd { color: #b3261e; }
.nt.stack { animation: none; box-shadow: 0 7px 0 -3px #e4e4e8, 0 13px 0 -6px #d9d9de, 0 10px 28px rgba(0, 0, 0, .2); }

/* ノイズ */
.ph::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 5px), linear-gradient(90deg, rgba(255, 40, 90, .3), rgba(0, 200, 255, .3)); }
.ph.glitch::after { animation: glitch .9s steps(7) both; }
.ph.glitch .ph-log { animation: shake .9s steps(6) both; }
@keyframes glitch { 0% { opacity: 0; } 12% { opacity: 1; transform: translateX(-5px); } 30% { transform: translateX(6px) skewX(-5deg); } 50% { opacity: .7; transform: translateY(4px); } 72% { opacity: 1; transform: translateX(-3px); } 100% { opacity: 0; transform: none; } }
@keyframes shake { 25% { transform: translateX(-6px); filter: hue-rotate(90deg); } 50% { transform: translateX(5px); } 75% { transform: translateX(-2px); filter: invert(1); } }

/* ログアウト・通話 */
.ph-out, .ph-call { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ph-out { background: #fff; justify-content: flex-start; gap: 10px; padding: 150px 30px 40px; animation: fade .4s ease both; }
.po-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #b9471a; margin-bottom: 10px; }
.po-logo svg { width: 28px; height: 28px; }
.po-h { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 0; }
.po-p { font-size: .76rem; color: #555; margin: 0 0 8px; line-height: 1.7; }
.po-f { width: 100%; border: 1px solid #d6d6da; border-radius: 10px; padding: 9px 12px; font-family: var(--mono); font-size: .78rem; color: #666; text-align: left; background: #fafafa; }
.po-err { color: #b3261e; font-size: .78rem; margin: 2px 0 0; }
.ph-call { background: linear-gradient(180deg, #2b3445, #141821); color: #fff; padding: 44px 20px 24px; gap: 4px; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } }
.pc-av { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #e3922f, #b9471a); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; margin-bottom: 6px; flex: none; transition: width .4s, height .4s, font-size .4s; }
.ph-call.talk { padding-top: 26px; }
.ph-call.talk .pc-av { width: 44px; height: 44px; font-size: 1.05rem; margin-bottom: 2px; }
.ph-call.talk .pc-name { font-size: 1.05rem; }
.pc-name { font-family: var(--font-head); font-size: 1.3rem; }
.pc-st { font-size: .78rem; color: #c3c9d6; }
.pc-lines { flex: 1; min-height: 0; overflow: hidden; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); }
.say { font-size: .78rem; line-height: 1.6; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .12); text-align: left; max-width: 88%; animation: rise .3s ease both; }
.say.me { align-self: flex-end; background: rgba(255, 226, 196, .2); }
.say small { display: block; font-size: .75rem; color: #c3c9d6; }
.pc-end { appearance: none; border: 0; width: 64px; height: 64px; border-radius: 50%; background: #e0413a; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s; }
@media (hover: hover) { .pc-end:hover { transform: scale(1.06); } }
.pc-end svg { width: 28px; height: 28px; transform: rotate(135deg); }

/* 実機のスマートフォンでは、端末の枠を省き、画面の幅と高さいっぱいに表示する */
@media (max-width: 600px) {
  .screen { margin-inline: -8px; align-items: start; }
  .phone { width: 100%; padding: 0; background: none; border-radius: 24px; box-shadow: 0 0 0 1px rgba(128, 128, 128, .3), 0 24px 48px -32px rgba(0, 0, 0, .45); }
  .ph { border-radius: 24px; height: clamp(440px, calc(100vh - 88px), 640px); height: clamp(440px, calc(100svh - 88px), 640px); }
  .ph-sb { display: none; }
  .ph-bar { padding: 12px 14px 10px; }
  .ph-nts { top: 8px; }
  .ph-log { padding: 12px 12px 10px; }
  .m { max-width: 86%; font-size: .9rem; }
  .ph-rep { gap: 6px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .rp { font-size: .88rem; }
  .ph-out { padding-top: clamp(64px, 16svh, 150px); }
  .ph-call { padding-top: 32px; }
  .net .nb { gap: 0 14px; line-height: 1.7; }
  .net .nc { margin-block: -4px; }
}
/* 横向きのスマートフォンでは高さが足りないため、画面を横に広げ、返信を横に並べる */
@media (orientation: landscape) and (max-height: 560px) {
  .phone { width: min(620px, 100%); padding: 6px; border-radius: 30px; }
  .ph { border-radius: 24px; height: max(240px, calc(100vh - 92px)); height: max(240px, calc(100svh - 92px)); }
  .ph-sb { display: none; }
  .ph-nts { top: 8px; }
  .ph-rep { flex-direction: row; flex-wrap: wrap; }
  .rp { flex: 1 1 auto; }
  .ph-out { padding-top: 48px; }
  .ph-call { padding-top: 20px; }
  /* つながりの図は、図を左に、数と説明を右に置く */
  .screen .net { max-width: none; display: grid; grid-template-columns: minmax(0, calc(100svh - 96px)) minmax(0, 260px); grid-template-areas: "gr nb" "gr nc" "gr lg"; align-content: center; justify-content: center; column-gap: 24px; }
  .net .gr { grid-area: gr; }
  .net .nb { grid-area: nb; align-self: end; justify-content: flex-start; }
  .net .nc { grid-area: nc; text-align: left; align-self: center; }
  .net .lg { grid-area: lg; align-self: start; justify-content: flex-start; }
}

/* つながりの図 */
.net { width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 12px; visibility: hidden; opacity: 0; }
.screen.zoom { overflow-x: clip; }
.screen.zoom .net { visibility: visible; opacity: 1; animation: netIn 1s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes netIn { from { opacity: 0; transform: scale(1.14); } }
.screen.zoom .phone { transform: scale(.08); opacity: 0; visibility: hidden; transition: transform .8s cubic-bezier(.7, 0, .2, 1), opacity .4s ease .4s, visibility 0s .8s; }
.nb { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: .84rem; color: var(--ink-2); }
.nb b { font-family: var(--mono); font-weight: 400; font-size: 1.15rem; margin-left: 4px; font-variant-numeric: tabular-nums; }
.nb .r b { color: var(--danger); }
.nb .g b { color: var(--ok); }
.gr { position: relative; width: 100%; aspect-ratio: 1; }
.gr:focus { outline: none; }
.gr svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gr line { stroke: var(--line); stroke-width: 3; }
.gr line.l3 { stroke-width: 2; }
.gr line.hot { stroke: var(--warn); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .45s ease-out forwards; }
.gr line.fell, .gr line.orig { stroke: var(--danger); stroke-width: 4; }
.gr line.saved, .gr line.blocked { stroke: var(--ok); stroke-width: 4; }
.gr line.blocked { stroke-dasharray: .05 .035; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.nd { --s: 15px; position: absolute; width: var(--s); height: var(--s); transform: translate(-50%, -50%); border-radius: 50%; border: 0; padding: 0; margin: 0; background: color-mix(in srgb, var(--ink-3) 50%, var(--surface)); color: var(--ink-2); display: grid; place-items: center; font: inherit; font-family: var(--font-head); font-weight: 700; font-size: .75rem; line-height: 1; letter-spacing: 0; transition: width .25s, height .25s, background .25s, transform .2s; }
.nd.r0 { --s: 52px; z-index: 2; background: var(--ink); color: var(--bg); font-size: .8rem; }
.nd.r1 { --s: 26px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.nd.r3 { --s: 8px; }
.nd svg { display: none; width: 58%; height: 58%; }
.nd.act { --s: 32px; z-index: 4; background: var(--warn); color: var(--accent-ink); box-shadow: none; cursor: pointer; touch-action: manipulation; animation: blink .7s ease-in-out infinite alternate; }
/* 押せる範囲は、見た目の円より一回り大きくとる（指で押しやすくするため） */
.nd.act::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
@media (hover: hover) { .nd.act:hover { transform: translate(-50%, -50%) scale(1.12); } }
@media (pointer: coarse) { .nd.act { --s: 36px; } .nd.act::before { inset: -8px; } }
.nd.act::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--warn); animation: halo var(--win, 2.8s) linear forwards; pointer-events: none; }
.nd.act .t, .nd.safe .t { display: none; }
.nd.act .i-call, .nd.safe .i-sh { display: block; }
.nd.ping { background: var(--warn); box-shadow: none; }
.nd.r3.ping { --s: 11px; }
.nd.red { background: var(--danger); color: var(--accent-ink); box-shadow: none; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.nd.r2.red { --s: 17px; }
.nd.safe { background: var(--ok); color: var(--accent-ink); box-shadow: none; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.nd.r1.safe { --s: 28px; }
.nd.r2.safe { --s: 21px; }
.nd.gray { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink-3); }
.nd.r3.gray { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.nd.shield { background: var(--ok); color: var(--accent-ink); box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok) 22%, transparent); }
.nd:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@keyframes blink { to { box-shadow: 0 0 0 7px color-mix(in srgb, var(--warn) 30%, transparent); } }
@keyframes halo { from { transform: scale(1.7); opacity: 1; } to { transform: scale(1); opacity: .2; } }
@keyframes haloR { from { opacity: 1; } to { opacity: .12; } }
@keyframes pop { 0% { transform: translate(-50%, -50%) scale(.5); } }
.nc { min-height: 3.6em; margin: 0; text-align: center; font-size: .86rem; color: var(--ink-2); line-height: 1.8; }
.lg { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: .76rem; color: var(--ink-3); }
.lg span { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lg .l-red { background: var(--danger); } .lg .l-ok { background: var(--ok); } .lg .l-gray { box-shadow: inset 0 0 0 2px var(--ink-3); }

/* アカウントの設定 */
.side { display: flex; flex-direction: column; gap: 32px; }
.acct { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 24px 60px -44px rgba(0, 0, 0, .35); }
.ac-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ac-logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #f2a53a, #c9531b); display: grid; place-items: center; flex: none; }
.ac-logo svg { width: 20px; height: 20px; }
.ac-head b { display: block; font-family: var(--font-head); font-size: .98rem; line-height: 1.4; }
.ac-head small { display: block; font-size: .78rem; color: var(--ink-3); line-height: 1.4; }
.ac-rows { margin: 0; }
.ac-r { display: grid; grid-template-columns: 8.6em 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .82rem; line-height: 1.7; border-radius: 6px; }
.ac-r:last-child { border-bottom: 0; }
.ac-r dt { color: var(--ink-3); }
.ac-r dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ac-r dd span { display: block; }
.ac-r .bad, .ac-r.bad dd { color: var(--danger); }
.ac-r .warn, .ac-r.warn dd { color: var(--warn); }
.ac-r .ok, .ac-r.ok dd { color: var(--ok); }
.ac-r .gone { text-decoration: line-through; color: var(--ink-3); }
.ac-r.flash { animation: rowFlash 1.2s ease; }
.ac-r.ok.flash { animation-name: rowFlashOk; }
@keyframes rowFlash { 0%, 40% { background: var(--accent-soft); } }
@keyframes rowFlashOk { 0%, 40% { background: var(--ok-soft); } }
.ac-set { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); animation: rise .4s ease both; }
/* 結果から戻ってきたとき、どこを変えればよいかを一瞬光らせて示す */
.ac-set.flash { animation: setFlash 1.6s ease; border-radius: 12px; }
@keyframes setFlash { 0%, 45% { background: var(--accent-soft); box-shadow: 0 0 0 8px var(--accent-soft); } }
.ac-set h3 { font-size: .92rem; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 12px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .8rem; font-weight: 700; padding: 8px 4px; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s; }
@media (hover: hover) { .seg button:hover { color: var(--ink); } }
@media (pointer: coarse) { .seg button, .ac-set .btn, .res .btn { min-height: 44px; } }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.seg-d { font-size: .8rem; color: var(--ink-2); line-height: 1.8; margin: 10px 0 0; min-height: 3.6em; }
.ac-set .btn { width: 100%; margin-top: 12px; }

/* 結果 */
.res:empty { display: none; }
.res .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.5rem); line-height: 1.55; margin-bottom: 12px; word-break: auto-phrase; text-wrap: balance; }
.res .big:focus { outline: none; }
.res.bad .big { color: var(--danger); }
.res.good .big { color: var(--ok); }
.res p { color: var(--ink-2); font-size: .92rem; }
.score { display: flex; gap: 0 24px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0 0 1.4em; }
.score b { font-family: var(--mono); font-weight: 400; font-size: 1.3rem; margin: 0 2px 0 6px; }
.score .r b { color: var(--danger); } .score .g b { color: var(--ok); }
.rec h3 { font-size: 1rem; margin: 8px 0 12px; }
.rec ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rec li { counter-increment: r; position: relative; margin: 0; padding: 0 0 16px 34px; color: var(--ink-3); }
.rec li::before { content: counter(r); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; }
.rec li b { display: block; font-family: var(--font-head); font-size: .92rem; line-height: 1.6; }
.rec li p { font-size: .84rem; margin: 4px 0 0; display: none; }
.rec li.now, .rec li.done { color: var(--ink); }
.rec li.now p, .rec li.done p { display: block; }
.rec li.now::before { border-color: var(--accent); color: var(--accent); }
.rec li.done::before { content: "✓"; content: "✓" / ""; background: var(--ok); border-color: var(--ok); color: var(--accent-ink); }
.rec li .btn { margin-top: 10px; }
.res .btns { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .phone, .screen.zoom .phone { transition: none; }
  .screen.zoom .net { animation: none; }
  .m, .rp, .nt, .ph-out, .ph-call, .say, .ac-set, .nd.red, .nd.safe, .ac-r.flash, .ph.glitch .ph-log { animation: none; }
  .ac-set.flash { animation: none; background: var(--accent-soft); box-shadow: 0 0 0 8px var(--accent-soft); }
  .ph.glitch::after { animation: none; opacity: .6; }
  .nd.act { animation: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 30%, transparent); }
  .nd.act::after { animation-name: haloR; }
  .gr line.hot { animation: none; stroke-dashoffset: 0; }
}

.keys { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .keys { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .keys { grid-template-columns: repeat(3, 1fr); } }
.keys > div { background: var(--bg-2); padding: clamp(22px, 3vw, 32px); }
.keys h3 { font-size: 1.02rem; margin-bottom: 8px; }
.keys p { color: var(--ink-2); font-size: .92rem; }
.ladder { display: grid; gap: 16px; margin-bottom: clamp(48px, 7vw, 72px); }
@media (min-width: 820px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.rung { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.rung .k { font-family: var(--mono); font-size: .74rem; letter-spacing: .15em; color: var(--ink-3); }
.rung h3 { font-size: 1.06rem; }
.rung p { color: var(--ink-2); font-size: .9rem; margin: 0; }
.rung .meter { margin-top: auto; }
.rung.best { border-color: var(--ok); }
.rung.best .meter > span { background: var(--ok); }

/* 元は style 属性だった指定（CSP の style-src に 'unsafe-inline' を付けないため、ここへ移した） */
.meter > .w-45 { width: 45%; }
.meter > .w-70 { width: 70%; }
.meter > .w-95 { width: 95%; }
.mt-wide { margin-top: clamp(72px, 10vw, 112px); }
