/* 🧩 ちから チェック／能力小测（chikara_ui.js）。style.css とは べつの ファイル */
.ckhrow { margin-top:-2px; }
.ckhbtn { display:flex !important; align-items:center; gap:10px; text-align:left; font-size:21px; padding:12px 16px; margin:6px 0; border-color:#b197fc !important; background:#f6f2ff !important; }
.ckhbtn .ckhic { font-size:30px; line-height:1; } .ckhbtn .ckhl { flex:1; } .ckhbtn .ckhl .zhsub { font-size:12px; }
.ckhbtn .ckhn { font-size:14px; background:#e5dbff; color:#5f3dc4; border-radius:12px; padding:3px 9px; white-space:nowrap; }

.ckw .cksub { text-align:center; color:#7048e8; font-weight:700; }
.ckw .ckq { position:relative; text-align:left; padding-right:58px; }
.ckw.ck-intro .ckq, .ckw.ck-rec .ckq, .ckw.ck-span .ckq, .ckw.ck-gng .ckq { text-align:center; padding-right:20px; }
.ckqt { font-size:22px; font-weight:800; line-height:1.9; }
.ckzh { font-size:24px; }
.ckpy { display:block; font-size:15px; color:var(--mute); line-height:1.4; }
.cksay { position:absolute; right:8px; top:8px; width:46px; height:46px; border-radius:50%; border:2px solid var(--line); background:#fff; font-size:22px; }

/* おはなし */
.ckpass { background:#fffdf7; border:2px dashed var(--line); border-radius:18px; padding:10px 14px; margin:8px 0; font-size:20px; line-height:2.1; }
.ckpass .ckpt { font-size:18px; margin-bottom:2px; }
.ckpass .ckline { margin:2px 0; }
.ckpass .ckzh { font-size:22px; }
.ckpass.compact { font-size:16px; line-height:1.9; padding:6px 12px; max-height:34vh; overflow:auto; }
.ckpass.compact .ckzh { font-size:17px; } .ckpass.compact .ckpy { font-size:12px; }
.ckretold { font-size:22px; text-align:center; margin:6px 0; }

/* えらぶ ボタン */
.ckopts { display:grid; gap:10px; margin:12px 0; grid-template-columns:repeat(3,minmax(0,1fr)); }
.ckopts.ck-two, .ckopts.ck-four { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ckopts.ck-list { grid-template-columns:1fr; }
.ckopt { min-height:64px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:10px 8px; border:3px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 4px 0 var(--line); font:inherit; font-size:21px; font-weight:700; color:var(--ink); line-height:1.7; transition:transform .12s, background-color .12s; }
.ck-list .ckopt { align-items:flex-start; text-align:left; padding:10px 14px; }
.ckopt.sel { border-color:#7048e8; background:#f3f0ff; transform:translateY(2px); box-shadow:0 2px 0 #b197fc; }
.ckopt:disabled { opacity:1; } .ckopt:disabled:not(.sel) { opacity:.55; }
.ckopt .zhsub { font-size:13px; }
.ckopt svg { max-width:100%; height:auto; display:block; }
.ckemo { font-size:56px; line-height:1.15; }
.ckhz { font-size:56px; line-height:1.15; font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif; }
.cknum { font-size:30px; font-weight:800; }
.ckrh { font-size:30px; letter-spacing:6px; color:#5f3dc4; }

/* さんすう・ずけい */
.ckseq { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; font-size:34px; margin:8px 0; }
.ckseq span { min-width:44px; text-align:center; } .ckseq .ckqm { color:#7048e8; }
.ckpair { display:flex; justify-content:center; align-items:flex-end; gap:14px; margin:6px 0; flex-wrap:wrap; }
.ckpair > div { display:flex; flex-direction:column; align-items:center; background:#fff; border:2px solid var(--line); border-radius:16px; padding:6px; }
.ckpair small { font-size:14px; text-align:center; }
.ckshape { max-width:130px; height:auto; }

/* きおく */
.ckdots { display:flex; justify-content:center; gap:8px; margin:8px 0; min-height:18px; }
.ckdots i { width:16px; height:16px; border-radius:50%; background:var(--line); }
.ckdots i.on { background:#7048e8; }
.ckpad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:360px; margin:10px auto; }
.ckdig { min-height:64px; font-size:32px; font-weight:800; border:3px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 4px 0 var(--line); }
.ckdig.lit { background:#e5dbff; }
.ckdig:disabled { opacity:.45; }
.ckgrid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; max-width:330px; margin:10px auto; }
.ckcell { aspect-ratio:1; min-height:64px; border:3px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 4px 0 var(--line); }
.ckcell.lit { background:#ffd43b; border-color:#f59f00; }
.ckcell:disabled { opacity:1; }
.ckkeys { display:flex; gap:8px; justify-content:center; margin:14px auto; max-width:460px; }
.ckkey { flex:1; min-height:110px; border-radius:14px; border:3px solid #0002; box-shadow:0 4px 0 #0002; opacity:.75; }
.ckkey.lit { opacity:1; transform:translateY(3px); filter:brightness(1.15); }
.ckkey:disabled { opacity:.55; }
.ck-k0 { background:#ff8787; } .ck-k1 { background:#ffa94d; } .ck-k2 { background:#ffd43b; } .ck-k3 { background:#69db7c; } .ck-k4 { background:#74c0fc; }
.ckgngdemo { display:flex; justify-content:center; gap:30px; font-size:44px; margin:8px 0; }
.ckgpad { display:flex; align-items:center; justify-content:center; width:100%; min-height:52vh; border:4px solid var(--line); border-radius:28px; background:#fff; font-size:120px; touch-action:manipulation; user-select:none; -webkit-user-select:none; }
.ckgpad.hit { background:#f3f0ff; }

/* ふしぎ */
.ckphoto { text-align:center; margin:8px 0; }
.ckphoto img { max-width:100%; max-height:42vh; border-radius:18px; box-shadow:0 3px 10px #0002; }
.ckhint { opacity:.8; }

/* 家長画面 */
.ckpp .ckcav { background:#fff9db; border-radius:14px; padding:8px 12px; margin:8px 0; font-size:14px; }
.ckpp .ckstr { background:#ebfbee; border-radius:14px; padding:8px 12px; margin:6px 0; font-weight:700; }
.ckpp .ckgrow { background:#f3f0ff; border-radius:14px; padding:8px 12px; margin:6px 0; }
.ckpp .ckarea { margin:10px 0; }
.ckpp .cktab { width:100%; border-collapse:collapse; font-size:15px; }
.ckpp .cktab td { border-top:1px solid var(--line); padding:5px 4px; vertical-align:top; }
.ckpp .cktab td:first-child { width:38%; } .ckpp .cktab .zhsub { font-size:12px; }
.ckpp .ckprev { display:block; color:var(--mute); }
.ckbw { display:inline-block; font-size:12px; border-radius:10px; padding:1px 7px; margin-left:4px; background:#e7f5ff; color:#1864ab; }
.ckbw.ck-hi, .ckbw.ck-hi2 { background:#ebfbee; color:#2b8a3e; } .ckbw.ck-pr { background:#fff4e6; color:#d9480f; }
.ckchk { display:block; margin:6px 0; font-size:16px; } .ckchk input { width:22px; height:22px; vertical-align:middle; }
.cknum2 { display:flex; align-items:center; gap:8px; margin:6px 0; } .cknum2 > span { flex:1; } .cknum2 .btn { width:48px; min-height:44px; margin:0; padding:4px; }
.cknum2 b { min-width:28px; text-align:center; font-size:20px; }

@media (max-width:560px) {
  .ckhbtn { font-size:19px; }
  .ckqt { font-size:19px; } .ckpass { font-size:17px; } .ckpass .ckzh { font-size:19px; }
  .ckopt { font-size:18px; min-height:56px; padding:8px 4px; } .ck-list .ckopt { padding:8px 10px; }
  .ckemo, .ckhz { font-size:44px; } .cknum { font-size:26px; }
  .ckgpad { font-size:96px; min-height:46vh; }
  .ckkey { min-height:90px; }
}
