/* Layout: phone-first single column. Sticky app bar, glass cards on a night-sky gradient,
   floating tab bar, and a fixed action bar for the main button of each screen. Deliberately one dark look. */
:root {
  --bg0: #060814;
  --bg1: #0c1130;
  --panel: #131938;          /* solid surfaces (tables, color-mix base) */
  --panel-2: #1b2250;
  --surface: rgba(30, 37, 84, .55);
  --surface-2: rgba(44, 53, 112, .5);
  --line: rgba(150, 165, 255, .14);
  --line-strong: rgba(175, 185, 255, .28);
  --fg: #ece7da;
  --dim: #9ea2c8;
  --accent: #dcb86c;
  --accent-ink: #1b1405;
  --win: #52c79c;
  --loss: #e46d5c;
  --deep: #a395f5;
  --grad-gold: linear-gradient(135deg, #f5dfa4 0%, #d9b15f 48%, #a97b32 100%);
  --grad-win: linear-gradient(135deg, #7fe6c0 0%, #2f9e77 100%);
  --grad-loss: linear-gradient(135deg, #f49a80 0%, #b9432f 100%);
  --r-red: #d65a4a; --r-blue: #4f8be0; --r-yellow: #e0b94a; --r-green: #5fb070;
  --f-display: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --tabbar-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg0); color: var(--fg); }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.6; -webkit-tap-highlight-color: transparent; min-height: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* night sky */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 45% at 50% -8%, rgba(120, 130, 255, .32) 0%, transparent 62%),
    radial-gradient(60% 35% at 88% 12%, rgba(220, 184, 108, .14) 0%, transparent 70%),
    radial-gradient(70% 40% at 0% 70%, rgba(130, 90, 220, .16) 0%, transparent 70%),
    linear-gradient(180deg, #121a48 0%, var(--bg1) 38%, #080b1e 75%, var(--bg0) 100%); }
.sky::after { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 72% 9%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 28%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 86% 34%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 46%, #fff4 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 14%, #ffe9b580 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 52%, #fff4 50%, transparent 51%), radial-gradient(1px 1px at 5% 30%, #fff5 50%, transparent 51%); }

/* app bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(10, 14, 36, .9); }
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: linear-gradient(180deg, rgba(12, 16, 42, .92), rgba(12, 16, 42, .72));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.appbar .in { max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.moon { width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 32%, #fff4d2 0%, #ecc97c 38%, #a77a30 100%);
  box-shadow: 0 0 18px rgba(236, 201, 124, .55), inset -6px -4px 0 rgba(60, 40, 10, .35); }
.brand h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .12em; line-height: 1.2; }
.brand .sub { margin: 0; font-size: 12px; color: var(--dim); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample-note { font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; background: rgba(255,255,255,.03); }

.app { max-width: 520px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom, 0px)); }
.app.has-bar { padding-bottom: calc(var(--tabbar-h) + 120px + env(safe-area-inset-bottom, 0px)); }
.stack-lg { display: grid; gap: 14px; }

/* typography */
h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: .06em; text-wrap: balance; }
.page-title { font-size: 20px; font-weight: 800; letter-spacing: .06em; margin: 4px 2px 0; }
.section { display: grid; gap: 10px; }
.label { font-size: 12px; color: var(--dim); letter-spacing: .08em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.label .req { color: var(--accent); }
.hint { font-size: 12.5px; color: var(--dim); margin: 0; line-height: 1.6; }

/* glass card */
.card-sec { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; display: grid; gap: 12px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.06); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.sec-head h2 { display: flex; align-items: center; gap: 8px; }
.sec-head h2 .req { color: var(--accent); font-size: 12px; }
.sec-head .val { font-size: 12px; color: var(--dim); }

/* chips & tiles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip, .tile-btn {
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--surface-2);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px; line-height: 1.3;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
}
.tile-btn { border-radius: var(--radius); padding: 10px 6px; text-align: center; min-height: 50px; font-weight: 500; font-size: 14px; }
.chip:active, .tile-btn:active, .result-btn:active, .primary:active { transform: scale(.97); }
.chip[aria-pressed="true"], .tile-btn[aria-pressed="true"] {
  background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; font-weight: 700;
  box-shadow: 0 6px 18px -8px rgba(220, 184, 108, .8), inset 0 1px 0 rgba(255,255,255,.45); }
.chip.small { padding: 5px 12px; font-size: 13px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; }
.toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.toggle[aria-pressed="true"] .dot { background: var(--accent-ink); }

/* result */
.result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-btn { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--surface-2);
  border-radius: 14px; padding: 16px 10px; cursor: pointer; font-size: 20px; font-weight: 800; letter-spacing: .3em; transition: transform .12s, box-shadow .15s; }
.result-btn.win { color: var(--win); } .result-btn.loss { color: var(--loss); }
.result-btn.win[aria-pressed="true"] { background: var(--grad-win); color: #04140d; border-color: transparent; box-shadow: 0 8px 22px -10px rgba(82, 199, 156, .9); }
.result-btn.loss[aria-pressed="true"] { background: var(--grad-loss); color: #1c0603; border-color: transparent; box-shadow: 0 8px 22px -10px rgba(228, 109, 92, .9); }
.subpanel { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }

details.opt { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)), var(--surface); }
details.opt > summary { cursor: pointer; padding: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
details.opt > summary::-webkit-details-marker { display: none; }
details.opt > summary .tag { font-size: 12px; color: var(--dim); font-weight: 400; margin-left: auto; text-align: right; }
details.opt > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); margin: -4px 4px 0 4px; transition: transform .15s; flex: none; }
details.opt[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.opt .inner { padding: 0 14px 14px; display: grid; gap: 16px; }

input[type="text"], input[type="date"], input[type="search"], textarea {
  width: 100%; background: rgba(5, 8, 24, .55); border: 1px solid var(--line-strong); color: var(--fg);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #6f7399; }
textarea { min-height: 64px; resize: vertical; }

/* buttons */
.primary { width: 100%; border: 0; border-radius: 14px; background: var(--grad-gold); color: var(--accent-ink); font-weight: 800; font-size: 16px; padding: 15px; cursor: pointer; letter-spacing: .14em;
  box-shadow: 0 10px 26px -12px rgba(220, 184, 108, .9), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .12s; }
.primary:disabled { background: var(--surface-2); color: #7a7ea6; box-shadow: none; cursor: not-allowed; }
.ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); border-radius: 10px; padding: 9px 14px; cursor: pointer; font-size: 14px; }
.ghost.danger { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 45%, transparent); }
.btn-add { border: 1px dashed var(--line-strong); background: rgba(220, 184, 108, .06); color: var(--accent); border-radius: 14px; padding: 13px; cursor: pointer; font-weight: 700; width: 100%; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* fixed action bar above the tab bar */
.action-bar { position: fixed; left: 0; right: 0; z-index: 15; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.action-bar .in { max-width: 520px; margin: 0 auto; display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.action-bar .in::before { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 110px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 20, .92) 55%); }
.action-bar .primary { flex: 1; }
.action-bar .ghost { padding: 14px 16px; border-radius: 14px; background: rgba(20, 26, 60, .9); }
.action-bar .msg { position: absolute; bottom: 100%; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--dim); padding-bottom: 6px; }

/* disclosure rows */
.disc { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012)), var(--surface); overflow: hidden; }
.disc-head { width: 100%; border: 0; background: transparent; padding: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.disc-head:disabled { cursor: not-allowed; opacity: .6; }
.disc-head .k { font-weight: 700; font-size: 15px; flex: none; }
.disc-head .v { margin-left: auto; min-width: 0; font-size: 13px; color: var(--dim); text-align: right; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.disc-head .v.set { color: var(--accent); font-weight: 700; }
.disc-head .v .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 8px; height: 8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); margin: -4px 2px 0 6px; transition: transform .15s; flex: none; }
.disc.open .chev { transform: rotate(-135deg); margin-top: 4px; }
.disc-body { padding: 0 14px 14px; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

/* history */
.day { display: grid; gap: 8px; }
.day-head { font-size: 12px; color: var(--dim); letter-spacing: .08em; display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.day-head b { color: var(--fg); font-size: 14px; letter-spacing: .04em; }
.run { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.015)), var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 12px;
  display: grid; grid-template-columns: 4px 1fr auto auto; gap: 12px; align-items: center; cursor: pointer; text-align: left; width: 100%; }
