/* 影走り: 夜の空き地を走る、黒と生成りと一点の橙。角は立てる */
html, body { margin: 0; height: 100%; background: #0e0c09; }
body { overflow: hidden; touch-action: manipulation; }

.kh {
  --bg: #16130f; --ink: #e9dfc8; --hot: #ff6a2b; --dim: #8a7f6c; --line: #3a3128;
  background: var(--bg); color: var(--ink);
  font-family: "DotGothic16", monospace; font-size: 20px; line-height: 1.45;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.kh * { box-sizing: border-box; }
.kh .run { position: absolute; inset: 0; }
.kh .run-cv { position: absolute; left: 0; top: 0; display: block; touch-action: none; }

/* とぶ／ふせる */
.kh .run-pad { position: absolute; left: 0; right: 0; bottom: 0; height: 112px; display: flex; gap: 16px; padding: 10px 24px 14px; background: var(--bg); border-top: 2px solid var(--line); }
.kh.pt .run-pad { height: 200px; padding: 18px 24px 30px; }
.kh .run-pad[hidden] { display: none !important; }
.kh .pb { flex: 1; font: inherit; color: var(--ink); background: transparent; border: 3px solid var(--ink); border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; touch-action: none; cursor: pointer; }
.kh .pb b { font-weight: normal; font-size: 32px; }
.kh.pt .pb b { font-size: 40px; }
.kh .pb small { font-size: 14px; color: var(--dim); }
.kh .pb.on { background: var(--ink); color: var(--bg); }
.kh .pb.on small { color: var(--bg); }

/* 画面（タイトル・結果など） */
.kh .ov { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px; padding: 36px 56px; background: rgba(22, 19, 15, .92); overflow: hidden; }
.kh.pt .ov { padding: 56px 36px; gap: 20px; }
.kh .ov[hidden] { display: none !important; }
.kh .ov-title { background: rgba(22, 19, 15, .66); }
.kh h1 { font-size: 92px; font-weight: normal; margin: 0; line-height: 1; letter-spacing: .06em; }
.kh h2 { font-size: 36px; font-weight: normal; margin: 0 0 4px; }
.kh p { margin: 0; }
.kh .lead { margin-top: 10px; font-size: 22px; }
.kh .sub, .kh .cnt, .kh .t-how, .kh small { color: var(--dim); font-size: 17px; }
.kh b { font-weight: normal; }
.kh kbd { font: inherit; font-size: 15px; border: 1px solid var(--dim); padding: 0 6px; margin: 0 2px; }
.kh .t-hero { cursor: pointer; }

.kh .btn { font: inherit; font-size: 22px; padding: 10px 22px; background: var(--bg); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; cursor: pointer; touch-action: manipulation; }
.kh .btn:hover, .kh .btn:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
.kh .btn.main { background: var(--hot); border-color: var(--hot); color: var(--bg); font-size: 40px; padding: 12px 52px; }
.kh .btn.main:hover, .kh .btn.main:focus-visible { background: var(--ink); border-color: var(--ink); }
.kh .btn.on { background: var(--ink); color: var(--bg); }
.kh .lnk { font: inherit; font-size: 18px; background: none; border: 0; border-bottom: 2px solid var(--dim); color: var(--ink); padding: 2px 0; cursor: pointer; }
.kh .lnk:hover { border-color: var(--hot); }
.kh input { font: inherit; font-size: 22px; background: #0e0c09; color: var(--ink); border: 2px solid var(--dim); border-radius: 0; padding: 8px 10px; width: 8em; user-select: text; -webkit-user-select: text; }
.kh input:focus { border-color: var(--hot); outline: none; }
.kh .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* タイトル */
.kh .t-go { display: flex; align-items: center; gap: 36px; margin-top: 8px; }
.kh.pt .t-go { flex-direction: column; align-items: flex-start; gap: 18px; }
.kh .t-course { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.kh .cno { color: var(--hot); font-size: 30px; }
.kh .t-party { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; border-top: 2px solid var(--line); padding-top: 16px; margin-top: auto; }
.kh.pt .t-party { flex-direction: column; align-items: flex-start; }
.kh .pbox { display: flex; align-items: center; gap: 10px; }
.kh .ph { font-size: 18px; color: var(--dim); min-width: 7em; }
.kh .nf, .kh .no, .kh .nw, .kh .left { color: var(--ink); }
.kh .t-nav { display: flex; gap: 28px; }

/* コースを選ぶ */
.kh .crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 2px solid var(--line); border-radius: 0; padding: 14px 18px; cursor: pointer; }
.kh .crow.num { cursor: default; }
.kh button.crow:hover { border-color: var(--ink); }
.kh .crow b { font-size: 24px; min-width: 6em; }
.kh .crow > span { color: var(--dim); font-size: 17px; flex-basis: 100%; }
.kh .wno { color: var(--hot); }
.kh .recent { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kh .chip { font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 1px solid var(--dim); border-radius: 0; padding: 4px 10px; cursor: pointer; }
.kh .chip:hover { border-color: var(--hot); }

/* 結果 */
.kh .ov-result, .kh .ov-party { display: grid; grid-template-columns: 1fr 380px; column-gap: 44px; align-content: start; }
.kh.pt .ov-result, .kh.pt .ov-party { grid-template-columns: 1fr; row-gap: 20px; }
.kh .ov-party:not(:has(.r-main)) { display: flex; }
.kh .r-main, .kh .r-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kh .rc { color: var(--dim); }
.kh .rm { font-size: 30px; line-height: 1; }
.kh .rm b { font-size: 112px; color: var(--hot); }
.kh .rb.hot { color: var(--hot); }
.kh .rwhere { font-size: 22px; }
.kh .rh { color: var(--dim); border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.kh .rl, .kh .rec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kh .rl li { display: grid; grid-template-columns: 2.2em 1fr auto auto; gap: 10px; align-items: baseline; }
.kh .rl li span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh .rl li small { font-size: 14px; }
.kh .rl li.me { color: var(--hot); }
.kh .rec-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0; max-width: 640px; }

/* 設定 */
.kh .srow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.kh .srow > span { min-width: 5em; color: var(--dim); }
.kh .srow small { flex-basis: 100%; }

/* 共有ボタン（中の仕組みは共通。見た目はこの作品に合わせる） */
.kh .shell-share { gap: 10px; }
.kh .shell-share button { font-family: inherit; font-size: 18px; padding: 8px 16px; border-radius: 0; border: 2px solid var(--dim); background: var(--bg); color: var(--ink); }
.kh .shell-share button:hover { border-color: var(--hot); color: var(--hot); }
.kh .shell-share .shell-done { color: var(--dim); font-size: 15px; }
