/* ===== 第8版: 丸いスキットル・結果入力・ひな形・？ヘルプ・同点の順番 ===== */

/* 入力は、モルックのスキットルのように丸く */
.pad-dock .pin-row { gap: 6px; }
.pad-dock .pin, .pad-dock .cn { position: relative; flex: none; width: clamp(36px, 5.8vh, 48px); height: clamp(36px, 5.8vh, 48px); max-width: none; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: var(--wood); font-size: clamp(17px, 2.9vh, 21px); font-weight: 800; line-height: 1; box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; }
.pad-dock .pin::after, .pad-dock .cn::after { content: ""; position: absolute; inset: 4px; border: 2px solid rgba(45, 59, 46, .2); border-radius: 50%; pointer-events: none; }
.pad-dock .pin.risk, .pad-dock .cn.risk { background: #f1dcb8; color: #8a6f3e; border-style: dashed; }
.pad-dock .pin:active, .pad-dock .cn:active { transform: translateY(3px) scale(.95); box-shadow: 0 1px 0 var(--ink); }
.pad-dock .counts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; justify-items: center; }
.cnt-hint { grid-column: 1 / -1; justify-self: stretch; text-align: center; font-size: 11px; font-weight: 800; color: var(--ink-soft); }
.pad-dock .counts button b, .pad-dock .counts button small { display: none; }

/* パーティーカードのアイコンが横に伸びないように */
.pr-main > span:not(.av):not(.ico) { flex: 1; min-width: 0; }

/* ？ヘルプ */
.qbtn { position: relative; flex: none; width: 26px; height: 26px; margin-left: 4px; border: 2.5px solid var(--ink); border-radius: 50%; background: #fff; font-size: 14px; font-weight: 800; line-height: 1; box-shadow: 0 2px 0 var(--ink); }
.qbtn:active { transform: translateY(2px); box-shadow: none; }
.rl .rt { min-width: 0; }
.swrow { display: flex; align-items: center; gap: 6px; border-top: 2px solid var(--paper-line); }
.swrow .switch { flex: 1; border-top: 0; }
.lq { display: flex; align-items: center; font-size: 12px; font-weight: 800; }
.lq.tieh { font-size: 14px; margin-top: 4px; }
.helptext { font-size: 16px; line-height: 2; font-weight: 800; padding: 4px 2px 10px; }

/* ひな形カード */
.presets { display: grid; gap: 8px; }
.preset { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; text-align: left; transition: transform .15s var(--pop), background .15s; }
.preset > span:not(.ico) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.preset b { font-size: 15px; font-weight: 800; } .preset small { font-size: 11px; line-height: 1.5; color: var(--ink-soft); font-weight: 800; }
.preset.on { background: var(--yellow); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.preset .seal { flex: none; margin: 0; background: #fff; }

/* 同点のときの順番 */
.tie { display: grid; gap: 6px; list-style: none; }
.tie li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; }
.tie li.off { opacity: .55; border-style: dashed; }
.tie .no { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 12px; font-weight: 800; }
.tie .tl { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; line-height: 1.35; }
.tie .tg { flex: none; padding: 5px 8px; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--grass-deep); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.tie li.off .tg { background: #fff; color: var(--ink); }
.tie .ud { flex: none; display: grid; gap: 2px; }
.tie .ud button { width: 28px; height: 22px; border: 2px solid var(--ink); border-radius: 7px; background: #fff; font-size: 10px; line-height: 1; padding: 0; }

/* チーム名・アイコンを直せる参加者 */
.enm { width: 100%; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 800; }
.item .grow { display: grid; gap: 2px; }
.item .grow small { color: var(--ink-soft); font-size: 11px; font-weight: 800; }

/* 結果だけ入力: チームごとに区切る */
.mteam { padding: 10px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; display: grid; gap: 8px; }
.mt-head { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.mt-head .tbadge { margin: 0; }
.mt-head b { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.mt-line { border: 0; border-top: 3px solid var(--ink); margin: 0; }
.mvs { text-align: center; padding: 6px 0; font-size: 13px; font-weight: 800; color: var(--ink-soft); letter-spacing: .2em; }
.mwo { margin-top: 12px; padding-top: 10px; border-top: 2px dashed var(--ink-soft); display: grid; gap: 6px; }
.mwo small { font-size: 12px; font-weight: 800; color: var(--ink-soft); text-align: center; }
.vs b .av { margin-bottom: 2px; }

.rule-row .rl { flex: 1; min-width: 0; flex-wrap: nowrap; }
.rule-row .rl .rt { white-space: nowrap; }
.rule-row .stepper b { min-width: 2.8em; }
.rule-row { gap: 6px; }

.mteam { grid-template-columns: minmax(0, 1fr); }
.mteam > * { min-width: 0; }
.mteam input { width: 100%; }
.bar.three h1 { font-size: 15px; white-space: nowrap; }
.b-l { min-width: 0; } .leave { white-space: nowrap; }
.sheet-body { overflow-x: hidden; }