.run .stripe { align-self: stretch; border-radius: 3px; background: var(--grad-loss); }
.run.win .stripe { background: var(--grad-win); }
.run .main { min-width: 0; display: grid; gap: 2px; }
.run .who { font-weight: 700; }
.run .meta { font-size: 12px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.run .res { font-weight: 800; font-size: 15px; text-align: right; letter-spacing: .1em; }
.run.win .res { color: var(--win); } .run.loss .res { color: var(--loss); }
.run .res small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--dim); }
.run-detail { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 8px; margin-top: -2px; }
.badge { font-size: 11px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 6px; color: var(--dim); white-space: nowrap; }
.badge.deep { color: var(--deep); border-color: color-mix(in srgb, var(--deep) 50%, transparent); }
.badge.ever { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* stats */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015)), var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.tile .k { font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.tile .v { white-space: nowrap; font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.25;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile .s { font-size: 11px; color: var(--dim); }
.filters { display: grid; gap: 8px; }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters .chips::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.bars { display: grid; gap: 9px; }
/* 1行目：名前（折り返して全部見せる）と数字、2行目：棒グラフ */
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; font-size: 13px; }
.bar-row .name { overflow-wrap: anywhere; line-height: 1.4; }
.bar-row .bar-track { grid-column: 1 / -1; }
.bar-row.tap { grid-template-columns: minmax(0, 1fr) auto 14px; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 8px; margin: -6px -8px; width: calc(100% + 16px); border-radius: 10px; cursor: pointer; }
.bar-row.tap:active { background: rgba(255,255,255,.06); }
.bar-row.tap .bar-track { grid-column: 1 / 3; }
.bar-row.tap .go { grid-column: 3; grid-row: 1 / span 2; color: var(--dim); font-size: 18px; line-height: 1; text-align: right; }
.bar-track { height: 8px; background: rgba(0,0,0,.3); border-radius: 5px; position: relative; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.bar-track::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(170, 180, 255, .35); }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--dim); font-size: 12px; }
.bar-row .num b { color: var(--fg); font-weight: 700; font-size: 13px; }
/* 相性表：夜の王（夜渡り）ごとに、相手との勝率の札を並べる */
.match-list { display: grid; gap: 12px; }
.match-group { display: grid; gap: 6px; }
.match-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.match-head span { font-size: 11px; color: var(--dim); }
.match-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 5px; }
.match { border-radius: 8px; padding: 5px 7px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 4px; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 0; }
.match .nm { grid-column: 1 / -1; font-size: 11px; color: var(--fg); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match b { font-size: 14px; }
.match small { color: var(--dim); font-size: 10px; text-align: right; }
.match { border: 1px solid transparent; }
.match.few { border: 1px dashed rgba(236, 231, 218, .45); }
/* 統計の深掘り（絞り込み中の表示） */
.drill-banner { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(90deg, rgba(220, 184, 108, .16), rgba(220, 184, 108, .04)); }
.drill-banner b { color: var(--accent); font-size: 13px; }
.drill-banner .ghost { justify-self: start; }
.drill-chip { background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.ghost.small { padding: 6px 12px; font-size: 12.5px; }
/* 履歴の絞り込み */
.hist-filter { display: grid; gap: 8px; }
.sel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sel-row select { width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; background: rgba(5, 8, 24, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239ea2c8' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line-strong); color: var(--fg); border-radius: 10px; padding: 8px 26px 8px 10px; font: inherit; font-size: 14px; }
.sel-row select.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.sel-row option { background: #131938; color: var(--fg); }
.hist-sum { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); font-weight: 700; }
.run .more-dots { color: var(--dim); font-size: 16px; line-height: 1; margin-left: -4px; }
.stack { display: flex; height: 26px; border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 700; }
.stack div { display: flex; align-items: center; justify-content: center; color: #160a06; min-width: 0; overflow: hidden; white-space: nowrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.legend i:not(.ico) { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.spark { width: 100%; height: auto; display: block; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 12px; }

/* builds */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 999px; cursor: pointer; color: var(--dim); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--accent); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.seg.seg3 { grid-template-columns: repeat(3, 1fr); border-radius: 14px; }
.seg.seg3 button { border-radius: 11px; font-size: 13px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; display: grid; gap: 8px; cursor: pointer; text-align: left; width: 100%;
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.9); }
.card .title { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card .sub { font-size: 12px; color: var(--dim); }
.card .rate { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.card .rate.none { color: var(--dim); font-weight: 400; }
.card.special[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 8px 24px -14px rgba(220, 184, 108, .8); }
.slots { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.slot-dot { width: 16px; height: 16px; border-radius: 4px; border: 1px dashed var(--line-strong); }
.slot-dot.deep { border-radius: 50%; }
.sep { width: 1px; height: 16px; background: var(--line-strong); margin: 0 4px; }
.c-red { background: var(--r-red); border: 0; } .c-blue { background: var(--r-blue); border: 0; } .c-yellow { background: var(--r-yellow); border: 0; } .c-green { background: var(--r-green); border: 0; }
.c-any { background: conic-gradient(var(--r-red) 0 25%, var(--r-blue) 0 50%, var(--r-yellow) 0 75%, var(--r-green) 0); border: 0; }
.slot-dot.o-red { border: 2px solid var(--r-red); } .slot-dot.o-blue { border: 2px solid var(--r-blue); }
.slot-dot.o-yellow { border: 2px solid var(--r-yellow); } .slot-dot.o-green { border: 2px solid var(--r-green); }
.slot-dot.o-any { border: 2px dashed var(--dim); }
.eff-list { margin: 0; padding: 0; list-style: none; font-size: 13px; display: grid; gap: 2px; }
.eff-list li::before { content: "◆ "; color: var(--accent); font-size: 10px; }
.slot-btn { width: 100%; text-align: left; border: 1px dashed var(--line-strong); background: rgba(0,0,0,.18); border-radius: 12px; padding: 11px 12px; cursor: pointer; font-size: 14px; display: flex; gap: 10px; align-items: center; min-height: 48px; }
.slot-btn.filled { border-style: solid; border-color: var(--line); background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), var(--surface-2); }
.slot-btn .n { font-size: 11px; color: var(--dim); width: 1.4em; flex: none; }
.slot-btn .empty { color: var(--dim); }
.slot-btn.demerit { border-color: color-mix(in srgb, var(--loss) 35%, transparent); }
.slot-btn.demerit.filled { border-color: color-mix(in srgb, var(--loss) 50%, transparent); background: rgba(228, 109, 92, .07); }
.slot-btn .badge { margin-left: auto; }
.slot-btn .rname { min-width: 0; display: grid; }
.slot-btn .rname small { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.color-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.slot-color { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.slot-color.deep { border-radius: 50%; }
.vessel-list { display: grid; gap: 6px; }
.vessel { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.18); border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; width: 100%; font-size: 14px; }
.vessel[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(220, 184, 108, .08); }
.cols { display: flex; gap: 4px; align-items: center; }
.cols .slot-color { width: 12px; height: 12px; }
.relic-title { font-size: 20px; font-weight: 800; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.pair { display: grid; gap: 6px; }
.pair .slot-btn.demerit { margin-left: 20px; width: calc(100% - 20px); font-size: 13px; padding: 8px 12px; min-height: 40px; }
.sub-group { font-size: 12px; color: var(--dim); padding: 6px 2px 2px; letter-spacing: .06em; }
.eyebrow { font-size: 12px; color: var(--dim); letter-spacing: .06em; }

/* bottom sheet */
.scrim { position: fixed; inset: 0; background: rgba(3, 4, 12, .66); z-index: 30; backdrop-filter: blur(2px); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
  background: linear-gradient(180deg, #1a2150 0%, #10153a 100%); border-top: 1px solid var(--line-strong);
  border-radius: 22px 22px 0 0; max-height: 82vh; display: grid; grid-template-rows: auto auto 1fr;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding-top: 18px;
  max-width: 560px; margin: 0 auto; gap: 10px; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.9); }
.sheet::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-strong); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet-head h2 { font-size: 17px; }
.sheet .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sheet .chips::-webkit-scrollbar { display: none; }
.sheet .chips .chip { flex: none; }
.sheet-list { overflow-y: auto; display: grid; gap: 0; align-content: start; padding-bottom: 4px; margin: 0 -4px; }
.pick { text-align: left; border: 0; background: transparent; padding: 12px 8px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.pick:active { background: rgba(255,255,255,.05); }
.pick .cat { font-size: 11px; color: var(--dim); white-space: nowrap; }
.pick[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.fam-row { cursor: default; }
.fam-row.on > span:first-child { color: var(--accent); font-weight: 700; }
.lv-btns { display: flex; gap: 4px; flex: none; }
.lv { min-width: 38px; height: 36px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); border-radius: 9px; cursor: pointer; font-size: 13px; font-variant-numeric: tabular-nums; }
.lv[aria-pressed="true"] { background: var(--grad-gold); border-color: transparent; color: var(--accent-ink); font-weight: 800; }
.lv.has-dem { border-color: color-mix(in srgb, var(--loss) 60%, transparent); }
.pick-wrap { border-bottom: 1px solid var(--line); }
.pick-wrap .pick { border-bottom: 0; width: 100%; }
.pick-wrap.on .pick > span:first-child { color: var(--accent); font-weight: 700; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 12px; }
.dem-tag { display: inline-block; margin-left: 8px; font-size: 10px; color: var(--loss); border: 1px solid color-mix(in srgb, var(--loss) 50%, transparent); border-radius: 4px; padding: 0 5px; vertical-align: 1px; font-weight: 400; }

/* tab bar */
nav.tabs { position: fixed; left: 0; right: 0; z-index: 20; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); pointer-events: none; }
nav.tabs .in { max-width: 520px; margin: 0 auto; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: auto;
  background: rgba(14, 19, 48, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07); }
nav.tabs button { border: 0; background: transparent; cursor: pointer; color: var(--dim); font-size: 11px; display: grid; justify-items: center; align-content: center; gap: 3px; position: relative; }
nav.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav.tabs button[aria-current="page"] { color: var(--accent); font-weight: 700; }
nav.tabs button[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(220, 184, 108, .6)); }
nav.tabs button[aria-current="page"]::before { content: ""; position: absolute; top: 6px; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-gold); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #fff6df, #efdcae); color: #1b1405; padding: 9px 18px; border-radius: 999px; font-weight: 700; z-index: 40; font-size: 14px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); max-width: calc(100% - 32px); text-align: center; }
.empty-state { text-align: center; color: var(--dim); padding: 28px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* app bar menu button / data menu */
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); display: grid; place-items: center; cursor: pointer; color: var(--fg); flex: none; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pick.danger b { color: var(--loss); }
label.pick { cursor: pointer; }

/* effect picker: category buttons in 3 rows that scroll sideways together */
.cat-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 40px; gap: 5px; }
.cat-strip-unused { border: 1px solid var(--line); border-radius: 9px; cursor: pointer; padding: 0 3px; font-size: 11px; line-height: 1.2; min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--surface-2);
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; word-break: break-all; }
.cat-btn[aria-pressed="true"] { background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; font-weight: 700; }

/* record: optional flags under the night lord, deep-night depth */
.flag-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.flag-label { font-size: 12px; color: var(--dim); }
.depth-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chip.depth { padding: 8px 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-sec .seg button { font-size: 15px; padding: 10px; }

/* record: compact rows */
.disc-extra { padding: 0 14px 12px; }
.disc.open .disc-extra { padding-top: 0; }
.chips.one-line { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.chips.one-line::-webkit-scrollbar { display: none; }
.chips.one-line .chip { flex: none; white-space: nowrap; }

/* effect picker: category buttons, 5 columns, no scrolling */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.cat-btn { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 2px 3px; font-size: 11px; line-height: 1.2; letter-spacing: -.02em;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--surface-2);
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-wrap: balance; }
@supports (word-break: auto-phrase) { .cat-btn { word-break: auto-phrase; overflow-wrap: anywhere; } }
.cat-btn[aria-pressed="true"] { background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; font-weight: 700; }

/* fixed bottom bar: a solid panel so nothing shows through behind its text */
.action-bar .in { background: rgba(14, 19, 48, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 6px; box-shadow: 0 12px 30px -14px rgba(0,0,0,.9); }
.action-bar .in::before { display: none; }
.action-bar .msg { display: none; }
.action-bar .primary { padding: 13px; }
.action-bar .ghost { padding: 13px 16px; background: transparent; border-color: var(--line); }
.primary .need { font-size: 13px; letter-spacing: .04em; font-weight: 700; }
body.typing .action-bar, body.typing nav.tabs { display: none; }
.edit-banner { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(90deg, rgba(220, 184, 108, .16), rgba(220, 184, 108, .04)); }
.edit-banner b { color: var(--accent); font-size: 15px; }
.edit-banner span { font-size: 12px; color: var(--dim); }
/* lord / unique relics inside the effect picker */
.special-pick { align-items: flex-start; }
.sp-main { display: grid; gap: 3px; min-width: 0; }
.sp-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.sp-name .color-dot { width: 12px; height: 12px; }
.special-pick small { color: var(--dim); font-size: 12px; font-weight: 400; line-height: 1.5; }

/* data button with a label */
.icon-btn { width: auto; padding: 0 11px; gap: 6px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; }
.icon-btn svg { width: 18px; height: 18px; }
/* toast with an action button (undo) */
.toast.with-action { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; text-align: left; }
.toast-btn { border: 0; background: #1b1405; color: #f5dfa4; border-radius: 999px; padding: 7px 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
/* stats: few-run rows and "show all" */
.bar-row.dim { opacity: .55; }
.few-label { font-size: 11px; color: var(--dim); letter-spacing: .06em; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 2px; }
.more-btn { width: 100%; margin-top: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); border-radius: 10px; padding: 10px; color: var(--accent); font-weight: 700; cursor: pointer; }
/* preset editor: name row and in-page buttons */
.name-row { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012)), var(--surface); }
.name-row .k { font-weight: 700; flex: none; }
.name-row .nm { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); font-weight: 700; }
.name-row .pen { flex: none; font-size: 11px; color: var(--dim); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 8px; }
.form-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding-top: 4px; }
.form-actions .ghost { padding: 14px 18px; border-radius: 14px; }
.disc-head .v .slots { gap: 4px; }
.disc-head .v .slot-dot { width: 12px; height: 12px; }
/* first-run guide */
.sheet.guide { grid-template-rows: auto 1fr auto; }
.guide-list { gap: 14px; padding: 4px; }
.guide-step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.guide-step .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--accent-ink); font-weight: 800; }
.guide-step b { font-size: 15px; }
.guide-step .hint { margin-top: 2px; }
.guide-ok { color: var(--win); font-weight: 700; padding: 6px 0; }
/* 夜の王・夜渡りのアイコン（名前の左） */
.ico { width: 1.5em; height: 1.5em; object-fit: contain; flex: none; vertical-align: middle; margin-right: .3em; position: relative; top: -.08em; }
.tile-btn.with-ico { display: flex; align-items: center; justify-content: center; gap: 4px; padding-inline: 4px; white-space: nowrap; letter-spacing: -.02em; }
.tile-btn.with-ico .ico { width: 24px; height: 24px; margin: 0; top: 0; }
/* 選んだボタンは金色の背景なので、白いアイコンを濃い色にして見えるようにする */
.tile-btn[aria-pressed="true"] .ico, .drill-chip .ico { filter: brightness(0) opacity(.8); }
.disc-head .v .ico { width: 22px; height: 22px; margin: 0; top: 0; }
.run .who { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.run .who .nm-ico { display: inline-flex; align-items: center; white-space: nowrap; }
.run .who .x { color: var(--dim); font-weight: 400; }
.bar-row .name .ico { width: 20px; height: 20px; margin-right: 6px; top: 0; }
.match-head b { display: inline-flex; align-items: center; }
.match-head b .ico { width: 22px; height: 22px; margin-right: 6px; top: 0; }
.match .nm { display: flex; align-items: center; }
.match .nm .ico { width: 15px; height: 15px; margin-right: 3px; top: 0; }
.card .sub .ico { width: 16px; height: 16px; margin-right: 3px; }
/* アイコン付きの3列ボタン：「グラディウス」（6文字）がアイコンと並んで収まるよう、画面幅に合わせて文字を少し小さくする */
.grid-btns:has(.with-ico) { gap: 6px; }
.tile-btn.with-ico { font-size: clamp(11px, calc((100vw - 165px) / 17.28), 14px); letter-spacing: -.04em; gap: 3px; }
.tile-btn.with-ico .ico { width: 20px; height: 20px; }
/* とても細い画面（350px未満）では、アイコンを名前の上に置く */
@media (max-width: 349px) {
  .tile-btn.with-ico { flex-direction: column; gap: 2px; font-size: 12.5px; padding-block: 6px; }
}

/* backup reminder */
.icon-btn { position: relative; }
.icon-btn.due::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.backup-note { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; font-size: 12px; color: var(--dim);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: rgba(220, 184, 108, .06); }
.backup-note span { flex: 1; min-width: 0; }
.backup-note .ghost.small, .ghost.small { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.note-x { border: 0; background: transparent; color: var(--dim); font-size: 12px; padding: 5px 6px; cursor: pointer; }
.pick.recommend .hint { color: var(--accent); }
/* 記録：「地図欠損・ボス不明」or「地変」と、地変の種類（コンパクトに） */
.flag-or { font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.shift-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0 calc(2.5em + 8px); padding-left: 8px; border-left: 2px solid var(--line-strong); }
.chip.mini { padding: 3px 10px; font-size: 12px; }
.flag-alt { display: inline-flex; align-items: center; gap: 8px; }  /* 折り返すときも「or 地変」を離さない */
.flag-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 2px; }
/* ダブルタップでの拡大を止める（スクロールやタップはそのまま使える） */
html, body { touch-action: manipulation; }
/* 右上のボタン（使い方・データ）と「このタブの使い方」 */
.bar-btns { display: flex; gap: 6px; flex: none; }
.help-list { gap: 14px; padding: 4px; }
.help-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; line-height: 1.65; }
.help-points li { position: relative; padding-left: 18px; }
.help-points li::before { content: "◆"; position: absolute; left: 0; top: .1em; color: var(--accent); font-size: 10px; }
.dev-note { border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: rgba(220, 184, 108, .07); border-radius: 12px; padding: 10px 12px; }
.dev-note b { color: var(--accent); font-size: 12px; letter-spacing: .08em; }
.dev-note p { margin: 4px 0 0; font-size: 13.5px; white-space: pre-wrap; }
/* 画面左上のロゴ（アプリのアイコンと同じ絵） */
.logo { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(140, 150, 255, .45)); }
/* 細い画面（360px未満）では、右上のボタンを絵だけにしてタイトルと重ならないようにする */
.brand h1 { white-space: nowrap; }
@media (max-width: 359px) {
  .bar-btns .icon-btn { padding: 0 9px; }
  .bar-btns .icon-btn span { display: none; }
}
/* 画面下のタブのアイコン（絵の形に色を流し込む：普段は淡い色、選ぶと金色） */
nav.tabs .tab-ico { width: 26px; height: 26px; background: currentColor;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }  /* 絵は app.js で指定 */
nav.tabs button[aria-current="page"] .tab-ico { background: var(--grad-gold); filter: drop-shadow(0 0 6px rgba(220, 184, 108, .6)); }
/* タイトル「夜の痕跡」：銀色の石のような質感に、青い光の亀裂と青い輝き（ナイトレインの雰囲気） */
.brand h1 { font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 800; font-size: 22px; letter-spacing: .22em; line-height: 1.15;
  /* 上から：青い亀裂 → 石のざらつき → 銀色のグラデーション */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.06 0.11' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .75 0 0 0 0 1 -9 0 0 0 1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #c4ccd9 0%, #8d97a9 35%, #4b5568 50%, #6f7a8f 68%, #a3adbf 100%);
  background-blend-mode: normal, overlay, normal;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 3px rgba(80, 150, 255, .55)) drop-shadow(0 0 12px rgba(50, 100, 220, .3)) drop-shadow(0 1px 1px rgba(0, 0, 0, .9)); }
