.checker { max-width: 640px; }
#go[aria-disabled="true"] { opacity: .6; cursor: progress; }
/* 例のパスワードは、押せる札として見せる（自分のパスワードを入れたくない人の入口） */
.tries { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.try { appearance: none; font: inherit; font-family: var(--mono); font-size: .95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, transform .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.try::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
@media (hover: hover) { .try:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 14px -10px var(--accent); } }
.try:active { border-color: var(--accent); background: var(--accent-soft); }
/* 試し終えた例は控えめにし、まだの例が目に入るようにする */
.try.tried { color: var(--ink-3); }
.try.tried::before { background: var(--line); }
/* スマートフォンでは、最初の画面に入力欄まで入るよう、見出しまわりを詰める */
@media (max-width: 600px) { .hero { padding-bottom: 36px; } .hero .lead { margin-top: 24px; } .hero h1 { font-size: min(2rem, 7vw); } }
.result { margin-top: 32px; display: none; }
/* 照合中は、結果が入る高さを空けておく（高さはスクリプトが結果の文面から測る） */
.result.wait { display: block; }
.result.show { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.result .count { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 8vw, 3.8rem); line-height: 1.2; color: var(--danger); margin: 8px 0; }
.result .head { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.result.bad .head { color: var(--danger); }
.result.good .head { color: var(--ok); }
.res-next { display: inline-flex; flex-direction: column; margin-top: 20px; padding: 12px 22px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; font-family: var(--font-head); font-weight: 700; color: var(--ink); transition: border-color .2s; }
.res-next .ttl { white-space: nowrap; }
.res-next .lbl { font-family: var(--font-body); font-weight: 400; font-size: .76rem; color: var(--ink-3); }
@media (hover: hover) { .res-next:hover { border-color: var(--accent); color: var(--ink); } }
.res-next:active { border-color: var(--accent); }
.hash { font-family: var(--mono); font-size: clamp(.8rem, 2.6vw, 1rem); word-break: break-all; letter-spacing: .04em; line-height: 1.8; }
.hash .pre { color: var(--accent); }
.hash .suf { color: var(--ink-3); }
.flow { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 820px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.flow .step .k { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .15em; display: block; margin-bottom: 12px; }
.flow .step .v { font-family: var(--mono); font-size: .95rem; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 14px; word-break: break-all; }
.flow .step p { color: var(--ink-2); font-size: .93rem; }
.hashanim { margin-top: 32px; font-family: var(--mono); }
.ha-hash { font-size: clamp(.82rem, 2.6vw, 1.05rem); letter-spacing: .06em; word-break: break-all; color: var(--ink-3); }
.ha-hash b { color: var(--accent); font-weight: 400; }
.ha-send { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: .8rem; color: var(--ink-3); }
.ha-line { flex: 1; height: 1px; background: var(--line); position: relative; }
.ha-pkt { position: relative; z-index: 1; background: var(--accent); color: var(--accent-ink); padding: 2px 10px; border-radius: 4px; opacity: 0; transition: transform .8s cubic-bezier(.5, 0, .3, 1), opacity .3s; }
.ha-pkt.go { opacity: 1; transform: translateX(var(--dx, 0)); }
.ha-me { color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); padding: 2px 10px; border-radius: 4px; }
.ha-srv { border: 1px solid var(--line); padding: 2px 10px; border-radius: 4px; transition: border-color .3s, color .3s; }
.ha-srv.got { border-color: var(--accent); color: var(--accent); }
/* サーバーから候補の一覧が返ってきて、この端末の中で照らし合わせる */
.ha-back { position: relative; height: 30px; margin-top: 10px; }
.ha-ret { position: absolute; right: 0; top: 0; font-size: .8rem; border: 1px solid var(--ink-3); color: var(--ink-2); background: var(--surface); padding: 2px 10px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: transform .8s cubic-bezier(.5, 0, .3, 1), opacity .3s; }
.ha-ret::before { content: "← "; }
.ha-ret.go { opacity: 1; transform: translateX(var(--bx, 0)); }
.ha-hash i { font-style: normal; transition: color .3s, background .3s; }
.ha-hash i.hit { color: var(--danger); background: var(--danger-soft); }
.ha-hash i.miss { color: var(--ok); }
@media (prefers-reduced-motion: reduce) { .ha-pkt, .ha-ret { transition: opacity .2s; } }
.hits { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); line-height: 1.9; max-height: 200px; overflow: auto; margin-top: 12px; }
.hits .me { color: var(--danger); }

/* 元は style 属性だった指定（CSP の style-src に 'unsafe-inline' を付けないため、ここへ移した） */
.btns.go-row { align-items: center; }
