/* ===== 第6版: アイコンのメニュー・日付の横幅・コート・対戦表・ルールカード ===== */

/* アイコン */
.ico { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 15px; overflow: hidden; }
.ico svg { width: 82%; height: 82%; display: block; }
.ico.xl { width: 72px; height: 72px; border-radius: 20px; border-width: 3.5px; box-shadow: 0 3px 0 var(--ink); }
.ico.sm { width: 32px; height: 32px; border-radius: 10px; border-width: 2.5px; }
.ico.xs { width: 24px; height: 24px; border-radius: 8px; border-width: 2px; }

/* メニューのカード: 左にアイコン、右にことば。全部が1画面に収まる大きさ */
.menus { gap: 14px; }
.menu-card { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 4px solid var(--ink); border-radius: 20px; background: #fff; text-align: left; box-shadow: 0 6px 0 var(--ink); transition: transform .22s var(--pop), box-shadow .22s var(--pop); }
.menu-card:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); transition-duration: .04s; }
.mc-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mc-txt b { font-size: 19px; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-txt small { font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.menu-card .chev { font-size: 28px; color: var(--ink-soft); }
.menu-card.big { padding: 14px; border-radius: 24px; box-shadow: 0 8px 0 var(--ink); }
.menu-card.big .mc-txt b { font-size: 28px; }
.menu-card.big .mc-txt small { font-size: 13px; }
.menu-card.tour { background: var(--ink); color: #fff; box-shadow: 0 6px 0 var(--orange); }
.menu-card.tour small, .menu-card.tour .chev { color: #cfe3d2; }
.reco { position: absolute; top: -12px; right: 14px; padding: 1px 10px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--grass-deep); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.home { gap: 18px; padding-top: 20px; }
.prog-card { padding: 8px 12px; } .pg-lv { width: 44px; height: 44px; } .pg-lv b { font-size: 19px; }

/* 日付・時刻の入力: 横幅をそろえる（iPhone で幅が崩れていた） */
input.date, input[type=date], input[type=time] { display: block; width: 100%; max-width: 100%; min-width: 0; height: 50px; padding: 0 12px; -webkit-appearance: none; appearance: none; line-height: 50px; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; margin: 0; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { margin: 0; }
.field { min-width: 0; } .two-col > * { min-width: 0; }

/* アイコン付きの行・スイッチ */
.rl { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 800; }
.rule-row { font-size: 15px; }
.switch .rl { flex: 1; }
.rcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 8px; padding: 8px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; min-width: 0; }
.rc .ico { grid-row: 1 / span 2; }
.rc small { font-size: 10px; font-weight: 800; color: var(--ink-soft); line-height: 1.2; align-self: end; }
.rc b { font-size: 14px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; align-self: start; }
.stepper-bar span { flex-direction: column; gap: 2px; }
.stepper-bar i { width: 26px; height: 26px; }

/* 形式のカード: アイコン＋みじかいことば */
.fmt { display: flex; align-items: center; gap: 10px; padding: 10px; }
.fmt .ico { width: 48px; height: 48px; }
.fmt-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fmt b { padding-right: 0; font-size: 16px; }
.fmt .seal { position: static; margin: 0; flex: none; }
.fmt-meta { margin-top: 2px; gap: 2px 10px; font-size: 12px; }

/* タブにもアイコン */
.ico-tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px 4px; font-size: 12px; }
.ico-tabs button.on { padding: 7px 2px 6px; font-size: 12px; }
.tb-i { display: block; line-height: 0; } .tb-i .ico { width: 22px; height: 22px; border-width: 2px; border-radius: 7px; }

/* コート */
.mcard.idle { background: #f3f1e6; box-shadow: 0 4px 0 var(--ink-soft); border-color: var(--ink-soft); }
.mc-head .court { font-size: 14px; }
.vs { margin: 8px 0 12px; }
.vs b { display: grid; gap: 2px; justify-items: center; font-size: 20px; }
.vs b em { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mc-acts { grid-template-columns: 1fr; }

/* 対戦表（クロステーブル） */
.tbl.cross { table-layout: fixed; min-width: 0; }
.tbl.cross th { font-size: 10px; padding: 3px 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl.cross .rh { width: 76px; text-align: left; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.tbl.cross td.x { padding: 4px 1px; font-size: 16px; font-weight: 800; line-height: 1.1; }
.tbl.cross td.x small { display: block; font-size: 9px; font-weight: 800; color: var(--ink-soft); }
.x.self { background: repeating-linear-gradient(45deg, #e8e2cf 0 4px, #f6f1e0 4px 8px); }
.x.w { background: #e4f5d4; color: var(--grass-deep); } .x.l { color: var(--red); } .x.d { background: #fff4d6; }
.x.live { background: var(--yellow); } .x.wait { color: var(--ink-soft); font-size: 14px !important; } .x.none { color: #bbb; }
.rd { margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--ink-soft); }
.plain-list .w { color: var(--grass-deep); }

.nn { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow); font-size: 10px; font-weight: 800; color: var(--ink); }
.tbl.cross th { font-size: 12px; }