/* 画面下のタブを5つに */
nav.tabs .in { grid-template-columns: repeat(5, 1fr); }
/* 「敵」タブ */
.enemy-tools { display: grid; gap: 8px; }
.chips.one-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.one-row::-webkit-scrollbar { display: none; }
.chips.one-row .chip { flex: none; }
.party-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.party-row .hint { font-size: 11px; }
.enemy-list { display: grid; gap: 6px; }
.enemy { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,.045), rgba(255,255,255,.012)), var(--surface); overflow: hidden; }
.enemy.open { border-color: var(--line-strong); }
.enemy-head { width: 100%; border: 0; background: transparent; padding: 10px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.enemy-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.enemy-name .ico { width: 24px; height: 24px; margin: 0; top: 0; }
.enemy-name > span { display: grid; min-width: 0; }
.enemy-name b { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.enemy-name small { font-size: 11px; color: var(--dim); }
.enemy-name small.cat-tag { color: var(--accent); }
.enemy-hp { flex: none; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 700; max-width: 45%; }
.enemy-hp small { display: block; font-size: 10px; color: var(--dim); font-weight: 400; }
.enemy-detail { padding: 0 12px 12px; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.enemy-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.enemy-kv span { color: var(--dim); flex: none; }
.enemy-kv b { text-align: right; font-variant-numeric: tabular-nums; }
.enemy-detail .label { justify-content: flex-start; margin-top: 2px; }
.enemy-detail .label .hint { font-size: 11px; letter-spacing: 0; }
.stat-grid { display: grid; gap: 5px; }
.stat-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { border: 1px solid var(--line); border-radius: 9px; padding: 5px 4px; text-align: center; display: grid; gap: 1px; background: rgba(0,0,0,.18); font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; color: var(--dim); }
.stat b { font-size: 13.5px; }
.stat.weak { border-color: color-mix(in srgb, var(--win) 60%, transparent); background: color-mix(in srgb, var(--win) 14%, transparent); }
.stat.weak b { color: var(--win); }
.stat.strong b { color: var(--loss); }
.stat.immune b { color: var(--dim); font-size: 12px; }
.en-name { font-size: 11px; }
.source-note { font-size: 11px; }
/* 下から出る画面：中だけスクロールして、端まで来ても後ろの画面に伝わらないようにする */
.sheet, .sheet-list { overscroll-behavior: contain; }
.scrim { touch-action: none; }
/* 選んだタブの上の横線はなし（金色のアイコンと文字だけで分かる） */
nav.tabs button[aria-current="page"]::before { display: none; }
/* 「（タブ名）の使い方」が入るよう、430px未満では「データ」ボタンを絵だけにし、タイトルの字間を少し詰める */
@media (max-width: 429px) {
  .bar-btns [data-act=menu] { padding: 0 9px; }
  .bar-btns [data-act=menu] span { display: none; }
  .brand h1 { letter-spacing: .12em; }
}
/* 夜の王の中の「常夜・形態など」の一覧（タップでその数値を下に出す） */
.variant-list { display: grid; gap: 4px; padding: 10px 12px 0; border-top: 1px solid var(--line); }
.variant { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.18); padding: 7px 10px; font-size: 13px; }
.variant small { color: var(--dim); font-size: 12px; }
.variant b { font-variant-numeric: tabular-nums; font-size: 12.5px; flex: none; text-align: right; }
.variant[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(220, 184, 108, .08); }
.variant[aria-pressed="true"] small { color: var(--accent); }
.variant-list + .enemy-detail { border-top: 0; }
/* 敵の数値：枠線なしで、数値の色だけで強弱を見せる */
.stat-grid .stat { border: 0; background: rgba(0,0,0,.2); }
.stat.good b { color: #5fd39f; }
.stat.mid b { color: #e8cf5a; }
.stat.orange b { color: #f0954a; }
.stat.bad b { color: #ef6b5b; }
.stat.weak, .stat.strong { border: 0; background: rgba(0,0,0,.2); }
/* 夜の王：アイコンと名前だけの行。開くと通常／常夜の切り替え */
.enemy-head .chev { margin-left: auto; }
.enemy.open .enemy-head .chev { transform: rotate(-135deg); margin-top: 4px; }
.lord-body { display: grid; gap: 8px; padding: 10px 12px 0; border-top: 1px solid var(--line); }
.mode-seg button { font-size: 14px; }
.lord-body + .enemy-detail { border-top: 0; }
/* 「敵」タブの人数（普段は畳んで、タップで選ぶ） */
.party-toggle { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: var(--dim); cursor: pointer; }
.party-toggle b { color: var(--fg); }
.party-toggle .chev { width: 6px; height: 6px; margin: -3px 0 0 2px; }
/* フィールド：通常（青）と恐るべき強敵（赤）の見出し */
.field-sec { display: grid; gap: 8px; }
.field-sec h3 { margin: 4px 2px 0; font-size: 13px; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.field-sec h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; }
.field-sec.normal h3 { color: #7fb0ff; } .field-sec.normal h3::before { background: #4f8be0; }
.field-sec.dread h3 { color: #ff8a7a; } .field-sec.dread h3::before { background: #d65a4a; }
.field-sec.normal .enemy { border-left: 3px solid rgba(79, 139, 224, .7); }
.field-sec.dread .enemy { border-left: 3px solid rgba(214, 90, 74, .75); }
/* 「敵」タブの見出し（タップで開閉）。フィールド＝通常（青）/恐るべき強敵（赤）、夜の強敵＝1日目/2日目 */
.sec-toggle { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 6px 2px; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-align: left; }
.sec-toggle::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--line-strong); flex: none; }
.sec-toggle small { color: var(--dim); font-weight: 400; letter-spacing: 0; }
.sec-toggle .chev { margin-left: auto; transform: rotate(-135deg); margin-top: 4px; }
.field-sec.closed .sec-toggle .chev { transform: rotate(45deg); margin-top: -4px; }
.field-sec.normal .sec-toggle { color: #7fb0ff; } .field-sec.normal .sec-toggle::before { background: #4f8be0; }
.field-sec.dread .sec-toggle { color: #ff8a7a; } .field-sec.dread .sec-toggle::before { background: #d65a4a; }
.field-sec.day1 .sec-toggle { color: #c9b8ff; } .field-sec.day1 .sec-toggle::before { background: #8f7be8; }
.field-sec.day2 .sec-toggle { color: #f2c46b; } .field-sec.day2 .sec-toggle::before { background: #d9a440; }
.field-sec.day1 .enemy { border-left: 3px solid rgba(143, 123, 232, .7); }
.field-sec.day2 .enemy { border-left: 3px solid rgba(217, 164, 64, .7); }
.dlc-note { font-size: 11.5px; padding: 0 4px; }
/* 人数と夜の王の絞り込みを横に並べる */
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.party-toggle .ico { width: 16px; height: 16px; margin-right: 3px; vertical-align: -3px; }
.lord-filter .chip .ico { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.lord-filter .chip[aria-pressed="true"] .ico { filter: brightness(0) opacity(.8); }
/* フィールドの「封牢」（紫）、拠点の「拠点」（緑）と「砦（屋上）」（橙） */
.field-sec.gaol .sec-toggle { color: #c6a2ff; } .field-sec.gaol .sec-toggle::before { background: #9a6be0; }
.field-sec.gaol .enemy { border-left: 3px solid rgba(154, 107, 224, .7); }
.field-sec.base .sec-toggle { color: #8fd6a8; } .field-sec.base .sec-toggle::before { background: #4fae74; }
.field-sec.base .enemy { border-left: 3px solid rgba(79, 174, 116, .7); }
.field-sec.roof .sec-toggle { color: #f3a86a; } .field-sec.roof .sec-toggle::before { background: #de7f3a; }
.field-sec.roof .enemy { border-left: 3px solid rgba(222, 127, 58, .7); }
/* 「敵」タブ：カテゴリの列は右端を薄くして、横にスクロールできることが分かるように */
.enemy-tools .chips.one-row { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
/* 絞り込みのボタンを押しやすい大きさに */
.party-toggle { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.lord-filter .chip { min-height: 36px; }
.enemy-detail .unknown { color: var(--dim); font-weight: 400; font-size: 12px; }
/* 雑魚の見出し */
.field-sec.mob .sec-toggle { color: #c9cde6; } .field-sec.mob .sec-toggle::before { background: #8b90b8; }
.merged-note { font-size: 11px; }
.stat b { font-size: clamp(11.5px, 3.4vw, 13.5px); }
/* 画面を作り直したときのスクロール位置はアプリ側で合わせる（ブラウザの自動調整と二重にずれないように） */
html { overflow-anchor: none; }
/* iPhoneのホーム画面版で、画面より短いタブ（履歴・統計・ビルドなど）に切り替えると下のタブの列が上にずれる対策：
   どのタブでも、ページの高さを常に画面より少しだけ高くして、記録タブ（長いページ）と同じ状態にそろえる */
body { min-height: calc(100vh + 1px); min-height: calc(100lvh + 1px); }
/* 隠しの夜の王：耐性の下の薄い「画像を見る」と、画面いっぱいの画像 */
.secret-img-btn { justify-self: center; background: none; border: 0; padding: 6px 12px; color: var(--dim); opacity: .45; font-size: 11px; letter-spacing: .08em; cursor: pointer; }
.img-view { position: fixed; inset: 0; z-index: 40; background: rgba(2, 3, 10, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); touch-action: none; cursor: pointer; }
.img-view img { max-width: 100%; max-height: calc(100% - 30px); object-fit: contain; }
.img-view span { font-size: 12px; color: var(--dim); }
/* 記録：夜の王の種類（通常／常夜）は押しやすいよう大きめに */
.chips.ever-toggle { gap: 10px; }
.chips.ever-toggle .chip { min-width: 84px; min-height: 44px; padding: 9px 18px; font-size: 15px; font-weight: 700; }
/* ビルド：作りかけのプリセット（未完成／編集途中） */
.draft-card { cursor: default; border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, transparent); display: flex; align-items: center; gap: 10px; }
.draft-card .draft-main { flex: 1; min-width: 0; display: grid; gap: 8px; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.draft-card .draft-del { flex: none; padding: 6px 10px; font-size: 12px; }
.badge.draft { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); margin-right: 6px; }
/* 敵タブ下の注意書き：段落の間を少しあける */
.source-note p { margin: 0 0 4px; }
/* ビルドの共有：取り込みボタンと取り込み画面 */
.import-btn { width: 100%; }
.import-list { display: grid; gap: 10px; }
.import-list textarea { min-height: 84px; font-size: 16px; }
.import-preview { cursor: default; }
.import-err { color: var(--loss); }
/* オンライン：みんなの勝率の参加ボタン、誤植の報告 */
.online-join { display: grid; gap: 8px; margin-top: 6px; }
.online-join.on { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--dim); }
.online-join .small-btn { flex: none; padding: 6px 10px; font-size: 12px; }
.link-btn { background: none; border: 0; padding: 0 2px; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.import-list input[type=text] { font-size: 16px; }
/* 統計：自分／みんなの切り替え、ビルド一覧の使った回数 */
.scope-seg { width: 100%; }
.scope-seg button { flex: 1; }
.card .preset-use { font-size: 12px; color: var(--dim); }
.card .preset-use b { color: var(--fg); }

/* 2026-11-23 検証の手直し */
/* 統計：目次 */
.stats-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.card-sec { scroll-margin-top: 76px; }
/* みんなの戦績：使われた割合の棒には、勝率用の50%の点線を出さない */
.use-row .bar-track::after { display: none; }
/* 敵タブ：カテゴリは折り返して全部見せ、押しやすい高さに */
.cat-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cat-tabs .chip { min-height: 40px; padding: 6px 4px; text-align: center; font-size: 13px; }
/* 記録：日付のボタン（3つ並ぶので、通常／常夜より少しだけ小さく） */
.chips.date-toggle { gap: 6px; }
.chips.date-toggle .chip { min-width: 56px; padding: 9px 12px; }
/* 通知：画面の上に出して、下のボタンや内容に重ならないように。横幅を広げて折り返しを減らす */
.toast { top: calc(env(safe-area-inset-top, 0px) + 70px); bottom: auto; width: max-content; max-width: min(420px, calc(100% - 32px)); border-radius: 16px; line-height: 1.5; }
/* 記録：まだ記録できないときの下のバーは細くして、画面を広く使う */
.action-bar .primary:disabled { padding: 9px 13px; }
.action-bar .primary:disabled .need { font-size: 12px; font-weight: 500; }
/* プリセット編集：遺物の効果を「…」で切らずに全部表示 */
.slot-btn .rname small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; }
/* 320px幅でも「夜の王の種類」と2つのボタンが1行に収まるように */
.card-sec .sec-head h2 { white-space: nowrap; }
.chips.ever-toggle { flex-wrap: nowrap; }
@media (max-width: 359px) { .chips.ever-toggle .chip { min-width: 64px; padding: 9px 12px; } .chips.date-toggle .chip { min-width: 0; padding: 9px 10px; } }
.action-bar .primary .need { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* 自動バックアップ（データ管理） */
.cloud-box { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: rgba(220, 184, 108, .05); }
.cloud-box.off { border-color: var(--line); background: none; }
.cloud-head { display: grid; gap: 2px; }
.cloud-box .bad { color: var(--loss); }
.code-row { display: flex; align-items: center; gap: 8px; }
.code-row .code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: .06em; color: var(--accent);
  background: rgba(0,0,0,.28); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 9px 10px; text-align: center; user-select: all; -webkit-user-select: all; white-space: nowrap; overflow-x: auto; }
.cloud-box .row-actions { justify-content: space-between; align-items: center; }
#restore-code { font-size: 18px; letter-spacing: .08em; text-transform: uppercase; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.guide-list > .ghost { width: 100%; }
@media (max-width: 359px) { .code-row .code { font-size: 14px; letter-spacing: .02em; padding: 9px 6px; } }

/* 2026-11-23 タイトルを「夜渡り日記」に戻し、飾りのない白い文字に（上の銀色・青い光の指定を打ち消す） */
.brand h1 { font-family: var(--f-body, "Noto Sans JP", sans-serif); font-weight: 800; font-size: 20px; letter-spacing: .1em; line-height: 1.2;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; filter: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
@media (max-width: 429px) { .brand h1 { letter-spacing: .06em; font-size: 19px; } }

/* プリセット：スクショから読み取る */
.scan-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scan-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border-radius: 12px; text-align: center; cursor: pointer; font-size: 14px; }
.scan-btn.disabled { opacity: .45; pointer-events: none; }
.scan-btn.busy { color: var(--accent); border-style: dashed; }
.scan-note { font-size: 11px; }
.badge.check { color: #f0b46a; border-color: color-mix(in srgb, #f0b46a 55%, transparent); margin-left: 6px; }

/* プリセット：献器は自動判定。空き枠の色、適合する献器の表示 */
.slot-color.c-none { background: transparent; border: 1px dashed var(--line-strong); }
.vessel-note .bad { color: var(--loss); }

/* 統計：項目の表示・非表示ボタン、常夜の紫、勝率でない棒は50%の点線なし */
:root { --grad-ever: linear-gradient(90deg, #6a4bc4, #a77cf0); }
.stats-toc .chip[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.bar-track.no-mid::after { display: none; }
.lg-normal { color: #5fd3a0; } .lg-ever { color: #a77cf0; }

/* スクショ読み取りの見本 */
.scan-sample { justify-self: start; font-size: 13px; padding: 2px 0; }
.sample-view { justify-content: flex-start; overflow-y: auto; touch-action: pan-y; }
.sample-view .sample-list { display: grid; gap: 14px; width: 100%; max-width: 720px; margin: auto 0; }
.sample-view figure { margin: 0; display: grid; gap: 6px; }
.sample-view figcaption { font-size: 13px; color: var(--fg); font-weight: 700; }
.sample-view img { width: 100%; max-height: none; border-radius: 8px; border: 1px solid var(--line-strong); }
.sample-view .hint { text-align: center; }

/* 記録：深度を選び忘れたとき */
.need-mark { color: #f0b46a; font-weight: 400; font-size: 12px; margin-left: 4px; }

/* データ管理：自動バックアップの欄（コンパクト） */
.cloud-box.compact { gap: 6px; padding: 10px 12px; }
.cloud-box.compact .cloud-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cloud-box.compact .code-row .code { padding: 6px 8px; font-size: 16px; }
.cloud-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 11px; }
.cloud-foot .hint { font-size: 11px; flex: 1 1 100%; }
.cloud-foot .link-btn { font-size: 12px; }
.cloud-foot .ok { flex: none; color: var(--win); }
.link-btn.dim-link { color: var(--dim); }
.link-btn.danger-text { color: var(--loss); }

/* みんなの統計：ダッシュボード・切り替え */
.tiles.dash .v { font-size: 26px; }
.join-wrap .online-join { margin-top: 0; }
.mini-select { background: rgba(0,0,0,.3); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 5px 26px 5px 10px; font: inherit; font-size: 13px;
  appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.head-tools { display: flex; align-items: center; gap: 6px; }
.ever-switch { border: 1px solid var(--line-strong); background: rgba(0,0,0,.25); color: var(--dim); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ever-switch.on { background: linear-gradient(90deg, #6a4bc4, #a77cf0); color: #fff; border-color: transparent; font-weight: 700; }
.build-row { display: grid; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.build-row .name { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.bar-track.stacked { display: flex; overflow: hidden; background: none; }
.dseg { display: inline-block; height: 100%; }
.depth-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--dim); margin-bottom: 6px; }
.depth-legend i:not(.ico) { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.dseg.d0 { background: #4f8be0; } .dseg.d1 { background: #8f7be0; } .dseg.d2 { background: #b26ad6; } .dseg.d3 { background: #d65fa8; } .dseg.d4 { background: #e3835e; } .dseg.d5 { background: #cf5a55; }
/* ビルド：みんなのビルド・公開 */
.build-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.build-actions .import-btn { font-size: 13px; padding: 10px 6px; }
.badge.pub { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); margin-left: 6px; }
.back-btn { justify-self: start; padding: 6px 12px; font-size: 13px; }
.pub-card .hint { margin-top: 6px; }
.tiles.dash .k { white-space: nowrap; font-size: 11px; letter-spacing: 0; }
@media (max-width: 359px) { .head-tools .mini-select { padding-right: 22px; font-size: 12px; } .ever-switch { padding: 5px 9px; font-size: 12px; } }

/* みんなの統計：見出しで開く・たたむ、まだ0回 */
.sec-fold { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; flex: 1; min-width: 0; }
.sec-fold .chev { width: 8px; height: 8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(-135deg); margin-top: 4px; flex: none; transition: transform .15s; }
.gcard.closed .sec-fold .chev { transform: rotate(45deg); margin-top: -4px; }
.gcard.closed .sec-head { margin-bottom: 0; }
.bar-row .none { color: var(--dim); font-size: 12px; }

/* みんなのビルド：遺物の中身・メモ・いいね・2行のフィルタ */
.relic-detail { display: grid; gap: 6px; margin-top: 4px; }
.relic-detail .label { font-size: 12px; }
.rd-row { display: flex; gap: 8px; align-items: flex-start; }
.rd-row .color-dot { flex: none; margin-top: 6px; }
.rd-row b { font-size: 13px; display: block; }
.rd-row small { color: var(--dim); font-size: 12px; line-height: 1.5; }
.rd-row .dem { color: var(--loss); }
.pub-note { margin: 2px 0; font-size: 13px; line-height: 1.5; background: rgba(0,0,0,.2); border-left: 3px solid var(--accent); padding: 6px 8px; border-radius: 6px; white-space: pre-wrap; }
.pub-note.one { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote { border: 1px solid var(--line-strong); background: rgba(0,0,0,.25); color: var(--fg); border-radius: 12px; padding: 9px 6px; font: inherit; font-size: 14px; cursor: pointer; }
.vote.like.on { border-color: var(--win); background: color-mix(in srgb, var(--win) 22%, transparent); }
.vote.dislike.on { border-color: var(--loss); background: color-mix(in srgb, var(--loss) 22%, transparent); }
.vote-count { font-size: 12px; color: var(--dim); }
.pub-filter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pub-filter .chip { padding: 6px 2px; font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .pub-filter .chip { font-size: 11px; letter-spacing: -.03em; } }
.import-preview { gap: 6px; }
/* 記録：モード欄をコンパクトに */
.mode-card { padding-block: 10px; }
.mode-card .sec-head { margin-bottom: 0; }
.mode-toggle { flex-wrap: nowrap; gap: 6px; }
.depth-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.depth-line .label { flex: none; font-size: 12px; margin: 0; }
.depth-row.compact { flex: 1; gap: 5px; }
.depth-row.compact .chip.depth { padding: 5px 0; font-size: 13px; min-height: 0; }
/* プライバシーについて */
.privacy section { display: grid; gap: 4px; margin-bottom: 10px; }
.privacy h3 { margin: 0; font-size: 14px; color: var(--accent); }
.privacy p { margin: 0; font-size: 13px; line-height: 1.65; }

/* 2026-11-23 読みやすさ：薄い文字を明るく、小さい文字を大きく */
:root { --dim: #b3b7dc; }
.hint { font-size: 13.5px; line-height: 1.65; }
.label, .sub-group, .eyebrow, .day-head, .legend, .run .meta, .card .sub, .bar-row .num, .sec-head .val { font-size: 13px; }
.badge, .tile .k, .tile .s, .pick .cat, .match .nm, .match-head span, .run .res small, .slot-btn .n { font-size: 12px; }
.slot-btn .rname small, .preset-use, .vote-count { font-size: 13px; }
.scan-note, .source-note, .cloud-foot .hint, .depth-legend { font-size: 12.5px; }
nav.tabs button { font-size: 12px; }
.tiles.dash .k { font-size: 12px; }
/* データ管理：予備のバックアップ（たたんでおく） */
details.spare { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 4px 10px; }
details.spare summary { cursor: pointer; padding: 6px 0; font-weight: 700; font-size: 14px; }
details.spare[open] { padding-bottom: 8px; }
.hint.caution { border: 1px solid color-mix(in srgb, #f0b46a 45%, transparent); background: rgba(240, 180, 106, .08); border-radius: 10px; padding: 8px 10px; color: #f3d9b1; }
.report-link { justify-self: center; font-size: 12.5px; margin-top: 2px; }
.report-link[disabled] { opacity: .6; text-decoration: none; }
.data-src { font-size: 12.5px; margin: -4px 2px 0; }

/* プリセットの遺物：効果を1行ずつ並べ、右端の×でその効果だけ消す */
.relic-box { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), var(--surface-2); overflow: hidden; }
.relic-box .slot-btn.filled { border: 0; border-radius: 0; background: transparent; min-height: 44px; padding-bottom: 6px; }
.relic-head { display: flex; align-items: center; }
.relic-head .slot-btn { flex: 1; min-width: 0; }
.eff-lines { list-style: none; margin: 0; padding: 0 4px 6px 36px; }
.eff-lines li { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); }
.eff-lines li.none { color: var(--dim); font-size: 13px; padding: 8px 0; border-top: 0; }
.eff-txt { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--fg); font: inherit; font-size: 13px; line-height: 1.4; padding: 8px 0; cursor: pointer; }
.eff-lines li.dem .eff-txt { color: var(--loss); padding-left: 8px; }
.eff-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--dim); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.eff-x:active { background: color-mix(in srgb, var(--loss) 35%, transparent); color: var(--fg); }
.relic-head .eff-x { margin-right: 6px; }

/* 記録：夜の王・夜渡りの縦スクロール選択（ドラム式）。真ん中の枠に止まったものが選ばれる */
.pick-card .wheels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.wheel-label { font-size: 14px; font-weight: 800; margin: 0 0 6px 2px; }
.wheel-wrap { position: relative; }
.wheel { box-sizing: content-box; height: 200px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32%, #000 68%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 32%, #000 68%, transparent 100%); }
.wheel::-webkit-scrollbar { display: none; }
.wheel-pad { height: 80px; }
.wheel-item { display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; scroll-snap-align: center; border: 0; background: none; color: var(--dim);
  font: inherit; font-size: 14px; white-space: nowrap; overflow: hidden; cursor: pointer; padding: 0 6px; transition: color .15s; }
.wheel-item.center { color: var(--fg); font-weight: 800; font-size: 15px; }
.wheel-band { position: absolute; left: 4px; right: 4px; top: 81px; height: 40px; border-radius: 10px; pointer-events: none;
  border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.wheel-hint { margin: 8px 2px 0; font-size: 12px; }
.pick-build { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pick-build .label { margin-bottom: 6px; }

/* 中の横スクロール（ビルドの一列など）が長くても、画面の幅より広がらないようにする（プリセットが多いと記録画面が横に伸びていた） */
.stack-lg { grid-template-columns: minmax(0, 1fr); }
.pick-card, .pick-build { min-width: 0; }
.wheel-item.none { font-size: 13px; }
.wheel-item.none.center { color: var(--dim); }

/* 記録：日付。横にスクロールする日付の列（左端が今日）と、右端のカレンダー（一覧）ボタン */
.date-now { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.date-now .link-btn { font-size: 12.5px; font-weight: 700; }
.date-line { display: flex; align-items: stretch; gap: 8px; margin-top: 10px; min-width: 0; }
.day-strip { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.day-strip::-webkit-scrollbar { display: none; }
.day-chip { flex: none; width: 52px; display: grid; justify-items: center; gap: 1px; padding: 6px 0 7px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04); color: var(--fg); font: inherit; cursor: pointer; }
.day-chip small { font-size: 10.5px; color: var(--accent); font-weight: 700; line-height: 1.2; }
.day-chip b { font-size: 15px; line-height: 1.2; }
.day-chip span { font-size: 11px; color: var(--dim); line-height: 1.2; }
.day-chip.sun span { color: #e8857a; }
.day-chip.sat span { color: #7fa8ea; }
.day-chip[aria-pressed="true"] { background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; }
.day-chip[aria-pressed="true"] small, .day-chip[aria-pressed="true"] span { color: var(--accent-ink); }
.cal-btn { position: relative; flex: none; width: 52px; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.06); color: var(--fg); cursor: pointer; font-size: 11px; font-weight: 700; }
.cal-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* 本物の日付の入力欄をボタンの上に透明で重ねる（タップするとスマホの日付選択が開く） */
.cal-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0; }

/* 記録：夜渡りより下を「条件」1枚にまとめる（1行に1項目。ボタンの大きさをそろえる） */
.cond-card { padding-top: 6px; padding-bottom: 8px; }
.cond-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.cond-row:first-child { border-top: 0; }
.cond-row .k { flex: none; width: 52px; font-size: 13.5px; font-weight: 800; }
.cond-row.need .k { color: var(--accent); }
.cond-row.need .k::after { content: "●"; font-size: 8px; vertical-align: 3px; margin-left: 3px; }
.cond-row .chips { gap: 6px; min-width: 0; }
.cond-row.sub { border-top: 0; padding-top: 0; }
.cond-row.sub .k { font-weight: 500; color: var(--dim); font-size: 12.5px; }
.cond-memo { display: block; margin: 4px 0 2px; font-size: 13px; }
.cond-note { padding-top: 8px; border-top: 1px solid var(--line); }
.cond-note textarea { min-height: 64px; }
/* 画面の下：勝利・敗北を押すとそのまま記録 */
.app.has-bar { padding-bottom: calc(var(--tabbar-h) + 150px + env(safe-area-inset-bottom, 0px)); }
.rec-bar { flex: 1; display: grid; gap: 6px; min-width: 0; }
.rec-need, .rec-q { text-align: center; font-size: 12.5px; color: var(--dim); }
.rec-need.ok { color: var(--accent); }
.rec-q { color: var(--fg); font-weight: 800; font-size: 13.5px; }
.rec-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loss-pick .rec-btns { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rec-bar .result-btn { padding: 13px 6px; font-size: 18px; }
.rec-bar .result-btn.win { background: var(--grad-win); color: #04140d; border-color: transparent; }
.rec-bar .result-btn.loss { background: var(--grad-loss); color: #1c0603; border-color: transparent; }
.loss-pick .result-btn { font-size: 15px; letter-spacing: .05em; }
.rec-btns.not-yet .result-btn { opacity: .45; }
.rec-bar .link-btn { justify-self: center; font-size: 12.5px; }
.cond-row .chip.dchip { min-width: 32px; padding-left: 0; padding-right: 0; justify-content: center; text-align: center; }
.cond-row:has(.dchip) .chips { gap: 5px; flex-wrap: nowrap; }

/* ページが左右に動かないようにする（iPhoneで縦にスクロールしたとき、指が少し横にずれるとページごと揺れていた）。
   clip はスクロールの仕組みを変えないので、上の見出しや画面の固定はそのまま。横に流す列（日付・ビルド）は今までどおり動く */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
/* 夜の王・夜渡りの欄は、上下の動きだけを受け付ける */
.wheel { touch-action: pan-y; }

/* 記録：「常夜」を選んだら、夜の王のアイコンを紫にする（白いアイコンを #a77cf0 くらいの紫に染める） */
.wheel-col.ever .ico { filter: brightness(0) saturate(100%) invert(58%) sepia(48%) saturate(2400%) hue-rotate(225deg) brightness(100%); }

/* ビルド：夜渡りのアイコンの四角いボタン（5列×2行）で絞り込む */
.char-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.char-sq { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px 2px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--fg); cursor: pointer; font: inherit; min-width: 0; }
.char-sq .ico { width: 26px; height: 26px; margin: 0; top: 0; }
.char-sq span { font-size: 10.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: -.03em; }
.char-sq i:not(.ico) { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--accent); }
.char-sq[aria-pressed="true"] { background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; }
.char-sq[aria-pressed="true"] .ico { filter: brightness(0); opacity: .8; }
.char-sq[aria-pressed="true"] i:not(.ico) { color: var(--accent-ink); }
.char-grid-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -4px 0 0; }

/* みんなの統計：期間の絞り込み（全期間・30日・7日・今日・指定） */
.g-period { display: grid; gap: 8px; margin-bottom: 4px; }
.g-period .chips { gap: 6px; }
.g-dates { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g-dates input { flex: 1; min-width: 0; font-size: 16px; }
.g-dates span { color: var(--dim); flex: none; }
.g-period .chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-period .chip { padding-left: 2px; padding-right: 2px; text-align: center; white-space: nowrap; }
.g-dates input { padding-left: 6px; padding-right: 4px; }

/* みんなのビルド・取り込み画面：遺物の効果を1行ずつ */
.rd-effs { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 1px; }
.rd-effs li { color: var(--dim); font-size: 12.5px; line-height: 1.45; padding-left: .9em; text-indent: -.9em; }
.rd-effs li::before { content: "・"; }
.rd-effs li.dem { color: var(--loss); padding-left: 1.6em; }
.rd-effs li.dem::before { content: ""; }

/* ビルド一覧：「マイプリセット」と「取り込んだビルド」の見出し */
.sub-head { display: flex; align-items: center; gap: 8px; margin: 6px 2px -4px; font-size: 13.5px; font-weight: 800; color: var(--dim); }
.sub-head span { font-size: 11.5px; font-weight: 700; color: var(--accent); }

/* みんなの統計：分析（タブ・並べ替え・勝率のありそうな範囲・相性表・推移） */
.g-ana { display: grid; gap: 10px; }
.g-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tabs button { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--dim); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.g-tabs button[aria-selected="true"] { background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; }
.g-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.g-tools .k { font-size: 11.5px; color: var(--dim); font-weight: 700; margin-left: 2px; }
.g-tools .k + .chip { margin-left: -2px; }
.g-tools .hint { font-size: 11.5px; margin: 0; }
.g-body { display: grid; gap: 12px; }
.ci-row .num small { margin-left: 5px; font-size: 11px; }
.ci-row .num em { font-style: normal; margin-left: 8px; color: var(--accent); font-size: 11.5px; min-width: 2.6em; display: inline-block; text-align: right; }
.ci-track { grid-column: 1 / -1; position: relative; height: 10px; background: rgba(0,0,0,.3); border-radius: 5px; }
.bar-row.tap .ci-track { grid-column: 1 / 3; }
.ci-track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 1px dashed rgba(170, 180, 255, .45); }
.ci-band { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; opacity: .55; }
.ci-band.win { background: var(--win); } .ci-band.loss { background: var(--loss); }
.ci-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 2px var(--panel); }
.bar-row.ci-row.open { background: rgba(255,255,255,.05); }
.g-drill { display: grid; gap: 12px; margin: -4px 0 4px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.g-mini { display: grid; gap: 10px; }
.g-mini-h { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.g-mini-h small { color: var(--dim); font-weight: 500; font-size: 11.5px; }
.g-legend { font-size: 11.5px; margin: 0; }
/* 相性表：夜の王（縦）× 夜渡り（横） */
.mx { display: grid; grid-template-columns: 26px repeat(10, minmax(0, 1fr)); gap: 2px; }
.mx-h, .mx-r { display: grid; place-items: center; }
.mx-h .ico, .mx-r .ico { width: 20px; height: 20px; margin: 0; top: 0; }
.mx-cell { aspect-ratio: 1 / 1; min-width: 0; border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 10.5px; font-weight: 800; color: var(--fg); padding: 0; cursor: pointer; font-variant-numeric: tabular-nums; }
.mx-cell.few { opacity: .55; border-style: dashed; }
.mx-cell.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.mx-note { margin: 0; }
.trend { width: 100%; height: auto; display: block; }
.g-tools .grp { display: inline-flex; align-items: center; gap: 5px; flex-wrap: nowrap; }

/* みんなのビルド：リアクション（何種類でも付けられる） */
.react-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.react { display: grid; justify-items: center; gap: 1px; padding: 7px 2px 6px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--fg); font: inherit; cursor: pointer; min-width: 0; }
.react .e { font-size: 20px; line-height: 1.1; }
.react .l { font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: -.03em; }
.react b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.react.on { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.react.on .l { color: var(--accent); }
.react:active { transform: scale(.95); }
/* ネタビルド */
.badge.neta { color: #ffd37a; border-color: color-mix(in srgb, #ffd37a 55%, transparent); background: color-mix(in srgb, #ffd37a 12%, transparent); }
.neta-line, .neta-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.neta-line span, .neta-filter span { display: grid; font-size: 13.5px; }
.neta-line small { color: var(--dim); font-size: 11.5px; }
.neta-filter { padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.neta-filter span { display: block; font-weight: 700; }
.neta-filter small { color: var(--dim); font-weight: 500; margin-left: 4px; }
.badge.neta { margin-left: 6px; }

/* アップデート情報 */
.badge.new { color: #1b1405; background: var(--grad-gold); border-color: transparent; margin-left: 6px; font-weight: 800; vertical-align: 1px; }
.news section h3 { display: flex; align-items: center; gap: 8px; }
.news section h3 small { color: var(--dim); font-size: 12px; font-weight: 500; }

/* ビルドガチャ */
.gacha-btn { display: grid; gap: 1px; width: 100%; padding: 11px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(135deg, rgba(220,184,108,.16), rgba(167,124,240,.12)); color: var(--fg); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-align: center; }
.gacha-btn small { font-size: 11.5px; font-weight: 500; color: var(--dim); }
.gacha-btn:active { transform: scale(.98); }
.gacha-result { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: radial-gradient(120% 80% at 50% 0%, rgba(220,184,108,.18), transparent 70%), var(--surface-2); animation: gacha-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.gacha-char { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--dim); }
.gacha-char .ico { width: 34px; height: 34px; }
.gacha-name { text-align: center; font-size: 19px; font-weight: 800; color: var(--accent); }
.gacha-name .badge { margin-left: 6px; vertical-align: 3px; }
.gacha-result > .hint { text-align: center; margin: -4px 0 0; }
@keyframes gacha-pop { 0% { transform: scale(.7) rotate(-4deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* 常夜の王のアイコンは紫（履歴・統計） */
.ico.ever { filter: brightness(0) saturate(100%) invert(58%) sepia(48%) saturate(2400%) hue-rotate(225deg) brightness(100%); }
.tile-btn[aria-pressed="true"] .ico.ever, .drill-chip .ico.ever { filter: brightness(0) opacity(.8); }

/* みんなのビルド：定型文コメント */
.cmt { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.16); }
.cmt-h { font-size: 13.5px; font-weight: 800; }
.cmt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cmt-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.cmt-list li b { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.cmt-list li.mine span { color: var(--accent); }
.cmt-list li.none { color: var(--dim); font-size: 12.5px; }
.cmt-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.cmt-open { justify-self: start; }
.cmt-compose { display: grid; gap: 8px; }
.cmt-compose .chips { gap: 6px; }
.cmt-groups { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cmt-groups::-webkit-scrollbar { display: none; }
.cmt-groups button { flex: none; border: 1px solid var(--line); background: transparent; color: var(--dim); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.cmt-groups button.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.cmt-preview { text-align: center; font-size: 16px; font-weight: 800; color: var(--accent); padding: 8px; border-radius: 10px; background: rgba(255,255,255,.04); min-height: 22px; }
.cmt-compose .chips { flex-wrap: wrap; overflow: visible; }
.cmt-groups { flex-wrap: wrap; overflow: visible; }

/* ミニゲーム「壺渡り」（タイトルの右の小壺から入る） */
.kotsubo .k-top { text-align: center; display: grid; gap: 2px; padding-bottom: 10px; }
.k-mark { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.k-mark span { font-size: 34px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.k-mark small { font-size: 13px; color: var(--dim); font-weight: 700; }
.k-rate { margin: 0; font-variant-numeric: tabular-nums; }
.k-stage { position: relative; height: 230px; display: grid; place-items: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.k-tap { border: 0; background: radial-gradient(closest-side, rgba(220,184,108,.22), transparent 75%); border-radius: 50%; width: 230px; height: 230px; display: grid; place-items: center; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.k-tap img { width: 200px; height: auto; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.k-tap img.bonk { animation: k-bonk .18s ease-out; }
@keyframes k-bonk { 0% { transform: scale(1); } 40% { transform: scale(.9) rotate(-3deg); } 100% { transform: scale(1); } }
.k-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.k-float { position: absolute; transform: translate(-50%, -50%); font-weight: 800; font-size: 18px; color: var(--accent); text-shadow: 0 2px 6px rgba(0,0,0,.7); animation: k-up .9s ease-out forwards; white-space: nowrap; }
.k-float.hit { color: #ff8b78; }
.k-float.gold { color: #d7b8ff; font-size: 20px; }
@keyframes k-up { to { transform: translate(-50%, -260%); opacity: 0; } }
.k-say { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); background: var(--fg); color: #1b1405; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 12px; opacity: 0; pointer-events: none; white-space: nowrap; }
.k-say.show { animation: k-say 1.8s ease-out; }
@keyframes k-say { 0% { opacity: 0; transform: translate(-50%, 6px); } 12%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.k-rush { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: #d7b8ff; background: rgba(106,75,196,.35); padding: 3px 10px; border-radius: 999px; }
.k-jar { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 2px solid #a77cf0; background: radial-gradient(circle, rgba(167,124,240,.55), rgba(106,75,196,.2)); font-size: 26px; cursor: pointer; animation: k-jar 1.2s ease-in-out infinite; z-index: 2; box-shadow: 0 0 18px rgba(167,124,240,.8); padding: 0; }
@keyframes k-jar { 50% { transform: translateY(-6px) rotate(6deg); } }
.k-hint { margin: 0; font-size: 11.5px; }
.k-spoils { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--win) 50%, transparent); background: color-mix(in srgb, var(--win) 12%, transparent); }
.k-spoils span { display: grid; font-weight: 800; font-size: 13.5px; }
.k-spoils small { font-weight: 500; color: var(--dim); font-size: 12px; }
.small-primary { width: auto; padding: 9px 16px; font-size: 14px; letter-spacing: .05em; flex: none; }
.k-boss { display: grid; gap: 8px; }
.k-boss-h { display: flex; align-items: center; gap: 8px; }
.k-boss-h .ico { width: 30px; height: 30px; }
.k-boss-h .hint { margin-left: auto; font-size: 12px; }
.k-boss .small-primary { justify-self: start; }
.k-boss.fighting .k-boss-h b { color: #ff8b78; }
.k-hp { height: 12px; border-radius: 6px; background: rgba(0,0,0,.35); overflow: hidden; }
.k-hp span { display: block; height: 100%; background: var(--grad-loss); transition: width .1s linear; }
.k-list { display: grid; gap: 6px; }
.k-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--fg); font: inherit; cursor: pointer; min-width: 0; }
.k-row .ico, .k-row .k-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; margin: 0; top: 0; font-size: 20px; }
.k-row .k-main { flex: 1; min-width: 0; display: grid; }
.k-row .k-main b { font-size: 14px; }
.k-row .k-main b i { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 6px; }
.k-row .k-main small { color: var(--dim); font-size: 11.5px; line-height: 1.35; }
.k-row .k-cost { flex: none; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.k-row.cant { opacity: .45; }
.k-row.locked { opacity: .35; cursor: default; }
.k-row:active:not(.cant) { transform: scale(.98); }
.k-stats { text-align: center; margin: 0; }
.k-reset { justify-self: center; font-size: 12px; }

/* タイトルの右の小壺（文字は出さない。押した人だけが気付く） */
.title-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.kotsubo-btn { flex: none; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: .55; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: opacity .2s, transform .2s; }
.kotsubo-btn img { width: 28px; height: auto; pointer-events: none; filter: grayscale(.3); }
.kotsubo-btn:active { transform: scale(.85) rotate(-8deg); opacity: 1; }

/* 小壺の絵（画面の中に入れたSVG）：叩くと縮んで、腕をしまう */
.k-tap { width: 100%; max-width: 330px; border-radius: 40%; }
.k-art { display: block; width: 100%; pointer-events: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.k-art svg, .k-art img { width: 100%; height: auto; display: block; }
.k-art.bonk { animation: k-bonk .18s ease-out; }
.k-art .kj-arm { transform-box: view-box; transition: transform .14s ease-out; }
.k-art .kj-arm-l { transform-origin: 86px 84px; }
.k-art .kj-arm-r { transform-origin: 158px 70px; }
.k-art.tuck .kj-arm-l { transform: rotate(-18deg) scale(.32); }
.k-art.tuck .kj-arm-r { transform: rotate(18deg) scale(.32); }
.k-art.tuck .kj-legs { transform-box: view-box; transform-origin: 122px 124px; transform: scaleY(.85); }
.k-tap { height: auto; aspect-ratio: 240 / 156; }
/* タイトル横の小壺は、腕を伸ばした横長の絵なので少し広めに */
.kotsubo-btn { width: 42px; height: 30px; }
.kotsubo-btn img { width: 40px; }
.kotsubo-btn { width: 32px; height: 24px; margin-left: -1px; opacity: .75; }
.kotsubo-btn img { width: 32px; filter: none; }
.brand { flex: 1 1 auto; }
.bar-btns { flex: none; }

/* みんなのビルド：「ネタビルドだけ表示」のスイッチ */
button.neta-filter { width: 100%; font: inherit; color: var(--fg); cursor: pointer; text-align: left; }
.tgl { flex: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid var(--line-strong); transition: background .18s; }
.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tgl.on { background: #d9a441; border-color: transparent; }
.tgl.on::after { transform: translateX(20px); }
.cmt-compose .label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmt-two { display: grid; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.cmt-add { justify-self: start; }
.cmt-preview { position: sticky; top: 0; z-index: 1; background: var(--surface-2); }
.cmt-preview { background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 6px 14px -6px rgba(0,0,0,.7); }

/* 知識タブ：項目の一覧（1行ずつ）と、ボス不明チェッカー */
.know-menu { display: grid; gap: 10px; }
.know-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; cursor: pointer; color: var(--fg); font: inherit; font-size: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.know-row:active { transform: scale(.98); }
.know-row b { flex: 1; }
.know-row .chev { transform: rotate(-45deg); margin-top: 0; }
.know-ico { width: 34px; height: 34px; flex: none; background: var(--accent); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.know-soon { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--dim); }
.know-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--dim); font: inherit; font-size: 13px; padding: 2px 0; cursor: pointer; }
.know-back::before { content: '‹'; font-size: 20px; line-height: 1; color: var(--accent); }
.bj-card, .bj-result { display: grid; gap: 12px; padding: 14px; }
.bj-wheels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.bj-wheels .wheel-item { white-space: normal; line-height: 1.2; font-size: 12px; text-align: center; }
.bj-wheels .wheel-item.center { font-size: 13px; }
.bj-detail { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.bj-detail .sec-toggle small { flex: 1; text-align: left; color: var(--accent); margin-left: 8px; font-size: 12px; }
.bj-detail-body { display: grid; gap: 8px; }
.bj-detail-body .flag-label { margin: 2px 0 0; }
.bj-result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.bj-result-head .flag-label { margin: 0; font-size: 13px; }
.bj-lords { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.bj-lords.one { grid-template-columns: 1fr; }
.bj-lord { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); font-size: 13.5px; font-weight: 700; }
.bj-lords.one .bj-lord { justify-content: center; font-size: 17px; padding: 10px; border-color: var(--accent); color: var(--accent); }
.bj-detail:not(.open) .sec-toggle .chev { transform: rotate(45deg); margin-top: -4px; }

/* 自分の統計：タブの中の小見出し（武器・型） */
.m-sub { margin: 4px 2px 0; font-size: 13px; color: var(--dim); font-weight: 700; }
/* 自分の統計：期間は3つなので3列。行タップの案内は小さく */
.g-period.p3 .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-hint { font-size: 11.5px; margin: 0; }
/* アップデート情報：版ごとに折りたたみ（右の ▸ が開くと ▾） */
.news-ver { border-bottom: 1px solid var(--line); padding: 2px 0; }
.news-ver summary { list-style: none; cursor: pointer; padding: 8px 2px; }
.news-ver summary::-webkit-details-marker { display: none; }
.news-ver summary h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.news-ver summary h3 small { color: var(--dim); font-size: 12px; font-weight: 500; }
.news-ver summary h3::after { content: "▸"; margin-left: auto; color: var(--dim); font-size: 13px; }
.news-ver[open] summary h3::after { content: "▾"; }
.news-ver .help-points { margin: 0 0 10px; }
.news-ver.latest h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 2px; }
.news-ver.latest h3 small { color: var(--dim); font-size: 12px; font-weight: 500; }
/* 記録：1日目・2日目に負けたとき、倒された夜の強敵を選ぶボタン（名前が長いので2列） */
.foe-pick .rec-q { white-space: normal; }
.foe-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 46vh; overflow-y: auto; }
.foe-btns .result-btn { font-size: 13.5px; letter-spacing: 0; padding: 10px 6px; line-height: 1.3; white-space: normal; }
/* 統計の表：％の前に「勝率」「使用率」などの小さな名前を付ける（白＝勝率、黄＝全体のうちの割合） */
.ci-row .num b i, .ci-row .num em i { font-style: normal; font-weight: 500; font-size: 10px; margin-right: 2px; opacity: .8; }
.ci-row .num b i { color: var(--dim); }
/* まとめの下の相性の表：見出しなし。上に小さなスイッチを3つ横に並べる（深き/浅き・使用数/勝率・すべて/通常/常夜） */
.mx-card { display: grid; gap: 10px; }
.mx-tools { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: space-between; }
.mx-sw { display: inline-flex; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; }
.mx-sw button { border: 0; background: transparent; color: var(--dim); font: inherit; font-size: 11.5px; font-weight: 700; padding: 5px 7px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.mx-sw button[aria-pressed="true"] { background: var(--grad-gold); color: var(--accent-ink); }
.mx-sw.ev button[data-v="ever"][aria-pressed="true"] { background: linear-gradient(90deg, #6a4bc4, #a77cf0); color: #fff; }
@media (max-width: 359px) { .mx-sw button { font-size: 10.5px; padding: 5px 5px; } }
/* なぞって選べるスイッチ：横の動きはページのスクロールにしない。指の下のボタンを薄く光らせる。押しやすいよう少し大きく */
.mx-sw, .scope-seg { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mx-sw button { padding: 7px 8px; }
.mx-sw button.sw-hover:not([aria-pressed="true"]), .scope-seg button.sw-hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.14); color: var(--fg); }
@media (max-width: 359px) { .mx-sw button { padding: 7px 5px; } }
/* 多いものランキング：順位・名前・回数（右に全体のうちの割合）、下に一番多いものを100%とした棒 */
.rk-card { display: grid; gap: 10px; }
.rk-note { margin: 0; font-size: 11.5px; }
.rk-list { display: grid; gap: 10px; }
.rk-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; column-gap: 8px; row-gap: 4px; }
.rk-no { grid-row: span 2; font-weight: 800; font-size: 14px; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.rk-row.top .rk-no { color: var(--accent); }
.rk-name { display: flex; align-items: center; gap: 6px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name .ico { width: 20px; height: 20px; margin: 0; top: 0; flex: none; }
.rk-num { font-size: 12px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rk-num b { color: var(--fg); font-size: 14px; margin-right: 1px; }
.rk-num small { margin-left: 6px; color: var(--accent); font-size: 11.5px; }
.rk-bar { grid-column: 2 / 4; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-win); }
/* ランキング：右上に黄色で「使用率」など（右の％の名前）。夜渡りの行は押せる。開くと型ごとの回数 */
.rk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11.5px; color: var(--dim); margin: 0 0 -4px; }
.rk-head small { color: var(--accent); font-size: 11.5px; font-weight: 700; padding-right: 2px; }
button.rk-row { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; padding: 4px 2px; border-radius: 10px; cursor: pointer; }
button.rk-row.open { background: rgba(255,255,255,.05); }
.rk-num .go { margin-left: 8px; color: var(--dim); font-weight: 700; }
.rk-sub { display: grid; gap: 6px; margin: -4px 0 4px 30px; padding: 8px 10px; border-left: 2px solid var(--line-strong); }
.rk-subrow { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.rk-subrow b { font-variant-numeric: tabular-nums; }
.rk-subrow.dim { color: var(--dim); }
/* 見出しの横の「!」（丸の中に！）。押すと説明が開く */
.info-btn { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; padding: 0; border-radius: 50%; border: 1.5px solid var(--dim); background: transparent; color: var(--dim); font: inherit; font-size: 12px; font-weight: 800; line-height: 1; vertical-align: 2px; cursor: pointer; }
.info-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.info-text { margin-top: 0; }
.scan-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* ビルドの一覧の上：作る／みんなのビルド／ガチャ を1列に。右端に「!」 */
.build-top { display: grid; grid-template-columns: 3fr 7fr auto; gap: 6px; align-items: center; }  /* 作る3：ガチャ7 */
.bt-btn { border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; padding: 10px 4px; border-radius: 12px; cursor: pointer; white-space: nowrap; }
.bt-btn.add { background: var(--grad-gold); color: var(--accent-ink); border-color: transparent; }
.bt-btn.add.danger { background: var(--loss); color: #fff; }
.bt-btn:disabled { opacity: .45; cursor: default; }
.build-top .info-btn { margin-left: 2px; }
/* ビルドの一覧のプリセット：左に名前と中身、右に勝率と使用数（縦を低く） */
.card.preset-card { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 11px 14px; }
.preset-card .pc-ico .ico { width: 26px; height: 26px; margin: 0; top: 0; }
.preset-card .pc-main .title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preset-card .pc-main { display: grid; gap: 3px; min-width: 0; }
.preset-card .pc-main .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preset-card .pc-side { display: grid; justify-items: end; gap: 1px; white-space: nowrap; }
.preset-card .pc-side small { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
/* プリセット編集の一番下：キャンセル1：保存2 → 共有・複製を同じ幅で → 削除は小さな文字ボタン */
.edit-actions { display: grid; gap: 10px; padding-top: 4px; }
.edit-main { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.edit-main > button { padding: 14px 8px; border-radius: 14px; }
.edit-sub { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.edit-sub > button { padding: 10px 6px; font-size: 13.5px; }
.edit-del { justify-self: center; border: 0; background: transparent; color: var(--loss); font: inherit; font-size: 13px; padding: 8px 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.edit-del.on { font-weight: 700; }
.scan-body { display: grid; gap: 10px; }
/* プリセット一覧：勝率の右に「勝ち数/使った回数」を横並びで */
.preset-card .pc-side { grid-auto-flow: column; align-items: baseline; gap: 6px; }
/* みんなのビルド：ネタビルドのスイッチの右に「!」 */
.pub-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
/* 夜渡りの四角（自分・みんなのビルドの絞り込み）：少しだけ小さく（高さを低く、アイコンも少し小さく） */
.char-grid { gap: 5px; }
.char-sq { aspect-ratio: 1 / .82; border-radius: 10px; padding: 3px 2px; }
.char-sq .ico { width: 22px; height: 22px; }
.char-sq span { font-size: 10px; }
/* みんなのビルド：夜渡りの四角の上に「共有する」「ガチャ」 */
.pub-actions { display: grid; grid-template-columns: 3fr 7fr auto; gap: 6px; align-items: center; }  /* 共有3：ガチャ7 */
.share-card { display: grid; gap: 4px; }
.share-name { display: flex; align-items: center; gap: 8px; }
.share-name .ico { width: 24px; height: 24px; margin: 0; top: 0; }
/* みんなのビルドの1枚：アイコン＋プリセット名／コメント／リアクション */
.pub-title > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pub-title .ico { width: 24px; height: 24px; margin: 0; top: 0; flex: none; }
/* プリセットの作成日時・みんなのビルドの公開日時（小さく薄く） */
.pc-date { font-size: 11px; color: var(--dim); font-weight: 400; }
.pub-date { font-size: 11px; color: var(--dim); font-weight: 400; white-space: nowrap; margin-left: auto; }
.pub-title { gap: 8px; }
/* 管理人モード：みんなのビルドを開いたときの管理人だけのボタン */
.admin-box { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 12px; }
.admin-h { font-weight: 700; font-size: 13px; color: var(--accent); }
.admin-h small { font-weight: 400; color: var(--dim); margin-left: 6px; }
.admin-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-btns > button { flex: 1 1 auto; padding: 9px 8px; font-size: 13px; }
.pick.dim-item { opacity: .6; }
/* 管理人モードの入力欄（ほかの入力欄と同じ見た目） */
input[type="password"] { width: 100%; background: rgba(5, 8, 24, .55); border: 1px solid var(--line-strong); color: var(--fg); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }
/* 履歴：夜渡りは名前を出さずアイコンだけ、その横にビルド名。詳細に夜渡り名・常夜・人数 */
.run .who .dim { color: var(--dim); font-weight: 400; }
.run-info { font-size: 12px; color: var(--dim); }
/* 履歴の1行：夜の王 × アイコン＋ビルド名 を1行に（長いビルド名は「…」）。倒れた場所・相手も長ければ「…」 */
.run .who { flex-wrap: nowrap; min-width: 0; }
.run .who .nm-ico:last-child { min-width: 0; overflow: hidden; }
.run .who .nm-ico:last-child > :not(.ico) { overflow: hidden; text-overflow: ellipsis; }
.run .who .nm-ico:last-child { display: flex; }
.run .res small { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; }
.run .who .bn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* 履歴：どの行も同じ高さに。深き夜は夜の王の前に小さな「深3」の札（地図欠損などは開いたときに） */
.run { min-height: 58px; align-items: center; }
.run .deep-tag { flex: none; font-size: 11px; font-weight: 800; line-height: 1; padding: 4px 5px; border-radius: 6px; color: var(--deep); border: 1px solid color-mix(in srgb, var(--deep) 55%, transparent); background: color-mix(in srgb, var(--deep) 12%, transparent); }
.run .res { line-height: 1.15; }
.run .res small { margin-top: 2px; line-height: 1.2; }
.run { padding-top: 8px; padding-bottom: 8px; }
/* プリセット編集の夜渡り：アイコンだけを5列×2行に */
.char-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.char-pick-btn { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); cursor: pointer; }
.char-pick-btn .ico { width: 30px; height: 30px; margin: 0; top: 0; }
.char-pick-btn[aria-pressed="true"] { background: var(--grad-gold); border-color: transparent; }
.char-pick-btn[aria-pressed="true"] .ico { filter: brightness(0); opacity: .8; }
/* 履歴：夜の王の前に、深度の札とその下に地変の名前を縦に積む */
.run .run-tags { flex: none; display: grid; gap: 2px; justify-items: start; }
.run .shift-tag { font-size: 9.5px; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 5px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); white-space: nowrap; }

/* 履歴：日付ごとの区切りを詰める（行の高さ・行どうしの間・日付どうしの間） */
.day { gap: 5px; }
.day + .day { margin-top: -4px; }
.day .run { min-height: 48px; padding-top: 5px; padding-bottom: 5px; }

/* ビルド一覧：長いビルド名は2行まで折り返す（それより長ければ「…」） */
.preset-card .pc-main .title > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 1.35; }
/* ランキングの内訳：アイコンつきの行・小見出し */
.rk-subrow > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rk-subrow .ico { width: 18px; height: 18px; margin: 0; top: 0; flex: none; }
.rk-subhead { font-size: 11px; color: var(--dim); margin-top: 2px; }
.rk-subhead:first-child { margin-top: 0; }
/* 記録：終わったときのレベル（任意） */
.lv-sel { min-width: 0; appearance: none; -webkit-appearance: none; background: rgba(5, 8, 24, .55) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%276%27%3E%3Cpath d=%27M1 1l4 4 4-4%27 fill=%27none%27 stroke=%27%239ea2c8%27 stroke-width=%271.5%27/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line-strong); color: var(--fg); border-radius: 999px; padding: 5px 28px 5px 12px; font: inherit; font-size: 13px; }
.lv-sel.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
/* 小壺：深き壺の深度の札 */
.k-depth { flex: none; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #e6d8ff; background: color-mix(in srgb, #8b5cf6 45%, transparent); border: 1px solid color-mix(in srgb, #a78bfa 60%, transparent); }
/* 小壺：所持遺物のフレーバーテキスト */
.k-row.own .go { flex: none; color: var(--dim); font-weight: 700; width: 16px; text-align: center; }
.k-row.own.open { border-color: var(--line-strong); }
.k-flavor { margin: -2px 4px 4px 44px; padding: 10px 12px; border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 13px; line-height: 1.8; color: color-mix(in srgb, var(--fg) 82%, transparent); letter-spacing: .02em; }
/* 小壺：アイテム（名前を押すと説明、右に使う・買う） */
.k-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); min-width: 0; }
.k-item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--fg); font: inherit; text-align: left; padding: 2px 0 2px 10px; cursor: pointer; }
.k-item-main .k-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; font-size: 20px; }
.k-item-main .k-main { flex: 1; min-width: 0; display: grid; }
.k-item-main .k-main b { font-size: 14px; }
.k-item-main .k-main b i { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 6px; }
.k-item-main .k-main small { color: var(--dim); font-size: 11.5px; line-height: 1.35; }
.k-item-btns { flex: none; display: grid; gap: 4px; justify-items: stretch; }
.k-item-btns button { padding: 5px 10px; font-size: 12px; min-height: 0; white-space: nowrap; }
.k-item-btns .k-buy.cant { opacity: .45; }
/* 小壺：アイテムは1行ずつ小さく（絵・名前・数・使う）。説明は名前を押したときだけ */
.k-items .sec-head { margin-bottom: 6px; }
.k-item-list { display: grid; gap: 6px; }
.k-item { padding: 3px 6px 3px 0; gap: 6px; }
.k-item.none { opacity: .5; }
.k-item-main { gap: 8px; padding: 2px 0 2px 8px; }
.k-item-main .k-ico { width: 24px; height: 24px; font-size: 17px; }
.k-item-main b { font-size: 13.5px; font-weight: 700; }
.k-item-main i { font-style: normal; color: var(--accent); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: auto; padding-right: 4px; }
.k-item .k-use { flex: none; padding: 4px 12px; font-size: 12px; min-height: 0; }
.k-item-list .k-flavor { margin: -2px 4px 2px 38px; }
.k-flavor .k-eff { display: block; font-family: inherit; font-size: 12px; color: var(--accent); margin-bottom: 6px; letter-spacing: 0; }
/* 小壺：画面ロック（右上の鍵）。オンの間は画面を動かさない */
.icon-btn.lock-btn[hidden] { display: none; }
.icon-btn.lock-btn { padding-left: 10px; padding-right: 10px; }
.icon-btn.lock-btn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
html.k-locked, html.k-locked body { overscroll-behavior: none; }  /* overflow: hidden にすると上の見出しの固定が外れるので、指の動きを止めるだけにする */
html.k-locked .kotsubo { touch-action: none; }
/* フレーバーテキストの字は、ほかと同じにする */
.k-flavor { font-family: inherit; letter-spacing: 0; }
.k-flavor[hidden] { display: none; }
/* 小壺：難易度の切り替え */
.k-diff { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.k-diff > span { font-size: 12.5px; color: var(--dim); flex: none; }
.k-diff .seg { flex: 1; }
.k-diff-note { margin-top: 4px; font-size: 11.5px; }
.k-diff .seg button { padding: 5px 8px; font-size: 12.5px; }
.k-weak { margin-top: 4px; color: #c9a7ff; font-size: 12px; }
.k-list[hidden] { display: none; }
.k-scar { margin: 10px 0 0; color: #e58a8a; font-size: 12px; line-height: 1.6; }
.k-scar[hidden] { display: none; }
/* 効果を選ぶ画面：同じ遺物に一緒に付けられない効果は薄く（押せない） */
.pick.pick-ng { opacity: .38; cursor: default; pointer-events: none; }
.pick.pick-ng .cat { font-size: 11px; }

/* 左上の小見出しが長くても（壺渡りの大きな数字など）、右上のボタンの手前で「…」にする */
.brand > div { min-width: 0; }
/* 壺渡りの画面（右上にロックのボタンが出ている間）は、タイトル横の小壺のボタンを隠す（もう壺の中にいるので要らない。ロックのボタンとかぶる） */
.appbar:has(.lock-btn:not([hidden])) .kotsubo-btn { display: none; }

/* 夜の王・夜渡りのアイコンは <i> の背景の絵（タブを切り替えたときの点滅をなくすため。大きさは .ico の決まりのまま） */
i.ico { display: inline-block; background-position: center; background-size: contain; background-repeat: no-repeat; }

/* ビルドの編集：貼り付けた画像を、表・深層のどちらとして読み取るか */
.scan-paste { display: grid; gap: 6px; margin-top: 8px; padding: 8px; border: 1px dashed var(--line); border-radius: 12px; }
.scan-paste > span { font-size: 13px; color: var(--dim); }

/* 壺渡り：マークの数を、すべての桁で出すとき（長いので小さめにして折り返す） */
.k-mark { flex-wrap: wrap; }
.k-mark span.full { font-size: 20px; letter-spacing: 0; overflow-wrap: anywhere; text-align: center; max-width: 100%; }
.k-digits { display: block; margin: 2px auto 0; font-size: 12px; }

/* 壺渡り：ランキング */
.k-rank-me { margin: 0 0 8px; font-size: 14px; }
.k-rank-me b { color: var(--accent); }
.k-rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.k-rank-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.03); font-variant-numeric: tabular-nums; }
.k-rank-list li b { min-width: 3em; color: var(--dim); }
.k-rank-list li span:not(.badge) { overflow-wrap: anywhere; }
.k-rank-list li.me { outline: 1px solid var(--accent); }
.k-rank-list .k-rank-adm { font-size: 12px; margin-left: auto; }
.k-rank-list .k-rank-adm + .k-rank-adm { margin-left: 0; }
.k-rank-leave { display: block; margin: 10px auto 0; font-size: 12px; }

/* 統計のランキング：深き／浅き／両方と深度 */
.rk-card .sec-head { flex-wrap: wrap; gap: 6px; }
.rk-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rk-tools .mini-select { padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
/* 浅きのときは深度のプルダウンを出さないので、切り替えはタイトルの右に左寄せで置く（出し入れしてもボタンが動かないように） */
.rk-card .rk-tools { margin-left: 4px; }
.rk-card .sec-head { justify-content: flex-start; }

/* 記録の「日付」の右：まだ見ていないアップデートがあるときだけ、黄色い文字で知らせる（押すとアップデート情報が開き、消える） */
.news-flag { border: 0; background: none; padding: 0; margin: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; white-space: nowrap; }
/* 連打王：いちばん下のひとこと（区切り線の下に、静かに） */
.k-renda-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.15); font-size: 12px; line-height: 1.8; color: var(--dim); text-align: center; letter-spacing: .04em; }
/* 壺渡り：夜の王に挑む前の確かめる画面（アイテム・画面のロック）と「3・2・1」 */
.sheet.k-prep { grid-template-rows: auto 1fr; }
.k-prep-body { display: grid; gap: 10px; overflow-y: auto; padding-bottom: 4px; }
.k-prep-q { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.k-prep-q small { display: block; font-weight: 400; font-size: 12px; color: var(--dim); margin-top: 2px; }
.k-prep-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.k-prep-items button { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.k-prep-items button small { color: var(--dim); font-size: 11px; }
.k-prep-items button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; background: rgba(255,255,255,.08); }
.k-prep-items button:disabled { opacity: .4; cursor: default; }
.k-prep-go { margin-top: 6px; }
.k-count { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; pointer-events: none; background: rgba(3, 4, 12, .45); }
.k-count b { font-size: 96px; line-height: 1; color: var(--accent); text-shadow: 0 0 30px rgba(0,0,0,.8); }
.k-count b.go { font-size: 48px; }
.k-count b.pop { animation: k-count-pop .8s ease-out; }
@keyframes k-count-pop { from { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { transform: scale(.9); opacity: .85; } }
/* 戦果ボーナス：マークか爪痕を選んで受け取る */
.k-spoils { flex-wrap: wrap; }
.k-spoils > span { flex: 1 1 100%; }
.k-spoils-btns { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 100%; }
.k-spoils-btns button { flex: 1 1 0; min-width: 0; }
.k-stats { line-height: 1.7; }
/* 爪痕を知らない人には、使わない・香の2つだけ */
.k-prep-items.two { grid-template-columns: repeat(2, 1fr); }
/* 常夜の小壺から出たラッシュを始めるボタン */
.k-rush-go { display: block; margin: 8px auto 0; }
.k-rush-go[hidden] { display: none; }
/* 周回の印（深度5を抜けて深度1へ戻った回数） */
.k-loop { flex: none; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #fde68a; background: color-mix(in srgb, #f59e0b 30%, transparent); border: 1px solid color-mix(in srgb, #fbbf24 55%, transparent); }
.k-rank-list .k-loop { margin-left: 6px; }
/* 下に引いて更新（画面のいちばん上で下へ引くと出る丸い印） */
.ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; z-index: 200; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid color-mix(in srgb, currentColor 20%, transparent); color: inherit; font-size: 12px; box-shadow: 0 4px 14px rgb(0 0 0 / .35); pointer-events: none; transform: translate(-50%, -48px); opacity: 0; }
.ptr-ico { display: inline-block; font-size: 18px; line-height: 1; }
.ptr.ready { border-color: #e3b866; }
.ptr.ready .ptr-ico { color: #e3b866; }
.ptr.spin .ptr-ico { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
/* 連打王の3位まで（金・銀・銅。1位は王冠、2・3位はメダル） */
.k-renda .k-rank-list li b { display: inline-flex; align-items: center; gap: 4px; min-width: 4.2em; }
.k-prize { width: 26px; height: 26px; flex: none; }
.k-renda .k-rank-list li.top1 { background: linear-gradient(90deg, rgba(240,190,70,.22), rgba(240,190,70,.05)); border: 1px solid rgba(240,190,70,.55); }
.k-renda .k-rank-list li.top1 b { color: #f5cf6b; }
.k-renda .k-rank-list li.top2 { background: linear-gradient(90deg, rgba(200,210,225,.18), rgba(200,210,225,.04)); border: 1px solid rgba(200,210,225,.45); }
.k-renda .k-rank-list li.top2 b { color: #d5dce8; }
.k-renda .k-rank-list li.top3 { background: linear-gradient(90deg, rgba(205,127,70,.2), rgba(205,127,70,.04)); border: 1px solid rgba(205,127,70,.5); }
.k-renda .k-rank-list li.top3 b { color: #e0a374; }
/* 壺渡り：夜の王の欄を1行に（名前・体力・！・右端に挑む） */
.k-boss-h { flex-wrap: wrap; }
.k-boss-h .k-boss-max { margin-left: 0; }
.k-boss-h .k-boss-go { margin-left: auto; }
.k-info { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line, #555); background: transparent; color: inherit; font-size: 13px; font-weight: 700; line-height: 1; flex: none; }
/* 夜の王の欄の「!」：見た目はそのまま、押せる範囲だけ広げる */
.k-info { position: relative; }
.k-info::before { content: ''; position: absolute; inset: -11px; }
/* いちばん小さいスマホ（幅340pxまで）：夜の王の欄を1行に収める */
@media (max-width: 340px) {
  .k-boss-h { gap: 4px; }
  .k-boss-h .ico { width: 24px; height: 24px; }
  .k-boss-h .k-depth, .k-boss-h .k-loop { padding: 1px 5px; font-size: 10px; }
  .k-boss-h .k-boss-max { font-size: 11px; }
  .k-boss-h .k-boss-go { padding: 8px 9px; font-size: 13px; letter-spacing: 0; }
}
/* 下に引いて更新：言葉なしの丸いアイコンだけ（羽根12本。引くほど増え、更新中は回る） */
.ptr { width: 38px; height: 38px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
.ptr-ico { width: 22px; height: 22px; font-size: 0; }
.ptr-ico line { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transition: opacity .08s; }
.ptr.ready, .ptr.ready .ptr-ico { color: inherit; border-color: color-mix(in srgb, currentColor 20%, transparent); }  /* そろっても色は変えない */
.ptr.spin .ptr-ico { animation: ptr-spin 1s steps(12) infinite; }
/* 下に引いて更新：なめらかに動かす（引いている間は指について動き、離したら0.25秒でするっと戻る） */
.ptr { will-change: transform, opacity; backface-visibility: hidden; }
.ptr.back { transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease-out; }
.ptr.settle { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.ptr-ico line { transition: none; }
/* 統計の早見表：一番右の列と一番下の行に合計「ALL」（その夜の王・その夜渡りの全体） */
.mx { grid-template-columns: 24px repeat(11, minmax(0, 1fr)); }
.mx-sum-h { font-size: 8.5px; font-weight: 900; letter-spacing: -.06em; color: var(--accent); }
.mx-r.mx-sum-h { font-size: 9px; }
.mx-cell.sum { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
/* 記録の「条件」：行の余白と区切り線を減らして詰める。夜の王とモードは、入る幅なら1行に並べる */
.cond-card { padding-top: 8px; padding-bottom: 6px; }
.cond-card .cond-row { padding: 4px 0; border-top: 0; gap: 8px; }
.cond-card .cond-row .k { width: 50px; font-size: 13px; white-space: nowrap; }
.cond-card .cond-row.need .k::after { margin-left: 2px; }
.cond-pair { display: flex; flex-wrap: wrap; column-gap: 14px; }
.cond-pair .cond-row { flex: 0 1 auto; }
.cond-pair .cond-row + .cond-row .k { width: auto; }
.cond-card .chip.small { padding: 5px 11px; }
.cond-card .cond-memo { margin: 2px 0 0; }
/* 記録：ビルドなしのときの「型」（かんたんな型） */
.quick-style { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.quick-style .k { flex: none; font-size: 12.5px; color: var(--dim); }
.quick-style .chips { gap: 6px; min-width: 0; }
.quick-style { align-items: flex-start; }
.quick-style .k { padding-top: 6px; }
.quick-style .chips { flex-wrap: wrap; }
.cond-card .lv-sel { padding: 5px 24px 5px 10px; background-position: right 8px center; font-size: 12.5px; }
.cond-card .cond-row:has(.lv-sel) .chips { flex-wrap: nowrap; }
.cond-pair + .cond-row { margin-top: 0; }
@media (max-width: 340px) { .cond-card .cond-row .k { width: 44px; } .cond-card .cond-row { gap: 6px; } .cond-card .chip.small { padding: 5px 9px; } }
.cond-card { row-gap: 2px; }
.cond-pair { row-gap: 2px; }
.quick-style .qs-body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.quick-style .subpanel { margin: 0; padding: 8px; display: grid; gap: 6px; }
/* 記録の「条件」：項目名の幅をそろえ、ボタンの出だしを同じ位置にする。深度は「深き夜」の右隣に出す（入らなければ次の行） */
.cond-card .cond-row .k, .quick-style .k { width: 50px; flex: none; }
.cond-card .cond-row > .chips { flex: 1; }
.depth-pick { display: inline-flex; gap: 4px; }
.depth-pick .chip.dchip { min-width: 28px; padding-left: 0; padding-right: 0; justify-content: center; }
.cond-row:has(.depth-pick) .chips { flex-wrap: wrap; }
@media (max-width: 340px) { .cond-card .cond-row .k, .quick-style .k { width: 44px; } }
.depth-pick { gap: 3px; }
.depth-pick .chip.dchip { min-width: 25px; }
.cond-row:has(.depth-pick) .chip.small { padding-left: 9px; padding-right: 9px; }
.cond-row:has(.depth-pick) .chip.small.dchip { padding-left: 0; padding-right: 0; }
.cond-row:has(.depth-pick) { align-items: flex-start; }
.cond-row:has(.depth-pick) .k { padding-top: 7px; }
/* 壺渡り：終わったシーズンの結果 */
.k-season-h { margin: 14px 0 4px; font-size: 14px; display: flex; align-items: baseline; gap: 8px; }
.k-season-h:first-of-type { margin-top: 6px; }
.k-season-h small { font-size: 11.5px; font-weight: 500; color: var(--dim); }
/* 統計の型：中の型（押すと武器と公開ビルドが開く） */
.rk-subrow.tap { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rk-subrow.tap .go { margin-left: 6px; color: var(--dim); }
.rk-subrow small { color: var(--dim); font-weight: 500; }
.rk-sub2 { margin: 2px 0 8px 12px; padding-left: 10px; border-left: 2px solid var(--line); }
.rk-pub { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.rk-pub .ico { width: 18px; height: 18px; margin: 0; }
.rk-pub span:not(.go) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pub .go { color: var(--dim); }

/* 壺渡りのアイテム：上限（/8）は小さく */
.k-item-main i small { font-size: 10.5px; font-weight: 500; color: var(--dim); margin-left: 1px; }

/* 壺渡り：数の単位の早見表（「!」から開く） */
.k-mark .k-info { align-self: center; margin-left: 2px; }
.k-unit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.k-unit-list li { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: rgba(255,255,255,.03); }
.k-unit-list li.now { border-color: var(--accent); background: rgba(255,255,255,.08); }
.k-unit-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.k-unit-h b { font-size: 17px; color: var(--accent); }
.k-unit-yomi { font-size: 12px; color: var(--dim); }
.k-unit-e { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.k-unit-list p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--fg); }

/* 壺の主：4つの王の切り替えと、10人ごとのページ */
.k-boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.k-boards button { padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.k-boards button.k-board-master { grid-column: 1 / -1; font-size: 14px; font-weight: 700; }
.k-boards button[aria-selected="true"] { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,.09); font-weight: 700; }
.k-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--dim); }
.k-pager .chip:disabled { opacity: .35; }
.k-pager-me { display: block; margin: 6px auto 0; }
/* 壺の主の一覧も、1〜3位を金・銀・銅の色に */
.k-boards ~ .k-rank-list li.top1 { background: linear-gradient(90deg, rgba(240,190,70,.22), rgba(240,190,70,.05)); border: 1px solid rgba(240,190,70,.55); }
.k-boards ~ .k-rank-list li.top1 b { color: #f5cf6b; }
.k-boards ~ .k-rank-list li.top2 { background: linear-gradient(90deg, rgba(200,210,225,.18), rgba(200,210,225,.04)); border: 1px solid rgba(200,210,225,.45); }
.k-boards ~ .k-rank-list li.top2 b { color: #d5dce8; }
.k-boards ~ .k-rank-list li.top3 { background: linear-gradient(90deg, rgba(205,127,70,.2), rgba(205,127,70,.04)); border: 1px solid rgba(205,127,70,.5); }
.k-boards ~ .k-rank-list li.top3 b { color: #e0a374; }
/* 壺の主：🔰（まだ深き壺を開けていない人） */
.k-nb { font-size: 13px; line-height: 1; }
.k-nb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.k-board-info { margin: 2px 0 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); }
.k-taps { text-align: center; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; margin-top: -2px; }
