/* ===== Toko Town design system ===== */
/* UA の [hidden]{display:none} を .toast/.tabbar 等の author 規則（display:flex/grid）が上書きしないように最優先で固定 */
[hidden] { display: none !important; }
:root {
  color-scheme: light dark; /* ラウンド8：ダークモードではスクロールバーなども暗く */
  --bg: #f5f6f8;
  --bg2: #ffffff;
  --fg: #141720;
  --fg2: #4b5160;
  --sub: #6b7182;
  --line: #e6e8ee;
  --line2: #d6d9e2;
  --card: #ffffff;
  --accent: #4f5bd5;
  --accent-2: #6b76e6;
  --accent-soft: #eceefc;
  --accent-fg: #ffffff;
  --me: #eef0f7;
  --ok: #1f9d74;
  --warn: #c9503f;
  --shadow-xs: 0 1px 3px rgba(20,23,32,.10);
  --shadow: 0 1px 2px rgba(20,23,32,.04), 0 6px 20px rgba(20,23,32,.06);
  --shadow-lg: 0 12px 40px rgba(20,23,32,.16);
  /* 角丸 4 段：sheet / card・hero / btn・input・seg・part・rumor・tip / ictile・segctl。chip・pill・toast は 999px */
  --r-lg: 22px;
  --r: 16px;
  --r-md: 12px;
  --r-sm: 10px;
  /* タイポ 4 段 */
  --fs-title: 20px;
  --fs-body: 15px;
  --fs-sub: 12.5px;
  --fs-cap: 11px;
  --nav-h: 64px;
  --top-h: 48px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --bg2: #13161d;
    --fg: #eef0f5;
    --fg2: #b4b9c6;
    --sub: #9198a8;
    --line: #22262f;
    --line2: #2d323d;
    --card: #171a22;
    --accent: #7c86f0;
    --accent-2: #99a1f5;
    --accent-soft: #23263a;
    --accent-fg: #0d0f14;
    --me: #23273a;
    --ok: #3ccf98;
    --warn: #ef8a7a;
    --shadow-xs: 0 1px 3px rgba(0,0,0,.35);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  font-size: var(--fs-body); line-height: 1.6; -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased; }
body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
button { font-family: inherit; }

/* ---- top bar ---- */
/* ヘッダの高さは固定（--top-h）。各タブの切り替え .seg はこの真下に張り付く */
.topbar { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center;
  height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .02em; font-size: 15px; }
.brand svg { width: 24px; height: 24px; }
.brand { gap: 8px; }
.brand .bmark { width: 26px; height: 26px; flex: none; border-radius: 6px; }
.brand .bword { width: 87px; height: 15px; flex: none; }
.quota { font-size: var(--fs-cap); color: var(--fg2); font-variant-numeric: tabular-nums; background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.quota:empty { display: none; }
/* 上限到達（ダミー会話に落ちている理由）：琥珀色のピル */
.quota.warn { background: color-mix(in srgb, #f59e0b 14%, var(--card)); color: #b45309; font-size: var(--fs-cap); }
@media (prefers-color-scheme: dark) { .quota.warn { color: #f4b860; } }

/* 最初の画面を描くまで：ヘッダーの下が真っ白に見えない、静かな町の準備表示 */
.bootload { position: fixed; z-index: 5; inset: calc(var(--top-h) + env(safe-area-inset-top)) 0 0; display: grid; place-content: center; justify-items: center;
  gap: 18px; padding-bottom: 12vh; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent-soft) 68%, var(--bg)) 0 90px, var(--bg) 230px); color: var(--sub); }
.bootload p { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.bootcity { position: relative; display: flex; align-items: end; justify-content: center; gap: 5px; width: 76px; height: 52px; }
.bootcity > i { display: block; width: 18px; height: 28px; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--accent) 74%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, white 18%, transparent); }
.bootcity > i:nth-child(2) { height: 42px; background: color-mix(in srgb, var(--accent-2) 82%, var(--card)); }
.bootcity > i:nth-child(3) { height: 34px; }
.bootcity > i::after { content: ""; display: block; width: 4px; height: 4px; margin: 8px auto 0; border-radius: 1px; background: #fff4b8; box-shadow: 0 9px #fff4b8; opacity: .88; }
.bootcity > b { position: absolute; left: 5px; bottom: -8px; width: 10px; height: 10px; border-radius: 50%; background: #f08a3c; box-shadow: 0 2px 6px rgba(240,138,60,.35); animation: bootwalk 1.8s ease-in-out infinite; }
.bootdots { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: 2px; }
.bootdots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: bootdot 1.2s ease-in-out infinite; }
.bootdots i:nth-child(2) { animation-delay: .16s; }.bootdots i:nth-child(3) { animation-delay: .32s; }
@keyframes bootwalk { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(56px); } }
@keyframes bootdot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .bootcity > b, .bootdots i { animation: none; } .bootdots i { opacity: .55; } }

/* ---- layout ---- */
main { padding: 16px 16px 24px; max-width: 560px; margin: 0 auto; }
/* 画面遷移：160ms のフェード＋8px の上昇（render() が画面を切り替えたときだけ .in を付け直す） */
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } }
#view.in { animation: viewin .16s ease; }
h2 { font-size: var(--fs-title); letter-spacing: -.01em; margin: 6px 0 14px; font-weight: 700; }
h3 { font-size: 12px; margin: 18px 0 8px; color: var(--sub); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
p { margin: 8px 0; }
/* 文中のリンク：ブラウザ既定の青・下線ではなくアクセント色の太字。タップ領域は上下に広げる */
a, .link { color: var(--accent); text-decoration: none; font-weight: 600; cursor: pointer; }
a:active, .link:active { opacity: .6; }
.note a, ul.notes a { display: inline-block; padding: 6px 0; margin: -6px 0; text-indent: 0; }
.note { font-size: var(--fs-sub); color: var(--fg2); line-height: 1.55; }
p.note { margin: 8px 0 0; }
.muted { color: var(--sub); font-size: var(--fs-sub); }
.label { font-size: var(--fs-cap); color: var(--sub); letter-spacing: .04em; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; min-width: 0; }
/* カード見出し行：h3 ＋ 右端の状態ピル（端末内／未登録／登録済み） */
.card > .row.head:first-child { margin: 2px 0 8px; }
.row.head h3 { margin: 0; flex: 1; }
/* 区切りの中黒：半角スペース付きの「 ・ 」の代わり（間延びしない 3px の点） */
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; margin: 0 6px; vertical-align: 2px; }

/* ---- cards ---- */
.card { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tap { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.card.tap:active { transform: scale(.985); }
.card > h3:first-child { margin-top: 2px; }
.hero { background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.16), transparent 55%), linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; padding: 14px 16px; border-radius: var(--r); margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), var(--shadow); }
.hero .muted { display: block; color: #fff; opacity: .7; font-size: var(--fs-cap); margin-top: 1px; }
.hero h2 { color: #fff; margin: 0; font-size: 17px; line-height: 1.3; }
.hero .avatar { width: 44px; height: 44px; }
.hero .avatar.framed { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.1); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.stat { display: flex; flex-direction: column; font-size: 11px; color: rgba(255,255,255,.72); line-height: 1.4; }
.stat b { font-size: 18px; line-height: 1.1; letter-spacing: -.01em; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { .hero { background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(135deg, #3a44b8, #5560d8); } }
/* 要約ストリップ（ウォッチの「今日」）：.stats をカード背景で流用。高さ 56px */
.stats.strip { height: 56px; align-items: center; margin: 0 0 12px; padding: 0 16px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); }
.stats.strip { gap: 0; padding: 0; }
.stats.strip .stat { color: var(--sub); align-items: center; text-align: center; }
.stats.strip .stat + .stat { border-left: 1px solid var(--line); }
.stats.strip .stat b { color: var(--fg); }
/* リスト末尾の一言（宙に浮かない） */
.list-end { padding: 24px 0 8px; text-align: center; font-size: 12px; color: var(--sub); }

/* ---- forms ---- */
label { display: block; font-size: var(--fs-sub); color: var(--fg2); margin: 14px 0 6px; font-weight: 500; }
input[type=text], input[type=search], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line2); border-radius: var(--r-md);
  background: var(--bg2); color: var(--fg); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 76px; resize: vertical; }
/* 単位つきの数値入力（右内側に「円」） */
.field { position: relative; display: inline-block; }
.field .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--sub); pointer-events: none; }
#encYen { width: 120px; text-align: right; padding-right: 36px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
#encYen::-webkit-outer-spin-button, #encYen::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* チェックは 44×26 のトグル。ラベル左・トグル右の 1 行 */
.check { display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--fg); margin-top: 14px; font-weight: 400; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line2); position: relative; flex: none; margin: 0;
  cursor: pointer; transition: background .15s; outline: none; }
.check input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.check input:checked { background: var(--accent); }
.check input:checked::before { transform: translateX(18px); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 13px 16px; margin-top: 14px;
  border-radius: var(--r-md); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg);
  font: inherit; font-weight: 600; cursor: pointer; transition: filter .12s, transform .08s; }
.btn:active { transform: scale(.98); filter: brightness(.95); }
.btn.ghost { background: var(--bg2); color: var(--fg); border-color: var(--line2); }
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.small { width: auto; padding: 8px 14px; margin: 0; font-size: 13px; border-radius: var(--r-sm); white-space: nowrap; }
.btns { display: flex; gap: 8px; }
.btns .btn { flex: 1; }
/* 会話画面の 4 アクション：横スクロールにせず 4 等分で収める（幅 360px でも 1 行。語中で折り返さない） */
.btns.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.btns.actions .btn { padding: 10px 12px; font-size: 13px; min-width: 0; min-height: 44px; }
/* プロフィールへの導線は相手のアバターと名前のタップ */
.tap-profile { cursor: pointer; display: inline-flex; align-items: center; gap: 2px; border-radius: var(--r-sm); }
.tap-profile:active { opacity: .6; }
.tap-profile .chev { color: var(--fg2); font-weight: 400; font-size: .9em; }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--fg2); font: inherit;
  font-size: 14px; padding: 4px 0; margin-bottom: 6px; cursor: pointer;
  /* 会話の履歴を下まで読んでも押せるよう、上の帯の下に貼りつける */
  padding: 6px 12px 6px 4px; flex: none; }
/* 会話のスレッドの上の帯：幅いっぱいで透けない（下を流れるカードや顔の上に、丸い札が浮いて重ならない）。右に相手の名前 */
.backbar { position: sticky; top: calc(env(safe-area-inset-top) + var(--top-h)); z-index: 4; display: flex; align-items: center; gap: 6px; min-width: 0;
  margin: 0 -16px 6px; padding: 2px 16px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.backbar .back { margin: 0; }
.backbar .bbname { min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: var(--fg); text-align: right; }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line2); background: var(--bg2); color: var(--fg); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; transition: all .12s; }
.chip.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chip.tag { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-size: 12px; padding: 4px 10px; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-cap); padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.gray { background: var(--me); color: var(--sub); }
.pill.acq { background: var(--accent-soft); color: var(--accent); }
/* ユーザーの分身の印（マップの緑の名札と同じ色） */
.pill.realtag { background: color-mix(in srgb, #0f9f6e 15%, transparent); color: #0b7a55; font-weight: 700; }
@media (prefers-color-scheme: dark) { .pill.realtag { color: #4fd1a1; } }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: color-mix(in srgb, currentColor 5%, transparent); opacity: .5; }
.badge.on { opacity: 1; background: color-mix(in srgb, #e0a020 14%, transparent); }
.badge .bic { font-size: 26px; line-height: 1.2; filter: grayscale(1); }
.badge.on .bic { filter: none; }
.badge b { font-size: 12px; }
.badge small { font-size: 11px; opacity: .7; line-height: 1.35; }
.maphead.visit { background: color-mix(in srgb, #e0a020 12%, transparent); }
.pill.friendtag { background: color-mix(in srgb, #e0a020 18%, transparent); color: #9a6a00; font-weight: 700; }
@media (prefers-color-scheme: dark) { .pill.friendtag { color: #f2c35a; } }
.avatar.real { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #0f9f6e; }
/* ユーザーの分身の居場所とオンライン（緑の点＝オンライン、灰＝オフライン） */
.presence { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sub); max-width: 100%; min-width: 0; vertical-align: middle; }
.presence .pw { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence .pago { display: inline-flex; align-items: center; gap: 2px; flex: none; white-space: nowrap; }
.presence .pago .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.presence i { width: 7px; height: 7px; border-radius: 50%; background: #a3aab8; flex: none; }
.presence.on { color: #0b7a55; font-weight: 600; }
.presence.on i { background: #0f9f6e; box-shadow: 0 0 0 3px color-mix(in srgb, #0f9f6e 22%, transparent); }
@media (prefers-color-scheme: dark) { .presence.on { color: #4fd1a1; } }
/* ウォッチの絞り込み */
.wfilter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wfilter .row { gap: 8px; align-items: center; }
.wfilter input[type=search] { flex: 1; min-width: 0; }
.wfilter select { width: auto; flex: none; }
.wfilter .chips { margin: 0; }
.list-more { display: block; margin: 8px auto 0; }
.chips.compact .chip { padding: 6px 12px; font-size: var(--fs-sub); }
.chips.compact .chip.tag { padding: 4px 10px; font-size: 12px; }
.avwrap { position: relative; flex: none; display: inline-flex; }
.livedot { position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--card); }

/* ---- avatar ---- */
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; overflow: hidden; display: block; background: var(--me); }
.avatar img, .avatar svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar svg { transform: none; }
.avatar.lg { width: 96px; height: 96px; }
.avatar.xl { width: 128px; height: 128px; box-shadow: var(--shadow-lg); }
.avatar.sm { width: 30px; height: 30px; }
.avatar.framed { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }

/* ---- score ring（.avatar には適用しない） ---- */
.ring { width: 46px; height: 46px; flex: none; position: relative; }
.ring:not(.avatar) > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring:not(.avatar) circle { fill: none; stroke-width: 4; }
.ring .bgc { stroke: var(--line); }
.ring .fgc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .4s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.ring.lbl { margin-bottom: 14px; }
.ring.lbl .bgc { stroke: var(--accent-soft); } .ring.lbl circle { stroke-width: 5; }
.ring.lbl::after { content: "相性"; position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--sub); margin-top: 2px; }
/* 第2回の見直し：プロフィールの相性は「好みの近さ」と添える（♥の段階＝関係の深さと見分けがつくように） */
.ring.lbl.aff { margin-bottom: 28px; }
.ring.lbl.aff::after { content: "相性\A好みの近さ"; white-space: pre; line-height: 1.3; left: -14px; right: -14px; }
/* 会話ごとの点数（活気度）は、相性と違う色・名前（会話の一覧のカード） */
.ring.mood .fgc { stroke: #f08a3c; }
.ring.mood .bgc { stroke: rgba(240,138,60,.18); }
.ring.mood b { color: #c8611a; }
.ring.mood.lbl::after { content: "活気度"; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .ring.mood .fgc { stroke: #ffa45c; } .ring.mood .bgc { stroke: rgba(255,164,92,.22); } .ring.mood b { color: #ffb37a; } }
.bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ---- parts picker ---- */
.parts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.part { border: 0; background: var(--bg); border-radius: var(--r-md); padding: 4px; cursor: pointer; transition: all .12s; overflow: hidden; }
.part.on { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.part svg { width: 100%; height: auto; display: block; }
.parts[data-cat=face] svg, .parts[data-cat=hair] svg { transform: scale(1.7); transform-origin: 50% 30%; } /* 顔・髪は顔に寄せて差を見せる */
.parts[data-cat=body] svg { transform: scale(1.6); transform-origin: 50% 65%; } /* v185：体型も表情・髪型と同じ四角い見本に（丸い地がはみ出すまで寄せる） */
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); justify-items: center; gap: 0; } /* 幅に関係なく 8 個が 1 行（カード内幅 311px でも 8×30＋余白で収まる） */
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .12s; padding: 0; }
.swatch.on { transform: scale(1.12); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.editor-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 6px; }

/* ---- learned prefs ---- */
.pref { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 6px 0; }
.pref .name { width: 92px; flex: none; }
.pref .bar { flex: 1; margin: 0; }
.pref .bar.neg > i { background: var(--warn); }
.x { width: 28px; height: 28px; border-radius: 50%; background: var(--me); border: 0; color: var(--sub); cursor: pointer; font-size: 16px; padding: 0; line-height: 1; flex: none; display: grid; place-items: center; }

/* タップ領域：可視サイズを変えずに当たり判定を 44px 前後へ広げる */
.sheet-x, .composer .help, .x, .iconbtn, .mapctl .round, .swatch { position: relative; }
.sheet-x::before, .composer .help::before, .x::before, .iconbtn::before, .swatch::before { content: ""; position: absolute; inset: -8px; border-radius: inherit; }

/* ---- map ---- */
.mapcard { padding: 0; overflow: hidden; }
.maphead { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; min-width: 0; }
.maphead > b { white-space: nowrap; }
.maphead > .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maphead .muted svg { stroke-width: 2; }
.maphead .sub { font-size: var(--fs-sub); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0 2px 2px; }
/* 店内ヘッダ：いまいる人のアバタースタック（最大 4 人＋「+N」）＋人数 */
.maphead .sub:has(.stack) { white-space: normal; line-height: 1.5; } /* 状態ピルと並んで狭いときは人数を次の行へ（省略しない） */
.maphead .sub .cnt { white-space: nowrap; }
.maphead .stack { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 6px; }
.maphead .stack .avatar { width: 22px; height: 22px; margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }
.maphead .stack .avatar:first-child { margin-left: 0; }
.maphead .stack .more { background: var(--me); color: var(--sub); font-size: 11px; font-weight: 600; display: grid; place-items: center; letter-spacing: -.02em; }
.iconbtn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--me); color: var(--fg); display: grid; place-items: center; padding: 0; cursor: pointer; flex: none; }
.iconbtn:active { filter: brightness(.95); }
.ictile { display: inline-grid; place-items: center; border-radius: var(--r-sm); flex: none; }
#map { display: block; width: 100%; aspect-ratio: 1 / 1.1; touch-action: none; user-select: none; -webkit-user-select: none;
  opacity: 0; transition: opacity .25s ease; }
#map.ready { opacity: 1; }
@keyframes enter { from { transform: scale(.98); opacity: .5; } }
#map.enter { animation: enter .2s ease; }
/* 店内も全画面（body.mapfull）。部屋は、上の見出しとたたんだシートのあいだのまん中に描く（isoInterior） */
#placehead { scroll-margin-top: 70px; }
.mapwrap { position: relative; background: var(--me); }
.mapctl { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mapctl:empty { display: none; }
.mapctl .seg, .mapctl .round { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: var(--shadow); overflow: hidden; }
.mapctl .seg { display: flex; flex-direction: column; border-radius: var(--r-md); }
.mapctl .seg button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; padding: 0; }
.mapctl .seg button + button { border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
/* 小さな切り替え .segctl（ウォッチの絞り込みの「相手」だけ。高さ 32px）。タブ内の切り替えは共通の .seg */
.segctl { display: inline-flex; background: var(--me); padding: 3px; border-radius: var(--r-sm); }
.segctl button { border: 0; background: transparent; color: var(--sub); min-height: 32px; padding: 0 12px; font: inherit; font-size: 12.5px; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.segctl button.on { background: var(--card); color: var(--fg); box-shadow: var(--shadow-xs); }
.segctl.wide { display: flex; } .segctl.wide button { flex: 1; }
.mapctl .round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); cursor: pointer; padding: 0; }
.mapctl .round.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* conversation thread */
.chapter { display: flex; flex-direction: column; gap: 12px; }
/* v116：たたんだ会話（履歴）はコンパクトな 1 行：要約 2 行まで＋丸い再生ボタン */
.chapter.folded { gap: 2px; }
.chapter.folded .chap-head { margin: 10px 0 0; }
.chapsum { display: flex; align-items: center; gap: 10px; padding: 2px 2px 2px 4px; }
.chapsumt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--fg2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chapplay { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; cursor: pointer; padding: 0 0 0 2px; }
.chapplay:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.chapplay:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chap-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); margin: 18px 0 4px; }
.chap-head::before, .chap-head .ln { content: ""; flex: 1; height: 1px; background: var(--line); }
.chap-head .ring { width: 22px; height: 22px; }
.chap-head .ring b { font-size: 8px; font-weight: 600; color: var(--fg2); }
.chap-head .ring circle { stroke-width: 5; }
.chap-tag { color: var(--fg2); font-weight: 600; white-space: nowrap; }
.legend { display: flex; gap: 4px 14px; padding: 8px 16px 10px; font-size: var(--fs-cap); color: var(--sub); flex-wrap: wrap; white-space: nowrap; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 8px 0 2px; vertical-align: -1px; background: #cfd4e3;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line2); }
.legend i.me { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--accent); }
.rumor { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-md); background: var(--accent-soft);
  color: var(--accent); font-size: var(--fs-sub); margin-bottom: 10px; }

/* ---- conversation ---- */
.log { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.right { flex-direction: row-reverse; }
.bubble { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-xs); border-radius: 18px 18px 18px 6px; padding: 9px 13px;
  max-width: 74%; white-space: pre-wrap; word-break: break-word; font-size: var(--fs-body); }
.msg.right .bubble { background: var(--accent); color: var(--accent-fg); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.bubble .th { font-size: 12px; font-style: italic; color: var(--sub); margin-top: 6px; padding-top: 5px; border-top: 1px dashed color-mix(in srgb, currentColor 28%, transparent); }
.bubble .th::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; opacity: .8; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10.5a7.5 7.5 0 0 1-7.5 7.5 7.6 7.6 0 0 1-3-.6L5 19l1.4-3.6A7.5 7.5 0 1 1 20 10.5z'/%3E%3Ccircle cx='9.5' cy='10.5' r='.5'/%3E%3Ccircle cx='12.5' cy='10.5' r='.5'/%3E%3Ccircle cx='15.5' cy='10.5' r='.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10.5a7.5 7.5 0 0 1-7.5 7.5 7.6 7.6 0 0 1-3-.6L5 19l1.4-3.6A7.5 7.5 0 1 1 20 10.5z'/%3E%3Ccircle cx='9.5' cy='10.5' r='.5'/%3E%3Ccircle cx='12.5' cy='10.5' r='.5'/%3E%3Ccircle cx='15.5' cy='10.5' r='.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.msg.right .bubble .th { color: color-mix(in srgb, var(--accent-fg) 75%, transparent); border-top-color: color-mix(in srgb, var(--accent-fg) 35%, transparent); }
/* v161：行の気持ちの絵（地図の頭の横と同じ絵。押さなくても意味は title / aria-label） */
.msg .lemo { flex: none; align-self: center; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
/* 新しく増えた行だけの出現（吹き出しは足元からポップ、アバターは下中央から拡大）。再描画では .new を付け直さない */
@keyframes msgin { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes avin { from { transform: scale(.6); opacity: 0; } }
.msg.new .bubble { animation: msgin .18s cubic-bezier(.2,.8,.2,1); transform-origin: left bottom; }
.msg.right.new .bubble { transform-origin: right bottom; }
.msg.new .avatar { animation: avin .22s cubic-bezier(.2,.8,.2,1); transform-origin: center bottom; }
/* 「考え中」：相手アバター＋ 3 点が明滅する空の吹き出し（タイピング表示） */
.bubble.typing { padding: 10px 14px; min-width: 44px; line-height: 1; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sub); display: inline-block; margin: 0 2px; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
/* ラウンド15：続いている会話は 1 行ずつ出る。次に話す人の「考え中」（自分の分身は右・アクセント色の中の白い点）と、小さな「先に全部見る」 */
.msg.right .bubble.typing i { background: rgba(255,255,255,.9); }
.sys.liveskip { margin-top: 2px; }
.sys.liveskip .chip { padding: 4px 12px; font-size: var(--fs-sub); color: var(--sub); background: transparent; }
@media (prefers-reduced-motion: reduce) { .msg.new .bubble, .msg.new .avatar, .typing i, #view.in, #map.enter { animation: none; } }
.sys { text-align: center; font-size: 12px; color: var(--sub); padding: 2px 0; }
.sys.meta { margin: 12px 0 4px; padding: 0; }
.sys.meta .pill.gray { font-size: var(--fs-cap); padding: 4px 10px; font-weight: 500; white-space: normal; display: inline; line-height: 2.1; } /* 項目が多いときは折り返す（横スクロールを出さない） */
.composer { display: flex; gap: 8px; align-items: center; position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: var(--bg); padding: 10px 0 4px; }
.composer .help { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 0; background: var(--me); color: var(--fg2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.composer .tip { position: absolute; left: 0; bottom: calc(100% + 2px); max-width: 300px; font-size: 12px; line-height: 1.5; color: var(--fg2); background: var(--card);
  border-radius: var(--r-md); padding: 8px 12px; box-shadow: var(--shadow-lg); animation: up .2s ease; z-index: 2; }
.composer input { flex: 1; min-width: 0; border-radius: 999px; height: 44px; padding: 0 16px; background: var(--bg2); border-color: var(--line); }
/* 耳打ち＝36px の淡いアイコン、話しかける＝44px の accent 送信矢印 */
.composer .icb { flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; transition: filter .12s, transform .08s; }
.composer .icb svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.composer .icb:active { transform: scale(.95); filter: brightness(.95); }
.composer .icb:disabled { opacity: .4; pointer-events: none; }
.composer .whisper { width: 36px; height: 36px; background: var(--accent-soft); color: var(--accent); }
.composer .whisper svg { width: 20px; height: 20px; stroke-width: 1.8; }
.composer .send { width: 44px; height: 44px; background: var(--accent); color: var(--accent-fg); }
.composer .send svg { width: 22px; height: 22px; }

/* ---- empty / misc ---- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--sub); padding: 40px 0; font-size: var(--fs-sub); line-height: 1.5; }
.empty .eic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 2px; }
.empty .eic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty .eic .spinner { width: 20px; height: 20px; }
.empty b { font-size: 14px; font-weight: 600; color: var(--fg); }
.empty > span:not(.eic) { max-width: 260px; }
.empty .chip { margin-top: 4px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line2);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.warn { color: var(--warn); font-size: 12px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---- tab bar ---- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--bg2) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.tabbar button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--sub); font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabbar button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active { color: var(--accent); }
/* 未読の出会い（ほかのタブにいる間）：ウォッチのアイコン右上に 8px のバッジ */
.tabbar button { position: relative; }
.tabbar button.unread::after { content: ""; position: absolute; top: 7px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }

/* ---- sheet ---- */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,12,20,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s ease; }
.sheet-card { background: var(--bg); width: 100%; max-width: 560px; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg);
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 86vh; overflow: auto; animation: up .2s ease; scrollbar-width: thin; }
/* v97：シートの上のつまみ（ボタン）。見た目はタブのシートのつまみ（.tshandle i）と同じ 36×4 の棒。押す・下へ引くと閉じる。
   当たりはシートの上の端から 28px・横いっぱい（右上の ⋯・× はその上に重なって押せる） */
.sheet-card > .handle { display: flex; justify-content: center; align-items: flex-start; width: 100%; height: 28px; margin: -10px 0 0; padding: 10px 0 0;
  border: 0; background: none; color: inherit; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.sheet-card > .handle:active { cursor: grabbing; }
.sheet-card > .handle i, body.tson .tshandle i { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line2); }
.sheet-card > .handle:focus-visible { outline: 0; } .sheet-card > .handle:focus-visible i { background: var(--accent); }
.sheet-card.shdrag { animation: none; transition: none; user-select: none; -webkit-user-select: none; }
/* 指で操作する端末（html.coarse）では右上の × を出さない（下へ引く・背景を押す・つまみを押すで閉じる）。マウスの端末では小さく残す */
html.coarse .sheet-x, html.coarse .msgx { display: none; }
html.coarse .sheet-more { right: 14px; }
.sheet-card { position: relative; }
/* v76：地図の上にシート（部屋・贈る・次の一歩など）を出しているあいだは、地図の上の札の列（町のチップ・知らせの帯）を隠す。
   シートの上の端が札の途中に来て、文字が半分で切れて見えた（押せないのは今までどおり。分身のカードは残す）。
   v76（見直し）：隠すのはシートの上の端が札の列に届くときだけ（sheet-cover。背の低いシートでは札も施設の見出しも残す） */
body.mapfull.sheet-open.sheet-cover #maptop #placehead, body.mapfull.sheet-open.sheet-cover #maptop #mapticker { opacity: 0; transition: opacity .15s ease; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--me); color: var(--fg2);
  font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(24px); opacity: 0 } }
@keyframes toastup { from { transform: translate(-50%, 8px); opacity: 0 } to { transform: translate(-50%, 0); } }

/* トーストは下のタブの少し上に出す（画面の見出し・プロフィールのカード・ヘッダのコインと体力にかからない）。2 行まで、それ以上は … */
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: auto; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px);
  background: color-mix(in srgb, var(--fg) 88%, transparent); color: var(--bg); padding: 7px 14px; display: block; border-radius: 16px; font-size: 12.5px; font-weight: 500; line-height: 1.45;
  z-index: 30; width: max-content; max-width: min(420px, calc(100vw - 32px)); white-space: normal; box-shadow: 0 8px 24px rgba(20,23,32,.18); animation: toastup .2s ease; }
.toast .tmsg { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }
/* シートを開いているあいだは、シートの上（暗い背景の部分）に出す：シートの下のボタンを隠さない */
body.sheet-open .toast { z-index: 40; bottom: auto; top: calc(env(safe-area-inset-top) + 12px); }
@media (prefers-color-scheme: dark) {
  .toast { background: color-mix(in srgb, var(--card) 94%, transparent); color: var(--fg); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); }
}

/* ---- onboarding ---- */
.onboard { text-align: center; padding: 32px 0 16px; }
.onboard .mark { width: 84px; height: 84px; margin: 0 auto 18px; display: block; border-radius: 22%; box-shadow: var(--shadow-lg); }
.onboard h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
.onboard p { color: var(--fg2); font-size: 14px; margin: 0; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; text-align: left; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .ic { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.feature .ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature b { display: block; font-size: 14px; }
.feature span { font-size: var(--fs-sub); color: var(--fg2); }
.card .feature:first-child { padding-top: 2px; }
.card .feature:last-child { padding-bottom: 2px; }
/* 注意事項：ぶら下げインデント（「・」で折り返しても揃う） */
ul.notes { list-style: none; margin: 0; padding: 0 0 0 1.1em; font-size: var(--fs-sub); line-height: 1.6; color: var(--fg2); }
ul.notes li { text-indent: -1.1em; margin: 2px 0; }
ul.notes li::before { content: "・"; }
/* 同意カードは画面下に張り付く bottom sheet（「はじめる」が初回表示から見える）。注意事項カードはその下へ潜り込む。上辺は背景色へのフェード */
.consent { position: sticky; bottom: 0; margin: 4px -16px 0; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: var(--card); box-shadow: 0 -8px 24px rgba(20,23,32,.10), var(--shadow-lg); z-index: 2; }
.consent::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; background: linear-gradient(to bottom, transparent, var(--bg) 70%, var(--bg)); pointer-events: none; }
/* 両トグルが ON になるまで「はじめる」は無効の見た目（押せば案内トースト。flow テストはプログラムでチェックを入れるため disabled 属性は使わない） */
.btn[aria-disabled="true"] { opacity: .4; }
.consent .opts { display: flex; flex-direction: column; gap: 4px; }
.consent .check { min-height: 52px; gap: 8px; margin-top: 0; font-size: 13px; } /* ラベル左・トグル右の 2 行 */
.consent .check span { white-space: normal; line-height: 1.4; }
.consent .btn { margin-top: 14px; }
/* シートの見出し（何に同意するか）＋注意事項カードへのリンク */
.consent .consent-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.consent .consent-head b { font-size: 15px; font-weight: 700; }
.consent .consent-head .btn { margin-top: 0; min-height: 36px; padding: 6px 12px; }
/* 末尾のスペーサー：最下部までスクロールすれば注意事項の全文が CTA の上に出る */
.onboard-space { height: calc(44px + env(safe-area-inset-bottom)); }
/* タブバーのない画面（同意・初回編集）では nav 分の余白を外し、sticky の同意シートがスクロール末尾でも画面下に張り付く */
body:has(#tabbar[hidden]) { padding-bottom: 0; }
main:has(.consent) { padding-bottom: 0; }
.consent { margin-bottom: calc(-44px - env(safe-area-inset-bottom)); } /* スペーサーの高さ分だけ引き戻す（最下部で浮かない） */

/* ---------- 持ち物・マイルーム・移動 ---------- */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats3 > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stats3 b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stbar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 3px; }
.stbar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.itemrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.itemrow:first-of-type { border-top: 0; }
.itemrow .grow { min-width: 0; }
.itemrow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iic { font-size: 26px; width: 36px; text-align: center; flex: none; }
.itembtns { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 46%; }
.itembtns .chip { padding: 7px 12px; font-size: 12.5px; min-height: 36px; }
.pill.rar { font-size: 11px; padding: 1px 7px; }
.room { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.roomwall { height: 26px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, var(--card)) 0 18px, color-mix(in srgb, var(--accent) 16%, var(--card)) 18px 36px); }
.roomfloor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; background: repeating-linear-gradient(0deg, color-mix(in srgb, #b07a43 18%, var(--card)) 0 22px, color-mix(in srgb, #b07a43 26%, var(--card)) 22px 24px); }
.rcell { aspect-ratio: 1; border-radius: var(--r-sm); border: 1px dashed color-mix(in srgb, var(--fg) 14%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 2px; background: transparent; color: var(--fg); font: inherit; }
.rcell.on { border-style: solid; background: color-mix(in srgb, var(--card) 80%, transparent); box-shadow: var(--shadow-xs); cursor: pointer; }
.rcell span { font-size: 24px; line-height: 1; }
.rcell small { font-size: 11px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); }
.travelbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; padding: 6px 10px; margin-bottom: 6px; border-radius: var(--r-sm); background: var(--accent-soft); }
.travelbar span { flex: 1; min-width: 0; }
.travelbar .stbar { flex-basis: 100%; }
.switch.small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); }
/* 持ち物タブ：上の帯と切り替え */
.bagbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin-bottom: 10px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-xs); font-size: 13px; }
.bagbar b { font-size: 15px; }
.bagbar .bagst { display: flex; align-items: center; gap: 4px; }
.bagbar .bagst .stbar { display: inline-block; width: 44px; margin: 0 0 0 2px; }
.bagbar .bagtown { flex: 1; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bagbar small { color: var(--sub); }
/* 共通のタブ内切り替え .seg（持ち物・ウォッチ・分身・設定）：ヘッダの真下に張り付く半透明の帯 */
.seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 999px; position: sticky; top: calc(env(safe-area-inset-top) + var(--top-h) + 6px); z-index: 4;
  background: color-mix(in srgb, var(--bg2) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.seg button { flex: 1; min-width: 0; min-height: 40px; border: 0; background: transparent; color: var(--sub); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2;
  padding: 4px 2px; letter-spacing: -.01em; border-radius: 999px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s, color .15s; }
.seg button.on { background: var(--card); color: var(--fg); box-shadow: var(--shadow-xs); }
/* シートの中ではシートの上の端に張り付く（ヘッダの高さだけ下がらない）。背景は不透明にし、まわりをシートの色でふさいで、スクロールした文字が上のすき間や丸い角から見えないように */
.sheet-card .seg:not(.mini), body.tson .tsscroll .seg:not(.mini) { top: 0; background: var(--bg2); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 0 1px var(--line), 0 -10px 0 4px var(--bg); border-color: transparent; }
/* マップのズーム（縦並びのボタン）は .seg を共有しない：上の共通スタイルを打ち消す */
.mapctl .seg { position: static; padding: 0; gap: 0; margin: 0; box-shadow: var(--shadow); }
.mapctl .seg button { flex: none; min-height: 0; border-radius: 0; }
.roomcard { padding: 10px; }
.roomcv { width: 100%; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg2)), var(--bg2)); }
.roomcv canvas { display: block; }
.lvbar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.lvbar i { display: block; height: 100%; background: linear-gradient(90deg, #f0b44a, #e7739c); border-radius: inherit; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.stamp { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r-sm); border: 2px dashed color-mix(in srgb, #d0453a 45%, transparent); color: #c0392b; transform: rotate(-2deg); }
.stamp:nth-child(2n) { transform: rotate(2deg); }
.stamp span { font-size: 22px; } .stamp b { font-size: 13px; text-align: center; } .stamp small { font-size: 11px; opacity: .8; }
.stcost { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.stbar.big { flex: 1; height: 10px; position: relative; margin: 0; }
.stbar.big b { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #e66c42 0 4px, #f08a60 4px 8px); }

/* ---------- UI 見直し（共通の切り替え・保存バー・トレイ・絞り込みシート） ---------- */
/* 危険な操作（データの全削除）：塗りなし・警告色の文字と 40% の枠 */
.btn.danger { background: transparent; color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
/* 長い説明は 1 文だけ見せ、残りは「くわしく」に畳む */
details.more { margin-top: 4px; }
details.more > summary { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sub); color: var(--accent); font-weight: 600; cursor: pointer; padding: 6px 0; }
details.more > summary::after { content: "›"; transition: transform .15s; }
details.more[open] > summary::after { transform: rotate(90deg); }
details.more > .note, details.more > p { margin: 0 0 4px; }
/* 分身タブ：見た目以外のときの小さな自分の行（64px）と、画面下に張り付く保存バー */
.avatar.md { width: 64px; height: 64px; }
.mebar { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; }
.mebar b { display: block; font-size: 16px; }
/* 保存バー：上から背景色へのグラデーションで、下の本文（チップなど）がバーの裏にすっと消える。左右は main の余白まではみ出す */
.savebar { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 3; margin: 4px -16px 0; padding: 28px 16px 10px; background: linear-gradient(to bottom, transparent, var(--bg) 35%); pointer-events: none; }
.savebar .btn { pointer-events: auto; }
.savebar .btn { margin: 0; box-shadow: var(--shadow-lg); }
/* 設定・分身のカード内の小見出しは h3 にそろえる */
.card > h2 + .note, .card > h3 + .note { margin-top: 0; }
/* ウォッチ：検索 1 行＋絞り込みボタン（36px・条件ありで点）、条件は消せるチップで下に出す */
.wfilter .fbtn { width: 36px; height: 36px; position: relative; color: var(--fg2); }
.wfilter .fbtn.on { background: var(--accent-soft); color: var(--accent); }
.wfilter .fbtn.on::after { content: ""; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.wfilter .fbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips .chip { min-height: 32px; padding: 4px 10px 4px 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.fchips .chip i { font-style: normal; opacity: .7; font-size: 14px; line-height: 1; }
.sheet-card .flabel { display: block; font-size: var(--fs-sub); color: var(--fg2); font-weight: 600; margin: 14px 0 6px; }
.sheet-card .segctl.wide { width: 100%; }
/* 部屋：キャンバスの下の横スクロールのトレイ（56×56 のタイル。レア度は下の 3px の帯） */
.tray { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding: 10px 8px 10px; margin: 0 -8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tray::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 56px; height: 56px; scroll-snap-align: start; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--bg2); color: var(--fg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px 3px 4px; position: relative; overflow: hidden; cursor: pointer; font: inherit; }
.tile:active { transform: scale(.95); }
.tile span { font-size: 26px; line-height: 1; }
.tile small { font-size: 11px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg2); }
.tile.hand { border-color: var(--accent); }
.traynote { font-size: 12px; color: var(--fg2); margin: 2px 2px 0; }
.placedlist > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.placedlist > summary h3 { margin: 0; flex: 1; }
.placedlist > summary::after { content: "›"; color: var(--sub); transition: transform .15s; }
.placedlist[open] > summary::after { transform: rotate(90deg); }
.placedlist .chips { margin-top: 10px; }
.empty.small { padding: 16px 0 6px; }
.empty.small .eic { width: 44px; height: 44px; }
/* 移動の小窓：情報チップ 1 行・体力の増減・2 つ並んだボタン */
.infochips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.infochips .pill { font-size: 12px; padding: 4px 10px; }
.stline { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--fg2); margin-bottom: 6px; }
.stline b { font-size: 17px; color: var(--fg); font-variant-numeric: tabular-nums; }
.stbar.cost { height: 10px; position: relative; margin: 0; }
.stbar.cost i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.stbar.cost b { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--warn) 40%, transparent); }
.btns.travel { margin-top: 14px; }
.btns.travel .btn { margin-top: 0; }
/* マップ：出典は折り返して 1 行まるごと使う（nowrap の凡例で切れないように） */
.legend .src { white-space: normal; flex-basis: 100%; font-size: 11px; color: var(--sub); line-height: 1.45; }
/* 「地図データのサーバーが混雑中…」などの状態の文は折り返す（右端で切れない） */
.legend .pstate, .legend .lnote { white-space: normal; flex-basis: 100%; line-height: 1.45; }/* ウォッチの一覧：相手の持ち主が付けたスタンプ（決まった 3 種）を名前の横に */
.mrbadge { font-size: 14px; line-height: 1; flex: none; }
/* マップの上の自分の帯は 1 行（56px） */
.hero.slim { padding: 6px 12px; min-height: 56px; display: flex; align-items: center; gap: 10px; }
.hero.slim .avatar { width: 40px; height: 40px; }
.hero.slim h2 { font-size: 15px; }
.hero-name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hero-name-line h2 { min-width: 0; }
.resident-mini { display: inline-flex; flex: none; flex-direction: column; justify-content: center; gap: 3px; min-width: 44px; min-height: 22px; padding: 2px 4px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: #fff; font: inherit; font-size: 10px; line-height: 1.1; white-space: nowrap; }
.resident-mini:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
.resident-mini > i { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.33); }
.resident-mini > i > i { display: block; height: 100%; border-radius: inherit; background: #b7efc3; }
.hero.slim .stats.inline { display: flex; gap: 12px; margin: 0 0 0 auto; }
.hero.slim .stat { align-items: center; font-size: 11px; }
.hero.slim .stat b { font-size: 16px; }

/* ---------- ゲーム（目標・福引き・図鑑・内装・探す・交換の結果・ひとりごと・日記） ---------- */
/* 分身タブの切り替えは 5 つ：ラベルの長さに合わせて幅を配分（「プロフィール」が切れない） */
.seg.fit button { flex: 1 1 auto; padding: 4px 8px; }
/* 画面下に張り付く保存バーの高さぶん、本文の下に余白（趣味のチップなどがバーの裏に隠れない） */
.mebody.hasbar { padding-bottom: 64px; }
/* マップの見出しの下の「次の目標」1 行（たためる） */
.goalbar { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; font-size: 12.5px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 5%, transparent); }
/* 目標の文は 2 行まで折り返す（1 行の省略で「+50」や 3 つめの目標が見えなくなっていた）。押すとくわしいカード */
.goalbar .gtxt { min-width: 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; cursor: pointer; }
.goalbar .gtxt b { margin-right: 4px; }
.goalbar .gtxt .ok { color: var(--ok); }
.goalbar .gtxt .pill { font-size: 11px; padding: 1px 8px; }
.goalbar .gx { width: 28px; height: 28px; flex: none; font-size: 16px; color: var(--sub); }
.goalbar.min { background: transparent; padding: 4px 12px; }
.goalbar.min .chip { min-height: 28px; padding: 2px 10px; font-size: 12px; }
.goalcard .gq { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.goalcard .gq:first-of-type { border-top: 0; }
.goalcard .gq > span:first-child { width: 16px; flex: none; color: var(--sub); }
.goalcard .gq.ok { color: var(--sub); } .goalcard .gq.ok > span:first-child { color: var(--ok); }
.goalcard .gq.cur { font-weight: 600; } .goalcard .gq.cur > span:first-child { color: var(--accent); }
.goalcard .gq small { display: block; font-weight: 400; font-size: 12px; color: var(--sub); }
/* 明日の3つ（はじめの目標を終えた日）：まだ押せないので薄く */
.goalcard .gq.soon { color: var(--sub); opacity: .7; }
/* もうすぐ取れるバッジ：細い進み具合のバー（目標カードとバッジ一覧の上） */
.gq.near { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.flabel.nearlbl + .gq.near { border-top: 0; }
.gq.near > span:first-child { width: 18px; flex: none; text-align: center; }
.gq.near small { display: block; font-weight: 400; font-size: 12px; color: var(--sub); }
.gq.near .nbar { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gq.near .nbar > i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.flabel.nearlbl { margin-top: 10px; }
/* 福引き：カプセルがゆれてから中身が飛び出す */
.fukures { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 8px 0; border-radius: var(--r-md); background: var(--bg2); position: relative; overflow: hidden; }
.fukures .ball { font-size: 30px; }
.fukures .got { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fukures .got .gic { font-size: 30px; } .fukures .got b { font-size: 15px; } .fukures .got small { flex-basis: 100%; font-size: 12px; color: var(--sub); }
.fukures.anim .ball { animation: fukushake .8s ease-in-out both; }
.fukures.anim .got { animation: fukupop .45s .8s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes fukushake { 0% { transform: rotate(0) scale(.6); } 20% { transform: rotate(-18deg) scale(1); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-12deg); } 80% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
@keyframes fukupop { from { opacity: 0; transform: translateY(10px) scale(.6); } }
/* 図鑑：47 都道府県のマス（集めた割合で色が濃くなる）と、県ごとの行 */
.zgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: 10px; }
.zc { font-size: 10px; line-height: 1; text-align: center; padding: 7px 0; border-radius: 6px; background: var(--bg2); color: var(--sub); white-space: nowrap; overflow: hidden; }
.zc.z1 { background: color-mix(in srgb, var(--ok) 18%, var(--bg2)); color: var(--fg); }
.zc.z2 { background: color-mix(in srgb, var(--ok) 38%, var(--bg2)); color: var(--fg); }
.zc.z3 { background: color-mix(in srgb, var(--ok) 62%, var(--bg2)); color: #fff; }
.zc.z4, .zc.done { background: var(--ok); color: #fff; font-weight: 700; }
.zc.done { box-shadow: inset 0 0 0 2px #f59e0b; }
.zrows { margin-top: 10px; }
.zrow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 2px 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.zrow b { font-size: 13.5px; } .zrow span { color: var(--fg2); white-space: nowrap; }
.zrow .lvbar { grid-column: 1 / -1; margin: 2px 0 0; height: 4px; }
/* 内装ショップ */
.decrow { margin-top: 6px; }
.decrow .flabel { display: block; font-size: var(--fs-sub); color: var(--fg2); font-weight: 600; margin: 8px 0 4px; }
.decorcard .chip .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.decorcard .chip.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card, #fff)); font-weight: 700; } /* 背景を薄く（全体の .chip.on の濃い背景のままだと文字と同じ色で消える） */
/* v114：内装（見本の部屋・枠のチップ・タイル） */
.decopv { margin-top: 10px; }
.decopv.roomcv canvas { cursor: default; }
.decoslots { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 10px -2px 0; padding: 2px 2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.decoslots::-webkit-scrollbar { display: none; }
.decoslots .chip { flex: none; padding: 6px 12px; font-size: var(--fs-sub, 13px); }
.decotiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.decotile { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; padding: 5px 5px 7px; border: 1.5px solid var(--line2); border-radius: var(--r-md); background: var(--bg2); color: var(--fg); font: inherit; text-align: center; cursor: pointer; position: relative; }
.decotile canvas { display: block; width: 100%; height: auto; aspect-ratio: 192 / 132; border-radius: 8px; background: color-mix(in srgb, var(--accent) 6%, var(--card, #fff)); }
.decotile b { font-size: 12px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.decotile small { font-size: 11px; color: var(--fg2); }
.decotile small.dtcur { color: var(--accent); font-weight: 700; }
.decotile.pick { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--card, #fff)); }
.decotile.r2:not(.lock)::after { content: ''; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #b47cff; box-shadow: 0 0 0 2px var(--card, #fff); } /* 少し特別な家具の印 */
.decotile.lock canvas { filter: grayscale(.55) opacity(.7); }
.decoact { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg2); }
.decoact b { font-size: 14px; }
.decoact .muted { font-size: 12px; margin-top: 2px; }
.decoact .btn { flex: none; }
/* 施設の中で探す */
.searchbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 12px; border-radius: var(--r-md); background: var(--bg2); }
.searchbox .btn { margin: 0; flex: none; }
/* 交換の結果のシート */
.tradesheet .swap { display: flex; align-items: center; gap: 8px; }
.tradesheet .swapit { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--r-md); background: var(--bg2); text-align: center; }
.tradesheet .swapit > span { font-size: 34px; line-height: 1.1; } .tradesheet .swapit b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } .tradesheet .swapit small { font-size: 11px; color: var(--sub); }
.tradesheet .swapit.got { box-shadow: inset 0 0 0 2px var(--accent); }
.tradesheet .swaparrow { font-size: 20px; color: var(--sub); }
.tradesheet .zukannew { margin: 12px 0 0; font-weight: 700; color: var(--ok); text-align: center; animation: fukupop .4s both; }
.tradesheet .journey { margin: 10px 0 0; font-size: 13.5px; }
/* 分身のひとりごと（マップの「最近の出来事」の先頭） */
.rumor.mono { background: color-mix(in srgb, #f59e0b 12%, var(--card)); }
/* 分身の日記 */
.diary .dentry { padding: 8px 0; border-top: 1px solid var(--line); }
.diary .dentry:first-of-type { border-top: 0; }
.diary .dentry small { color: var(--sub); font-size: 12px; }
.diary .dentry p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.6; }
.diary .dentry.today p { color: var(--fg2); }
.badge .bcoin { font-size: 10.5px; opacity: .6; }

/* ダークモード：レア度・スタンプ・レベルバーの色を明るく */
@media (prefers-color-scheme: dark) {
  .stamp { color: #ff8a7a; border-color: color-mix(in srgb, #ff8a7a 45%, transparent); }
  .lvbar { background: var(--line2); }
  .lvbar i { background: linear-gradient(90deg, #f7c25a, #ff8fb5); }
}

/* ---------- 第 2 回の見直し（g8） ---------- */
/* 持ち物の行：文字は 1 行（省略）、ボタンは文字の下に左そろえで 1 行 */
.itemrow.wrap { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; }
.itemrow.wrap .grow { flex: 1 1 0; }
.itemrow.wrap .iic { margin-top: 2px; }
.itemrow.wrap .itembtns { flex-basis: 100%; max-width: none; justify-content: flex-start; padding-left: 46px; }
.imeta { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.imeta .pill { vertical-align: 1px; }
.pill.stat { font-size: 11px; padding: 1px 7px; margin-left: 4px; background: var(--accent-soft); color: var(--accent); }
.pill.stat.gray { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg2); }
/* 持ち物：「交換」のまとまり（同じ形のスイッチの行） */
.tradegrp { margin-top: 12px; border-top: 1px solid var(--line); }
.tradegrp .flabel { font-size: var(--fs-sub); color: var(--fg2); font-weight: 600; margin: 10px 0 2px; }
.tradegrp .check { margin-top: 0; min-height: 44px; }
/* 持ち物の上の 💰・⚡（押すと説明のシート） */
.bagbar .bagbtn { border: 0; background: transparent; font: inherit; color: inherit; padding: 6px; margin: -6px -2px; min-height: 36px; border-radius: var(--r-sm); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.bagbar .bagbtn:active { background: var(--bg2); }
.bagbar .bagbtn b { font-size: 15px; }
.row.bento { gap: 10px; padding: 8px 0 2px; }
.card > .row.bento { padding: 0; }
.moneysheet .stbar { margin: 0; }
/* 図鑑タブの中の小さな切り替え（名産／スタンプ）：張り付かない */
.seg.mini { position: static; margin: 0 0 10px; padding: 3px; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.seg.mini button { min-height: 32px; font-size: 12.5px; }
/* 図鑑：県のマスはボタン（押すとその県の一覧）。濃さの段をはっきり */
.zc { font: inherit; font-size: 11px; line-height: 1; min-height: 32px; padding: 0 1px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zc.z0 { background: var(--bg2); color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }
.zc.z1 { background: color-mix(in srgb, var(--ok) 22%, var(--bg2)); color: var(--fg); }
.zc.z2 { background: color-mix(in srgb, var(--ok) 48%, var(--bg2)); color: var(--fg); font-weight: 600; }
.zc.z3 { background: color-mix(in srgb, var(--ok) 74%, #000 0%); color: #fff; font-weight: 600; }
.zc.z4, .zc.done { background: var(--ok); color: #fff; font-weight: 700; }
.zc:active { transform: scale(.94); }
.zlegend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 11.5px; color: var(--fg2); }
.zlegend i.zc { display: inline-block; width: 14px; height: 14px; min-height: 0; margin-right: 4px; vertical-align: -2px; border-radius: 3px; cursor: default; }
.zlegend .muted { margin-left: auto; }
.zitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.zitem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--bg2); color: var(--sub); min-width: 0; }
.zitem.have { color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 60%, transparent); }
.zitem > span { font-size: 18px; width: 22px; text-align: center; flex: none; }
.zitem > div { min-width: 0; }
.zitem b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zitem small { display: block; font-size: 10.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 福引き：🎁 はゆれたあと消えて、当たった品が主役 */
.fukures .ball { display: inline-block; overflow: hidden; }
.fukures.anim .ball { animation: fukushake .8s ease-in-out both, fukugone .25s .8s forwards; }
@keyframes fukugone { to { opacity: 0; width: 0; margin-right: -12px; } }
/* 分身：プロフィールの上の小さな自分の行（40px・1 行） */
.mebar.slim { gap: 10px; padding: 0 2px 10px; }
.mebar.slim .avatar { width: 40px; height: 40px; }
.mebar.slim b { display: block; font-size: 15px; flex: 0 1 auto; }
.mebar.slim .muted { font-size: 12px; min-width: 0; flex: 1; text-align: right; }
.draftnote { margin: 12px 0 -8px; color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .zc.z3 { color: #0d0f14; }
  .zc.z4, .zc.done { color: #0d0f14; }
}/* ===== 交流（部屋の訪問とスタンプ・評判・町の元気・お題・季節・日報・行商人・称号） ===== */
.pill.theme { background: color-mix(in srgb, #e06a5a 14%, transparent); color: #b8483a; font-weight: 700; }
.pill.titlepill { background: color-mix(in srgb, #8b5cf6 14%, transparent); color: #6d43d6; font-weight: 600; vertical-align: 2px; }
.pill.crown { background: color-mix(in srgb, #e0a020 20%, transparent); vertical-align: 2px; }
.rumor.roomnews { background: color-mix(in srgb, #10b981 12%, var(--card)); cursor: pointer; }
.rumor.peddlerrow { background: color-mix(in srgb, #8b5cf6 12%, var(--card)); cursor: pointer; font-weight: 600; }
a.peek { color: var(--accent); text-decoration: none; font-weight: 600; }
.chip.rep { font-weight: 600; }
.chip.rep small { color: var(--sub); font-weight: 500; }
.reactbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.react { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-md);
  border: 1px solid var(--line2); background: var(--bg2); color: var(--fg); font: inherit; cursor: pointer; min-width: 0; }
.react span { font-size: 22px; line-height: 1.1; }
.react small { font-size: var(--fs-cap); color: var(--fg2); white-space: nowrap; }
.react b { font-size: var(--fs-cap); color: var(--sub); font-weight: 600; }
.react.on { border-color: var(--accent); background: var(--accent-soft); }
.react.on small, .react.on b { color: var(--accent); }
.visitn { color: var(--ok); font-weight: 700; }
.chip.rankpill { flex: none; padding: 4px 10px; font-size: var(--fs-sub); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.chip.rankpill small { font-weight: 500; color: var(--sub); font-size: var(--fs-cap); }
.rankline { margin: 8px 0 4px; font-size: var(--fs-sub); }
.ranklist { display: flex; flex-direction: column; gap: 4px; }
.rankrow { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); background: var(--me); font-size: var(--fs-sub); }
.rankrow > b { width: 18px; text-align: center; }
.rankrow.me { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.toprooms { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, #e0a020 10%, var(--card)); }
.toprooms > b { display: block; font-size: var(--fs-sub); margin-bottom: 4px; }
.toprooms .list-item.tr { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.weekcard { margin: 8px 0; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, #e0a020 14%, var(--card)); display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sub); }
.weekcard .prize { color: var(--ok); font-weight: 700; }
.souv { margin: 4px 0 10px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, #10b981 12%, var(--card)); font-size: var(--fs-sub); }
.rlist { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sub); }
.repnew { margin: 4px 0; font-size: 13px; }
.titlepick { margin: 4px 0 12px; }
.titlepick .chips { margin-top: 6px; }
.gq.theme > span:first-child { font-size: 14px; }
.maphead > b { flex: 0 0 auto; } /* 見出しは縮めない。状態の文が残りの幅を使って右寄せ（省略される側）、🏆 ピルは最後 */
/* ===== 第 3 回の見直し（立ち上がり・はじめの数日・コインの使い道） ===== */
.maphead > .muted.mstat { flex: 1 1 auto; text-align: right; }
.maphead > .rankpill { flex: none; }
.goalbar .gpill { flex: none; display: inline-flex; max-width: 40%; overflow: hidden; }
.goalbar .gpill .pill { font-size: 11px; padding: 1px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* はじめの目標と並ぶときの「体力満タン」は ⚡ だけの小さな印（幅 32px 以内） */
.goalbar .gpill .pill.gicon { width: 26px; height: 22px; padding: 0; justify-content: center; font-size: 12px; }
.goalcard .grr { flex: none; min-height: 26px; padding: 1px 8px; font-size: 11.5px; align-self: center; }
.goalsheet .goalcard { margin: 0; box-shadow: none; border: 0; padding: 0; background: transparent; }
.infochips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.infochips::-webkit-scrollbar { display: none; }
.infochips .pill { white-space: nowrap; flex: none; }
.tsub { margin: 0 0 4px; font-size: var(--fs-sub); }
details.toprooms > summary { cursor: pointer; font-size: var(--fs-sub); font-weight: 700; list-style: none; display: flex; align-items: center; gap: 4px; }
details.toprooms > summary::-webkit-details-marker { display: none; }
details.toprooms > summary::after { content: "›"; margin-left: auto; color: var(--sub); transition: transform .15s; }
details.toprooms[open] > summary::after { transform: rotate(90deg); }
details.toprooms[open] > summary { margin-bottom: 4px; }
.visitcard .vlines { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sub); }
.visitcard .vline small { font-size: var(--fs-cap); }
.visitcard > summary .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.moneyrows .row.bento .imeta { white-space: normal; }
.moneyrows .row.bento + .row.bento { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.framerow { margin-top: 12px; }
.card.special .itemrow:first-of-type { border-top: 0; }
.card.special .itemrow .pill.theme { flex: none; }
.rhead { margin: 4px 0 8px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.rnotes { color: var(--fg2); }
.rumor.inbox { background: color-mix(in srgb, var(--sub) 12%, var(--card)); color: var(--fg2); }
.rumor.gossip { background: color-mix(in srgb, #f59e0b 10%, var(--card)); color: var(--fg2); }
.titlepick.row { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.titlepick.row .chip { flex: none; }
.outfitcard .chips { margin: 6px 0 4px; }
.outfitcard .iic.accprev { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; flex: none; }
.outfitcard .iic.accprev .avatar { width: 52px; height: 52px; }
.outfitcard .iic.accprev.on { box-shadow: 0 0 0 2px var(--accent); }
.outfitcard .osub { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.outfitcard .osub .muted { font-size: 12px; }
.outfitcard .fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.outfitcard .ftile { border: 0; background: var(--bg); color: var(--fg); border-radius: var(--r-md); padding: 6px 2px 5px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; font: inherit; }
.outfitcard .ftile.on { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.outfitcard .ftile .avatar { width: 44px; height: 44px; }
.outfitcard .ftile span { font-size: 11px; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; text-align: center; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.5em; }
.outfitcard .fmore { display: block; margin: 8px auto 0; }
/* 友達の部屋のスタンプ：1 行 44px（絵文字 18px と数） */
.roomsheet .reactbar { gap: 6px; margin-top: 10px; }
.roomsheet .react { flex-direction: row; justify-content: center; gap: 6px; height: 44px; padding: 0 6px; }
.roomsheet .react span { font-size: 18px; }
.roomsheet .react small { display: none; }
.roomsheet .react b { font-size: var(--fs-sub); }
.visitn { color: var(--fg2); font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .pill.theme { color: #ff9a8a; }
  .pill.titlepill { color: #b9a0ff; }
  .pill.crown { color: #f7c25a; }
}
.note.src { font-size: var(--fs-cap); color: var(--sub); }
/* ---------- 第 4 回の手直し（r4fix） ---------- */
/* マップの出来事は 3 件まで → 「すべて見る」 */
.feedall { display: block; margin: 2px auto 10px; }
.chip.realpill { margin-left: 6px; flex: none; } .chip.realpill b { color: var(--ok, #10b981); }
/* 足りない値段：淡い「あと68コイン」 */
.btn.small.short[disabled] { opacity: 1; color: var(--sub); background: transparent; border-style: dashed; }
/* 見た目：上に張り付く小さなプレビュー */
.lookhero { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 0 0 10px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-xs);
  position: sticky; top: calc(env(safe-area-inset-top) + var(--top-h) + 58px); z-index: 3; }
.lookhero .avatar { flex: none; }
/* 記憶：相手ごとにたたむ */
.memp { border-top: 1px solid var(--line, rgba(0,0,0,.08)); padding: 8px 0; }
.memp:first-of-type { border-top: 0; }
.memp summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; min-width: 0; }
.memp summary::-webkit-details-marker { display: none; }
.memp summary .flabel { margin: 0; flex: none; }
.memp summary .muted { font-size: 12px; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* いまいる町の小窓 */
.townhere .stamprow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 8px 0 4px; border-radius: var(--r-md); background: var(--bg2); }
.townhere .stamprow.ok { background: color-mix(in srgb, var(--ok, #10b981) 12%, var(--card)); }
.townhere .stamprow .sic { font-size: 26px; } .townhere .stamprow b { display: block; font-size: 14px; } .townhere .stamprow small { font-size: 12px; }
.townhere .toprooms { margin-top: 10px; }
/* にぎやかな町 */
.busyrows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.busyrow { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-md); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; color: var(--fg);
  background: color-mix(in srgb, #f97316 12%, var(--card)); }
.busyrow small { font-size: 11px; }
.gq.busyq span:first-child { color: #f97316; }
/* 部屋：町いちばん・地方の図鑑・名産地図 */
.crownline { margin: 0 0 8px; padding: 8px 12px; border-radius: var(--r-md); font-weight: 700; font-size: 13.5px; background: color-mix(in srgb, #f7c25a 22%, var(--card)); }
.rtracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rtrack { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; align-items: baseline; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg2); font-size: 13px; }
.rtrack small { color: var(--sub); font-size: 11px; } .rtrack .lvbar { grid-column: 1 / -1; margin: 2px 0 0; }
.rtrack.month { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.rtrack.done { background: color-mix(in srgb, #f7c25a 20%, var(--card)); }
.gimap .row { gap: 10px; align-items: center; }
.gmlist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gmrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg2); }
.gmrow > span { font-size: 22px; } .gmrow b { display: block; font-size: 13.5px; } .gmrow small { font-size: 12px; }
/* はじめてのユーザーの分身・部屋のカード */
.firstreal .frhero { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 6px; }
.firstreal .frspark { font-size: 28px; animation: fukupop .5s both; }
.roomcardsheet .cardprev { border-radius: var(--r-md); overflow: hidden; background: var(--bg2); margin: 4px 0 10px; }
.roomcardsheet .cardprev img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; }
.reportsheet .weekst { font-weight: 600; }
/* 静かな日の「いちばんの場面」（押すとその会話）・育った一面・予告 */
.reportsheet .bestm { margin: 10px 0 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.reportsheet .bestm .flabel { margin: 0 0 2px; }
.reportsheet .bestm p { margin: 0; font-size: 14px; line-height: 1.5; }
.reportsheet .bestm small { margin-left: 4px; font-size: 12px; }
.reportsheet .bestm .bmore { display: block; margin-top: 4px; font-size: 12px; color: var(--accent); font-weight: 600; }
.reportsheet .rgrow { margin: 6px 0 0; font-size: var(--fs-sub); color: var(--fg2); }
.reportsheet .rteaser { margin-top: 10px; }
.reportsheet .rteaser:empty { display: none; }
.chip.realpill { padding-left: 9px; padding-right: 9px; }
.busyrow .btxt { flex: 1; min-width: 0; }
/* ===== 分身の非公開プロフィール（一人称・年代・誕生月・性別）と、地図の見出しの 2 段 ===== */
.pvgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.pvgrid > div { min-width: 0; }
.pvgrid select { width: 100%; }
.pvnote { margin-top: 6px; }
/* ラウンド8：分身が自動で入れた行（仮）と「これは違う」 */
.autolines { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 2px; }
.autoline { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.autoline .grow { min-width: 0; overflow-wrap: anywhere; }
.autoline .chip { flex: none; margin: 0; }
/* 見出し「街のようす」の下に状態の文を小さく（ピルが並んでも「…」だけにならない） */
.maphead > .mtitle { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.maphead > .mtitle > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maphead > .mtitle > .mstat { font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maphead > .mtitle > .mstat svg { width: 12px; height: 12px; }
.maphead > .realpill, .maphead > .rankpill { flex: none; }
/* にぎやかな町の行：町の名前は 1 行で省略、人数と体力は右に固定（390px でも折り返さない） */
.busyrow .btxt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busyrow .bmeta { flex: none; white-space: nowrap; font-size: 12.5px; }
/* ユーザーの分身同士の会話へのスタンプ（😂／🫶／💡 の 3 種。会話の下に小さく） */
.mreact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 8px 0 2px; }
.mreact .chip { font-size: 12.5px; padding: 4px 10px; }
.mreact .mrlab { flex-basis: 100%; text-align: center; font-size: 12px; }
.mreact .mrthem { flex-basis: 100%; text-align: center; font-size: 12px; }
.mrcount { white-space: nowrap; }

/* ===== ラウンド5（実装担当B） ===== */
/* 図鑑の県ページ：かけら（持っている物が出るたびに 1 つ・5 つで交換） */
.kakera { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 10px; border-radius: var(--r-sm); background: var(--accent-soft); }
.kakera .kic { font-size: 20px; }
.kakera small { display: block; color: var(--sub); font-size: 12px; }
/* お金と体力のシート：増え方・使い方は 1 行ずつの一覧（説明の段落にしない） */
.moneysheet .flabel { margin: 10px 0 4px; }
.mlist { border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.mrow { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 13.5px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow .mic { width: 20px; text-align: center; flex: none; }
.mrow .muted { font-size: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* はじめての出会いのカード：見出しは 18px で折り返しをそろえ、ボタンは 1 行ずつ収まる 2 列 */
.firstreal .frh { margin: 6px 0 4px; font-size: 18px; text-align: center; text-wrap: balance; }
.firstreal .frchip { font-size: 12px; min-height: 26px; padding: 2px 10px; }
.firstreal .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.firstreal .btns > .btn { margin-top: 12px; white-space: nowrap; }
.firstreal .btns > :only-child { grid-column: 1 / -1; }
.firstreal .frinv { margin-top: 8px; }
/* この街のユーザーが 0 人のときの 👥 0（薄めに） */
.chip.realpill.zero { color: var(--sub); }
.realsheet .list-item .btn.small { flex: none; }
/* ヘッダ右：コインと体力（押すと「お金と体力」）。状態ピルは上限・オフラインのときだけ */
.hright { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hstat { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--fg2); font-variant-numeric: tabular-nums; cursor: pointer; padding: 4px 2px; }
.hstat:empty { display: none; }
.hstat b { color: var(--fg); font-weight: 700; display: inline-block; }
.hstat .hs { margin-left: 8px; }
.hstat b.pulse { animation: coinpulse .6s ease; }
@keyframes coinpulse { 30% { transform: scale(1.3); color: var(--accent); } }
/* 動きを止める：?motion=off（撮影・確認用）と、OS の「視差効果を減らす」 */
html.nomotion *, html.nomotion *::before, html.nomotion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .sheet-bg, .sheet-card { animation-duration: .18s !important; transition-duration: .18s !important; }
  .sheet-card { animation-name: fade !important; }
  .hstat b.pulse { animation: none; }
}
/* たたんだすれ違い（👋 すれ違った人 N人）：小さな顔を重ねて 1 行。押すとその場で開く */
.passfold .passhead { gap: 10px; cursor: pointer; align-items: center; }
.passfold .passhead b { font-size: 14px; font-weight: 600; }
.passfold .stack { display: inline-flex; flex: none; }
.passfold .stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.passfold .stack .avatar:first-child { margin-left: 0; }
.card.passfold { padding-top: 10px; padding-bottom: 10px; }
.passfold .passlist { margin-top: 6px; border-top: 1px solid var(--line); }
.list-item.passfold { display: block; }
.goalsheet .goalcard .row.head { padding-right: 44px; }
.goalbar .gtxt > span.ok, .goalbar .gtxt > span { margin-right: 2px; }
/* お金と体力：上限に届いた「増やす」の行は薄く。「使う」はボタンに見えない灰色の札 */
.mrow.full { color: var(--sub); }
.mrow.full .mic { opacity: .55; }
.mrow.full .muted { color: var(--ok, #10b981); }
.chip.usechip { background: var(--me); color: var(--fg2); border-color: transparent; font-size: 12px; padding: 4px 10px; cursor: default; }
/* ===== ラウンド7（実装B） ===== */
/* 目標の帯の「やる ›」：文の右に主ボタン。× との間は 12px 以上、× の押せる範囲は 40px 四方 */
.goalbar .gpill.hasdo { max-width: none; overflow: visible; margin-right: 4px; }
.goalbar .gdo { flex: none; min-height: 32px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border-radius: 999px; margin: 0; }
.goalbar .gdo .gbolt { margin-right: 2px; font-size: 11px; }
.goalbar .gx { width: 40px; height: 40px; margin: -6px -10px -6px 0; }
.goalbar .gpill .pill.gfull { font-size: 11px; }
.goalcard .gq .gdo { flex: none; align-self: center; min-height: 30px; padding: 2px 12px; font-size: 12.5px; margin: 0; }
/* 目標を終えたときの「+50」がヘッダのコインへ飛ぶ */
.coinfly { position: fixed; z-index: 60; transform: translate(0, 0); margin: -10px 0 0 -16px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; pointer-events: none; transition: transform .6s cubic-bezier(.4,.1,.3,1), opacity .6s ease; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
/* ヘッダの数字：変わったら一度だけ 1.15 倍（0.3 秒）＋横に「+N」 */
.hstat b.pulse { animation: coinpulse .3s ease; }
@keyframes coinpulse { 50% { transform: scale(1.15); color: var(--accent); } }
.hfloat { position: fixed; z-index: 60; transform: translate(-50%, 0); font-size: 11.5px; font-weight: 800; color: var(--ok, #10b981); pointer-events: none; animation: hfloat .9s ease forwards; }
.hfloat.neg { color: var(--sub); }
@keyframes hfloat { from { opacity: 0; transform: translate(-50%, -2px); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, 10px); } }
/* シートを開いているときのトーストは、置き場所を JS（placeToast）が決める。決める前でもヘッダにはかけない */
body.sheet-open .toast { top: calc(env(safe-area-inset-top) + var(--top-h) + 8px); }
/* 留守の間に（シート）：1 行ずつ押すとその画面へ */
.awaysheet .alist { display: flex; flex-direction: column; gap: 6px; }
.awaysheet .arow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--fg); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.awaysheet .arow .aic { flex: none; width: 22px; text-align: center; }
.awaysheet .arow .grow { min-width: 0; }
.awaysheet .arow .amore { flex: none; font-size: 12px; color: var(--accent); font-weight: 600; }
.reportsheet .rtap { cursor: pointer; }
/* 分身タブの保存バー：変更があるときだけ（body.me-dirty）。44px の「元に戻す」「変更を保存」。変更が無いときは小さな「保存済み ✓」 */
.savebar { display: none; padding: 16px 16px 8px; gap: 8px; align-items: center; }
body.me-dirty .savebar { display: flex; }
.savebar .btn { flex: 1 1 0; width: auto; height: 44px; min-height: 44px; padding: 0 12px; margin: 0; }
.savebar .btn.ghost { flex: 0 0 auto; padding: 0 16px; background: var(--card); color: var(--fg); border-color: var(--line2); }
.savedok { margin: 4px 2px 0; font-size: 12px; text-align: right; }
body.me-dirty .savedok { display: none; }
.mebody.hasbar { padding-bottom: 16px; }
body.me-dirty .mebody.hasbar { padding-bottom: 72px; }
/* ウォッチ：いまの分身 */
.nowcard { padding: 10px 14px; }
.nowcard .row { gap: 10px; align-items: center; }
.nowcard .nowline { font-size: 14px; font-weight: 600; }
.nowcard .nowhabit { font-size: 12px; color: var(--sub); margin-top: 2px; } /* ラウンド11：成長で変わった振る舞い */
.nowcard .nowwhy { font-size: 11px; color: var(--sub); opacity: .85; margin-top: 1px; padding-left: 1.4em; } /* ラウンド12：振る舞いが変わった理由の一行 */
.nowcard .avatar.me { box-shadow: 0 0 0 2px var(--accent); }
.nowlive { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; min-height: 40px; padding: 6px 12px; border: 0; border-radius: var(--r-md); background: color-mix(in srgb, var(--ok, #10b981) 12%, transparent); color: var(--fg); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.nowlive .amore { margin-left: auto; color: var(--accent); font-size: 12px; }
.nowlive .livedotin { width: 8px; height: 8px; border-radius: 50%; background: var(--ok, #10b981); flex: none; }
/* 会話中の一言（話した人の小さな顔＋「台詞」） */
.lsnip { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--fg); min-width: 0; }
.lsnip .ellipsis { min-width: 0; }
.avatar.xs { width: 20px; height: 20px; flex: none; }
/* 一覧の終わりの「町のようす」 */
.townlife { margin: 12px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.townlife .flabel { margin: 0 2px 2px; }
.tlrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.tlrow .grow { min-width: 0; }
.tlrow .amore { flex: none; font-size: 12px; color: var(--sub); }
.tlrow .aic { flex: none; }
/* 見出しの「👏 今週」（押すと「もらったもの」） */
.stat.statbtn { border: 0; background: transparent; font-family: inherit; cursor: pointer; padding: 0; text-align: inherit; line-height: 1.4; }
.gotsheet .gotlist { display: flex; flex-direction: column; }
.gotsheet .gotrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; position: relative; }
.gotsheet .gotrow:first-child { border-top: 0; }
.gotsheet .gotrow .grow { min-width: 0; }
.gotsheet .gotrow small { display: block; }
.gotsheet .gotrow .btn { flex: none; margin: 0; min-height: 36px; }
.gotsheet .newdot { position: absolute; left: -8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.mreact.focus { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-md); }
/* 店内の見出し：自分の顔は最後に、アクセントの輪 */
.maphead .stack .avatar.me { box-shadow: 0 0 0 2px var(--accent), 0 0 0 3px var(--card); margin-left: 4px; } /* 「+3」を隠さないよう、自分の顔だけは重ねずに少し離す */
.maphead .stack .avatar.me:first-child { margin-left: 2px; }
/* 会話が終わったあとの「耳打ちは次に会ったときに」がスマホ幅（入力欄 約170px）で切れないよう、案内の文字だけ小さく・左右の余白を詰める */
.composer input::placeholder { font-size: 12.5px; letter-spacing: -.02em; }
.composer input { padding: 0 12px; }
.townlife .flabel, .nowcard .flabel { display: block; font-size: 12px; font-weight: 600; color: var(--sub); }

/* ===== ラウンド8（実装B） ===== */
/* 見出しの数：「2人」の単位は小さく。0 の枠の代わりのひと言（次の段階まで）。数が変わったら一度だけ弾む */
.hero.slim .stat b small { font-size: 11px; font-weight: 600; margin-left: 1px; }
.hero.slim .stats.inline { align-items: center; min-width: 0; }
.stathint { border: 0; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.35; padding: 5px 9px; border-radius: 10px;
  max-width: 150px; text-align: left; cursor: pointer; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.stathint small { font-weight: 500; opacity: .8; }
.stat b.pop { animation: statpop .32s ease; display: inline-block; }
@keyframes statpop { 40% { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .stat b.pop { animation: none; } }
/* バッジのカード（2 つ以上・節目） */
.badgecard .bclist { display: flex; flex-direction: column; gap: 8px; }
.bcrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--me); }
.bcrow .bic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.bcrow .grow { min-width: 0; display: flex; flex-direction: column; }
.bcrow .grow b { font-size: 14px; }
.bcrow .grow small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcrow .bccoin { font-weight: 700; color: var(--accent); font-size: 13px; flex: none; }
.bcrow .btn.small { flex: none; }
/* シートの中のお知らせの帯（背の高いシートでは画面上のトーストの代わり） */
.sheettoast { position: sticky; top: 0; z-index: 2; margin: 0 44px 8px 0; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 500; line-height: 1.45;
  background: color-mix(in srgb, var(--fg) 88%, transparent); color: var(--bg); transition: opacity .3s ease; animation: toastup2 .2s ease; }
.sheettoast.out { opacity: 0; }
@keyframes toastup2 { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-color-scheme: dark) { .sheettoast { background: color-mix(in srgb, var(--card) 70%, var(--bg2)); color: var(--fg); border: 1px solid var(--line2); } }
@media (prefers-reduced-motion: reduce) { .sheettoast { animation: none; transition: none; } }
/* 会話：はずみ具合のピル・項目ごとに折り返さない見出し・すれ違いの小さなカード・終わった会話の下の行 */
.pill.mood { font-size: 11px; padding: 1px 8px; }
.pill.mood.cool { background: color-mix(in srgb, #3d8fe0 12%, transparent); color: #2f6fb3; }
@media (prefers-color-scheme: dark) { .pill.mood.cool { color: #8cbcf0; } }
.nw { white-space: nowrap; }
.chap-head .chap-tag { display: inline-flex; flex-wrap: wrap; align-items: center; }
.chapter.passcard { background: var(--card); border-radius: var(--r-md); padding: 2px 14px 10px; margin: 10px 0; box-shadow: var(--shadow); }
.chapter.passcard .chap-head { margin-top: 10px; }
.passth { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg2); font-style: italic; padding: 3px 0; }
.passth .avatar { flex: none; }
.passnext { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; }
.endfoot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 6px; text-align: center; }
.endfoot .endrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.endfoot .endpill { font-size: var(--fs-cap); font-weight: 500; padding: 4px 10px; }
.endfoot .endnext { font-size: 12.5px; }
.composer.next input::placeholder { font-size: 13px; letter-spacing: 0; }
/* 地図の上：左下の「○○に入る」ボタン（右下の操作ボタンと対）・左上の町の知らせの帯 */
.mapenter { position: absolute; left: 12px; bottom: 12px; min-height: 44px; max-width: calc(100% - 92px); display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px 0 6px; border: 0; border-radius: 22px; background: var(--accent); color: var(--accent-fg, #fff); font: inherit; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(40,50,140,.28); cursor: pointer; }
.mapenter .meic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.mapenter .ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapticker { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); min-height: 30px; display: flex; align-items: center; padding: 0 12px; border-radius: 15px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--fg); font: inherit; font-size: 12px; font-weight: 600; box-shadow: var(--shadow); cursor: pointer; overflow: hidden; }
.mapticker .tkin { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.mapticker.swap .tkin { animation: tkswap .35s ease; }
@keyframes tkswap { from { transform: translateY(70%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mapticker.swap .tkin { animation: none; } }
.legend i.dotl { width: 8px; height: 8px; margin: 0 6px 0 2px; opacity: .7; background: #9aa1b2; box-shadow: none; }
.legend .legmore { flex-basis: 100%; white-space: normal; margin: 0; }
.legmore summary { font-size: var(--fs-cap); }
/* お金と体力：出会いのコインの上限の行は長いので折り返して右寄せ */
.mrow .muted { white-space: normal; max-width: 64%; line-height: 1.35; }

/* ===== ラウンド9（実装B） ===== */
/* 見出しの「次の段階まで」：名前（1 行・はみ出しは …）と、短いひと言（折り返さない）の 2 行 */
.stathint { display: flex; flex-direction: column; align-items: flex-start; -webkit-line-clamp: unset; white-space: nowrap; max-width: 168px; min-width: 0; gap: 1px; }
.stathint .shname { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.stathint .shline { display: block; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: #fff; }
/* プロフィールの「近づかせる」を目立たせる（見出しのひと言から開いたとき） */
.btn.hl { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); animation: hlpulse 1.2s ease 2; }
@keyframes hlpulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 12%, transparent); } }
/* ウォッチの今日の帯：枠の数が変わっても均等に。押せる枠（未再生・すれ違い・ユーザー） */
.stats.strip { display: flex; }
.stats.strip .stat { flex: 1 1 0; min-width: 0; justify-content: center; height: 100%; }
.stats.strip .stat.statbtn { align-items: center; text-align: center; color: var(--sub); }
.stats.strip .stat.unheard b { color: var(--accent); font-size: 15px; white-space: nowrap; }
.stats.strip .stat.livec b, .stats.strip .stat.realc b { color: var(--ok); }
.stats.strip .stat.popc small { font-size: 11px; line-height: 1.3; padding: 0 6px; color: var(--sub); }
/* ユーザーの分身の顔：緑の輪を太めに（住人と見分けやすく） */
.avatar.real { box-shadow: 0 0 0 2px var(--card), 0 0 0 4.5px #0f9f6e; }
/* バッジのカード：アイコン｜名前と説明（2 行まで）・称号にする｜+コイン の格子 */
.bcrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: start; gap: 4px 10px; }
.bcrow .bic { padding-top: 2px; }
.bcrow .bcmain { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.bcrow .bcmain b { font-size: 14px; }
.bcrow .bcdesc { font-size: 11.5px; line-height: 1.4; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bcrow .bctitle { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; }
.bcrow .bcnot { font-size: 11.5px; color: var(--sub); opacity: .7; }
.bcrow .bccoin { padding-top: 2px; }
/* ほしい物：☆ と、お金と体力の上のカード */
.wstar { flex: none; width: 36px; height: 36px; border: 0; background: none; font-size: 18px; color: var(--sub); cursor: pointer; border-radius: 50%; margin-right: 2px; }
.wstar.on { color: #e0a100; }
.wishcard { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--me); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.wishcard.sug { cursor: default; }
.wishcard .wic { font-size: 26px; flex: none; }
.wishcard .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wishcard .wtop { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wishcard .wtop b { min-width: 0; flex: 1; font-size: 14px; }
.wishcard .wtop small { flex: none; font-variant-numeric: tabular-nums; color: var(--sub); }
.wishcard .wbar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wishcard .wbar > i { display: block; height: 100%; background: #e0a100; border-radius: 3px; transition: width .3s ease; }
.wishcard .amore { color: var(--sub); flex: none; }
.wishcard small.muted { font-size: 12px; }
/* 一覧の中で段階が上がった人：関係ピルが弾んで「↑知り合い」 */
.pill.relup { animation: relpop .5s ease 2; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 35%, transparent); font-weight: 700; }
@keyframes relpop { 40% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .pill.relup, .btn.hl { animation: none; } }
/* 下のトーストが出ている間は、ページの下に同じ高さの余白（いちばん下の行や「最近の出来事」をトーストの上まで送れる） */
body.toasting main#view { padding-bottom: calc(24px + var(--toast-h, 52px)); }
.toast.go, .sheettoast.go { cursor: pointer; }
/* 目標の行は 1 行（はみ出しは …）。+50 は文の横に固定 */
.goalbar.one .gtxt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
.goalbar .gcoin { flex: none; font-size: 11px; padding: 1px 8px; }
/* 地図の知らせの帯：目標「会話をのぞく」のときは のぞく › と +50 を添える */
.mapticker.goal { gap: 8px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.mapticker .tkin { min-width: 0; }
.mapticker .tkgo { flex: none; color: var(--accent); font-weight: 700; white-space: nowrap; }
.mapticker .tkcoin { flex: none; font-size: 11px; padding: 1px 7px; }
/* 目標の行：「次の目標」は読み上げだけ（🎯 で分かる。1 行の文に場所をゆずる） */
.srh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ☆ のある行（家具・着替え）：名前は 2 行まで折り返す（☆ と値段のボタンに押されて「アコー…」にならない）。☆ は小さめ */
.itemrow:has(.wstar) { gap: 6px; }
.itemrow:has(.wstar) b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.itemrow:has(.wstar) .imeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itemrow .wstar, .row .wstar { width: 30px; height: 36px; font-size: 17px; margin: 0; }
/* ---------- ラウンド10 ---------- */
/* 「・」でつなぐ項目（dotJoin）：区切りは CSS で次の項目の前に。項目の中では折り返さない */
.dj { white-space: nowrap; }
.dj + .dj::before { content: '・'; margin: 0 .3em; opacity: .6; }
/* おこづかいのカード：7 マスの段・今日のマス・受け取る */
.allowcard { padding: 12px 14px; }
.allowcard .row b { font-size: 15px; }
.alladder { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0 10px; }
.alladder .alc { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.alladder .alc small { font-size: 10px; color: var(--sub); }
.alladder .alc b { font-size: 13px; }
.alladder .alc.done { opacity: .55; }
.alladder .alc.now { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.alladder .alc.now small { color: var(--accent-fg); opacity: .85; }
.allowcard .allowbtn { width: 100%; min-height: 44px; margin: 0; }
.allowcard .alnext { margin: 6px 0 0; font-size: 12px; text-align: center; }
.reportsheet .allowcard { margin: 8px 0 10px; box-shadow: none; border: 1px solid var(--line); }
.rteaser .srisk { color: var(--warn, #c2410c); font-weight: 600; }
/* お金のシート：行の小さな 2 行目・受け取るボタン・つぎの買い物 */
.mrow .grow { min-width: 0; }
.mrow:has(.msub) { flex-wrap: wrap; row-gap: 0; }
.mrow .msub { flex-basis: 100%; padding-left: 30px; font-size: 11.5px; color: var(--sub); line-height: 1.4; margin-top: -2px; }
.mrow .btn.small { padding: 6px 12px; min-height: 36px; }
.nextbuy .nblbl { margin: 0 0 4px; font-size: 11px; }
.nextbuy .wishcard { margin-top: 0; }
.wishcard.can { cursor: default; border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.wishcard .okline { color: var(--ok); font-weight: 700; font-size: 12.5px; }
.usechip small { color: var(--sub); font-size: 11px; font-variant-numeric: tabular-nums; }
/* はじめての出会いのカード */
.firstreal .frwho { margin: 0 0 8px; text-align: center; font-weight: 600; font-size: 14.5px; text-wrap: balance; }
.firstreal .frbtns { grid-template-columns: 1fr; }
.firstreal .frbtns:has(> .btn + .btn) { grid-template-columns: 1.4fr 1fr; }
.firstreal .frbtns:empty { display: none; }
.firstreal .btns:empty { display: none; }
.linkbtn { display: inline-block; border: 0; background: none; font: inherit; font-size: 13px; color: var(--accent); font-weight: 600; cursor: pointer; padding: 12px 4px; margin: -12px -4px; }
.firstreal .frinv { display: block; margin: 14px auto 0; }
/* お返しにのぞく（部屋のお客さん） */
.retbtn { flex: none; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--ok); cursor: pointer; padding: 12px 4px; margin: -12px 0; white-space: nowrap; }
.retdone { flex: none; font-size: 11.5px; color: var(--sub); white-space: nowrap; }
.vchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.vchips > small { flex-basis: 100%; }
.vchip { min-height: 32px; padding: 4px 12px; font-size: 12.5px; }
.vchip.done { opacity: .6; }
/* 押せる大きさ（44px）：☆・切り替え・地図の帯・文字のリンク */
.wstar, .itemrow .wstar, .row .wstar { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin: -4px -6px; }
.segctl { padding: 4px; }
.segctl button { min-height: 40px; }
.mapticker { min-height: 44px; border-radius: 22px; }
details.more > summary, a.peek { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
details.more > summary { display: inline-flex; }
/* 会話が終わる直前（最後の行が別れのあいさつ）の行 */
.winding { color: var(--sub); font-weight: 600; }
.firstreal .frh { word-break: keep-all; }
/* 検証で修正：部屋の知らせに「お返しにのぞく」が付くと本文が 4 行に細るので、ボタンは 2 行目（本文の下）へ */
.rumor.roomnews:has(> .retbtn, > .retdone) { flex-wrap: wrap; row-gap: 2px; }
.rumor.roomnews:has(> .retbtn, > .retdone) > .grow { flex: 1 1 calc(100% - 110px); min-width: 0; }
.rumor.roomnews > .retbtn, .rumor.roomnews > .retdone { order: 5; margin-left: 30px; }
.rumor.roomnews > .retbtn { padding: 10px 4px; margin-top: -8px; margin-bottom: -10px; }
/* ===== ラウンド11 ===== */
/* B1 おこづかいは 1 行（56px 以下）。7 マスの段はお金と体力のシートだけ */
.allowcard.allowrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; min-height: 48px; max-height: 56px; box-sizing: border-box; overflow: hidden; transition: height .22s ease, opacity .22s ease, margin .22s ease, padding .22s ease; }
.allowcard.allowrow.closing { opacity: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; min-height: 0; }
.allowrow .altxt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 0; background: none; padding: 4px 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.allowrow span.altxt { cursor: default; }
.allowrow .alline { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.allowrow .alline b { color: var(--accent); }
.allowrow .aldots { display: inline-flex; gap: 5px; }
.allowrow .ald { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.allowrow .ald.done { background: color-mix(in srgb, var(--accent) 45%, var(--line2)); }
.allowrow .ald.now { background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.allowcard.allowrow .allowbtn { width: auto; flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px; margin: 0; }
.reportsheet .allowcard.allowrow { margin: 10px 0; }
.moneysheet .allowfull { margin: 4px 0 6px; }
.moneysheet .allowfull .alladder { margin: 4px 0 4px; }
.moneysheet .allowfull .alnext { margin: 0; font-size: 12px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .allowcard.allowrow { transition: none; } }
/* 町のようすの見出しは 1 行（向かっている先・散歩中は横に小さく） */
.maphead > .mtitle.one { flex-direction: row; align-items: baseline; gap: 8px; }
.maphead > .mtitle.one > b { flex: none; }
.maphead > .mtitle.one > .mstat { min-width: 0; }
/* 区切りの点はどこでも同じ（.dot と dotJoin） */
.dot { margin: 0 6px; vertical-align: middle; }
.dj + .dj::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; margin: 0 6px; vertical-align: middle; }
/* B2 ごほうびのトーストは 2 段（額が先・目標の名前は小さく）。省略しない */
.toast .tmsg.t2, .sheettoast .tmsg.t2 { display: block; -webkit-line-clamp: unset; overflow: visible; }
.tmsg.t2 .tl1 { display: block; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.tmsg.t2 .tl2 { display: block; font-size: 11.5px; opacity: .85; font-weight: 500; }
/* B5 使うの鍵つきの予告 */
.chip.usechip.locked { opacity: .6; }
.useunlock { display: flex; align-items: center; gap: 8px; margin: 6px 2px 0; font-size: 12.5px; color: var(--fg2); }
.useunlock .btn { flex: none; margin: 0; }
p.useunlock { display: block; color: var(--sub); }
/* B6 はじめての出会い：相手（左）とあなた（右）が順にぽんと出る */
.firstreal .frhero .frface { display: inline-block; animation: frpop .22s cubic-bezier(.2, 1.4, .4, 1) both; }
.firstreal .frhero .frface:last-child { animation-delay: .08s; }
@keyframes frpop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .firstreal .frhero .frface, .firstreal .frspark { animation: none; } }
.nomotion .firstreal .frhero .frface { animation: none; }
.firstreal .frmreact { margin: 10px 0 0; }
.firstreal .frmreact .chip[disabled] { opacity: .55; cursor: default; }
.firstreal .frbtns > .btn { width: 100%; }
.firstreal .frsub { grid-template-columns: 1fr 1fr; }
.firstreal .frsub:empty { display: none; }
.firstreal .frlinks { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
.firstreal .frlinks .linkbtn { margin: -12px 0; }
.firstreal .frlinks .frinv { display: inline-block; margin: -12px 0; }
/* B7 探す：手がかり */
.searchbox .sclue { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 2px; }
/* B8 お返しにひとこと：スタンプの帯を一度光らせる */
.mreact.pulse { animation: mrpulse 1.2s ease 2; }
@keyframes mrpulse { 50% { background: color-mix(in srgb, var(--accent) 14%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mreact.pulse { animation: none; } }
.firstreal .frwho { word-break: keep-all; overflow-wrap: anywhere; }
.searchbox .sclue { word-break: keep-all; }

/* ---------- ラウンド12 ---------- */
/* B6：おこづかいの行は分身のカードの中。受け取ったら名前の下に小さな「✓ 受け取り済み」 */
.hero.slim.hasallow { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
.hero .allowcard.allowrow { flex: 1 0 100%; margin: 0; min-height: 44px; padding: 4px 6px 4px 12px; background: rgba(255,255,255,.16); box-shadow: none; border: 0; border-radius: 14px; color: #fff; }
.hero .allowrow .alline { font-size: 13px; color: #fff; }
.hero .allowrow .alline b { color: #fff; }
.hero .allowrow .alline .muted { display: inline; color: #fff; opacity: .8; margin: 0; font-size: inherit; }
.hero .allowrow .ald { background: rgba(255,255,255,.35); }
.hero .allowrow .ald.done { background: rgba(255,255,255,.7); }
.hero .allowrow .ald.now { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.hero .allowcard.allowrow .allowbtn { background: #fff; color: var(--accent); min-height: 34px; }
.hero .alok { opacity: .9; white-space: nowrap; }
/* 7 つ目の点は 🎁 */
.allowrow .ald.box { width: auto; height: auto; background: none !important; box-shadow: none !important; font-size: 10px; line-height: 8px; font-style: normal; }
.allowrow .ald.box:not(.now) { opacity: .7; }
.alladder .alc.box b { font-size: 13px; }
/* 地図の上を詰める：見出しの行を低く・出典は 10px の 1 行 */
.mapcard > #placehead .maphead { padding: 8px 12px 6px 16px; }
.legend .src.short { flex-basis: 100%; font-size: 10px; line-height: 1.4; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 会話の帯：「あなたの分身と○○が話しています」。省略されるのは名前だけ */
.mapticker.talk .tkin { display: flex; align-items: center; gap: 0; min-width: 0; }
.mapticker .tkname { min-width: 2.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; flex: 0 1 auto; }
.mapticker .tkin { white-space: nowrap; }
.mapticker .tkreal { flex: none; font-size: 10px; padding: 0 6px; margin: 0 2px 0 4px; }
.mapticker.talk { gap: 8px; }
/* B4：コイン・体力・お弁当のトーストは 1 行 */
.toast .tmsg.one, .sheettoast .tmsg.one { display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* B5：見出しの 🔔 */
.hbell { position: relative; flex: none; border: 0; background: none; font: inherit; font-size: 16px; line-height: 1; padding: 8px 6px; margin: -8px 2px -8px 0; cursor: pointer; color: var(--fg); }
.hbell[hidden] { display: none; }
.hbell .hbdot { position: absolute; top: 2px; right: -2px; min-width: 15px; height: 15px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; font-style: normal; line-height: 15px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.hright { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.newssheet .alist { display: flex; flex-direction: column; gap: 8px; }
.newssheet .arow { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--fg); font: inherit; font-size: 13px; text-align: left; box-sizing: border-box; }
.newssheet button.arow { cursor: pointer; }
.newssheet .arow .aic { flex: none; width: 22px; text-align: center; }
.newssheet .arow .grow { min-width: 0; }
.newssheet .arow .amore { flex: none; font-size: 12px; color: var(--accent); font-weight: 600; }
.newssheet .arow .retbtn { margin: -8px 0; padding: 10px 4px; }
/* v96：新しい飾りのお知らせ（文の下に「試着 ›」「手に入れ方 ›」。押せる高さは 44px） */
.newssheet .arow.cnrow { flex-wrap: wrap; row-gap: 0; padding-bottom: 0; }
.newssheet .arow.cnrow > .grow { flex: 1 1 calc(100% - 32px); }
.newssheet .cnrow .cnbtns { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 0 8px; padding-left: 32px; }
.newssheet .cnrow .cnbtns .retbtn { margin: 0; padding: 0 6px; min-height: 44px; min-width: 44px; color: var(--accent); font-size: 12.5px; }
.newssheet .cnrow .cnbtns .retbtn:first-child { margin-left: -6px; }
.rwrow.cnhl { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-md); }
.newssheet .newdot { position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
/* B3：ウォッチの相手ごとの行（名前の下に左寄せの 1 行） */
.list-item.wrow { align-items: flex-start; gap: 10px; padding: 8px 0; }
.list-item.wrow .avwrap .avatar { width: 44px; height: 44px; }
.wrow .wname { gap: 4px 6px; flex-wrap: wrap; min-width: 0; } /* v63：名前が長いときは印を次の行へ（名前を潰さない） */
.wrow .wname b { font-size: 15px; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.wrow .wname .pill { flex: none; }
.wrow .wmeta { display: flex; align-items: center; gap: 0 4px; font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-align: left; margin-top: 1px; }
.wrow .wprog { overflow: hidden; text-overflow: ellipsis; }
.wrow .wmeta .rc.hearts { margin-right: 2px; } /* v63：♥＋段階の数は次の段階の印と同じ行に（名前の行を短く） */
.wrow .wseg { display: inline-flex; gap: 2px; margin: 0 2px 0 4px; flex: none; }
.wrow .wseg i { width: 10px; height: 4px; border-radius: 2px; background: var(--line2); }
.wrow .wseg i.on { background: var(--ok); }
.wrow .wkeep { flex: none; filter: grayscale(1); opacity: .45; font-size: 12px; }
.wrow .wrecent, .wrow .wago { flex: none; font-weight: 400; }
.wrow .wlive { flex: none; color: var(--ok); font-weight: 600; }
.wrow .wmem { font-size: 11px; }
.wrow .lsnip, .wrow > .grow > .muted.ellipsis { margin-top: 1px; }
.wcount { justify-content: space-between; align-items: center; margin: 0 2px 6px; font-size: 12px; }
.wsorts { display: inline-flex; gap: 6px; }
.wsorts .chip { min-height: 30px; padding: 2px 12px; font-size: 12px; }
/* ユーザーの分身の帯（ウォッチの上） */
.realstrip { display: block; margin: 0 0 10px; }
.realstrip .rslist { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.realstrip .rsitem { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); max-width: 300px; }
.realstrip .rsmain { display: flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; min-width: 0; text-align: left; }
.realstrip .rstxt { display: flex; flex-direction: column; min-width: 4.5em; line-height: 1.25; } /* v63：名前と「2時間前」が縦に潰れない（横の印が増えても） */
.realstrip .rstxt b { font-size: 13px; max-width: 8em; }
.realstrip .rstxt small { font-size: 11px; white-space: nowrap; }
.realstrip .rsroom { min-height: 30px; padding: 2px 10px; font-size: 12px; flex: none; }
.realstrip .realtag { flex: none; font-size: 10px; padding: 0 6px; }
button.realstrip.none { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--line2); border-radius: var(--r-md); background: none; font: inherit; font-size: 13px; color: var(--fg); text-align: left; cursor: pointer; }
.realstrip.none .amore { color: var(--accent); font-weight: 700; }
/* B2：住人の思い出の品 */
.keepcard .kpic { width: 96px; height: 96px; display: grid; place-items: center; font-size: 52px; border-radius: 24px; background: var(--bg2); }
.keepz .kzlist { display: flex; flex-direction: column; }
.keepz .kzrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.keepz .kzrow:first-child { border-top: 0; }
.keepz .kzname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.keepz .kzname b { font-size: 13px; }
.keepz .kzname small { font-size: 11px; }
.keepz .kzslots { display: flex; gap: 6px; flex: none; }
.keepz .kzs { width: 44px; height: 44px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg2); border: 1px dashed var(--line2); font-size: 20px; line-height: 1; }
.keepz .kzs i { font-style: normal; filter: grayscale(1); opacity: .35; font-size: 16px; }
.keepz .kzs small { font-size: 9px; color: var(--sub); margin-top: 2px; }
.keepz .kzs.on { border-style: solid; background: var(--card); }
/* B1：鍵のかかったほしい物 */
.wishcard.locked { opacity: .8; }
/* B6：地図をもっと上へ（1 日目。おこづかいの行を分身のカードに入れたうえで、段の余白を詰める） */
main:has(> .hero.slim) { padding-top: 10px; }
.hero.slim.hasallow { min-height: 0; padding: 6px 10px 6px 12px; row-gap: 4px; }
.hero.slim.hasallow .stats { display: none; } /* 受け取るまでは、カードの中のコインの誘いはおこづかいの行だけ */
.hero .allowcard.allowrow { min-height: 38px; padding: 3px 4px 3px 12px; }
.hero .allowrow .altxt { gap: 3px; padding: 2px 0; }
.hero .allowcard.allowrow .allowbtn { min-height: 32px; padding: 0 14px; }
.hero.slim + .card.mapcard, .hero.slim + .mapcard { margin-top: 8px; }
.mapcard > #placehead .maphead { padding: 4px 10px 3px 16px; }
.mapcard > #placehead .maphead .chip { min-height: 30px; padding-top: 2px; padding-bottom: 2px; }
.keepcard .frhero { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 6px; }
.keepcard .frspark { font-size: 28px; }
.keepcard .frh { text-align: center; }
.keepcard .frwho { text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.keepcard .frwho .pill { vertical-align: 2px; }
.keepcard > .note { text-align: center; }
/* 名前の下の町の名前は切らない（6.5 字ぶんまで）。狭いときは「✓ 受け取り済み」のほうを省略する（検証：390px で「世田…」になっていた） */
.hero .heroarea { display: flex; min-width: 0; white-space: nowrap; }
.hero .heroarea > .ellipsis { flex: 0 0 auto; max-width: min(6.5em, 100%); }
.hero .heroarea .alok { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mapticker .tkfix { flex: none; white-space: nowrap; }
/* 目標の最中の会話の帯は 2 段：1 段目に文、2 段目の右に「のぞく ›」と「🎯 目標 +50」（文が切れない） */
.mapticker.talk.goal { flex-wrap: wrap; row-gap: 2px; padding-top: 6px; padding-bottom: 6px; }
.mapticker.talk.goal .tkin { flex: 1 1 100%; }
.mapticker.talk.goal .tkgo { margin-left: auto; }
/* 町づくり（町の発展）：見出しの「Lv3」・町づくりのシート・完成のカード */
.lvpill { display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 0 7px; border: 0; border-radius: 999px; font: inherit; font-size: 11px; font-weight: 700; line-height: 17px;
  background: color-mix(in srgb, #e0a020 18%, transparent); color: color-mix(in srgb, #b07010 85%, var(--fg)); cursor: pointer; }
.lvpill:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lvpill.bump { animation: lvbump .6s ease-out; }
@keyframes lvbump { 0% { transform: scale(1); } 35% { transform: scale(1.22); box-shadow: 0 0 0 3px color-mix(in srgb, #e0a020 30%, transparent); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lvpill.bump { animation: none; } }
.tglist { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.tgrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: var(--fs-sub); color: var(--sub); }
.tgrow > b { flex: none; width: 34px; font-size: 12px; }
.tgrow.ok { color: var(--fg); background: color-mix(in srgb, #e0a020 10%, transparent); }
.tgrow.ok .muted { color: var(--ok, #10b981); font-weight: 600; }
/* 町の掲示板（今週の町の功労者・あなたの順位・先週の町長）。P2 */
.tgboard { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, #e0a020 8%, var(--card)); border: 1px solid color-mix(in srgb, #e0a020 22%, transparent); }
.tgboard > .flabel { display: block; margin: 0 0 6px; }
.tgboard .flabel small { font-weight: 400; margin-left: 4px; }
.tgboard .tgbnote { margin: 0 0 6px; }
.tgtop .rankrow { padding: 6px 10px; gap: 8px; }
.tgtop .rankrow > b { width: 20px; flex: none; }
.tgtop .avatar.sm { width: 28px; height: 28px; }
.tgname { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.tgname small { font-weight: 400; color: var(--sub); }
.tgtrav { font-size: 10.5px; vertical-align: 1px; padding: 0 6px; }
.tgtop .titlepill { font-size: 10.5px; padding: 0 6px; }
.tgpts { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.tgboard .tgme { margin: 8px 0 4px; }
.tgboard .tgme small { display: block; font-weight: 400; font-size: var(--fs-cap); }
.tgmayor { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: var(--fs-sub); }
.tgmayor > span { color: var(--sub); margin-right: 2px; }
.tgmayor .avatar.sm { width: 24px; height: 24px; }
.tgmayor small { color: var(--sub); }
.tgweekcard .btns { flex-wrap: wrap; }
@media (prefers-color-scheme: dark) { .tgboard { background: color-mix(in srgb, #f7c25a 8%, var(--card)); border-color: color-mix(in srgb, #f7c25a 22%, transparent); } }
/* 町対抗（P3）：📣 応援募集中の印（一覧・行き先の小窓・掲示板・見出しの Lv ピル） */
.lgboost { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 17px; vertical-align: 1px; background: color-mix(in srgb, #e8590c 14%, var(--card)); color: #b4470a; }
.rankrow .lgboost { padding: 0 4px; margin-left: 2px; }
.lgboostline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 2px 0 6px; font-size: var(--fs-cap); color: var(--sub); }
.tgboard .tgboost { margin: 0 0 8px; }
.lgboostbox { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, #e8590c 8%, var(--card)); border: 1px solid color-mix(in srgb, #e8590c 22%, transparent); font-size: var(--fs-sub); }
.lgboostbox > span { overflow-wrap: anywhere; }
.lgboostbox small { font-size: var(--fs-cap); line-height: 1.45; }
.lvpill.boost i { font-style: normal; margin-left: 3px; font-size: 10px; }
@media (prefers-color-scheme: dark) {
  .lgboost { background: color-mix(in srgb, #ff8a4c 20%, var(--card)); color: #ffb48a; }
  .lgboostbox { background: color-mix(in srgb, #ff8a4c 10%, var(--card)); border-color: color-mix(in srgb, #ff8a4c 26%, transparent); }
}
/* レビュー反映：参加賞までの道のり（掲示板）・町の元気のシートの自分の歩み・朝の報告の功労者の 1 行 */
.tgboard .tgjoin { margin: 0 0 6px; font-size: var(--fs-cap); }
/* 町のようす（町づくりのシートの統計の欄）：3 列 × 2 段の小さな数。数字は等幅 */
.tgstats { margin: 0 0 10px; padding: 10px 12px 11px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.tgstats > .flabel { display: block; margin: 0 0 8px; }
.tgsgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; margin: 0; }
.tgstat { min-width: 0; }
.tgstat dt { font-size: var(--fs-cap); font-weight: 600; color: var(--fg2); line-height: 1.4; white-space: nowrap; }
.tgstat dd { margin: 0; }
.tgsval { color: var(--fg); line-height: 1.25; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.tgsval b { font-size: 20px; font-weight: 700; }
.tgsval span { font-size: 11.5px; font-weight: 600; margin-left: 2px; color: var(--fg2); }
.tgsnote { font-size: 10.5px; color: var(--sub); line-height: 1.4; font-variant-numeric: tabular-nums; }
.tgsgrid.loading .tgsval b { color: var(--sub); }
.tgstats .tgspref { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); font-size: var(--fs-cap); font-variant-numeric: tabular-nums; }
.tgstats .tgspref b { color: var(--fg); }
@media (prefers-color-scheme: dark) { .tgstats { background: color-mix(in srgb, var(--accent) 9%, var(--card)); border-color: color-mix(in srgb, var(--accent) 26%, transparent); } }
.lgmine { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, #e0a020 8%, var(--card)); border: 1px solid color-mix(in srgb, #e0a020 22%, transparent); }
.lgmine .lgme { margin: 0; font-size: var(--fs-sub); }
.lgmine .lglv { margin: 6px 0 0; font-size: var(--fs-cap); }
.weekcard.twline { margin-top: 8px; }
@media (prefers-color-scheme: dark) { .lgmine { background: color-mix(in srgb, #f7c25a 8%, var(--card)); border-color: color-mix(in srgb, #f7c25a 22%, transparent); } }
/* ウォッチの「場所ごと」：町ごとの見出しと、ほかの町で会った人のチップ */
.wtown { display: flex; align-items: baseline; gap: 8px; margin: 14px 2px 6px; font-size: 15px; }
.wtown small { font-weight: 400; font-size: 12px; }
.wtownppl { margin-top: 4px; gap: 4px; }
.wtownppl .chip { padding: 3px 10px; font-size: 12.5px; }
.wempty summary { padding: 10px 0; cursor: pointer; font-size: 13px; }
/* 出会った相手のホーム（会話の見出し・プロフィール）と、名前・居住エリアの変更の回数制限（変えられない間は読み取り専用） */
.homeline { font-size: var(--fs-sub); margin: -2px 0 4px; }
.homeline .nw { white-space: nowrap; } /* 「（東京都）」を括弧ごと次の行へ */
input[readonly].locked { background: var(--bg); color: var(--fg2); border-style: dashed; cursor: default; }
/* ダークでは黒く沈めず、ふつうの欄より少し明るい灰色にして「押せない」感じを出す */
@media (prefers-color-scheme: dark) { input[readonly].locked { background: color-mix(in srgb, var(--fg) 7%, var(--bg2)); } }
input[readonly].locked:focus { border-color: var(--line2); box-shadow: none; }
.note.lockline { margin: 4px 0 0; }
.chips.homeshow { margin-top: 2px; }

/* ---- 広域マップ（日本地図）：町の地図で「−」をいちばん引いたところからさらに押すと切り替わる ---- */
.mapctl .zhint { height: 28px; padding: 0 11px; border-radius: 14px; white-space: nowrap; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow); }
.mapctl .seg button.towide, .mapctl .seg button.totown { color: var(--accent); }
.mapctl .seg button:disabled { opacity: .3; cursor: default; }
.maphead.wmap { gap: 10px; padding: 10px 12px 10px; }
.maphead.wmap .wback { flex: none; }
.maphead.wmap .mtitle { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.maphead.wmap .mtitle b { white-space: nowrap; }
.maphead.wmap .mstat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
/* 道案内の帯（町の地図・日本地図の見出しの下） */
.routebar { display: flex; align-items: center; gap: 6px; margin: 0 12px 8px; padding: 4px 4px 4px 10px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: 12.5px; }
.routebar .rtxt { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; color: var(--fg); font: inherit; padding: 6px 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.routebar .rtxt b { margin: 0 2px; }
.routebar .chip { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.routebar .x { width: 26px; height: 26px; background: transparent; }
.routebar.lost .rtxt { cursor: default; }
/* 縮めているあいだの合図（「さらに縮めると日本地図」） */
.mapctl .zhint.cue { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
/* 選んだ町のカード（地図の下の方に重ねる。いちばん大事なボタンはカードの下にいつも見える） */
.wov { position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: 64%; display: flex; flex-direction: column; z-index: 2; }
.wov[hidden] { display: none; }
.wcard { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 10px 12px 10px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
.wcard .wct { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: none; }
.wcard .wct b { font-size: 16px; }
.wcard .wct .x { margin-left: auto; }
.wcard .wbody { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.wcard .wsub { margin: 3px 0 4px; font-size: 12px; }
.wcard .wvstat { display: flex; align-items: center; gap: 10px; margin: 7px 0 2px; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, #efb837 14%, var(--card)); font-size: 12px; }
.wcard .wvstat b { color: color-mix(in srgb, #b97908 82%, var(--fg)); }
.wcard .wvstat .wvheat { font-weight: 750; }
.wcard .wvstat .wvheat.h1 { color: #9a7d38; }
.wcard .wvstat .wvheat.h2 { color: #c4860b; }
.wcard .wvstat .wvheat.h3 { color: #df681e; }
.wcard .wvstat small { margin-left: auto; color: var(--sub); }
.legend.wlegend .wvital { color: color-mix(in srgb, #bd810c 78%, var(--fg)); font-weight: 650; }
.wcard .wroute { font-size: 13px; line-height: 1.6; margin: 4px 0 2px; }
.wcard .wroute .hop { white-space: nowrap; }
.wcard .wroute .arr { color: var(--accent); margin: 0 1px; }
.wcard .wmeta { margin: 2px 0 0; font-size: 12.5px; }
.wcard .wtime { margin: 1px 0 0; font-size: 12px; color: var(--sub); }
.wcard .btns { flex: none; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; }
.wcard .btns .btn { margin-top: 0; padding: 10px 14px; min-height: 44px; }
.wcard .btns .btn:first-child { flex: 1 1 auto; }
.wcard .btns .btn.small { flex: none; width: auto; }
.wcard .note { margin: 4px 0 0; font-size: 11.5px; }
.realsheet .wideopen { margin-top: 8px; width: 100%; }
.legend.wlegend i.wst { background: #e08f12; }
.legend.wlegend i.wnb { background: var(--card); box-shadow: 0 0 0 2px var(--accent); }
.legend.wlegend i.wsea { width: 16px; height: 0; border-radius: 0; background: none; border-top: 2px dashed color-mix(in srgb, var(--sub) 70%, transparent); box-shadow: none; vertical-align: 3px; }
@media (prefers-color-scheme: dark) { .legend.wlegend i.wst { background: #f0b44a; } }
/* ===== ユーザーの分身への耳打ち・声掛け（スレッドの下）と、アカウントの案内（2026-11-11） ===== */
.ufoot { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ufoot .composer { position: static; background: transparent; padding: 0; }
.ufoot .uwhelp { font-size: 12px; line-height: 1.5; }
.ufoot .uwhelp a { margin-left: 6px; }
.ufoot > .btn.soft { align-self: flex-start; }
/* 待っている耳打ち：文はふつうの本文の色（リンクに見えないように）。色を付けるのは話題の言葉だけ */
.uwwait { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 400; color: var(--fg); background: var(--me); border-radius: var(--r-md); padding: 8px 10px; line-height: 1.5; }
.uwwait .uwt { color: var(--accent); font-weight: 700; }
.uwwait .chip { font-size: 12px; padding: 3px 10px; flex: none; }
.uwused { font-size: 12.5px; }
.callin { font-size: 13.5px; background: var(--me); border-radius: var(--r-md); padding: 8px 10px; }
.ucall { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.ucall .uclab { font-size: 12.5px; }
.ucall .chips { gap: 6px; }
.ucall .chip { font-size: 12.5px; padding: 5px 11px; }
.ucnote { font-size: 12.5px; margin: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.acctstate { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: var(--r-md); background: var(--me); }
.acctstate.ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); }
.acctstate .aic, .loginfirst .aic, .acctnudge .aic { font-size: 20px; line-height: 1.2; flex: none; }
.acctstate b { font-size: 14px; }
.acctstate .muted, .loginfirst .muted, .acctnudge .muted { display: block; font-size: var(--fs-sub); line-height: 1.5; margin-top: 2px; }
.loginfirst { border: 1.5px solid var(--accent); }
.loginfirst .lfrow { display: flex; gap: 10px; align-items: flex-start; }
.loginfirst .btns { margin-top: 10px; }
.acctnudge { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border: 0; }
.acctnudge b { font-size: 14px; }
.acctnudge .btns { margin-top: 8px; width: auto; }
.uwhead { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.uwhead .uclab, .ucall .uclab { font-size: 12.5px; }
.consent .lflink { margin: 8px 0 0; text-align: center; font-size: 13px; }
.ucall .ucgo { margin-top: 2px; width: auto; gap: 8px; flex-wrap: wrap; }
.ucall .ucgo .btn { width: auto; flex: 0 1 auto; min-width: 0; white-space: normal; }
.loginfirst .lfmail { margin-top: 10px; }
.loginfirst .lfmail .btns { margin-top: 8px; }

/* ---------- ラウンド13：はじめの数分を 1 つの呼びかけに ---------- */
/* A2：分身のカードは 1 行（64px 以下）。おこづかいは右の小さなチップ、受け取ったら名前の下に「連続N日」 */
.hero.slim.one, .hero.slim.one.hasallow { flex-wrap: nowrap; min-height: 0; max-height: 64px; padding: 8px 10px 8px 12px; row-gap: 0; }
.hero.slim.one .avatar { width: 40px; height: 40px; flex: none; }
.hero.first .stats { display: none; } /* はじめの目標の間は、見出しの数も出さない（呼びかけは目標の帯だけ） */
.hero .allowcard.allowchip { flex: none; margin: 0 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); box-shadow: none; border: 0; color: #fff; }
.hero .allowchip .altxt { background: none; border: 0; padding: 0 4px 0 0; color: #fff; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; min-height: 32px; }
.hero .allowchip .altxt b { color: #fff; }
.hero .allowcard.allowchip .allowbtn { width: auto; min-height: 32px; margin: 0; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--accent); border: 0; font-size: 13px; }
/* A1：目標「会話をのぞく」の帯。待っている間は小さなくるくる（動きを減らす設定では止める） */
.mapticker.pinned .tkin { display: flex; align-items: center; min-width: 0; }
.mapticker.pinned .tkname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mapticker.wait { cursor: default; }
.mapticker .tkspin { flex: none; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mapticker .tkspin { animation: none; border-top-color: var(--line2); border-right-color: var(--accent); } }
html.nomotion .mapticker .tkspin { animation: none; }
/* A3：はじめの目標の帯は 2 行まで（「はじめの目標：最初の知り合いをつくろう 1/3」・いまの段） */
.goalbar.one.first .gtxt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.goalbar.first .gstep { font-weight: 700; white-space: nowrap; }
.goalcard.firstgoal .gq.soon { opacity: .6; }
.firstgoalcard .flabel { display: block; margin: 4px 0 2px; }
/* A2：目標「施設で探す」が来たときの「○○に入る」は 1 回だけ弾む */
.mapenter.pulse { animation: enterpulse 1.1s ease 3; }
@keyframes enterpulse { 0%, 100% { box-shadow: var(--shadow-lg); transform: none; } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow-lg); transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .mapenter.pulse { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow-lg); } }
/* A4：下のタブ。鍵のかかったマイルーム・開いたときの点・目標の会話があるウォッチの点 */
.tabbar button.locked { opacity: .42; }
.tabbar button.locked::before { content: "🔒"; position: absolute; top: 4px; left: calc(50% + 6px); font-size: 10px; line-height: 1; }
.tabbar button.newdot::after, .tabbar button.goaldot::after { content: ""; position: absolute; top: 7px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.tabbar button.goaldot::after { animation: navdot 1.4s ease-in-out infinite; }
@keyframes navdot { 50% { transform: scale(1.5); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .tabbar button.goaldot::after { animation: none; } }
/* A5：最近の出来事。目標の会話を上に「🎯 のぞく」、すれ違いは 1 行 */
.feedgoal { position: relative; }
.feedgoal .fgchip { position: absolute; top: 8px; right: 10px; z-index: 1; border: 0; background: var(--accent); color: var(--accent-fg); font: inherit; font-size: 12px; font-weight: 700; padding: 4px 10px; min-height: 28px; border-radius: 999px; cursor: pointer; }
.rumor.passrow { width: 100%; border: 0; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.rumor.passrow .amore { opacity: .6; }
.autohint { margin: -4px 0 10px; font-size: 12px; }
/* A6：規約画面。小さな絵・1 文・3 つの段・同意の欄が 390×844 で 1 画面に収まる */
.onboard.compact { padding: 10px 0 4px; }
.onboard.compact .mark { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 22%; }
.onboard.compact.fromhome .mark { margin-bottom: 20px; } /* v76：ホームから来たとき（紹介の吹き出し・リード文なし）：アイコンと ①②③ の間をあける */
.obscene { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 112px; margin: 0 auto 6px; }
.obscene .obav { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.obscene .avatar.lg { width: 72px; height: 72px; }
.obscene small { font-size: 10.5px; color: var(--sub); }
.obscene .obbub { align-self: flex-start; position: relative; background: var(--card); box-shadow: var(--shadow); border-radius: 14px; padding: 6px 10px; font-size: 11.5px; line-height: 1.4; color: var(--fg); text-align: left; margin-top: 2px; }
.obscene .obbub::after { content: ""; position: absolute; left: 16px; bottom: -6px; border: 6px solid transparent; border-top-color: var(--card); border-bottom: 0; }
.onboard.compact .oblead { color: var(--fg); font-size: 15px; font-weight: 600; line-height: 1.6; margin: 4px 4px 10px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.obsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.obsteps li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); }
.obsteps .obic { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.obsteps .obic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obsteps .obn { font-size: 11px; color: var(--accent); font-weight: 700; line-height: 1; }
.obsteps b { font-size: 12px; line-height: 1.3; text-align: center; }
.consent .check { min-height: 44px; font-size: 14px; }
.consent .check a { color: var(--accent); font-weight: 600; }
.consent .btn { margin-top: 8px; min-height: 48px; }
.consent .lflink { margin: 6px 0 0; }
.loginsheet .lgconsent { margin-bottom: 8px; }
.loginsheet .lgconsent .check { min-height: 44px; margin-top: 0; font-size: 14px; }
.loginsheet .lgconsent .check a { color: var(--accent); font-weight: 600; }
.loginsheet .loginfirst { box-shadow: none; border: 1px solid var(--line); margin-bottom: 0; }
.rulessheet .card { margin-bottom: 12px; }
/* A7：はじめての分身づくり。見た目は短く、下に張り付く「この分身で街に出る」 */
.firstlook .editor-hero.row { flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 0 0 4px; }
.firstlook .editor-hero.row .avatar.lg { width: 80px; height: 80px; flex: none; }
.firstlook .editor-hero .btns { flex-wrap: wrap; gap: 6px; }
.edmore { margin-top: 12px; }
.edmore > summary { font-size: 13px; }
.firstedit { padding-bottom: 8px; }
.firstbar { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 8px); z-index: 5; display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.firstbar .avatar.sm { width: 44px; height: 44px; flex: none; }
.firstbar .fbst { font-size: 12px; color: var(--sub); line-height: 1.35; min-width: 0; }
.firstbar .fbst.ok { color: var(--ok); font-weight: 700; }
.firstbar .btn { width: auto; flex: none; min-height: 44px; margin: 0; padding: 0 14px; font-size: 14px; }
/* 検証で修正：見出しの数（.hero.slim .stats.inline）より強く。地図をもう少し上へ（カードの余白を詰める） */
.hero.slim.first .stats.inline { display: none; }
.hero.slim.one, .hero.slim.one.hasallow { padding-top: 6px; padding-bottom: 6px; margin-bottom: 8px; }
main:has(> .hero.slim.one) { padding-top: 8px; }
/* 検証で修正：規約画面は中身が短いので、同意の欄を画面の下に置く（段の上に同意の欄のぼかしがかからない・下に空きを作らない） */
main:has(> .onboard.compact) { display: flex; flex-direction: column; min-height: calc(100dvh - var(--top-h) - env(safe-area-inset-top)); }
main:has(> .onboard.compact) > .consent { margin-top: auto; }
main:has(> .onboard.compact) > .onboard.compact { margin-bottom: 44px; }
/* 検証で修正：張り付くバーの文を 2 行に収める（ボタンを少し小さく） */
.firstbar .fbst { font-size: 11.5px; }
.firstbar .btn { padding: 0 12px; font-size: 13px; }
/* 検証で修正：「🎯 のぞく」は会話の行の上の縁に（時刻と点数の輪に重ねない） */
.feedgoal { margin-top: 14px; }
.feedgoal .fgchip { top: -12px; right: 14px; box-shadow: var(--shadow); }
/* 検証で修正：規約画面の絵と文は、同意の欄の上の空きのまん中に */
main:has(> .onboard.compact) > .onboard.compact { margin: auto 0; padding-bottom: 44px; }
main:has(> .onboard.compact) > .consent { margin-top: 0; }
/* 検証で修正：はじめの目標の帯は 2 段（1 段目に「はじめの目標：最初の知り合いをつくろう」、2 段目に「2/3・分身に耳打ちする」） */
.goalbar.one.first .gtxt { display: flex; flex-direction: column; white-space: nowrap; -webkit-line-clamp: unset; line-height: 1.35; }
.goalbar.first .gl1, .goalbar.first .gl2 { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.goalbar.first .gl1 { font-size: 11px; color: var(--sub); }
.goalbar.first .gl2 { font-size: 13px; }
.goalbar.first .gstep { margin: 0; }
.goalbar.first .gl1 { font-size: 11.5px; color: var(--fg2); font-weight: 600; }

/* ラウンド13：日本地図の町のカードを小さく（390×844 で 260px まで）。距離は見出しの横、道順は 1 行（押すと全部）、「⚡今日はここまで」は必ず見える */
.wcard { padding: 8px 12px 10px; }
.wcard .wct { flex-wrap: nowrap; min-width: 0; }
.wcard .wct b { flex: none; }
.wcard .wct .wpd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.wcard .wct .wpd .dot { margin: 0 4px; }
.wcard .wct .pill { flex: none; padding: 2px 7px; }
.wcard .wroute { margin: 3px 0 2px; font-size: 13px; line-height: 1.5; cursor: pointer; border-radius: 6px; }
.wcard .wroute.one { display: flex; align-items: center; white-space: nowrap; min-width: 0; overflow: hidden; }
.wcard .wroute.one .wrl, .wcard .wroute.one .wrr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.wcard .wroute.one .wrl { flex-shrink: 2; }
.wcard .wroute .wchip { flex: none; display: inline-block; margin: 0 2px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.wcard .wroute:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wcard .wmeta { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 12.5px; }
.wcard .wmeta > span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard .wbody { overflow-x: hidden; }
.wcard .wmeta .linkbtn { flex: none; font-size: 12.5px; padding: 6px 4px; margin: -6px -4px; }
.wcard .wbody { padding: 6px 0; margin: -6px 0; } /* 押しやすい余白（くわしく）でカードの中にスクロールが出ないように */
.wcard .wplan { margin: 4px 0 0; padding: 0 0 0 2px; list-style: none; font-size: 12.5px; line-height: 1.6; }
.wcard .wplan li .muted { display: inline-block; min-width: 7.5em; }
.wcard .btns { margin-top: 6px; }
/* ラウンド13：遠くの目的地に着いたカードと、図鑑の旅の記録 */
.tripcard { text-align: center; }
.tripcard .tripic { font-size: 44px; line-height: 1; margin: 6px 0 4px; }
.tripcard h2 { margin: 0 0 4px; font-size: 20px; }
.tripcard .tripgot { margin: 10px 0 4px; font-weight: 600; line-height: 1.7; }
.tripcard .btns { justify-content: center; }
.trips .triplist { display: flex; flex-direction: column; gap: 2px; }
.trips .triprow { display: flex; gap: 10px; align-items: baseline; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.trips .triprow:last-child { border-bottom: 0; }
.trips .triprow .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ラウンド13：トーストは 1 行の小さな札（左右 32px ずつあける。あふれは …、全文は 🔔 お知らせ）。押す・下へはらうと閉じる。まとめた数「…ほか N件」は切らない */
.toast { max-width: min(420px, calc(100% - 64px)); padding: 6px 14px; border-radius: 999px; white-space: nowrap; cursor: pointer; touch-action: none; }
.toast .tmsg, .toast .tmsg.one, .sheettoast .tmsg.one { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; -webkit-line-clamp: unset; }
.toast .tmsg .tmt, .sheettoast .tmsg .tmt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.toast .tmsg .tmore, .sheettoast .tmsg .tmore { flex: none; opacity: .8; font-size: 12px; }
.newssheet .tloghead { margin: 14px 0 4px; font-size: 13px; color: var(--sub); }
.newssheet .tlog .arow { cursor: default; }
/* v107：🔔 のタブ（📣 運営から／👤 あなたへ）。共通の .seg の見た目で、シートの中で上に張り付く。未読の数は赤い丸 */
.newssheet .newsseg { position: sticky; top: -10px; z-index: 5; margin: 0 0 10px; background: color-mix(in srgb, var(--bg2) 88%, transparent); }
.newssheet .newsseg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 6px; }
.newssheet .newsseg .nstl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.newssheet .nsbadge { flex: none; font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #e5484d; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.newssheet .nsbadge[hidden] { display: none; }
.newssheet .newssub { margin: 0 0 10px; font-size: 13px; }
.sheet-card.newssheet { min-height: min(72vh, 600px); } /* タブを切り替えてもシートの高さが大きく跳ねない */
.newssheet .newsnote { margin: 12px 2px; font-size: 13.5px; line-height: 1.7; }
.newssheet .newspane > .hmnews + .alist, .newssheet .newspane > .alist + .hmnews { margin-top: 10px; }
.newssheet .hmnitem h3 { font-size: 15.5px; color: var(--fg); margin: 0 0 4px; font-weight: 700; line-height: 1.45; }
/* ラウンド13：未登録の分身があるときのログインの確認 */
.ghostsheet h2 { margin: 0 0 10px; font-size: 20px; }
.ghostsheet .ghostcmp { display: flex; align-items: stretch; gap: 8px; margin: 0 0 10px; }
.ghostsheet .gcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: var(--me); }
.ghostsheet .gcol b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghostsheet .gcol span { font-size: 12.5px; color: var(--sub); }
.ghostsheet .garr { align-self: center; color: var(--accent); font-weight: 700; }
.ghostsheet .btns.col { flex-direction: column; align-items: stretch; }
.ghostsheet .btns.col .btn { width: 100%; }

/* ===== ラウンド14 ===== */
/* A1：耳打ちした話が出た会話の印（会話の上に、はっきりしたピルで） */
.sys.hintsys { padding: 4px 0 6px; }
.pill.hintpill { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12.5px; padding: 5px 12px; white-space: normal; text-align: left; line-height: 1.4; }
/* ラウンド15：耳打ちの話が出た行の上の札を、開いたときに 1 回だけ光らせる */
@keyframes hintpulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 30% { transform: scale(1.06); } 100% { transform: scale(1); box-shadow: 0 0 0 14px transparent; } }
.sys.hintsys.hintpulse .hintpill { animation: hintpulse 1.2s ease-out 1 both; animation-delay: inherit; }
.sys.hintsys.hintpulse:not(:has(.hintpill)) { animation: hintpulse 1.2s ease-out 1 both; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .sys.hintsys.hintpulse, .sys.hintsys.hintpulse .hintpill { animation: none; } }
/* A2：「最近の出来事」の 🎯 は行の中（「会話」のピルの横）。行の上の縁にかけない */
.feedgoal { margin-top: 0; }
.feedgoal .fgchip, .fgchip { position: static; box-shadow: none; flex: none; min-height: 24px; padding: 2px 9px; font-size: 11.5px; border: 0; background: var(--accent); color: var(--accent-fg); font-weight: 700; border-radius: 999px; cursor: pointer; }
/* A3：はじめの目標の間、地図の上の分身のカードは目標のカード（押すと目標のカード） */
.hero.goalhero { cursor: pointer; }
/* 検証で修正：カードの地はアクセント色のグラデーション（文字は白）。アクセント色の文字・点は地に溶けて読めなかった */
.hero.goalhero .herogoal { display: block; font-size: 12px; font-weight: 700; color: #fff; line-height: 1.35; }
.hero.goalhero .hgsteps { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-left: auto; padding-left: 4px; }
.hero.goalhero .hgsteps b { font-size: 12px; color: #fff; opacity: .9; }
.hero.goalhero .hgdots { display: flex; gap: 4px; }
.hero.goalhero .hgdots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); box-sizing: border-box; }
.hero.goalhero .hgdots i.ok { background: #fff; }
.hero.goalhero .hgdots i.cur { background: transparent; border: 2px solid #fff; }
.hero.goalhero.hasallow { flex-wrap: nowrap; }
/* A4：はじめの凡例は 1 行 */
.legend.early { flex-wrap: nowrap; }
.legend.early > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* A5：はじめての分身づくり。名前・地域が先、張り付くバーの下に欄が隠れない */
.firstedit { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.firstlook .lookh { margin: 0 0 8px; font-size: 15px; }
.firstlook .lookh .muted { font-weight: 400; font-size: 12px; margin-left: 4px; }
.firstedit input.needfill { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: needfill .5s ease 2; }
@keyframes needfill { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
/* A6：規約画面は上に寄せる（ロゴの上の空きをなくし、1 文を高く） */
main:has(> .onboard.compact) > .onboard.compact { margin: 0 0 auto; padding-top: 6vh; padding-bottom: 24px; }
.rulessheet .rulesback { display: inline-block; margin: -8px 0 4px; padding: 8px 4px; }
/* ラウンド14 B：架空の住人の札（関係の札と同じ行）と名前の横の「架空」の印 */
.pill.fictchip { font-size: 11.5px; font-weight: 500; padding: 2px 8px; white-space: nowrap; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.fictb { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line2); color: var(--sub); font-size: 11px; font-weight: 500; vertical-align: 3px; line-height: 1.5; }
/* 日本地図の道順カード：結論（今すぐ着く）を先に */
.wmeta .wok { color: var(--ok); }
/* ウォッチ：最後の行がタブの上で切れないように */
main:has(#wlist) { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

/* ===== ラウンド15 ===== */
/* A2：はじめの目標クリアのカード（次の目標は 1 つ・ボタンは 2 つ） */
.firstgoalcard .fgnext b { font-size: 15px; }
.firstgoalcard .fgafter { margin: 8px 2px 0; font-size: 12px; text-align: center; }
.firstgoalcard .fgacct { display: block; width: 100%; margin: 10px 0 0; padding: 8px 4px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); text-align: center; cursor: pointer; }
.firstgoalcard .btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.firstgoalcard .btns .btn:only-child { grid-column: 1 / -1; }
.searchbox .stfirst { font-size: 12px; color: var(--sub); margin-top: 3px; line-height: 1.4; }
/* A3：地図の上の帯の「探しています…」は、あふれたら … で終わる */
.mapticker .tktxt { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A5：規約の画面。3 つの段は 1 行ずつ・同じ高さ。上のかたまり（ロゴ・絵・1 文・3 つの段）は、同意の欄の上の空きのまん中に */
.obsteps li { min-height: 78px; justify-content: center; }
.obsteps b { word-break: keep-all; white-space: nowrap; }
main:has(> .onboard.compact) > .onboard.compact { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 8px 0 28px; }
.consent .aghelp { margin: 6px 0 0; text-align: center; font-size: 12px; }
.consent .aghelp[hidden] { display: none; }
/* A5：はじめての分身づくり。ログインは入力欄の下の文字のリンク、下のバーは不透明（上に 16px のぼかし）で、最後までスクロールしても見出しに重ならない */
.firsth { word-break: keep-all; overflow-wrap: anywhere; }
.firstbasic .fbgeo { width: auto; margin: 6px 0 0; }
.firstbasic .fbpriv { margin: 8px 0 0; }
.firstbasic .fbmore { margin-top: 2px; }
.firstedit .lflink { margin: 4px 0 0; text-align: center; font-size: 13px; }
.firstedit .lflink a { display: inline-block; padding: 10px 8px; color: var(--accent); font-weight: 600; }
.firstedit { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.firstbar { background: var(--card); box-shadow: 0 30px 0 20px var(--bg), var(--shadow-lg); } /* 1 つ目の影は、バーの左右と下を地の色でふさぐ（後ろの入力欄が透けて見えない） */
.firstbar::before { content: ""; position: absolute; left: -16px; right: -16px; bottom: calc(100% + 1px); height: 16px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.firstbar .fbst { white-space: nowrap; }
/* ラウンド15：同じ話し手の続きの番（長い行を 2 つに分けた後ろ）は、顔を繰り返さず前の吹き出しに寄せる */
.msg.cont { margin-top: -6px; }
.msg.cont .avatar { visibility: hidden; }

/* ---------- 全画面の地図（第1段階）：地図は画面の端から端まで・ヘッダーの下からタブの上まで。ほかの部品は地図の上に重ねる ---------- */
/* body.mapfull＝マップのタブ（renderMap が付ける）。施設の中（.mapcard.place）も同じ全画面（この節の終わり）。body.mapscroll（施設の中を縦に並べる古い形）はもう付かない */
/* 重ねる部品にはぼかし（backdrop-filter）を使わない（動く地図の上では重い）。透けている所の指は地図へ通す（包みは pointer-events: none、中身だけ auto） */
/* 第2段階：地図は #maphost（いつも下に居る）。#view はタブのシートの中（ファイルの終わりの「タブのシート」） */
#maphost { display: none; }
body.mapfull #maphost { display: block; }
body.mapfull .mapcard { margin: 0; border-radius: 0; box-shadow: none; }
body.mapfull:not(.mapscroll) #maphost { position: relative; overflow: hidden; margin: 0 auto;
  height: calc(100vh - var(--top-h) - var(--nav-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  height: calc(100dvh - var(--top-h) - var(--nav-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-width: calc((100dvh - var(--top-h) - var(--nav-h)) * 1.7); } /* 横に長すぎる画面では、町の全体が縦に収まる幅まで */
body.mapfull:not(.mapscroll) .mapcard { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; background: var(--me); }
body.mapfull:not(.mapscroll) .mapwrap { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
body.mapfull:not(.mapscroll) #map { width: 100%; height: 100%; aspect-ratio: auto; }
body.mapfull .mapctl .seg, body.mapfull .mapctl .round, body.mapfull .mapctl .zhint, body.mapfull .mapticker { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: color-mix(in srgb, var(--card) 96%, transparent); }
body.mapfull .mapctl .round.on, body.mapfull .mapctl .zhint.cue { background-color: var(--accent); }
/* 上の重なり：分身のカード（はじめは目標のカード）→ 見出し → 目標の帯 → 町の知らせの帯。背景色から透明へのグラデーション */
body.mapfull:not(.mapscroll) .maptop { position: absolute; left: 0; right: 0; top: 0; z-index: 3; pointer-events: none;
  padding: 6px max(10px, calc((100% - 560px) / 2)) 20px;
  background: linear-gradient(to bottom, var(--bg) 0, color-mix(in srgb, var(--bg) 95%, transparent) 42%, color-mix(in srgb, var(--bg) 66%, transparent) 74%, transparent 100%); }
body.mapfull .maptop > .hero, body.mapfull .maptop #placehead > *, body.mapfull .maptop .mapticker { pointer-events: auto; }
body.mapfull .maptop > .hero.slim, body.mapfull .maptop > .hero.slim.one { margin: 0 0 4px; }
body.mapfull:not(.mapscroll) .maptop > .hero.slim.one, body.mapfull:not(.mapscroll) .maptop > .hero.slim.one.hasallow { padding-top: 4px; padding-bottom: 4px; }
body.mapfull:not(.mapscroll) .maptop > .hero.slim.one:has(.resident-mini) { margin-bottom: 0; padding-bottom: 2px; }
body.mapfull:not(.mapscroll) .maptop .maphead { padding: 2px 2px 2px 6px; min-height: 34px; gap: 8px; }
body.mapfull:not(.mapscroll) .maptop .maphead.visit, body.mapfull:not(.mapscroll) .maptop .maphead.wmap { padding: 6px 8px; border-radius: var(--r-md); background: color-mix(in srgb, #e0a020 12%, var(--card)); box-shadow: var(--shadow-xs); }
body.mapfull:not(.mapscroll) .maptop .maphead.wmap { background: var(--card); }
body.mapfull:not(.mapscroll) .maptop .goalbar { border: 0; border-radius: var(--r-md); margin-top: 2px; background: var(--card); box-shadow: var(--shadow-xs); }
body.mapfull:not(.mapscroll) .maptop .goalbar.min { background: transparent; box-shadow: none; padding: 2px 4px; }
body.mapfull:not(.mapscroll) .maptop .travelbar { margin: 0 0 4px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); box-shadow: var(--shadow-xs); }
body.mapfull:not(.mapscroll) .maptop .routebar { margin: 2px 0 4px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); box-shadow: var(--shadow-xs); }
body.mapfull .maptop .mapticker { position: relative; left: auto; top: auto; width: fit-content; max-width: 100%; margin-top: 6px; }
/* 地図の上の部品（± ・現在地・「入る」・日本地図のカード）は、たたんだ「最近の出来事」の上に（--feed-h は mapMeasure が入れる） */
body.mapfull:not(.mapscroll) .mapctl { bottom: calc(var(--feed-h, 132px) + 12px); z-index: 2; }
body.mapfull:not(.mapscroll) .mapenter { bottom: calc(var(--feed-h, 132px) + 12px); z-index: 2; }
body.mapfull:not(.mapscroll) .wov { bottom: calc(var(--feed-h, 0px) + 8px); max-height: 50%; }
/* 凡例：ふだんは「凡例」のチップから開く小さな札。はじめの 1 行（.early）と日本地図の凡例はいつも出す */
body.mapfull:not(.mapscroll) #placefoot { position: absolute; z-index: 4; display: none; pointer-events: none;
  left: max(8px, calc((100% - 560px) / 2)); right: max(8px, calc((100% - 560px) / 2)); bottom: calc(var(--feed-h, 132px) + 6px); }
body.mapfull:not(.mapscroll) #placefoot.open, body.mapfull:not(.mapscroll) #placefoot.early, body.mapfull:not(.mapscroll) .mapcard.wide #placefoot { display: block; }
body.mapfull:not(.mapscroll) #placefoot .legend { pointer-events: auto; width: fit-content; max-width: 100%; padding: 8px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--card) 97%, transparent); box-shadow: var(--shadow); }
body.mapfull:not(.mapscroll) #placefoot.early .legend { padding: 4px 12px 4px 8px; border-radius: 999px; font-size: 11.5px; box-shadow: var(--shadow-xs); }
body.mapfull:not(.mapscroll) .mapcard.wide #placefoot { left: 0; right: 0; bottom: 0; padding: 14px max(8px, calc((100% - 560px) / 2)) 6px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 90%, transparent) 14px, var(--bg) 34px); }
body.mapfull:not(.mapscroll) .mapcard.wide #placefoot .legend { width: auto; padding: 4px 8px; background: transparent; box-shadow: none; pointer-events: none; }
body.mapfull:not(.mapscroll) .mapcard.wide #placefoot .legend a, body.mapfull:not(.mapscroll) .mapcard.wide #placefoot .legend button { pointer-events: auto; }
body.mapfull:not(.mapscroll) .mapcard.wide .feedsheet, body.mapfull:not(.mapscroll) .mapcard.wide .maptop > .hero { display: none; }
/* 下の重なり：「最近の出来事」のシート。たたんだときは つまみ＋見出し＋新しい 1〜2 件、広げると画面の 6 割（中でスクロール） */
.feedsheet .fshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feedsheet .fshead h3 { margin: 0; }
.fshandle, .legbtn { display: none; }
body.mapfull:not(.mapscroll) .feedsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; pointer-events: none;
  padding: 0 max(12px, calc((100% - 560px) / 2)) 6px;
  background: linear-gradient(to bottom, transparent 0, color-mix(in srgb, var(--bg) 78%, transparent) 22px, color-mix(in srgb, var(--bg) 96%, transparent) 50px, var(--bg) 72px); }
body.mapfull:not(.mapscroll) .fshandle { display: grid; place-items: center; align-self: center; flex: none; width: 128px; height: 22px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; pointer-events: auto; }
.fshandle i { display: block; width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 38%, transparent); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bg) 70%, transparent); }
body.mapfull:not(.mapscroll) .feedsheet .fshead { flex: none; min-height: 28px; margin-bottom: 4px; }
body.mapfull:not(.mapscroll) .feedsheet .fshead h3 { padding: 5px 12px 5px 2px; cursor: pointer; touch-action: none; pointer-events: auto; }
body.mapfull:not(.mapscroll) .legbtn { display: inline-flex; align-items: center; flex: none; min-height: 26px; padding: 1px 10px; font-size: 11.5px; pointer-events: auto; background: var(--card); }
body.mapfull:not(.mapscroll) #feed > * { pointer-events: auto; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) #feed > :nth-child(n+3), body.mapfull:not(.mapscroll) .feedsheet.one:not(.open):not(.drag) #feed > :nth-child(n+2) { display: none; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open) #feed > * { margin-bottom: 6px; }
body.mapfull:not(.mapscroll) .feedsheet.open, body.mapfull:not(.mapscroll) .feedsheet.drag { pointer-events: auto; background: var(--bg); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 28px rgba(20,23,32,.20); }
body.mapfull:not(.mapscroll) .feedsheet.open { height: 60%; animation: fsup .18s ease; }
body.mapfull:not(.mapscroll) .feedsheet.open #feed, body.mapfull:not(.mapscroll) .feedsheet.drag #feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 2px 14px; }
@keyframes fsup { from { transform: translateY(28px); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { body.mapfull .feedsheet.open { animation: none; } }
@media (prefers-color-scheme: dark) { body.mapfull:not(.mapscroll) .feedsheet.open, body.mapfull:not(.mapscroll) .feedsheet.drag { box-shadow: 0 -6px 28px rgba(0,0,0,.6); } }
/* 背の低い画面（スマホの横向きなど）：分身のカードと、たたんだシートの中身をしまって地図を見せる */
@media (max-height: 520px) {
  body.mapfull:not(.mapscroll) .maptop > .hero { display: none; }
  body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) #feed { display: none; }
}
body.mapfull #placehead .maphead .chip { min-height: 30px; padding-top: 2px; padding-bottom: 2px; }
body.mapfull:not(.mapscroll) .maptop .goalbar { padding-top: 4px; padding-bottom: 4px; }
body.mapfull:not(.mapscroll) #placefoot.open .legend { background: var(--card); }
body.mapfull:not(.mapscroll) .feedsheet #feed { scrollbar-width: thin; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) { padding-bottom: 2px; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) .fshandle { height: 18px; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) .fshead { min-height: 26px; margin-bottom: 2px; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) .fshead h3 { padding-top: 3px; padding-bottom: 3px; }
/* 横向きの切り欠き（safe-area）：重ねた部品の左右は切り欠きの内側へ */
@supports (padding: max(0px, env(safe-area-inset-left))) {
  body.mapfull:not(.mapscroll) .maptop { padding-left: max(10px, env(safe-area-inset-left), calc((100% - 560px) / 2)); padding-right: max(10px, env(safe-area-inset-right), calc((100% - 560px) / 2)); }
  body.mapfull:not(.mapscroll) .feedsheet { padding-left: max(12px, env(safe-area-inset-left), calc((100% - 560px) / 2)); padding-right: max(12px, env(safe-area-inset-right), calc((100% - 560px) / 2)); }
  body.mapfull:not(.mapscroll) .mapctl { right: max(12px, env(safe-area-inset-right)); }
  body.mapfull:not(.mapscroll) .mapenter { left: max(12px, env(safe-area-inset-left)); }
}
/* たたんだシートの空の案内（はじめの「分身が町を歩いています」など）は 1 行に：丸い絵を小さく、説明は広げたときだけ（たたんだ高さを 150px 以内に） */
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) #feed .empty { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; gap: 4px 10px; padding: 6px 4px 12px; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) #feed .empty .eic { width: 30px; height: 30px; margin: 0; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) #feed .empty .eic .spinner { width: 14px; height: 14px; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) #feed .empty > span:not(.eic) { display: none; }
body.mapfull:not(.mapscroll) .feedsheet.open #feed .empty { padding: 24px 0; }
/* たたんだシートの見出しの行と一覧は背景がほぼ不透明：すき間を押しても、裏に隠れた地図のピンや住人に当たらないように（つまみの行＝透けている所だけ地図へ通す） */
body.mapfull:not(.mapscroll) .feedsheet .fshead, body.mapfull:not(.mapscroll) .feedsheet #feed { pointer-events: auto; }

/* ---------- 全画面：施設の中（.mapcard.place）。部屋の絵が画面いっぱい、見出しは上の札、「この中を探す」「ここでの思い出」は下のシート（#placefoot を .feedsheet の中へ移す：renderPlaceHead） ---------- */

body.mapfull:not(.mapscroll) .mapcard.place .maptop > .hero { display: none; }
/* 上の札：‹ 町へ戻る ｜ 名前［実在／架空］・いまいる人 ｜ 向かっています… */
body.mapfull:not(.mapscroll) .maptop .maphead.inplace { align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-xs); }
body.mapfull #placehead .maphead.inplace .pback { flex: none; min-height: 40px; padding: 2px 12px 2px 9px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.maphead.inplace > .grow { min-width: 0; }
.maphead.inplace .pname { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.maphead.inplace .pname .pill { font-size: 10px; vertical-align: 2px; }
.maphead.inplace > .pill { flex: none; }
.maphead.inplace .sub { padding-bottom: 0; }
/* 下のシート：つまみ → 探す（分身がいないときは「ここへ行かせる」）→ ひとことの行（押すと広がる）。広げると説明・注記・思い出・タグ（中でスクロール） */
body.mapfull:not(.mapscroll) .feedsheet.place .fshead, body.mapfull:not(.mapscroll) .feedsheet.place #feed { display: none; }
body.mapfull:not(.mapscroll) .feedsheet > #placefoot { position: static; z-index: auto; display: flex; flex-direction: column; min-height: 0; pointer-events: none; }
body.mapfull:not(.mapscroll) .feedsheet > #placefoot > * { pointer-events: auto; }
body.mapfull:not(.mapscroll) .feedsheet > #placefoot .searchbox { flex: none; flex-wrap: wrap; margin: 0 0 4px; background: var(--card); box-shadow: var(--shadow-xs); }
.searchbox > .stfirst { flex: 1 1 100%; margin-top: -4px; }
.psmore { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; min-height: 36px; margin: 0; padding: 4px 4px 6px 6px; border: 0; background: none; color: var(--sub); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.psmore > .ellipsis { flex: 1 1 auto; min-width: 0; }
.psmore .pschev { flex: none; color: var(--accent); font-weight: 600; white-space: nowrap; }
.feedsheet:not(.open):not(.drag) .psbody { display: none; }
.feedsheet.open .psmore, .feedsheet.drag .psmore { display: none; }
body.mapfull:not(.mapscroll) .feedsheet.open > #placefoot, body.mapfull:not(.mapscroll) .feedsheet.drag > #placefoot { flex: 1 1 auto; }
.feedsheet .psbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding: 8px 4px 16px; }
/* 背の低い画面（横向き）：たたんだシートは「探す」の 1 段だけ */
@media (max-height: 520px) {
  body.mapfull .feedsheet.place:not(.open):not(.drag) .psmore, body.mapfull .feedsheet.place:not(.open):not(.drag) .stfirst { display: none; }
}

/* ---------- 2026-11-13：地図の上下の重なりを細く（地図を広く）。分身のカードはそのまま ---------- */
/* 上：カードの下は「状態の行」（.mrow：半透明のチップが 1 行・34px）＋細い知らせの帯（30px）。下：たたんだシートは 1 行（つまみ＋新しい 1 件）。
   チップは見た目 30〜36px、指の当たる所は ::after で 40px 以上に広げる。白いグラデーションは残して短く。ぼかし（backdrop-filter）は使わない */
:root { --ov-line: color-mix(in srgb, var(--fg) 11%, transparent); --ov-bg: color-mix(in srgb, var(--card) 85%, transparent); --ov-sh: 0 1px 3px rgba(20,23,32,.14); }
@media (prefers-color-scheme: dark) { :root { --ov-line: color-mix(in srgb, var(--fg) 20%, transparent); --ov-bg: color-mix(in srgb, var(--card) 84%, transparent); --ov-sh: 0 1px 4px rgba(0,0,0,.5); } }
body.mapfull:not(.mapscroll) .maptop { padding-bottom: 6px;
  background: linear-gradient(to bottom, var(--bg) 0, color-mix(in srgb, var(--bg) 92%, transparent) 50px, color-mix(in srgb, var(--bg) 52%, transparent) 78px, transparent 100%); }
body.mapfull:not(.mapscroll) .mapcard.place .maptop, body.mapfull:not(.mapscroll) .mapcard.wide .maptop { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 82%, transparent) 0, transparent 100%); }
@media (max-height: 520px) { body.mapfull:not(.mapscroll) .maptop { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 82%, transparent) 0, transparent 100%); } }
body.mapfull:not(.mapscroll) .maptop #placehead { position: relative; }
/* 状態の行 */
body.mapfull:not(.mapscroll) #placehead .maphead.mrow { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; height: 34px; min-height: 34px; padding: 0; pointer-events: none; }
body.mapfull #placehead .mrow > * { pointer-events: auto; }
body.mapfull #placehead .mrow .mchip { position: relative; display: inline-flex; align-items: center; gap: 4px; flex: none; box-sizing: border-box; height: 32px; min-height: 32px; margin: 0; padding: 0 10px;
  border: 1px solid var(--ov-line); border-radius: 999px; background: var(--ov-bg); box-shadow: var(--ov-sh); color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; }
body.mapfull #placehead .mrow .mchip::after { content: ''; position: absolute; left: -1px; right: -1px; top: -6px; bottom: -4px; } /* 指の当たる所は 40px */
body.mapfull #placehead .mrow .mchip .mci { flex: none; font-size: 14px; line-height: 1; }
body.mapfull #placehead .mrow .mchip .mcl { min-width: 0; }
body.mapfull #placehead .mrow .mchip .mck { flex: none; font-weight: 700; }
body.mapfull #placehead .mrow .mchip small.mcl { font-size: 12px; font-weight: 500; color: var(--sub); }
body.mapfull #placehead .mrow .mchip.ico .mcl { display: none; }
body.mapfull #placehead .mrow .rankpill.ico .mcl { display: inline; } /* v76：🏆 は幅が足りないときも「元気2位」を残す（絵のほうをたたむ） */
body.mapfull #placehead .mrow .rankpill.ico .mci { display: none; }
body.mapfull #placehead .mrow .mchip.ico { padding: 0 9px; }
body.mapfull #placehead .mrow .mchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.mapfull #placehead .mrow .townchip { flex: 0 1 auto; min-width: 72px; padding-left: 8px; font-size: 13px; font-weight: 700; }
body.mapfull #placehead .mrow .townchip.plain { cursor: default; }
body.mapfull #placehead .mrow .townchip { margin-right: auto; } /* 町のチップは左、ほかは右へ寄せる */
body.mapfull #placehead .mrow .townchip:has(+ .mstat:not(.ico)) { margin-right: 0; }
body.mapfull #placehead .mrow .townchip .lvpill { flex: none; margin: 0 -3px 0 2px; vertical-align: 0; font-size: 12px; }
body.mapfull #placehead .mrow.fitting .townchip, body.mapfull #placehead .mrow.fitting .mstat, body.mapfull #placehead .mrow.fitting .trav { flex-shrink: 0; }
body.mapfull #placehead .mrow > .mstat { flex: 0 1 auto; min-width: 0; margin-right: auto; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--fg2); font-size: 12px; font-weight: 500; line-height: 1.3; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
body.mapfull #placehead .mrow > .mstat.ico { display: none; }
body.mapfull #placehead .mrow .goalchip.ok { color: var(--ok); }
body.mapfull #placehead .mrow .goalchip.off { color: var(--fg2); }
body.mapfull #placehead .mrow .goalchip.on { border-color: var(--accent); color: var(--accent); }
body.mapfull #placehead .mrow .homechip { border-color: color-mix(in srgb, var(--accent) 40%, var(--ov-line)); color: var(--accent); }
body.mapfull #placehead .mrow .trav { flex: 0 1 auto; min-width: 0; cursor: default; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, var(--card)) var(--p, 0%), var(--ov-bg) var(--p, 0%)); }
body.mapfull #placehead .mrow .trav .mcl { overflow: hidden; text-overflow: ellipsis; }
body.mapfull #placehead .mrow .realpill b { color: var(--ok); }
/* 目標の帯：🎯 のチップを押したときだけ、行の下に浮かせる（8 秒で閉じる。重なりの高さには数えない） */
body.mapfull:not(.mapscroll) .maptop .goalbar.gpop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3; margin: 0; padding: 4px 10px 4px 12px; border: 1px solid var(--ov-line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); animation: gpop .16s ease; }
@keyframes gpop { from { transform: translateY(-6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.mapfull .maptop .goalbar.gpop { animation: none; } }
html.nomotion body.mapfull .maptop .goalbar.gpop { animation: none; }
body.mapfull:not(.mapscroll) .maptop .routebar { margin: 4px 0 0; border: 1px solid var(--ov-line); border-radius: 18px; background: color-mix(in srgb, color-mix(in srgb, var(--accent) 10%, var(--card)) 90%, transparent); }
body.mapfull:not(.mapscroll) .maptop .maphead.visit, body.mapfull:not(.mapscroll) .maptop .maphead.wmap { min-height: 40px; padding: 3px 8px; border: 1px solid var(--ov-line); border-radius: 20px; background: color-mix(in srgb, color-mix(in srgb, #e0a020 12%, var(--card)) 90%, transparent); }
body.mapfull:not(.mapscroll) .maptop .maphead.wmap { background: var(--ov-bg); }
body.mapfull:not(.mapscroll) .maptop .maphead.visit .btn.small, body.mapfull:not(.mapscroll) .maptop .maphead.wmap .btn.small { padding-top: 6px; padding-bottom: 6px; }
/* 知らせの帯：細い 1 行のピル（30px）。「○○と話しています　のぞく ›」は色を付けて、押せることをはっきり */
body.mapfull .maptop .mapticker { margin-top: 4px; height: 30px; min-height: 30px; padding: 0 12px; gap: 8px; flex-wrap: nowrap; overflow: visible; border: 1px solid var(--ov-line); border-radius: 15px; background-color: var(--ov-bg); box-shadow: var(--ov-sh); font-size: 12.5px; }
body.mapfull .maptop .mapticker::after { content: ''; position: absolute; left: -1px; right: -1px; top: -2px; bottom: -12px; /* 押せる高さを 44px に（見た目の帯は 30px のまま）。上へ広げると上の町のチップの押せる所を削るので、下へ広げる */ }
body.mapfull .maptop .mapticker .tkin { flex: 0 1 auto; overflow: hidden; }
body.mapfull .maptop .mapticker .tkname { min-width: 2em; }
body.mapfull .maptop .mapticker.talk, body.mapfull .maptop .mapticker.pinned:not(.wait) { padding-right: 4px; border-color: color-mix(in srgb, var(--accent) 55%, transparent); background-color: color-mix(in srgb, color-mix(in srgb, var(--accent) 9%, var(--card)) 92%, transparent); }
body.mapfull .maptop .mapticker.pinned:not(.wait):not(.talk) { padding-right: 8px; }
body.mapfull .maptop .mapticker.talk.goal { padding-top: 0; padding-bottom: 0; }
body.mapfull .maptop .mapticker.talk.goal .tkin { flex: 0 1 auto; }
body.mapfull .maptop .mapticker .tkgo { order: 9; margin-left: 0; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 12px; line-height: 1.2; }
body.mapfull .maptop .mapticker .tkcoin { font-size: 12px; padding: 2px 8px; }
body.mapfull .maptop .mapticker .tkreal { font-size: 12px; }
/* 下のシート：たたんだときは つまみ（14px）＋ 1 行（36px）。見出し「最近の出来事」と一覧のカードは、広げたときだけ */
body.mapfull:not(.mapscroll) .feedsheet { padding-bottom: 4px;
  background: linear-gradient(to bottom, transparent 0, color-mix(in srgb, var(--bg) 60%, transparent) 14px, color-mix(in srgb, var(--bg) 86%, transparent) 100%); }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) { padding-bottom: 4px; }
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag) .fshandle { height: 14px; }
body.mapfull:not(.mapscroll) .feedsheet.open, body.mapfull:not(.mapscroll) .feedsheet.drag { background: var(--bg); }
.fsmini { display: none; }
body.mapfull:not(.mapscroll) .fsmini { display: flex; align-items: center; gap: 6px; flex: none; pointer-events: none; }
body.mapfull:not(.mapscroll) .fsline { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 36px; margin: 0; padding: 0 12px 0 7px;
  border: 1px solid var(--ov-line); border-radius: 18px; background: var(--ov-bg); box-shadow: var(--ov-sh); color: var(--fg); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; touch-action: none; pointer-events: auto; }
body.mapfull:not(.mapscroll) .fsline::after { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -2px; }
.fsline .fmic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; font-size: 14px; line-height: 1; }
.fsline .fmic .avatar { width: 22px; height: 22px; }
.fsline .fmic .spinner { width: 12px; height: 12px; }
.fsline .fmtxt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg2); }
.fsline .fmtxt b { margin-right: 6px; color: var(--fg); }
.fsline .fmlive { margin-right: 6px; color: var(--ok); font-size: 12px; font-weight: 600; }
.fsline .fmt { flex: none; color: var(--sub); font-size: 12px; }
.fsline .fmgo { flex: none; width: 7px; height: 7px; margin: 4px 1px 0 2px; border-left: 2px solid var(--sub); border-top: 2px solid var(--sub); font-size: 0; transform: rotate(45deg); }
body.mapfull:not(.mapscroll) .legbtn.legic { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid var(--ov-line); border-radius: 50%; background: var(--ov-bg); box-shadow: var(--ov-sh); color: var(--fg2); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; pointer-events: auto; }
body.mapfull:not(.mapscroll) .legbtn.legic::after { content: ''; position: absolute; left: -3px; right: -3px; top: -6px; bottom: -2px; }
body.mapfull:not(.mapscroll) .legbtn.legic[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
/* 見えていない側は、箱を 1px に切って隠す（display: none にしない：中の分身の絵は、切り抜きの id を画面のほかの絵と分け合っている）。押せない・読み上げないのは inert（feedMini） */
body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag):not(.place) .fshead, body.mapfull:not(.mapscroll) .feedsheet:not(.open):not(.drag):not(.place) #feed,
body.mapfull:not(.mapscroll) .feedsheet.open .fsmini, body.mapfull:not(.mapscroll) .feedsheet.drag .fsmini, body.mapfull:not(.mapscroll) .feedsheet.place .fsmini {
  position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
/* 地図の上の部品は、低くなったシートのすぐ上へ（--feed-h は mapMeasure が入れる。入る前の値も低く） */
body.mapfull:not(.mapscroll) .mapctl, body.mapfull:not(.mapscroll) .mapenter { bottom: calc(var(--feed-h, 54px) + 10px); }
body.mapfull:not(.mapscroll) #placefoot { bottom: calc(var(--feed-h, 54px) + 6px); }
body.mapfull:not(.mapscroll) .feedsheet > #placefoot { bottom: auto; }
body.mapfull:not(.mapscroll) .mapcard.wide #placefoot { bottom: 0; }
/* 施設の中：上の札は 1 行（44px：‹ 町へ ｜ 名前［実在］｜ 顔と人数）、たたんだシートは 1 行（🔎 この中を探す › ｜ 探す ⚡10） */
body.mapfull:not(.mapscroll) .maptop .maphead.inplace { flex-wrap: nowrap; gap: 8px; box-sizing: border-box; height: 44px; min-height: 44px; padding: 1px 12px 1px 1px; border: 1px solid var(--ov-line); border-radius: 22px; background: color-mix(in srgb, var(--card) 90%, transparent); box-shadow: var(--ov-sh); }
body.mapfull #placehead .maphead.inplace .pback { height: 40px; min-height: 40px; padding: 0 12px 0 10px; }
body.mapfull #placehead .maphead.inplace .pname { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; -webkit-line-clamp: unset; line-clamp: unset; }
body.mapfull #placehead .maphead.inplace .pname .pnm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mapfull #placehead .maphead.inplace .pname .pill { flex: none; vertical-align: 0; font-size: 12px; padding: 2px 8px; }
body.mapfull #placehead .maphead.inplace .sub { flex: none; display: flex; align-items: center; padding: 0; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: visible; }
body.mapfull #placehead .maphead.inplace .sub .stack { margin-right: 5px; }
body.mapfull #placehead .maphead.inplace .pgo { flex: none; padding: 3px 7px; }
@media (max-width: 379px) { body.mapfull #placehead .maphead.inplace .sub .stack .avatar:not(.me):nth-child(n+2) { display: none; } } /* 幅の狭い画面：顔は 1 人＋自分まで（施設の名前に幅をゆずる。人数は横の文で分かる） */
/* v76：幅の狭い画面では、施設の名前を 2 行まで（13px）。「実在／架空」の札とすき間も小さく（「コーヒースタ…」で何の店か分からなかった） */
@media (max-width: 379px) {
  body.mapfull #placehead .maphead.inplace { gap: 6px; padding-right: 10px; }
  body.mapfull #placehead .maphead.inplace .pback { padding: 0 9px 0 8px; }
  body.mapfull #placehead .maphead.inplace .pname { gap: 4px; font-size: 13px; line-height: 1.15; }
  body.mapfull #placehead .maphead.inplace .pname .pnm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; word-break: break-all; }
  body.mapfull #placehead .maphead.inplace .pname .pill { font-size: 11px; padding: 1px 5px; }
  body.mapfull #placehead .maphead.inplace .sub .stack { margin-right: 4px; }
}
.searchbox .sbmore.clue { color: var(--ok); }
body.mapfull:not(.mapscroll) .feedsheet.place:not(.open):not(.drag) > #placefoot .searchbox { flex-wrap: nowrap; gap: 8px; box-sizing: border-box; min-height: 48px; margin: 0; padding: 3px 4px 3px 14px; border: 1px solid var(--ov-line); border-radius: 24px; background: color-mix(in srgb, var(--card) 90%, transparent); box-shadow: var(--ov-sh); }
body.mapfull:not(.mapscroll) .feedsheet.place:not(.open):not(.drag) .sbsub, body.mapfull:not(.mapscroll) .feedsheet.place:not(.open):not(.drag) .sclue, body.mapfull:not(.mapscroll) .feedsheet.place:not(.open):not(.drag) .stfirst { display: none; }
body.mapfull:not(.mapscroll) .feedsheet.place:not(.open):not(.drag) .searchbox .btn { min-height: 40px; padding: 0 16px; border-radius: 20px; }
body.mapfull:not(.mapscroll) .feedsheet.place:not(.open):not(.drag) .sbtxt { align-self: stretch; display: flex; align-items: center; }
.searchbox .sbtxt { min-width: 0; cursor: pointer; }
.searchbox .sbttl { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.searchbox .sbttl .ellipsis { min-width: 0; }
.searchbox .sbic { flex: none; }
.searchbox .sbmore { flex: none; color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.feedsheet.open .searchbox .sbmore, .feedsheet.drag .searchbox .sbmore { display: none; }

/* ---------- 第2段階：タブのシート（地図はいつも下に居て、ウォッチ・分身・マイルーム・設定・会話はその上に重ねる） ---------- */
/* 印は render()（tabSheetSync）が body に付ける：tson＝シートが出ている／tsopen＝開いている（地図の上の部品を隠す）／tsfull＝上の帯まで覆う／tsopening・tsclosing＝出し入れの動きの間
   分身がまだ無い画面（規約・はじめの分身づくり）は印なし：#tabsheet から #tsscroll までは箱を作らず（display: contents）、#view が今までどおりのページ */
:root { --ts-gap: clamp(72px, 11vh, 96px); } /* シートの上に残す地図の帯の高さ */
#tabsheet, .tspanel, .tsscroll { display: contents; }
#tsstrip, .tshandle { display: none; }
body.mapfull #maphost { z-index: 0; } /* 地図の上の部品の重なり順は、この中だけで決める（シート・タブ・ヘッダーの上に出ない） */
body.mapfull #tabsheet { display: none; }
html:has(body.mapfull) { overscroll-behavior-y: none; } /* ページそのものは動かない：シートの中を端まで送っても、後ろのページがゴムのように引っぱられない */
body.mapfull.tson #tabsheet { display: block; position: fixed; left: 0; right: 0; z-index: 5; overflow: hidden; pointer-events: none;
  top: calc(var(--top-h) + env(safe-area-inset-top)); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
/* 上の帯（と、広い画面ではシートの左右）：押すとマップへ戻る。透明（地図がそのまま見える） */
body.tson #tsstrip { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; pointer-events: auto; }
body.tsclosing #tsstrip { pointer-events: none; }
/* シート本体：ページの背景色でべた塗り（ぼかしは使わない）。中の .tsscroll だけがスクロールする */
body.tson .tspanel { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--ts-gap); bottom: 0; margin: 0 auto; max-width: 560px; overflow: hidden; pointer-events: auto;
  background: var(--bg); border-radius: 18px 18px 0 0; box-shadow: 0 -1px 0 var(--line), 0 -8px 28px rgba(20,23,32,.22); transition: top .2s ease, border-radius .2s ease; }
body.tson.tsfull .tspanel { top: 0; border-radius: 0; }
body.tson .tspanel.drag { transition: none; }
@keyframes tsup { from { transform: translateY(100%); } }
@keyframes tsdown { to { transform: translateY(100%); } }
body.tsopening .tspanel { animation: tsup .2s ease; }
body.tsclosing .tspanel { animation: tsdown .2s ease forwards; }
body.tson .tshandle { display: grid; place-items: center; flex: none; width: 100%; height: 20px; margin: 0; padding: 2px 0 0; border: 0; border-radius: 18px 18px 0 0; background: none; cursor: grab; touch-action: none; position: relative; z-index: 1; }
body.tson .tshandle::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px; } /* 指で取りやすいように、当たりは少し下まで（見た目は 20px） */
body.tson .tshandle i { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line2); }
body.tson .tshandle:active { cursor: grabbing; }
body.tson .tshandle:focus-visible { outline: 0; } body.tson .tshandle:focus-visible i { background: var(--accent); }
body.tson.tsfull .tshandle { border-radius: 0; }
body.tson .tsscroll { display: block; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
body.tson main#view { padding-top: 2px; padding-bottom: 28px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); min-height: 100%; }
body.tson.toasting main#view { padding-bottom: calc(24px + var(--toast-h, 52px)); } /* トーストが出ているあいだ：いちばん下の行がトーストの裏に残らないよう、シートの中でも下を空ける（今までのページと同じ） */
body.tson main#view:has(> .composer) { padding-bottom: 0; } /* 下に張り付く欄がある画面：欄の下に余分を残さない（欄が自分の余白を持つ） */
body.tson main#view:has(.savebar) { padding-bottom: 8px; }
/* キーボードが出ているあいだ：シートの下の端をキーボードの上へ（--kb は tsKbSync）。タブバーはキーボードの裏 */
body.tson.kbon #tabsheet { bottom: var(--kb, 0px); }
/* 張り付く部品は、ウィンドウではなくシートの中のスクロールに張り付く（ヘッダー・タブの分のずらしは要らない） */
body.tson .seg { top: 0; } /* 背景・まわりのふさぎは .sheet-card .seg と同じ（上） */
body.tson .backbar { top: 0; margin-left: calc(-1 * max(16px, env(safe-area-inset-left))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right)));
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
body.tson .lookhero { top: 56px; }
body.tson .composer, body.tson .savebar { bottom: 0; }
body.tson .composer { margin: 0 -16px; padding: 10px 16px 8px; box-shadow: 0 -1px 0 var(--line); } /* シートの幅いっぱいの帯（下を流れる会話が左右からのぞかない） */
/* 地図の絵は、帯に分身が入るよう上へずらす（tsShiftSync）。出し入れはシートと同じ 200ms */
body.mapfull .mapwrap { transition: transform .2s ease; }
/* シートを開いているあいだ、地図の上の部品（分身のカード・見出し・帯・出来事のシート・ボタン）は消して、帯に地図だけを見せる。場所は取ったまま（地図の見える範囲の計算を変えない） */
body.mapfull #maptop, body.mapfull .feedsheet, body.mapfull .mapctl, body.mapfull .mapenter, body.mapfull #placefoot, body.mapfull .wov { transition: opacity .18s ease; }
body.tsopen #maptop, body.tsopen .feedsheet, body.tsopen .mapctl, body.tsopen .mapenter, body.tsopen #placefoot, body.tsopen .wov { opacity: 0; pointer-events: none; } /* visibility: hidden にはしない：分身の絵（SVG）の切り抜き・グラデーションは同じ id を地図の上のカードと分け合うので、隠すとシートの中の絵まで消える。指とキーボードは #maphost の inert で止める */
@media (prefers-color-scheme: dark) { body.tson .tspanel { box-shadow: 0 -1px 0 var(--line2), 0 -8px 28px rgba(0,0,0,.6); } }
@media (prefers-reduced-motion: reduce) {
  body.tson .tspanel { transition: none; animation: none !important; }
  body.mapfull .mapwrap { transition: none; }
  body.mapfull #maptop, body.mapfull .feedsheet, body.mapfull .mapctl, body.mapfull .mapenter, body.mapfull #placefoot, body.mapfull .wov { transition: none; }
}

/* ==================== ホーム（ようこそのページ）：ここから ==================== */
/* 左上の「Toko Town」は、ホームを開くボタン */
.topbar .brand { border: 0; background: none; color: var(--fg); font-family: inherit; line-height: inherit; padding: 6px 8px; margin: -6px -8px; border-radius: 10px; cursor: pointer; }
.topbar .brand:active { opacity: .6; }
.topbar .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* ホームはヘッダーの下を覆う、自分でスクロールするページ。出ているあいだ、地図・シート・下のタブ・ヘッダー右は隠す（消さない：戻ったとき地図はそのまま） */
#home { position: fixed; left: 0; right: 0; top: calc(var(--top-h) + env(safe-area-inset-top)); bottom: 0; z-index: 12; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--bg); outline: none; }
body.homeon { overflow: hidden; }
body.homeon #tabbar, body.homeon .topbar .hright { visibility: hidden !important; }
/* 地図・シートは visibility では隠さない：分身の絵（SVG）は切り抜き・グラデーションの id を同じ顔どうしで共有していて、先にある絵が visibility: hidden だと、ホームの「おかえりなさい」の顔が真っ白になる。透明にして触れなくする */
body.homeon.mapfull #maphost, body.homeon.mapfull #tabsheet, body.homeon.mapfull #sheet { opacity: 0 !important; pointer-events: none !important; }
body.homeon:not(.mapfull) #maphost, body.homeon:not(.mapfull) #tabsheet, body.homeon:not(.mapfull) #sheet { visibility: hidden !important; } /* 分身がまだ無い画面（規約など）は #tabsheet が display: contents なので、今までどおり visibility で隠す */
#home { line-break: strict; }
#home :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#home h3 { font-size: 15.5px; color: var(--fg); letter-spacing: 0; text-transform: none; margin: 0 0 4px; font-weight: 700; line-height: 1.45; }
.hmwrap { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.hmcol { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.hmmark { width: 26px; height: 26px; border-radius: 22%; flex: none; display: block; }

/* ---- ヒーロー（はじめての人） ---- */
.hmhero { position: relative; }
.hmhero.hmfirst { padding-top: 26px; background: radial-gradient(120% 440px at 50% -60px, color-mix(in srgb, var(--accent) 17%, var(--bg)), var(--bg) 74%); }
.hmherotx { max-width: 680px; margin: 0 auto; padding: 0 22px; text-align: center; }
.hmlock { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--fg); }
.hmlock .hmmark { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 32%, transparent); }
.hmlock .hmword { width: 145px; height: 25px; flex: none; display: block; }
.hmhero h1 { margin: 0; font-size: clamp(27px, 7.6vw, 46px); line-height: 1.34; letter-spacing: -.01em; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.hmsub { margin: 12px auto 0; max-width: 31em; color: var(--fg2); font-size: 14.5px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.hmstage { position: relative; height: 300px; max-width: 1080px; margin: 2px auto 0; }
.hmstage canvas { display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 80%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-composite: intersect; }
.hmlive { position: absolute; left: max(18px, 7%); bottom: 46px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--fg2); background: color-mix(in srgb, var(--card) 90%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 8px; box-shadow: var(--shadow-xs); pointer-events: none; }
.hmlive i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: hmpulse 1.8s ease-in-out infinite; }
@keyframes hmpulse { 50% { opacity: .35; transform: scale(.8); } }
.hmcta { position: relative; z-index: 1; max-width: 420px; margin: -34px auto 0; padding: 0 22px 4px; text-align: center; }
.btn.hmgo { margin: 0; min-height: 56px; font-size: 17px; font-weight: 700; letter-spacing: .05em; border-radius: 18px; box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn.hmgo[aria-busy=true] { opacity: .6; }
.hmctanote { margin: 12px 0 0; font-size: 12.5px; color: var(--sub); }
.hmcta .lflink { margin: 2px 0 0; font-size: 13.5px; }
.hmcta .lflink a { display: inline-block; padding: 10px 8px; }

/* ---- ヒーロー（おかえりなさい） ---- */
.hmhero.hmback { background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg) 220px); }
.hmhero.hmback .hmstage { height: 232px; margin-top: 0; }
.hmhero.hmback .hmlive { bottom: 58px; }
.hmbackcard { position: relative; z-index: 1; display: flex; gap: 16px; align-items: center; width: calc(100% - 32px); max-width: 520px; margin: -46px auto 0; padding: 16px 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hmbackav .avatar { width: 78px; height: 78px; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); }
.hmbacktx { min-width: 0; flex: 1; }
.hmhero.hmback h1 { font-size: 24px; line-height: 1.25; text-wrap: initial; }
.hmhero.hmback h1 small { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 2px; }
.hmname { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmwhere { margin: 5px 0 0; font-size: 13px; color: var(--fg2); line-height: 1.5; }
.hmstat { margin: 1px 0 0; font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.hmhero.hmback .hmcta { max-width: 552px; margin-top: 14px; padding: 0 16px 4px; }

/* ---- 段 ---- */
.hmsec { margin: 46px 0 0; }
.hmsec > h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; line-height: 1.4; margin: 0 0 14px; letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }
.hmsec > h2::before { content: ""; width: 6px; height: 21px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-2)); flex: none; }
#home.isback .hmcol > .hmsec:first-child { margin-top: 30px; }
.hmlead { margin: -4px 0 12px; font-size: 13.5px; color: var(--fg2); line-height: 1.7; }

/* どんなゲーム？ */
.hmsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hmstep { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.hmstep p { margin: 0; font-size: 13.5px; color: var(--fg2); line-height: 1.65; }
.hmnum { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.hmilwrap { position: relative; height: 88px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 35%, var(--card))); }
.hmil { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hmil .avatar { box-shadow: 0 0 0 2px var(--card); }
.hmil .avatar.md { width: 54px; height: 54px; }
.hmil .avatar.sm { width: 36px; height: 36px; }
.hmil.il1 .avatar.sm { width: 30px; height: 30px; }
.hmil.il1 .avatar.md { position: relative; z-index: 1; margin: 0 -6px; }
.hmb { position: absolute; font-style: normal; font-size: 10px; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--fg); background: var(--card); border-radius: 9px; padding: 3px 7px; box-shadow: var(--shadow-xs); animation: hmbub 3.6s ease-in-out infinite; }
.hmb.r { animation-delay: 1.8s; }
@keyframes hmbub { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.hmil.il2 { gap: 20px; padding-top: 24px; }
.hmil.il2 .hmb { top: 0; left: 0; } /* 端の枠（.hmilwrap は overflow: hidden）で吹き出しが切れないように、内側に置く */
.hmil.il2 .hmb.r { left: auto; right: 0; top: 5px; }
.hmil.il3 { padding-top: 24px; }
.hmil.il3 .hmb.w { top: 0; left: 50%; margin-left: -48px; width: 96px; text-align: center; border: 1.5px dashed var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--card)); }
.hmil.il4 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hmst { font-style: normal; width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-xs); font-size: 17px; line-height: 1; }

/* ならでは */
.hmfeats { display: grid; gap: 10px; }
.hmfeat { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.hmfeat p { margin: 0; font-size: 13.5px; color: var(--fg2); line-height: 1.65; }
.hmic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hmic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hmsafe { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hmsafe li { font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--ok) 72%, var(--fg)); background: color-mix(in srgb, var(--ok) 13%, transparent); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.hmsafe li::before { content: "✓ "; }

/* ニュース */
.hmnews { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.hmnitem { padding: 14px 16px 15px; border-top: 1px solid var(--line); }
.hmnitem:first-child { border-top: 0; }
.hmnitem p { margin: 4px 0 0; font-size: 13.5px; color: var(--fg2); line-height: 1.7; }
.hmnmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 5px; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.hmnew { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #fff; background: #d93f45; border-radius: 999px; padding: 1px 8px; }
.btn.hmnmore { display: flex; margin: 12px auto 0; min-height: 42px; padding: 8px 18px; }
/* ニュースの画像・箇条書き・大型アップデート */
.hmnitem.hero { position: relative; padding-top: 16px; background: linear-gradient(160deg, rgba(91,99,230,.10), rgba(255,170,60,.08) 60%, transparent); border-radius: var(--r) var(--r) 0 0; }
.hmnitem.hero h3 { font-size: 19px; line-height: 1.45; }
.hmnbig { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(90deg, #5b63e6, #e8669a, #f29b38); border-radius: 999px; padding: 3px 10px; }
.hmnpts { list-style: none; margin: 10px 0 0; padding: 4px 12px; display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.hmnpts li { font-size: 13px; line-height: 1.6; color: var(--fg2); padding: 6px 0; border-top: 1px dashed var(--line); }
.hmnpts li:first-child { border-top: 0; }
.hmnimgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.hmnimgs.n1 { grid-template-columns: 1fr; }
.hmnfig { margin: 0; min-width: 0; }
.hmnimg { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: zoom-in; }
.hmnimg img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; object-position: top; }
.hmnfig figcaption { margin-top: 4px; font-size: 12px; color: var(--sub); line-height: 1.5; }
.hmlight { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10,12,30,.86); cursor: zoom-out; }
.hmlight img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hmlclose { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; }
@media (prefers-color-scheme: dark) { .hmnitem.hero { background: linear-gradient(160deg, rgba(120,128,255,.18), rgba(255,170,60,.10) 60%, transparent); } }

/* よくある質問・「どんなゲーム？」のたたみ */
/* 友だちに紹介（ホームのフッターの 1 行）：各 SNS の投稿画面へのリンクとコピー。控えめな文字のリンクだけ */
.hmshare { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 16px; margin: 14px 0 0; font-size: 12.5px; color: var(--sub); }
.hmshare .shlbl { flex-basis: 100%; margin-bottom: 2px; }
.hmshare .shbtn { border: 0; background: none; padding: 6px 2px; font: inherit; font-weight: 600; color: var(--accent); text-decoration: none; cursor: pointer; white-space: nowrap; }
.hmshare .shmsg { flex-basis: 100%; line-height: 1.5; overflow-wrap: anywhere; }
.hmshare .shmsg:empty { display: none; }

.hmfaq { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.hmqa { border-top: 1px solid var(--line); }
.hmqa:first-child { border-top: 0; }
.hmqa > summary, .hmabout > summary { position: relative; list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 52px; padding: 13px 46px 13px 16px; font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.hmqa > summary::-webkit-details-marker, .hmabout > summary::-webkit-details-marker { display: none; }
.hmqa > summary::after, .hmabout > summary::after { content: ""; position: absolute; right: 19px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.hmqa[open] > summary::after, .hmabout[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.hmqa > summary > span { text-wrap: pretty; word-break: auto-phrase; }
.hmqa > summary { align-items: flex-start; gap: 9px; padding-top: 15px; padding-bottom: 15px; } /* Q は 1 文字ぶんの柱にして、2 行目は質問の頭にそろえる */
.hmq { color: var(--accent); font-weight: 800; flex: none; }
.hmqa > p { margin: 0; padding: 0 16px 16px; font-size: 13.5px; color: var(--fg2); line-height: 1.8; }
.hmabout { margin-top: 30px; }
.hmabout > summary { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); font-weight: 700; }
.hmabout > .hmsec { margin-top: 32px; }
.hmabout > .hmsec:first-of-type { margin-top: 22px; }

/* お問い合わせ（押すまで畳む・控えめな 1 行） */
.hmformfold { margin-top: 0; }
.hmformfold > summary { background: transparent; box-shadow: none; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--sub); min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
.hmformfold[open] > summary { margin-bottom: 12px; }
.hmformcard { margin-bottom: 0; }
.hmformcard textarea { width: 100%; min-height: 128px; }
.hmfrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 20px; margin-top: 6px; font-size: 12.5px; line-height: 1.5; }
.hmfbmsg.ok { color: color-mix(in srgb, var(--ok) 80%, var(--fg)); font-weight: 600; }
.hmfbmsg.warn { color: var(--warn); font-weight: 600; }
.hmfbcount { margin-left: auto; color: var(--sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hmfbcount.over { color: var(--warn); font-weight: 700; }
.hmformcard .btn { margin-top: 10px; min-height: 48px; }
.hmfnotes { margin: 14px 0 0; padding: 0 0 0 1.25em; font-size: 12px; color: var(--sub); line-height: 1.7; }

/* フッター */
.hmfoot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--sub); text-align: center; }
.hmbm { margin: 0; text-align: left; font-size: 12.5px; line-height: 1.65; color: var(--fg2); background: var(--accent-soft); border-radius: var(--r-md); padding: 11px 14px; }
.hmbmrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hmbmrow .btn { flex: none; }
.hmrules { margin: 10px 0 0; text-align: left; }
.hmrules > summary { cursor: pointer; text-align: center; color: var(--accent); font-weight: 600; font-size: 13px; padding: 12px 0; }
.hmrules ul.notes { margin-top: 4px; }
.hmattr { margin: 10px 0 0; line-height: 1.75; }
.hmver { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--fg2); font-size: 12.5px; }
.hmver .hmmark { width: 20px; height: 20px; }
.hmfootgo { margin: 16px 0 0; }
.hmfootgo .btn.hmgo { max-width: 376px; }
.hmlast { margin-top: 26px; padding: 26px 18px 24px; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 50% 0, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card) 78%); box-shadow: var(--shadow); }
.hmlastlead { margin: 0 0 16px; font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--fg); word-break: keep-all; overflow-wrap: anywhere; }
.hmfootgo .linkbtn { margin: 0; padding: 12px 8px; }

@media (min-width: 720px) {
  .hmhero.hmfirst { padding-top: 36px; }
  .hmsub { font-size: 16px; }
  .hmstage { height: clamp(300px, 40vh, 390px); }
  .hmhero.hmback .hmstage { height: 250px; }
  .hmsteps { grid-template-columns: 1fr 1fr; }
  .hmstep:last-child:nth-child(odd) { grid-column: 1 / -1; } /* STEP が奇数のとき、最後は横いっぱい */
  .hmsec { margin-top: 56px; }
}
@media (max-width: 374px) { .hmstep { grid-template-columns: 92px 1fr; gap: 12px; } .hmstage { height: 280px; } }
@media (prefers-reduced-motion: reduce) { .hmlive i, .hmb { animation: none; } .hmqa > summary::after, .hmabout > summary::after { transition: none; } }
/* ---- いまの Toko Town（全体の統計）：大きな数 1 つ＋小さな数の枠＋よく育っている町。数字は等幅（tabular-nums）、文字の色は文字用の色だけ ---- */
.hmscard { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.hmshead { padding: 22px 18px 20px; text-align: center; background: radial-gradient(120% 150% at 50% 0, color-mix(in srgb, var(--accent) 13%, var(--card)), var(--card) 76%); }
.hmslead { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 700; color: var(--fg2); letter-spacing: .04em; }
.hmslead i { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hmshead.live .hmslead i { display: block; animation: hmpulse 1.8s ease-in-out infinite; }
.hmsbig { margin: 2px 0 0; line-height: 1.15; color: var(--fg); }
.hmsnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.hmsbig .hmsnum { font-size: 56px; font-weight: 800; letter-spacing: -.01em; }
.hmsbig span { font-size: 19px; font-weight: 700; margin-left: 4px; }
.hmssub { margin: 4px 0 0; font-size: 13px; color: var(--fg2); line-height: 1.6; font-variant-numeric: tabular-nums; }
.hmstiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border-top: 1px solid var(--line); }
.hmstile { background: var(--card); padding: 14px 10px 13px; text-align: center; min-width: 0; }
.hmstiles.n1 { grid-template-columns: 1fr; }
.hmstiles.n3 .hmstile:last-child { grid-column: 1 / -1; }
.hmstile dt { font-size: 12px; font-weight: 600; color: var(--fg2); line-height: 1.4; }
.hmstile dd { margin: 0; }
.hmsval { color: var(--fg); line-height: 1.25; margin-top: 1px; }
.hmsval .hmsnum { font-size: 26px; font-weight: 700; }
.hmsval span { font-size: 12.5px; font-weight: 600; margin-left: 2px; }
.hmsnote { font-size: 11.5px; color: var(--sub); line-height: 1.45; font-variant-numeric: tabular-nums; }
.hmstop { border-top: 1px solid var(--line); padding: 14px 16px 6px; }
#home .hmstop h3 { font-size: 12.5px; font-weight: 700; color: var(--fg2); margin: 0 0 2px; letter-spacing: .04em; }
.hmstowns { list-style: none; margin: 0; padding: 0; }
.hmstowns li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.hmstowns li:first-child { border-top: 0; }
.hmsrk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); font-variant-numeric: tabular-nums; }
.hmstn { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.hmstn b { font-size: 14.5px; font-weight: 700; }
.hmstn small { font-size: 12px; color: var(--sub); margin-left: 7px; white-space: nowrap; }
.hmslv { flex: none; font-size: 12.5px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, #e0a020 16%, var(--card)); border: 1px solid color-mix(in srgb, #e0a020 30%, transparent); }
.hmsfoot { margin: 10px 4px 0; font-size: 12.5px; color: var(--sub); line-height: 1.7; }
.hmsasof { margin: 2px 4px 0; font-size: 11.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .hmslv { background: color-mix(in srgb, #f7c25a 14%, var(--card)); border-color: color-mix(in srgb, #f7c25a 30%, transparent); } }
@media (min-width: 720px) {
  .hmshead { padding: 28px 18px 24px; }
  .hmsbig .hmsnum { font-size: 64px; }
  .hmstiles.n3 { grid-template-columns: repeat(3, 1fr); } .hmstiles.n3 .hmstile:last-child { grid-column: auto; }
  .hmstiles.n4 { grid-template-columns: repeat(4, 1fr); }
  .hmstile { padding: 16px 10px 15px; }
}
@media (prefers-reduced-motion: reduce) { .hmshead.live .hmslead i { animation: none; } }
/* ==================== ホーム（ようこそのページ）：ここまで ==================== */

/* ==================== ラウンド35：品のカード（由来）・食べる・訪問者のひとこと ==================== */
.itemrow .iopen { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--r-sm); }
.itemrow .iopen .grow { display: block; min-width: 0; flex: 1 1 0; }
.itemrow .iopen .imeta { display: block; }
.itemrow .iopen .imore { flex: none; align-self: center; font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; padding: 0 2px; }
.itemrow .iopen:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.itembtns .chip { min-height: 40px; }
.itembtns .chip.eatchip { border-color: color-mix(in srgb, #e8590c 45%, var(--line2)); }
.pill.trav { font-size: 11.5px; padding: 1px 7px; margin-left: 4px; background: color-mix(in srgb, #0ea5a4 14%, transparent); color: #0b7f7e; }
.pill.rep { font-size: 11.5px; padding: 1px 7px; margin-left: 4px; background: color-mix(in srgb, #f59e0b 16%, transparent); color: #a86400; letter-spacing: .5px; }
.itemcard .ichead { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.itemcard .icbig { flex: none; width: 64px; height: 64px; display: grid; place-items: center; font-size: 38px; border-radius: 16px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }
.itemcard h2 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.itemcard .icmeta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.itemcard .icmeta .pill { margin-left: 0; font-size: 12px; padding: 2px 8px; }
.itemcard .icdesc { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--fg); }
.itemcard .flabel { margin-top: 12px; }
.itemcard .icstory { margin: 0; font-size: 14px; line-height: 1.7; color: var(--fg2); }
.itemcard .ictravel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.itemcard .ictravel .pill { margin-left: 0; font-size: 12px; padding: 3px 9px; }
.itemcard .icroute { margin: 6px 0 0; font-size: 12.5px; color: var(--sub); line-height: 1.6; overflow-wrap: anywhere; }
.itemcard .icbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.itemcard .icbtns .btn.small { min-height: 42px; flex: 1 1 auto; }
.itemcard .icbtns .btn[aria-disabled="true"] { opacity: .55; }
.itemcard .note { margin: 8px 0 0; }
.rvrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.rvrow:first-child { border-top: 0; }
.rvrow .avatar.sm { width: 34px; height: 34px; }
.rvrow .rvav { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--me); }
.rvrow .rvwho { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.rvrow .rvwho b { font-size: 13px; white-space: nowrap; }
.rvrow .rvwho small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvrow .rvline { margin: 2px 0 0; font-size: 14px; line-height: 1.5; }
.rvrow .chip.rvitem { margin-top: 6px; min-height: 40px; padding: 6px 12px; font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvcard .rvlist { margin-top: 4px; }
.rvcard > .btn.small { margin-top: 6px; min-height: 40px; }
.foodbar { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.foodbar .muted { font-size: 12px; line-height: 1.5; }
.foodbar .chip { flex: none; min-height: 40px; }
.foodlist { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #e8590c 40%, transparent); }
.btn.eatoffer { margin-top: 8px; min-height: 40px; }
.searchbox .btn.eatoffer { margin-top: 0; }
.searchbox .btn.eatoffer small { font-size: 12px; opacity: .85; }
.zitem.zopen { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.eatrow .btn.small { min-height: 40px; }
@keyframes stgain { 0% { transform: scale(1); } 35% { transform: scale(1.12); filter: brightness(1.15); } 100% { transform: scale(1); } }
.bagst.stgain, .stbar.stgain { animation: stgain .9s ease-out; }
.stbar.stgain i { transition: width .6s ease-out; }
@media (prefers-color-scheme: dark) {
  .pill.trav { color: #4fd1cf; }
  .pill.rep { color: #f7c25a; }
}
@media (prefers-reduced-motion: reduce) { .bagst.stgain, .stbar.stgain { animation: none; } }
.foodbar .nw { white-space: nowrap; }
.itembtns .chip.eatchip small { font-size: 12px; color: var(--sub); font-weight: 600; }
/* v55 アイテムの第2段階：ユーザーの分身のひとこと・町に寄贈・町の展示棚 */
.rvrow .rvtag { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; color: #0f766e; background: color-mix(in srgb, #14b8a6 16%, transparent); }
.itemcard .donrow { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg2); align-items: center; }
.itemcard .donrow .imeta { white-space: normal; line-height: 1.5; }
.itemcard .donrow .btn.small { flex: none; min-height: 42px; }
.itemcard .donrow .btn[aria-disabled="true"] { opacity: .55; }
.exshelf { margin-top: 12px; }
.exshelf .exload { margin: 4px 0 0; font-size: 12.5px; }
.exshelf .exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 4px; max-height: 264px; overflow-y: auto; }
.exshelf .exitem { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.exshelf .exic { flex: none; font-size: 24px; width: 30px; text-align: center; }
.exshelf .exitem .grow { min-width: 0; }
.exshelf .exitem b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; overflow: hidden; overflow-wrap: anywhere; }
.exshelf .exitem small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.35; overflow: hidden; overflow-wrap: anywhere; }
.exshelf .note { margin: 6px 0 0; }
@media (prefers-color-scheme: dark) {
  .rvrow .rvtag { color: #5eead4; background: color-mix(in srgb, #14b8a6 22%, transparent); }
}

/* 写真を選んだときの「写真を街に出す」 */
.check.phototown { flex-basis: 100%; width: 100%; margin-top: 8px; }
.phototownnote { flex-basis: 100%; width: 100%; margin: 2px 0 0; font-size: 12px; line-height: 1.6; }

/* v59：歩いていて拾った物のトースト。レア以上は金色のふちと小さなきらめき（押すと品のカード） */
.toast.pickrare, .sheettoast.pickrare { box-shadow: 0 0 0 2px #f59e0b, 0 8px 24px rgba(20,23,32,.22); }
.toast.pickrare::after { content: '✨'; position: absolute; right: -6px; top: -10px; font-size: 14px; animation: pkshine 1.4s ease-in-out 2; pointer-events: none; }
@keyframes pkshine { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(18deg); } }
html.nomotion .toast.pickrare::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .toast.pickrare::after { animation: none; } }
@media (prefers-color-scheme: dark) { .toast.pickrare, .sheettoast.pickrare { box-shadow: 0 0 0 2px #f7c25a, var(--shadow-lg); } }

/* ---------- v60 フォロー（旧「お気に入り ☆」） ---------- */
.pill.mutual { background: color-mix(in srgb, #e05c8a 16%, transparent); color: #b23a66; font-weight: 700; }
.pill.fwtier { font-weight: 700; vertical-align: 2px; padding: 0 7px; }
.pill.fwtier.star { background: color-mix(in srgb, #8b5cf6 12%, transparent); color: #6d43d6; }
.pill.fwtier.silver { background: color-mix(in srgb, #8a96a3 20%, transparent); color: #55616e; }
.pill.fwtier.gold { background: color-mix(in srgb, #e3b341 24%, transparent); color: #8a6200; }
.avatar.real.fwsilver { box-shadow: 0 0 0 2px var(--card), 0 0 0 4.5px #0f9f6e, 0 0 0 7.5px #8f9aa6; }
.avatar.real.fwgold { box-shadow: 0 0 0 2px var(--card), 0 0 0 4.5px #0f9f6e, 0 0 0 7.5px #e3b341; }
/* v63：関係・フォロー・最後に会った時の小さな印（アイコン＋数。言葉は title・aria-label）。印の中では折り返さない */
.rc { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px 0 5px; border-radius: 999px; flex: none;
  font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; vertical-align: middle; color: var(--fg2);
  background: color-mix(in srgb, var(--fg) 6%, transparent); }
.rc .ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc .ic .fill { fill: currentColor; stroke: none; }
.rc b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rc[role="button"] { cursor: pointer; }
.rc .relword { color: var(--fg); margin-left: 2px; }
.rc.hearts { --hc: #e05c8a; color: var(--hc); background: color-mix(in srgb, var(--hc) 13%, transparent); }
.rc.hearts.lv1 { --hc: #a88896; }
.rc.hearts.lv2 { --hc: #e2789d; }
.rc.hearts.lv3 { --hc: #e05c8a; }
.rc.hearts.lv4 { --hc: #d23d72; }
.rc.hearts.lv5 { --hc: #bf1d5a; }
.rc.rnext { color: var(--accent); background: var(--accent-soft); }
.rc.rago .ic, .rc.rmeet .ic { opacity: .8; }
.rc.relup { animation: relpop .5s ease 2; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 35%, transparent); }
/* フォローの丸い印：フォロー中＝人とチェック（琥珀）／相互フォロー＝二人（桃色） */
.fwic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; flex: none; vertical-align: middle; margin-left: 4px; color: #fff; background: #b87800; }
.fwic.mutual { background: #d23d72; }
.fwic .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.relrow { margin-top: 6px; }
.reltags + .relrow { margin-top: 6px; }
/* 関係の 1 行：印ごとに折り返す（印の途中では切れない） */
.relline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; max-width: 100%; vertical-align: middle; }
.relchips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; margin-top: 2px; }
.relchips .presence { min-width: 0; max-width: 100%; }
.fwbox { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg2); }
.fwtop { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.fwnum { font-size: 12.5px; color: var(--fg2); }
.fwnum b { font-size: 17px; color: var(--fg); margin-right: 3px; }
.fwtop .fwbtn { flex: 1 0 112px; } /* v76：横に入るときは数の右の残りいっぱい、入らないときは次の行の全幅（右に寄せたボタンだけが 1 行に取り残されない） */
.fwbtn.on { background: var(--card); color: var(--accent); border: 1.5px solid var(--accent); }
.fwfeel { font-size: 12.5px; color: var(--fg2); margin-top: 4px; }
.fwfeel.mine { color: var(--accent); }
.fwmine { font-size: 12.5px; margin-top: 6px; }
.fwmine a { white-space: nowrap; } /* 狭い画面で「選／ぶ」と割れない */
.fwfeels { margin-top: 8px; gap: 6px; }
.fwfeels .chip { font-size: 12.5px; padding: 4px 10px; }
.fwunf { margin-top: 8px; font-size: 12px; text-align: right; }
.fwunf a { color: var(--sub); }
.fwcounts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--fg2); margin: 0 0 10px; }
.fwcounts b { font-size: 16px; color: var(--fg); margin: 0 2px; }
.fwlist { margin-top: 8px; }
.fwrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.fwrow:first-child { border-top: 0; }
.fwrow .grow { min-width: 0; }
.fwrow b { font-size: 14px; }
.fwface { background: none; border: 0; padding: 4px; margin: 0; cursor: pointer; flex: none; }
.fwrow .retbtn, .fwrow .retdone { flex: none; }
.fwsheet .seg { margin-bottom: 4px; }
@media (prefers-color-scheme: dark) {
  .pill.mutual { color: #f39abb; }
  .pill.fwtier.star { color: #b9a0ff; }
  .pill.fwtier.silver { color: #c9d1da; }
  .pill.fwtier.gold { color: #f7c25a; }
  .rc.hearts.lv1 { --hc: #c3a6b3; }
  .rc.hearts.lv2 { --hc: #f08fb2; }
  .rc.hearts.lv3 { --hc: #f37aa4; }
  .rc.hearts.lv4 { --hc: #ff6f9f; }
  .rc.hearts.lv5 { --hc: #ff5c93; }
  .rc.hearts { background: color-mix(in srgb, var(--hc) 18%, transparent); }
  .fwic { background: #c98a0c; }
  .fwic.mutual { background: #e0508a; }
}
/* ユーザーの分身への操作（フォロー・今日は会わない・ブロック・通報）：印のボタンを 1 列に */
.uacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.uabtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg2); font-size: 12px; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.uabtn svg { flex: none; }
.uabtn.warn { color: #c2414b; }
.uabtn:active { transform: scale(.97); }
@media (prefers-color-scheme: dark) { .uabtn.warn { color: #ff8a92; } }

/* ===== v64：レア度の色（よくある＝灰・ふつう＝青・レア＝紫・Sレア＝金・v91 SSレア＝虹）=====
   品が出るところ（持ち物・品のカード・お店・福引き・部屋・交換・ひとこと・展示棚・図鑑・手に持っている物）を同じ塗りと縁にそろえる。
   色だけに頼らない：文字のラベル（.pill.rar）はそのまま残し、レアは光、Sレアは金のグラデーション＋✦＋ゆっくり光が走る */
:root {
  --rar0: #8a94a6; --rar0-fg: #59606f;
  --rar1: #3b82f6; --rar1-fg: #1f5fc4;
  --rar2: #a855f7; --rar2-fg: #7633c0;
  --rar3: #d4a514; --rar3-fg: #6b4c00; --rar3-hi: #ffe58a; --rar3-spark: #b8860b; --rar3-deep: #a87b00; --rar3-sub: #5c4a1f; /* v94：Sレアは濃い金（前は橙に寄った淡い金） */
}
@media (prefers-color-scheme: dark) {
  :root {
    --rar0: #8d95a6; --rar0-fg: #bcc2ce;
    --rar1: #5b9bff; --rar1-fg: #9ec3ff;
    --rar2: #b780ff; --rar2-fg: #d6b2ff;
    --rar3: #e6b93a; --rar3-fg: #ffd866; --rar3-hi: #fff0b0; --rar3-spark: #ffe28a; --rar3-deep: #f0c64a; --rar3-sub: #e8d6a0;
  }
}
/* レア度のクラス：色（--rc）・文字色（--rcf）・塗りの濃さ（--rt）・縁の太さと濃さ（--rb / --ra）・外の光（--rglow） */
.r0 { --rc: var(--rar0); --rcf: var(--rar0-fg); --rt: 7%;  --rb: 1px;   --ra: 45%; --rglow: 0 0 0 0 transparent; }
.r1 { --rc: var(--rar1); --rcf: var(--rar1-fg); --rt: 11%; --rb: 1.5px; --ra: 70%; --rglow: 0 0 0 0 transparent; }
.r2 { --rc: var(--rar2); --rcf: var(--rar2-fg); --rt: 14%; --rb: 2px;   --ra: 90%; --rglow: 0 0 10px -1px color-mix(in srgb, var(--rar2) 60%, transparent); }
.r3 { --rc: var(--rar3); --rcf: var(--rar3-fg); --rt: 18%; --rb: 2px;   --ra: 100%; --rglow: 0 0 14px 0 color-mix(in srgb, var(--rar3) 62%, transparent); }
@media (prefers-color-scheme: dark) {
  .r0 { --rt: 9%; } .r1 { --rt: 15%; } .r2 { --rt: 19%; } .r3 { --rt: 22%; }
}
/* ラベル（色＋文字） */
.pill.rar:is(.r0, .r1, .r2, .r3) { background: color-mix(in srgb, var(--rc) calc(var(--rt) + 6%), transparent); color: var(--rcf); font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 40%, transparent); }
.pill.rar.r3 { background: linear-gradient(135deg, color-mix(in srgb, var(--rar3) 34%, transparent), color-mix(in srgb, var(--rar3-hi) 30%, transparent)); }
/* 塗り＋縁：アイコンの枠（持ち物・お店の行）と、品そのものの枠・カード */
.itemrow:is(.r0, .r1, .r2, .r3) .iic,
:is(.icbig, .kpic, .tile, .rcell.on, .kzs.on, .rico, .swapit, .exitem, .gmrow, .zitem.have, .fukures, .chip, .gitem):is(.r0, .r1, .r2, .r3) {
  background: color-mix(in srgb, var(--rc) var(--rt), var(--bg2));
  box-shadow: inset 0 0 0 var(--rb) color-mix(in srgb, var(--rc) var(--ra), transparent), var(--rglow);
}
:is(.tile, .rcell.on, .kzs.on, .chip):is(.r0, .r1, .r2, .r3) { border-color: transparent; }
.chip.tag:is(.r0, .r1, .r2, .r3) { color: var(--fg); }
.itemrow:is(.r0, .r1, .r2, .r3) .iic { display: grid; place-items: center; width: 36px; height: 36px; font-size: 22px; line-height: 1; border-radius: 11px; }
.itemrow.wrap:is(.r0, .r1, .r2, .r3) .iic { margin-top: 0; }
.rico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 15px; line-height: 1; vertical-align: -6px; margin-right: 2px; }
/* Sレア：金のグラデーション */
.itemrow.r3 .iic,
:is(.icbig, .kpic, .tile, .rcell.on, .kzs.on, .rico, .swapit, .exitem, .gmrow, .zitem.have, .fukures, .chip, .gitem).r3 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--rar3) calc(var(--rt) + 20%), var(--bg2)), color-mix(in srgb, var(--rar3-hi) calc(var(--rt) + 8%), var(--bg2)) 52%, color-mix(in srgb, var(--rar3) calc(var(--rt) + 8%), var(--bg2)));
}
/* アイコンの枠（小さな四角）には、レアは小さな ✦、Sレアは金の ✦ と、ときどき光が走る */
.itemrow:is(.r2, .r3) .iic, :is(.icbig, .kpic, .tile, .rcell.on, .kzs.on):is(.r2, .r3) { position: relative; overflow: hidden; }
.itemrow:is(.r2, .r3) .iic::after, :is(.icbig, .kpic, .tile, .rcell.on, .kzs.on):is(.r2, .r3)::after {
  content: '✦'; position: absolute; top: 1px; right: 3px; font-size: 9px; line-height: 1; color: var(--rc); pointer-events: none; text-shadow: 0 0 3px color-mix(in srgb, var(--rc) 70%, transparent);
}
.itemrow.r3 .iic::after, :is(.icbig, .kpic, .tile, .rcell.on, .kzs.on).r3::after { color: var(--rar3-spark); text-shadow: 0 0 4px color-mix(in srgb, var(--rar3-hi) 80%, transparent); }
.itemcard .icbig:is(.r2, .r3)::after, .keepcard .kpic:is(.r2, .r3)::after { font-size: 13px; top: 7px; right: 9px; }
.itemrow.r3 .iic::before, :is(.icbig, .kpic, .tile, .rcell.on).r3::before {
  content: ''; position: absolute; inset: -20% auto -20% -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-120%) skewX(-12deg);
  animation: rarshine 4.5s ease-in-out infinite;
}
@keyframes rarshine { 0%, 62% { transform: translateX(0) skewX(-12deg); } 88%, 100% { transform: translateX(520%) skewX(-12deg); } }
html.nomotion .itemrow.r3 .iic::before, html.nomotion :is(.icbig, .kpic, .tile, .rcell.on).r3::before { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) { .itemrow.r3 .iic::before, :is(.icbig, .kpic, .tile, .rcell.on).r3::before { animation: none; display: none; } }
@media (prefers-color-scheme: dark) { .itemrow.r3 .iic::before, :is(.icbig, .kpic, .tile, .rcell.on).r3::before { background: linear-gradient(100deg, transparent, rgba(255, 236, 170, .35), transparent); } }
/* 品のカードの大きな枠：Sレアは外の光も強く */
.itemcard .icbig.r3 { box-shadow: inset 0 0 0 2.5px var(--rar3), 0 0 18px 0 color-mix(in srgb, var(--rar3) 55%, transparent); }
/* 手に持っている物のタイル：手の印（アクセントの縁）を優先 */
.tile.hand:is(.r0, .r1, .r2, .r3) { box-shadow: inset 0 0 0 2px var(--accent), var(--rglow); }
/* ひとことの ★ は品の色に合わせる */
.rvrow .chip.rvitem small { color: var(--rcf, #c27a00); }
/* 拾った物のトースト：レアは紫、Sレアは金のふち */
.toast.pickrare, .sheettoast.pickrare { box-shadow: 0 0 0 2px var(--rar2), 0 0 16px color-mix(in srgb, var(--rar2) 45%, transparent), 0 8px 24px rgba(20,23,32,.22); }
.toast.pickrare.pr3, .sheettoast.pickrare.pr3 { box-shadow: 0 0 0 2px var(--rar3), 0 0 18px color-mix(in srgb, var(--rar3) 55%, transparent), 0 8px 24px rgba(20,23,32,.22); }
/* 横スクロール・縦スクロールの枠（部屋のトレイ・展示棚・図鑑）で外の光が切れるので、小さな物の光は小さめ */
:is(.tile, .exitem, .zitem, .chip, .kzs).r2 { --rglow: 0 0 6px -1px color-mix(in srgb, var(--rar2) 60%, transparent); }
:is(.tile, .exitem, .zitem, .chip, .kzs).r3 { --rglow: 0 0 7px 0 color-mix(in srgb, var(--rar3) 60%, transparent); }
.exshelf .exgrid { padding: 4px; margin-left: -4px; margin-right: -4px; }

/* ---------- v73（柱1）：町での称号・次の一歩・部屋の足あと・贈り物 ---------- */
:root { --pop1: #3f9d5a; --pop2: #2f7fd0; --pop3: #c9922a; --pop4: #c2410c; --pop5: #9b4dca; }
@media (prefers-color-scheme: dark) { :root { --pop1: #6fd08a; --pop2: #7db6f2; --pop3: #f2c35a; --pop4: #fb9a5b; --pop5: #cf9bf2; } }
/* 分身のカードの「🤝 町の仲間 ▮▮▯」（名前の下・地域の前） */
.hero .heroarea .popmini { flex: none; display: inline-flex; align-items: center; gap: 5px; margin: 0 6px 0 0; padding: 1px 7px 1px 5px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.2); color: inherit; font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.hero .heroarea .popmini .pmname { white-space: nowrap; }
.hero .heroarea .popmini .pmbar { display: inline-block; width: 26px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero .heroarea .popmini .pmbar i { display: block; height: 100%; background: #ffe08a; border-radius: inherit; }
.hero .heroarea .popmini:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* ほかの人の称号のチップ（プロフィール・一覧・部屋） */
.pill.popchip { gap: 3px; padding: 2px 8px; font-weight: 700; vertical-align: 2px; background: color-mix(in srgb, var(--pc, var(--pop1)) 13%, transparent); color: var(--pc, var(--pop1)); }
.pill.popchip.s1 { --pc: var(--pop1); } .pill.popchip.s2 { --pc: var(--pop2); } .pill.popchip.s3 { --pc: var(--pop3); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pop3) 60%, transparent); }
.pill.popchip.s4 { --pc: var(--pop4); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pop4) 60%, transparent); }
.pill.popchip.s5 { --pc: var(--pop5); box-shadow: inset 0 0 0 1.5px var(--pop3); }
.pill.popchip.sm { font-size: 10.5px; padding: 1px 6px; margin-left: 2px; }
/* v163：暮らしレベルのチップ（ほかの人のプロフィール・フォローの一覧・自分のプロフィール） */
.pill.lifechip { gap: 3px; padding: 2px 8px; font-weight: 700; vertical-align: 2px; background: color-mix(in srgb, var(--sub) 12%, transparent); color: var(--fg2); white-space: nowrap; }
.pill.lifechip.sm { font-size: 10.5px; padding: 1px 6px; margin-left: 2px; font-weight: 600; }
.pill.popchip.sm small { font-size: inherit; font-weight: 600; }
/* 町の人気者は金の枠・町の伝説は虹の枠（顔の丸） */
.avatar.popf3 { box-shadow: 0 0 0 2px var(--card), 0 0 0 4.5px #e3b341; }
.avatar.popf5 { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px #e3b341, 0 0 0 6px #b06ee0, 0 0 10px 2px rgba(176,110,224,.45); }
.hero .avatar.popf3 { box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 0 4.5px #f2c35a; }
.hero .avatar.popf5 { box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 0 4px #f2c35a, 0 0 0 6.5px #cf9bf2; }
/* 称号の見出し（次の一歩のシート・分身タブ） */
.pophead { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--me); }
.pophead .popbig { font-size: 30px; line-height: 1; flex: none; }
.pophead .popname { font-size: 17px; }
.pophead .popbar { margin: 5px 0 4px; height: 7px; }
.pophead small { display: block; font-size: 12px; line-height: 1.4; }
.popcard .popby { margin: 8px 0 6px; font-size: 12px; line-height: 1.5; }
.popcard .popby .nw { white-space: nowrap; }
.poplist { display: flex; flex-direction: column; gap: 2px; }
.poprow { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 13px; border-radius: 8px; }
.poprow:not(.ok) b { color: var(--sub); } .poprow:not(.ok) .popic { opacity: .55; } /* v89：まだの段も、ごほうびの文は読める濃さで（行ごと薄くしない） */
.poprow.cur { background: var(--accent-soft); }
.poprow .popic { width: 22px; text-align: center; flex: none; }
.poprow b { flex: none; min-width: 5.5em; }
.poprow .grow { min-width: 0; font-size: 11.5px; line-height: 1.35; color: var(--fg2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.poprow .poppt { flex: none; }
.nw { white-space: nowrap; }
.popupcard .popupic { font-size: 48px; text-align: center; line-height: 1.1; margin-top: 6px; }
/* 次の一歩 */
.nslist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nsrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.nsrow .nsic { font-size: 22px; flex: none; width: 28px; text-align: center; }
.nsrow .grow { min-width: 0; }
.nsrow b { display: block; font-size: 14px; line-height: 1.35; }
.nsrow small { display: block; font-size: 11.5px; line-height: 1.4; margin-top: 2px; }
.nsrow .btn { flex: none; white-space: nowrap; }
.nsrow.nsgoal { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--card)); } /* v76：いまの目標（いちばん上） */
.nsrow.nsgoal small { margin: 0 0 2px; }
/* 状態の行の「👣 …」：文が長いときは … で切る（ほかのチップを絵だけにするかを測る間は 170px として数える） */
body.mapfull #placehead .mrow .nextchip { flex: 0 1 auto; min-width: 0; max-width: 64%; font-size: 12.5px; font-weight: 600; }
body.mapfull #placehead .mrow .nextchip .mcl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mapfull #placehead .mrow.fitting .nextchip { flex-shrink: 0; width: 170px; max-width: 170px; }
.mrow .nextchip .mcl { white-space: nowrap; }
/* 部屋の足あと */
.fpwrap { margin-top: 10px; }
.fpbox .flabel small { font-weight: 500; margin-left: 4px; }
.fpchips { margin-top: 6px; gap: 6px; }
.fpchips .chip { font-size: 12.5px; padding: 6px 11px; }
.fpdone { margin: 0; padding: 8px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-size: 13px; font-weight: 600; }
.fpdone small { font-weight: 500; }
.fpcard .fprow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.fpcard .fprow:first-of-type { border-top: 0; }
.fpcard .fprow .grow { min-width: 0; }
.fpcard .fprow b { display: block; font-size: 13.5px; }
.fpcard .fprow small { display: block; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 贈り物 */
.giftlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; max-height: 38vh; overflow-y: auto; padding: 8px; margin: -6px; }
.gitem { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 72px; padding: 6px 4px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--fg); font: inherit; cursor: pointer; }
.gitem .gic { font-size: 24px; line-height: 1.1; }
.gitem small { font-size: 10.5px; line-height: 1.25; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.gitem.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
/* v76：選んだ品は、レア度の色に関係なく分かるように（レア度の規則が .gitem.on の塗りと影を上書きしていた）：外に accent の輪と、右上の ✓。
   光（--rglow）が四角く切れないよう、一覧の内側に余白（見た目の位置は負の margin で保つ） */
.giftlist .gitem { position: relative; }
.giftlist .gitem.on { outline: 2.5px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.giftlist .gitem.on::after { content: '✓'; position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-fg, #fff); font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--card); }
/* v89：レア・Sレアは色だけでなく左上の ✦ でも（右上の ✓ と重ならない）。読み上げはボタンの名前に「（レア）」 */
.giftlist .gitem:is(.r2, .r3)::before { content: '✦'; position: absolute; top: 3px; left: 5px; font-size: 10px; line-height: 1; color: var(--rc); pointer-events: none; text-shadow: 0 0 3px color-mix(in srgb, var(--rc) 70%, transparent); }
.giftlist .gitem.r3::before { color: var(--rar3-spark); }
.memoryshelf { overflow: hidden; }
.memorydisplay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, #7b4b2b 20%, var(--card)), color-mix(in srgb, #3c2418 13%, var(--bg))); box-shadow: inset 0 -5px 0 color-mix(in srgb, #6f431f 52%, transparent), inset 0 0 0 1px color-mix(in srgb, #c99a58 35%, transparent); }
.memorygift { min-width: 0; padding: 8px 3px 10px; border: 0; border-radius: 10px; color: var(--fg); background: color-mix(in srgb, var(--card) 84%, transparent); box-shadow: 0 2px 5px rgba(30,18,10,.18); cursor: pointer; }
.memorygift > span { display: block; font-size: 28px; line-height: 1.2; filter: drop-shadow(0 2px 2px rgba(30,18,10,.18)); }
.memorygift b, .memorygift small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memorygift b { margin-top: 3px; font-size: 11px; } .memorygift small { color: var(--sub); font-size: 9px; }
.memorysheet h2 { margin: 0 0 4px; }
.memoryfocus { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 10px; border-radius: 14px; background: color-mix(in srgb, #d8a743 12%, var(--bg)); }
.memoryfocus .icbig { flex: none; width: 56px; height: 56px; font-size: 34px; }
.memoryfocus b, .memoryfocus small { display: block; } .memoryfocus small { margin-top: 4px; color: var(--sub); line-height: 1.45; }
.memorylist { display: grid; gap: 7px; max-height: 52vh; overflow-y: auto; margin: 10px -3px; padding: 3px; }
.memoryrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 5px; padding: 7px; border-radius: 13px; background: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, #999) 22%, transparent); }
.memorymain { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; min-width: 0; padding: 0; border: 0; color: inherit; text-align: left; background: none; cursor: pointer; }
.memorymain > span { grid-row: 1 / 3; font-size: 27px; text-align: center; } .memorymain b, .memorymain small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memorymain b { font-size: 13px; } .memorymain small { color: var(--sub); font-size: 10px; }
@media (max-width: 370px) { .memoryrow { grid-template-columns: minmax(0, 1fr) auto; } .memoryrow > .chip:last-child { grid-column: 2; } }
.giftphr { gap: 6px; margin-top: 6px; }
.giftphr .chip { font-size: 12.5px; }
.giftsheet .btn[disabled] { opacity: .45; }
.icgift { margin: -4px 0 8px; padding: 6px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, #e7739c 12%, transparent); font-size: 13px; font-weight: 600; }
.tgfaces { margin-top: 12px; }
/* v73 見直し：分身のカードの文字は白（地の色が濃い）。地域名は称号に場所をゆずって縮む。次の一歩の行は文に幅を */
.hero .heroarea .popmini { color: #fff; }
.hero .heroarea:has(.popmini) > .ellipsis { flex: 0 1 auto; min-width: 0; }
.nsrow { padding: 10px; gap: 8px; }
.nsrow .nsic { font-size: 20px; width: 24px; }
.nsrow b { font-size: 13.5px; }
.nsrow .btn { padding: 6px 12px; min-height: 36px; font-size: 13px; }
body.mapfull #placehead .mrow .nextchip .mcl b { font-weight: 700; }
body.mapfull #placehead .mrow .nextchip .mcl .ncgoal { font-size: 11px; font-weight: 500; color: var(--sub); }
.hero .heroarea:has(.popmini) > .ellipsis { min-width: 2.6em; }
@media (max-width: 374px) { .hero .heroarea .popmini .pmbar { display: none; } }
/* v76：称号の札は名前の列からはみ出さない（はみ出して右の「♥3 友達」にくっついていた）：狭いときは進み具合のバーから縮む */
.hero .heroarea .popmini { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.hero .heroarea .popmini .pmname { flex: none; }
.hero .heroarea .popmini .pmbar { flex: 0 1 26px; min-width: 0; }
body.mapfull #placehead .mrow .nextchip { padding: 0 9px 0 8px; gap: 3px; font-size: 12px; }
body.mapfull #placehead .mrow .nextchip .mci { font-size: 13px; }
body.mapfull #placehead .mrow:has(.nextchip) .townchip { flex-shrink: 8; } /* 「👣 次の一歩」は町のチップ（名前）より先には縮まない：町の名前は分身のカードにも出ている（縮む割合の合計が 1 未満だと、はみ出しが残るので 1 以上に） */
/* v74：状態の行。町の名前はいつも読める（縮めない・6.5 字まで。長い名前だけ … ）。幅が足りないときは「👣 次の一歩」が先に短い形（👣 あと1人）になる（mrowFit の .ico） */
body.mapfull #placehead .mrow .townchip, body.mapfull #placehead .mrow:has(.nextchip) .townchip { flex-shrink: 0; min-width: 0; }
body.mapfull #placehead .mrow .townchip > .mcl { max-width: 6.5em; }
body.mapfull #placehead .mrow .nextchip { min-width: 2.6em; }
body.mapfull #placehead .mrow .nextchip .mcs { display: none; }
body.mapfull #placehead .mrow .nextchip.ico { padding: 0 9px 0 8px; }
body.mapfull #placehead .mrow .nextchip.ico .mcs { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
body.mapfull #placehead .mrow.fitting .nextchip { width: auto; max-width: none; flex-shrink: 0; }
.mrow .nextchip .mcs { display: none; }
/* v74：分身のカード。自宅の町にいるときは地域を出さない（町のチップに出ている）。旅先では称号を絵だけ（名前は読み上げとシートに）にして、自宅の地域を全部出す */
.hero .heroarea.away > .ellipsis { min-width: 4.6em; max-width: 7em; flex: 0 0 auto; }
.hero .heroarea.away .popmini { padding: 1px 5px; margin-right: 4px; }
.hero .heroarea.away .popmini .pmn { display: none; }
.hero .heroarea.away .popmini .pmbar { display: none; }
/* v74：状態の行の詰めた形（mrowFit が .tight をつける）：すき間 4px・チップの内側の余白を細く */
body.mapfull:not(.mapscroll) #placehead .maphead.mrow.tight { gap: 4px; }
body.mapfull #placehead .mrow.tight .mchip { padding: 0 6px; gap: 3px; }
body.mapfull #placehead .mrow.tight .townchip { padding-left: 6px; }
body.mapfull #placehead .mrow.tight .nextchip.ico { padding: 0 6px 0 5px; gap: 2px; }
body.mapfull #placehead .mrow.tight .nextchip.ico .mcs { font-size: 11.5px; letter-spacing: -.02em; }
body.mapfull #placehead .mrow.nolv .townchip .lvpill { display: none; } /* v74：それでも入らないときは町のチップの Lv をたたむ（名前を残す） */

/* ---- v75：メッセージ（プロフィールのボタン・受け箱・スレッド・ルール） ---- */
.msgrow { margin-top: 10px; }
.uacts + .msgrow, .msgrow + .uacts { margin-top: 8px; }
.msgbtn { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); font: inherit; text-align: left; cursor: pointer; }
.msgbtn:active { transform: scale(.985); }
.msgbtn.locked { background: var(--card); color: var(--fg2); border-color: var(--line); border-style: dashed; }
.msgic { font-size: 19px; line-height: 1; flex: none; }
.msgbl { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.msgbl b { font-size: 15px; }
.msgbl small { color: var(--fg2); font-size: 12px; line-height: 1.35; }
.msgun { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e5484d; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; flex: none; }
.sheet-card.msgsheet { display: flex; flex-direction: column; height: min(86vh, 780px); max-height: 86vh; overflow: hidden; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.sheet-card.msgsheet > .handle { flex: none; height: 22px; }
.msghead { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); flex: none; }
.msgback, .msgmenu, .msgx { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--me); color: var(--fg2); font-size: 20px; line-height: 1; cursor: pointer; }
.msgmenu { font-size: 18px; letter-spacing: .05em; }
.msghn { display: flex; align-items: center; gap: 6px; min-width: 0; }
.msghn b { font-size: 16px; min-width: 0; }
.msgmenus { position: absolute; right: 12px; top: 70px; z-index: 3; display: flex; flex-direction: column; min-width: 230px; max-width: calc(100% - 24px); padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.msgmenus button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.msgmenus button:hover { background: var(--me); }
.msgmenus .mi { display: inline-block; width: 1.4em; margin-right: 6px; text-align: center; flex: none; } /* v89：絵文字は同じ幅の枠に入れて、文字の頭をそろえる */
#sheet .sheet-card[role=dialog] :is(h2, h3)[tabindex="-1"]:focus, #sheet .sheet-card[tabindex="-1"]:focus { outline: none; } /* 開いたときに見出しへ移すフォーカス（読み上げ用）は、輪を出さない */
.msgmenus .warn { color: #c2414b; }
.msglog { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 12px 2px; }
.mb { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.mb.me { align-items: flex-end; }
.mbb { max-width: 80%; padding: 9px 13px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: var(--card); color: var(--fg); box-shadow: var(--shadow-xs);
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.mb.me .mbb { background: var(--accent); color: var(--accent-fg); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.mb.them .mbb { cursor: pointer; -webkit-touch-callout: none; }
.mb.pk .mbb { outline: 2px solid var(--accent); outline-offset: 1px; }
.mbt { margin: 2px 6px 0; font-size: 11px; color: var(--sub); }
.mbact { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-width: 100%; }
.mbact > .btn, .mbact .btns .btn { min-height: 40px; }
.mbact .btns { flex-wrap: wrap; }
.msgrep { margin: 0; }
.msgrep .chip { min-height: 36px; }
.warnbtn { background: #c2414b; color: #fff; border-color: transparent; }
.msgfirst { margin: auto 0; padding: 18px 10px; text-align: center; color: var(--fg2); }
.msgfirst p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.msgmore { margin: 4px 0; text-align: center; font-size: 12px; }
.msgfoot { flex: none; padding-top: 8px; border-top: 1px solid var(--line); }
.msgfoot.btns { display: flex; gap: 8px; }
.msgfoot.btns .btn { flex: 1; min-height: 44px; }
.msgin { display: flex; gap: 8px; align-items: flex-end; }
.msgin textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 104px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--card); color: var(--fg);
  font: inherit; font-size: 16px; line-height: 1.4; resize: none; }
.msgsend { flex: none; width: auto; min-height: 44px; margin: 0; padding: 0 18px; }
.msgcnt { display: block; margin-top: 2px; text-align: right; font-size: 11px; color: var(--sub); }
.msgcnt.over { color: var(--warn); font-weight: 700; }
.msgerr { margin: 0 0 6px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, var(--card)); color: var(--warn); font-size: 13px; line-height: 1.5; }
.msgerr.locked { background: var(--me); color: var(--fg2); }
.msgerr a { color: var(--accent); font-weight: 600; }
.msghint { margin: 0 0 6px; font-size: 12.5px; color: var(--warn); }
.msgrulecard { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 2px; }
.msgrulecard h3 { margin: 4px 0 8px; font-size: 17px; }
.msgrules { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.msgrules li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.msgrules li b { font-size: 14.5px; }
.msgrules li span { font-size: 12.5px; color: var(--fg2); }
.msglist { display: flex; flex-direction: column; gap: 6px; }
.msgthr { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.msgthr.un { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.msgtx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msgtop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.msgtop small { flex: none; font-size: 11px; }
.msgprev { font-size: 13px; color: var(--fg2); }
.msgthr.un .msgprev { color: var(--fg); font-weight: 600; }
.msgnews { margin-bottom: 10px; }
.msgnewsn { margin-left: 6px; color: #e5484d; font-size: 12px; }
.msgnewsp { display: block; }
/* v77：プロフィールの右上の ⋯（× の左）と、その下に出る操作の一覧（メッセージの ⋯ と同じ形） */
.sheet-more { position: absolute; top: 14px; right: 54px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--me); color: var(--fg2);
  font-size: 16px; letter-spacing: .05em; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.sheet-more::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.sheet-more[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.npcsheet:has(.sheet-more) > .row h2 { padding-right: 34px; }
.npcmenus { top: 54px; right: 14px; z-index: 4; }
.urepsheet textarea { width: 100%; }
.btn.warntxt { color: #c2414b; }
@media (prefers-color-scheme: dark) {
  .btn.warntxt { color: #ff8a92; }
  .msgmenus .warn { color: #ff8a92; }
  .warnbtn { background: #d6525b; }
  .msgun, .msgnewsn { background-color: #ff5f66; }
  .msgnewsn { background: none; color: #ff8a92; }
}
.msgbtn .msgbl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgchev { flex: none; font-size: 22px; line-height: 1; color: var(--accent); opacity: .8; }
.msgbtn:not(.locked) .msgic { font-size: 21px; }
.msgin textarea { overflow-y: hidden; }
.msgin textarea.scroll { overflow-y: auto; }
.msgrulecard h3 { color: var(--fg); }
/* v76 第2回：プロフィールの下のボタン（4 つ並ぶと 1 字ずつ折り返していた）。「近づかせる」は全幅、残りは 2 列。奇数の最後は全幅 */
.npcbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.npcbtns > * { margin-top: 14px; }
.npcbtns > .btn ~ .btn { margin-top: 0; }
.npcbtns > :first-child, .npcbtns > .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
.npcbtns > .btn { white-space: nowrap; min-width: 0; }
/* フォロー中の一覧の 💬・受け箱の「送れる相手」・プロフィールの「↗ あと1回で♥3」 */
.fwrow .fwmsg { flex: none; width: auto; margin-top: 0; padding: 6px 10px; font-size: 16px; }
.msgsub { margin: 14px 0 6px; font-size: 14px; color: var(--fg2); }
.msgstart { min-height: 54px; }
.msgstart .amore { flex: none; font-size: 22px; line-height: 1; color: var(--accent); }
.rc .rnw { font-size: 12px; }
/* メッセージ：日付の区切り・送れなかった文・押すと通報できる案内・見出しの顔と名前 */
.msgday { align-self: center; margin: 8px 0 2px; padding: 2px 10px; border-radius: 999px; background: var(--me); color: var(--sub); font-size: 11.5px; }
.mbtip { margin: 2px 6px 0; font-size: 11px; color: var(--sub); }
.msgunsent { margin: 0 0 6px; font-size: 12.5px; color: var(--warn); }
.msgwho { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fwrow .fwmsg .ic { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
/* v79：足りない値段も値段を出す（「1200コイン」の下に小さく「あと884」）。名前はカタカナの途中で折らない */
.btn.small.short[disabled] { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.15; padding-top: 4px; padding-bottom: 4px; flex: none; }
.btn.small.short .pbv { font-weight: 700; white-space: nowrap; }
.btn.small.short .pbl { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.itemrow:has(.wstar) b { word-break: keep-all; overflow-wrap: anywhere; }
button.chip.usechip:not(.locked) { cursor: pointer; font: inherit; font-size: 12px; }
button.chip.usechip:not(.locked)::after { content: ' ›'; color: var(--sub); }
/* v79：カードの見出しは 1 文字だけ折れない（右の数字のほうが折れる。たためるカードの見出しも） */
.row.head h3, .placedlist > summary h3 { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 1 0 auto; max-width: 100%; }
.row.head > .muted, .placedlist > summary > .muted { min-width: 0; flex: 0 1 auto; text-align: right; }
/* v79：家具の ☆ はレア度の札の横に（名前の行を広く・カタカナの途中で折れない） */
.furcard .itemrow .imeta { display: flex; align-items: center; gap: 4px; }
.furcard .itemrow .imeta .wstar { margin: -6px 0 -6px 2px; }
/* 町と旅の流れ（第2回）：隣の町の行・行き先で着いたらもらえるもの・押せる順位の行・町づくりのできること・スタンプ帳の次の目標 */
.nbrows { margin-top: 4px; }
.busyrow.nbrow { background: var(--bg2); }
.nbnew { color: var(--accent); font-weight: 700; }
.tgain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; padding: 8px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 8%, var(--card)); font-size: var(--fs-sub); line-height: 1.4; }
.tgain > b { font-size: var(--fs-cap); color: var(--fg2); margin-right: 2px; }
.tgain > span { white-space: nowrap; }
.tgain > span { padding: 1px 8px; border-radius: 999px; background: var(--card); }
.tgonote { margin: -6px 0 8px; }
.townitems .newtag { font-style: normal; font-size: 10px; font-weight: 800; padding: 0 4px; margin-left: 2px; border-radius: 4px; background: #e8590c; color: #fff; vertical-align: 1px; }
.peeknote { margin: 6px 0 0; font-size: var(--fs-cap); text-align: right; }
button.rankrow { width: 100%; border: 0; font: inherit; font-size: var(--fs-sub); color: var(--fg); text-align: left; cursor: pointer; }
.rankrow .lgsc { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rankrow .lgsc small { font-size: var(--fs-cap); }
.rankrow .rkgt { color: var(--sub); margin-left: -4px; }
.lgboostbox .lgbtowns { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; align-items: center; }
.lgbtown { border: 1px solid color-mix(in srgb, #e8590c 35%, transparent); background: var(--card); color: var(--fg); font: inherit; font-size: var(--fs-sub); font-weight: 600; padding: 4px 10px; min-height: 32px; border-radius: 999px; cursor: pointer; }
.tgsrank { cursor: pointer; border-radius: var(--r-sm); }
.tgsrank .tgsnote { color: var(--accent); }
.tgacts { margin: 0 0 12px; }
.tgtoday { margin: 0 0 8px; font-size: var(--fs-sub); }
.tgactbtns { flex-wrap: wrap; margin: 0; }
.tgactbtns .btn small { font-size: 11px; font-weight: 500; }
.tgprize { margin-top: 2px; }
.stampnext { margin: 2px 0 0; font-size: var(--fs-sub); }
.stampnext .muted { font-size: var(--fs-cap); }
button.stamp.stampgo { font: inherit; background: none; cursor: pointer; color: var(--sub); border-color: color-mix(in srgb, var(--sub) 45%, transparent); transform: none; }
button.stamp.stampgo span { opacity: .45; }
.card .btn.stampwide { margin-top: 12px; width: 100%; justify-content: center; }
.hero.slim .stats.inline { padding-left: 6px; } /* 旅先の「🏠世田谷区」と数のラベルがくっついて 1 語に読めない */
/* 第3回の直し（戻ってきたとき）：まだ聞いていない会話の印・報告の「聞く ›」・シートの下の今日の3つ */
/* 第1回の直し：「未再生」は状態の行の中（行を高くしない）。4 人以上なら人数の行に「● 未再生 6人 ›」とまとめ、各行は名前の横の点だけ */
.wrow .wnew { flex: none; font-size: 11px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 999px; padding: 0 6px; line-height: 16px; }
.wnewdot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.wrow .wnewdot { margin-left: 6px; align-self: center; }
.wcount .wnewsum { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--accent); gap: 5px; margin: 0 auto 0 8px; white-space: nowrap; }
.reportsheet .rtap .rgo { margin-left: 4px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.reportsheet .rlist small.muted { margin-left: 2px; }
.rgoal { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; padding: 8px 10px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; cursor: pointer; }
.rgoal .rgic { flex: none; }
.rgoal .grow span { white-space: nowrap; }
.rgoal .grow span.ok { color: var(--ok); }
.rgoal .rgcoin { flex: none; color: var(--fg2); font-weight: 600; white-space: nowrap; }
.nextsheet .nsdone { margin: 0; font-size: 14px; font-weight: 700; color: var(--ok); }
.nextsheet .nsdone small { margin-left: 4px; font-weight: 400; font-size: 12px; }
.goalbar.one.daily .gtxt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.35; }
.goalbar.one.daily .gtxt > span { margin-right: 2px; }
/* nightly 第2回：称号の名前は外枠で途中から切らない。幅の狭い画面（〜374px）では5文字以上の称号（ご近所さん・町の人気者）を絵とバーだけにする（名前は読み上げとシートに） */
@media (max-width: 374px) { .hero .heroarea .popmini.lg .pmn { display: none; } .hero .heroarea:not(.away) .popmini.lg .pmbar { display: inline-block; } }
/* nightly 第2回：ウォッチの「ユーザーの分身」の帯。名前が縮んでも横の札・ボタンにもぐり込まない。顔の輪がカードの左の枠にかからない */
.realstrip .rsitem { padding-left: 11px; }
.realstrip .rsmain { gap: 10px; }
.realstrip .rstxt { min-width: 0; }
.realstrip .rstxt b { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* nightly 第2回：「👥 2人 ●1」：オンラインの人数は緑の点と数（帯の行と数が食い違って見えないように、ピルの中だけに出す） */
.chip.realpill .mon { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; font-weight: 700; color: var(--ok, #10b981); }
.chip.realpill .mon i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
/* フォローの印（見出し・次の一歩の行） */
.fwic.fwh { margin: 0 6px 0 0; vertical-align: -4px; }
.nsrow .nsic .fwic.fwh { margin: 0; vertical-align: middle; }
/* nightly 第2回：日本語の改行。シート・知らせ・会話の吹き出しの文は文節で折り返し（「…入りま／す。」「電子レン／ジ」のように1文字だけの行や単語の途中で切れない）。入らない長い語だけは折り返す */
#sheet, #toast, .bubble, .mbb, #feed, .note { word-break: auto-phrase; text-wrap: pretty; overflow-wrap: break-word; }
.gitem small { word-break: keep-all; overflow-wrap: anywhere; } /* 「日南市の<wbr>絵はがき」：町の名前の後ろで折り返す */
/* 「✓ 今日の3つ そろいました」の次の行に「次の3つは0時から（あと20時間）」 */
.nextsheet .nsdone small { display: block; margin: 2px 0 0; }
/* nightly 第2回：通報の案内は入力欄の下の字数の行に（吹き出しの下には出さない） */
.msgcntrow { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.msgcntrow .mbtip { flex: 1; min-width: 0; margin: 0; }
.msgcntrow .msgcnt { margin: 0 0 0 auto; flex: none; }
/* nightly 第2回：枠の部分の絵は線のアイコン（タブバーと同じ）：ヘッダーのお知らせ・お知らせの行の会話・シートの見出し */
.hbell .ic, .lineic .ic, h2.ich > .ic, h3.ich > .ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hbell { padding: 6px; }
.hbell .ic { display: block; width: 22px; height: 22px; }
.hbell .hbdot { top: 0; right: -3px; }
.lineic { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.lineic .ic { width: 20px; height: 20px; }
.msgic.lineic .ic { width: 21px; height: 21px; }
h2.ich { display: flex; align-items: center; gap: 6px; }
h2.ich > .ic { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* v88：同じ分身を別のタブで開いたときの幕（このタブは止めている） */
#tabveil { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 15, 20, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#tabveil .tabveil-card { width: 100%; max-width: 340px; padding: 20px 18px 16px; border-radius: 16px; background: var(--card); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); text-align: center; }
#tabveil .tabveil-card b { display: block; font-size: 17px; }
#tabveil .tabveil-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--sub); }
/* ===== v91 飾り（着せ替え）：SSレア（虹）のレア度・枠・着せ替えの画面・名札・ほかの人の飾りのカード ===== */
@property --cosa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root { --rar4: #a855f7; --rar4-fg: #7b3fc4; }
@media (prefers-color-scheme: dark) { :root { --rar4: #c99bff; --rar4-fg: #dcbcff; } }
.r4 { --rc: var(--rar4); --rcf: var(--rar4-fg); --rt: 16%; --rb: 2px; --ra: 100%; --rglow: 0 0 14px 0 rgba(180,110,255,.45); }
/* SSレア：ラベルは虹色がゆっくり流れる（動きを減らす設定では止める） */
.pill.rar.r4 { color: var(--rar4-fg); font-weight: 700; background: linear-gradient(90deg, rgba(255,107,107,.22), rgba(255,195,113,.22), rgba(249,248,113,.22), rgba(110,231,168,.22), rgba(90,185,255,.22), rgba(167,139,250,.26), rgba(255,107,107,.22)); background-size: 200% 100%; box-shadow: inset 0 0 0 1px rgba(168,85,247,.45); animation: cosflow 6s linear infinite; }
@keyframes cosflow { to { background-position: 200% 0; } }
@keyframes cosspin { to { --cosa: 360deg; } }
/* 枠（円のふち）：avatar の内側にふちの色を敷き、絵を丸く切る（大きさごとにふちの太さ） */
.avatar.cosf { box-sizing: border-box; padding: 3px; background: var(--cfb, #c9ccd6); }
.avatar.cosf > svg, .avatar.cosf > img { border-radius: 50%; }
.avatar.cosf.xs { padding: 1.5px; } .avatar.cosf.sm { padding: 2px; } .avatar.cosf.md { padding: 3.5px; } .avatar.cosf.lg { padding: 5px; } .avatar.cosf.xl { padding: 6px; }
.cf-wood { --cfb: linear-gradient(135deg, #dcb48a, #8a6440); }
.cf-silver { --cfb: linear-gradient(135deg, #ffffff, #9aa3b0 45%, #e3e7ee 70%, #8a929e); }
.cf-mint { --cfb: linear-gradient(135deg, #a6ecc6, #2f9e6e); }
.cf-gold { --cfb: linear-gradient(135deg, #fff1b8, #e3b341 40%, #b8860b 65%, #ffe48f); }
.cf-medal { --cfb: conic-gradient(#f6cf62, #d0573f, #f6cf62, #d0573f, #f6cf62); }
.cf-weekly { --cfb: conic-gradient(#a8d8ff, #4f7ac9, #e3b341, #4f7ac9, #a8d8ff); }
.cf-sakura { --cfb: linear-gradient(135deg, #ffe3ec, #f28db2); }
.cf-rainbow { --cfb: conic-gradient(from var(--cosa), #ff5f6d, #ffc371, #f9f871, #6ee7a8, #5ab9ff, #a78bfa, #ff7ac6, #ff5f6d); animation: cosspin 5s linear infinite; }
.avatar.cf-rainbow:not(.sm):not(.xs) { filter: drop-shadow(0 0 4px rgba(180,110,255,.55)); }
@media (prefers-reduced-motion: reduce) { .cf-rainbow, .cntag.rb, .pill.rar.r4 { animation: none; } }
/* 着せ替え：場所のタブ（6 つ・1 行）・品のタイル（3 列）・試している物のカード・飾り屋 */
.cosslots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 6px 0 4px; }
.cosslot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 5px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--fg2); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.cosslot > span { font-size: 17px; line-height: 1.15; }
.cosslot.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cosdot { position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.ctile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 8px 4px 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; }
.ctile:is(.r0, .r1, .r2, .r3, .r4) { box-shadow: inset 0 0 0 var(--rb) color-mix(in srgb, var(--rc) var(--ra), transparent); border-color: transparent; background: color-mix(in srgb, var(--rc) calc(var(--rt) - 4%), var(--bg2)); }
.ctile.r4 { background: linear-gradient(160deg, rgba(255,107,107,.10), rgba(249,248,113,.10), rgba(90,185,255,.12), rgba(167,139,250,.16)), var(--bg2); }
.ctile.on { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.ctile.try { outline: 2px dashed var(--accent); outline-offset: 1px; }
.ctile .ctn { font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; overflow-wrap: anywhere; }
.ctile .ctm { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ctile .pill.rar { font-size: 10px; padding: 1px 6px; }
.cton { font-size: 10px; font-weight: 700; color: var(--accent); }
.ctlock { font-size: 11px; }
.ctown { position: absolute; top: 5px; right: 6px; z-index: 1; padding: 0 5px; border-radius: 999px; font-size: 10px; line-height: 16px; color: var(--fg2); background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: var(--shadow-xs); }
.cprev { display: grid; place-items: center; width: 64px; height: 64px; }
.ctile.lock .cprev { filter: none; opacity: 1; } /* v179：まだ持っていない物も色のまま見せる（🔒 の印だけ） */
.cprev.cmo { font-size: 32px; border-radius: 50%; background: color-mix(in srgb, var(--rc, #888) 16%, var(--card)); }
/* v105：雪・紅葉の見本は、中でも粒が降る（白い粒に暗い縁どり。動きを減らす設定では止まった粒が見える） */
.cprev.cmofall { position: relative; overflow: hidden; }
.cmofx { position: absolute; inset: 0; pointer-events: none; font-style: normal; }
.cmofx b { position: absolute; top: 22%; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 55%, #dbe9ff); box-shadow: 0 0 0 1px rgba(50, 80, 130, .45), 0 1px 3px rgba(20, 40, 80, .3); animation: cmofall 2.6s linear infinite; }
.cmofall.leaf .cmofx b { border-radius: 0 100% 0 100%; background: #e2572b; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.cmofall.leaf .cmofx b:nth-child(2n) { background: #f0a030; }
.cmofx b:nth-child(1) { left: 22%; animation-delay: -.3s; } .cmofx b:nth-child(2) { left: 64%; top: 14%; width: 7px; height: 7px; animation-delay: -1.2s; }
.cmofx b:nth-child(3) { left: 40%; top: 46%; width: 6px; height: 6px; animation-delay: -1.9s; } .cmofx b:nth-child(4) { left: 72%; top: 40%; animation-delay: -.8s; }
@keyframes cmofall { 0% { transform: translate(0, -16px) rotate(0); opacity: 0; } 15%, 80% { opacity: 1; } 50% { transform: translate(4px, 4px) rotate(80deg); } 100% { transform: translate(-2px, 22px) rotate(160deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmofx b { animation: none; } }
/* v110：色のある動き（セットの look.c）・新しい動き（ハート・紙ふぶき）の小さな見本。--m1〜--m3 の色の粒 */
.cmofall.cust .cmofx b { background: var(--m1); box-shadow: 0 0 0 1px rgba(40, 30, 70, .3), 0 1px 2px rgba(0, 0, 0, .2); }
.cmofall.cust .cmofx b:nth-child(2n) { background: var(--m2); } .cmofall.cust .cmofx b:nth-child(3) { background: var(--m3); }
.cmofall.cust.k-petal .cmofx b { border-radius: 60% 0 60% 0; } .cmofall.cust.k-leaf .cmofx b { border-radius: 0 100% 0 100%; }
.cmofall.cust.k-confetti .cmofx b { width: 7px; height: 4px; border-radius: 1px; }
.cmofall.cust.k-heart .cmofx b, .cmofall.cust.k-notes .cmofx b, .cmofall.cust.k-coffee .cmofx b { width: auto; height: auto; background: none; box-shadow: none; font-size: 12px; line-height: 1; font-weight: 700; color: var(--m1); text-shadow: 0 0 1px rgba(40, 30, 70, .6); top: 60%; animation-name: cmorise; }
.cmofall.cust.k-heart .cmofx b:nth-child(2n), .cmofall.cust.k-notes .cmofx b:nth-child(2n), .cmofall.cust.k-coffee .cmofx b:nth-child(2n) { color: var(--m2); } .cmofall.cust.k-heart .cmofx b:nth-child(3), .cmofall.cust.k-notes .cmofx b:nth-child(3), .cmofall.cust.k-coffee .cmofx b:nth-child(3) { color: var(--m3); }
.cmofall.cust.k-heart .cmofx b::before { content: "♥"; } .cmofall.cust.k-notes .cmofx b::before { content: "♪"; } .cmofall.cust.k-coffee .cmofx b::before { content: "〜"; }
@keyframes cmorise { 0% { transform: translateY(8px); opacity: 0; } 20%, 70% { opacity: 1; } 100% { transform: translateY(-22px); opacity: 0; } }
html.nomotion .cmofall.cust .cmofx b { animation: none; }
.cprev.cnt { width: 100%; height: 64px; }
.cntag { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; overflow: hidden; padding: 3px 9px; border-radius: 999px; background: var(--ntc, #0f9f6e); color: #fff; font-weight: 700; font-size: 12px; line-height: 1.3; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.cntag.sm { font-size: 11px; padding: 1px 7px; }
.cntag.rb { background: linear-gradient(90deg, #d94f6a, #d9822b, #b9a019, #2f9e6e, #2f7fd0, #7d55d6, #d94f6a); background-size: 200% 100%; animation: cosflow 6s linear infinite; }
.costry { margin: 8px 0 4px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--rc, #888) 10%, var(--bg2)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc, #888) 55%, transparent); }
.costry .ctwhy { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
.costry .ctcount, .costry .ctlimp { font-size: 12px; margin: 2px 0 0; }
.ctic { font-size: 26px; line-height: 1; flex: none; }
.cosshopic { padding: 0; border: 0; background: none; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.itemrow .cosshopic { width: 48px; height: 48px; }
.cosshopic .cprev { width: 46px; height: 46px; } .cosshopic .avatar.md { width: 46px; height: 46px; } .cosshopic .cprev.cmo { font-size: 24px; } .cosshopic .cntag { font-size: 9px; padding: 2px 5px; }
.popcos .pill.rar { margin: 2px 1px; }
/* ほかの人のプロフィール：分身を押すと飾りのカード */
.cosav { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; color: inherit; }
.cosavhint { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 24px; height: 24px; font-size: 13px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-xs); }
.coswhy { margin: 10px 0 0; padding: 8px 10px 10px; border-radius: 14px; background: var(--bg); }
.coswhy .cwh { display: block; font-size: 13px; margin-bottom: 2px; }
.cwrow { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0 2px; border-top: 1px solid var(--line); }
.cwrow p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; }
/* v91：会話中の「話を切り上げる」 */
.livecut { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.livecut .cutbtn { min-height: 40px; padding: 6px 12px; color: var(--fg2); }
/* ===== v93 幻の品：虹の縁（持ち物・カード・部屋・棚）・お祝い・図鑑・自慢の棚 ===== */
:root { --lgin: color-mix(in srgb, #f6ecff 70%, var(--bg2)); --lgrb: #ff5f6d, #ffc371, #f9f871, #6ee7a8, #5ab9ff, #a78bfa, #ff7ac6, #ff5f6d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lgin: color-mix(in srgb, #3a2858 65%, var(--bg2)); } }
:root[data-theme="dark"] { --lgin: color-mix(in srgb, #3a2858 65%, var(--bg2)); }
.itemrow.r4 .iic { display: grid; place-items: center; width: 36px; height: 36px; font-size: 22px; line-height: 1; border-radius: 11px; box-sizing: border-box; }
:is(.itemrow.r4 .iic, .icbig.r4, .tile.r4, .rcell.on.r4, .chip.r4, .lgshelfit.r4, .gitem.r4, .rico.r4, .exitem.r4) {
  border: 2px solid transparent;
  background: linear-gradient(var(--lgin), var(--lgin)) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box;
  box-shadow: 0 0 12px -2px rgba(180, 110, 255, .55);
}
/* 回る虹の縁は、1 つずつ開く品のカードだけ。持ち物の一覧・チップ・棚は止まった虹（幻の品が何十個並んでも毎フレーム描き直さない） */
.icbig.r4 { animation: cosspin 6s linear infinite; }
.chip.r4 { color: var(--fg); }
.itemrow .pill.rar.r4, .lgshelfit .pill.rar.r4 { animation: none; } /* 一覧・棚の「幻」の札も止める（流れる虹は 1 つずつのカードとお祝いだけ） */
.chip.r4.on { box-shadow: 0 0 0 2px var(--accent), 0 0 12px -2px rgba(180, 110, 255, .55); }
.itemcard .icbig.r4 { border-width: 3px; box-shadow: 0 0 22px 0 rgba(180, 110, 255, .55); }
.itemrow.r4 b { background: linear-gradient(90deg, #d0459b, #c7742a, #2f9e6e, #2f7fd0, #7d55d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .itemrow.r4 b { background-image: linear-gradient(90deg, #ff9ad5, #ffd08a, #9ff0c4, #9cd0ff, #d0b5ff); } }
:root[data-theme="dark"] .itemrow.r4 b { background-image: linear-gradient(90deg, #ff9ad5, #ffd08a, #9ff0c4, #9cd0ff, #d0b5ff); }
@media (prefers-reduced-motion: reduce) { .icbig.r4 { animation: none; } }
/* お祝い（全画面）：虹の光が回り、品が浮かぶ（動きを減らす設定では止まった虹） */
.lgfx { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(60, 30, 100, .55), rgba(8, 8, 22, .86)); }
.lgrays { position: absolute; left: 50%; top: 42%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 95, 109, .22) 0 5deg, transparent 5deg 15deg, rgba(249, 248, 113, .2) 15deg 20deg, transparent 20deg 30deg, rgba(90, 185, 255, .22) 30deg 35deg, transparent 35deg 45deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 10%, transparent 30%); mask: radial-gradient(circle, #000 0, #000 10%, transparent 30%); animation: lgspin 26s linear infinite; will-change: transform; }
.lgglow { position: absolute; left: 50%; top: 42%; width: 120vmin; height: 120vmin; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 230, 150, .35), rgba(200, 120, 255, .18) 40%, transparent 68%); }
@keyframes lgspin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes lgpop { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lgbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.lgcard { position: relative; box-sizing: border-box; width: 100%; max-width: 340px; max-height: calc(100dvh - 32px); overflow: auto; padding: 20px 18px 16px; border-radius: 22px; text-align: center; color: var(--fg);
  border: 3px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box;
  box-shadow: 0 0 44px rgba(190, 120, 255, .6), 0 18px 40px rgba(0, 0, 0, .35); animation: cosspin 6s linear infinite, lgpop .45s ease-out; }
.lgkick { margin: 0; font-size: 13.5px; font-weight: 800; letter-spacing: .06em; color: var(--rar4-fg); }
.lgic { font-size: 76px; line-height: 1.12; margin: 8px 0 2px; filter: drop-shadow(0 0 14px rgba(255, 215, 120, .85)); animation: lgbob 2.6s ease-in-out infinite; }
.lgname { margin: 2px 0 6px; font-size: 22px; line-height: 1.3; }
.lgmeta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; }
.lgpref { font-weight: 700; }
.lgn { color: var(--sub); }
.lglore { margin: 0 0 8px; font-size: 14.5px; line-height: 1.65; }
.lgcos { margin: 0 0 8px; font-size: 13px; }
.lgnote { margin: 0 0 12px; font-size: 12px; line-height: 1.55; color: var(--sub); }
.lgcard .btns { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .lgrays, .lgcard, .lgic { animation: none; } }
html.nomotion .lgrays, html.nomotion .lgcard, html.nomotion .lgic { animation: none; }
/* 品のカード（幻の品） */
.lgitemcard .lglore { font-size: 14px; line-height: 1.65; margin: 10px 0 6px; }
.pill.lgcount { background: color-mix(in srgb, var(--rar4) 14%, transparent); color: var(--rar4-fg); font-weight: 700; }
.lgkeep { margin: 10px 0 0; }
/* 図鑑：地方ごとの行に 47 の影（見つけた県だけ色がつく） */
.lgbook { display: flex; flex-direction: column; }
.lgrow { padding: 6px 0 7px; border-top: 1px solid var(--line); }
.lgrow:first-child { border-top: 0; }
.lggn { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.lggn small { font-size: 11px; font-weight: 600; color: var(--sub); }
.lgrow.done .lggn small { color: var(--rar4-fg); }
.lgcells { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; } /* いちばん多い中部（9 県）が 1 行に入る */
.lgcell { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 9px; background: color-mix(in srgb, var(--fg) 6%, transparent); color: inherit; font: inherit; }
.lgcell > span { font-size: 18px; line-height: 1.05; }
.lgcell small { font-size: 9px; line-height: 1; margin-top: 2px; color: var(--sub); white-space: nowrap; letter-spacing: -.04em; max-width: 100%; overflow: hidden; }
.lgcell:not(.on) > span { filter: grayscale(1) brightness(0); opacity: .16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lgcell:not(.on) > span { filter: grayscale(1) brightness(0) invert(1); opacity: .22; } }
:root[data-theme="dark"] .lgcell:not(.on) > span { filter: grayscale(1) brightness(0) invert(1); opacity: .22; }
.lgcell.on { background: linear-gradient(150deg, rgba(255, 107, 107, .16), rgba(249, 248, 113, .16), rgba(90, 185, 255, .18), rgba(167, 139, 250, .22)), var(--bg2); box-shadow: inset 0 0 0 1.5px rgba(168, 85, 247, .5); }
button.lgcell { cursor: pointer; }
.lgbook.sm .lgcell { height: 34px; } .lgbook.sm .lgcell > span { font-size: 15px; } .lgbook.sm .lgcell small { font-size: 8.5px; }
.lgcardme .lgcnt b { font-size: 18px; color: var(--rar4-fg); }
.lgshelfhead { margin-top: 12px; }
/* 自慢の棚：3 列（幻の品は虹の縁、ふつうの品はレアの色と「持ち主が選んだ品」） */
.lgshelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
.lgshelfit { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--rc, #888) 10%, var(--bg2)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc, #888) 55%, transparent); }
.lgshelfit .lgsic { font-size: 28px; line-height: 1.1; }
.lgshelfit b { font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lgshelfit small { font-size: 10.5px; color: var(--sub); line-height: 1.2; }
.lgshelfit .pill { font-size: 10px; padding: 1px 6px; }
.lgedit { margin-top: 8px; }
.lgedit .chips { margin: 4px 0 8px; }
/* ほかの人のプロフィール */
.lgprof { margin: 12px 0 0; padding: 8px 10px 10px; border-radius: 14px; background: var(--bg); }
.lgprof .lgnone { margin: 0; font-size: 13px; }
.lgbookd > summary { cursor: pointer; font-size: 13px; padding: 4px 0; }
.lgbookd > summary b { color: var(--rar4-fg); }
.arow .lgaic { font-size: 18px; }
/* ===== v94：Sレア（金）を濃く・どこでも同じ金に。SSレア（虹）はその上に見える ===== */
/* Sレアの札：金の板に濃い茶の字（明るい・暗い配色とも同じ。字のコントラストは板のいちばん濃い所でも 6.4 以上） */
.pill.rar.r3 { background: linear-gradient(135deg, #fff3c4, #f7d76a 45%, #e8b923); color: #4a3300; box-shadow: inset 0 0 0 1px #b8860b, 0 0 6px rgba(212, 165, 20, .5); text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
/* Sレアの塗り：濃い金→明るい金→濃い金の 3 段＋濃い金の縁＋金の光。持ち物・品のカード・お店・福引き・贈る・展示棚・図鑑・部屋のトレイ・
   自慢の棚・着せ替えのタイル・試している物のカード・ほかの人の飾りで同じ（前は自慢の棚・着せ替えが 10% の淡い塗りだった）。
   塗りの上の小さな文字（--sub）は金に合う濃い色に（明るい 5.9 以上・暗い 5.4 以上） */
.r3 { --rglow: 0 0 14px 1px color-mix(in srgb, var(--rar3) 70%, transparent); --r3a: 46%; --r3b: 72%; --r3c: 32%; }
@media (prefers-color-scheme: dark) { .r3 { --r3a: 34%; --r3b: 20%; --r3c: 24%; --rglow: 0 0 16px 1px color-mix(in srgb, var(--rar3) 55%, transparent); } }
.itemrow.r3 .iic,
:is(.icbig, .kpic, .tile, .rcell.on, .kzs.on, .rico, .swapit, .exitem, .gmrow, .zitem.have, .fukures, .chip, .gitem, .lgshelfit, .ctile, .costry).r3 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--rar3) var(--r3a), var(--bg2)), color-mix(in srgb, var(--rar3-hi) var(--r3b), var(--bg2)) 50%, color-mix(in srgb, var(--rar3) var(--r3c), var(--bg2)));
  box-shadow: inset 0 0 0 2px var(--rar3-deep), inset 0 0 0 3px color-mix(in srgb, var(--rar3-hi) 45%, transparent), var(--rglow);
  --sub: var(--rar3-sub); --fg2: var(--rar3-sub);
}
:is(.lgshelfit, .ctile, .costry).r3 { border-color: transparent; }
.itemcard .icbig.r3 { box-shadow: inset 0 0 0 3px var(--rar3-deep), inset 0 0 0 4.5px color-mix(in srgb, var(--rar3-hi) 55%, transparent), 0 0 22px 2px color-mix(in srgb, var(--rar3) 60%, transparent); }
.tile.hand.r3 { box-shadow: inset 0 0 0 2px var(--accent), var(--rglow); }
.chip.r3.on { box-shadow: 0 0 0 2px var(--accent), inset 0 0 0 2px var(--rar3-deep), var(--rglow); }
.ctile.r3.on, .ctile.r3.try { box-shadow: inset 0 0 0 2px var(--rar3-deep), var(--rglow); }
/* ほかの人の飾りのカード：Sレアの行は絵文字に金の丸 */
.cwrow.r3 .ctic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--rar3) var(--r3a), var(--bg2)), color-mix(in srgb, var(--rar3-hi) var(--r3b), var(--bg2))); box-shadow: inset 0 0 0 2px var(--rar3-deep), var(--rglow); }
/* ✦ は濃い金（白い地でも見える） */
.itemrow.r3 .iic::after, :is(.icbig, .kpic, .tile, .rcell.on, .kzs.on).r3::after, .giftlist .gitem.r3::before { color: var(--rar3-spark); text-shadow: 0 0 4px color-mix(in srgb, var(--rar3-hi) 90%, transparent); }
/* 拾ったトースト：金の 2 重のふちと光 */
.toast.pickrare.pr3, .sheettoast.pickrare.pr3 { box-shadow: 0 0 0 2px var(--rar3), 0 0 0 3px var(--rar3-deep), 0 0 20px color-mix(in srgb, var(--rar3) 65%, transparent), 0 8px 24px rgba(20, 23, 32, .22); }
/* SSレアの札：はっきりした虹の板に濃い紫の字（明るい・暗い配色とも同じ。字のコントラスト 8 以上）。虹はゆっくり流れ、紫の光。
   流れるのは札だけ（小さいので一覧でも流す）。動きを減らす設定・アプリの「動きを減らす」では止まった虹 */
.pill.rar.r4, .itemrow .pill.rar.r4, .lgshelfit .pill.rar.r4 { color: #3b1670; font-weight: 800; background: linear-gradient(90deg, #ffb3b3, #ffd59a, #fff59a, #b5f5cf, #a9d8ff, #d4c2ff, #ffb3c8, #ffb3b3); background-size: 200% 100%; box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .55), 0 0 8px rgba(180, 110, 255, .55); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); animation: cosflow 5s linear infinite; }
html.nomotion .pill.rar.r4 { animation: none; }
@media (prefers-reduced-motion: reduce) { .pill.rar.r4, .itemrow .pill.rar.r4, .lgshelfit .pill.rar.r4 { animation: none; } }
/* 着せ替えのタイル（SSレア）：虹の縁（ほかの SSレアと同じ） */
.ctile.r4 { border: 2px solid transparent; background: linear-gradient(var(--lgin), var(--lgin)) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box; box-shadow: 0 0 12px -2px rgba(180, 110, 255, .55); }
.ctile.r4.on { box-shadow: 0 0 12px -2px rgba(180, 110, 255, .55); }
.costry.r4 { border: 2px solid transparent; background: linear-gradient(var(--lgin), var(--lgin)) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box; box-shadow: 0 0 14px -2px rgba(180, 110, 255, .5); }
/* はじめの目標のごほうび（木の枠・青空） */
.firstgoalcard .fgcos { margin: -4px 0 10px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--fg); }
/* v95 手に入れ方のこよみ（着せ替え）：今週・今月のランキングのごほうびと進み具合、季節・行事 */
.rwcal .rwsec { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 12px 0 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.rwcal .rwsec:first-of-type { border-top: 0; padding-top: 0; }
.rwcal .rwsec .muted { font-size: 12px; }
.rwrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0 4px; min-width: 0; }
.rwrow .grow { min-width: 0; }
.rwic { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer; background: var(--bg2); }
.rwic .cprev { width: 46px; height: 46px; } .rwic .avatar.md { width: 42px; height: 42px; } .rwic .cprev.cmo { font-size: 24px; } .rwic .cprev.cnt { width: 46px; } .rwic .cntag { font-size: 9px; padding: 2px 5px; }
.rwname { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; line-height: 1.35; }
.rwown { font-size: 11.5px; font-weight: 700; color: var(--ok, #1f8a5b); }
.rwrule { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--sub); overflow-wrap: anywhere; }
.rwprog { display: block; margin-top: 4px; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700; line-height: 1.4; background: color-mix(in srgb, var(--accent) 10%, var(--bg2)); color: var(--fg); overflow-wrap: anywhere; }
.rwprog.ok { background: color-mix(in srgb, #2f9e6e 16%, var(--bg2)); }
.rwlast { display: block; margin-top: 2px; font-size: 11.5px; }
.rwwhyn { margin: 6px 0 0; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; background: var(--bg2); color: var(--sub); }
/* プロフィール：期間と賞の名前（「🏆 2026年11月の県代表」） */
.rwprof { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; }
.rwaw { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.rwaw.r3 { background: linear-gradient(135deg, #fff3c4, #f7d76a 45%, #e8b923); color: #4a3300; box-shadow: inset 0 0 0 1px #b8860b; }
.rwaw.r4 { color: #3b1670; background: linear-gradient(90deg, #ffb3b3, #ffd59a, #fff59a, #b5f5cf, #a9d8ff, #d4c2ff); box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .55); }
.rwgot { margin: 3px 0 0 !important; font-size: 12px !important; font-weight: 700; color: var(--fg); }
/* お祝いのカード：Sレアは金の縁と金の光、レアは青い縁（SSレアは幻の品と同じ虹） */
.rwfx.r3 .lgrays { background: repeating-conic-gradient(from 0deg, rgba(255, 214, 102, .26) 0 6deg, transparent 6deg 18deg); }
.rwfx.r3 .lgglow { background: radial-gradient(circle, rgba(255, 220, 120, .42), rgba(212, 165, 20, .16) 42%, transparent 68%); }
.rwfx:is(.r0, .r1, .r2) .lgrays { background: repeating-conic-gradient(from 0deg, rgba(150, 200, 255, .2) 0 6deg, transparent 6deg 18deg); }
.rwfx:is(.r0, .r1, .r2) .lgglow { background: radial-gradient(circle, rgba(170, 210, 255, .32), transparent 66%); }
.rwcard.r3 { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #ffe58a, #b8860b 30%, #f7d76a 55%, #a87b00 80%, #ffe58a) border-box; box-shadow: 0 0 40px rgba(240, 190, 60, .55), 0 18px 40px rgba(0, 0, 0, .35); animation: lgpop .45s ease-out; }
.rwcard:is(.r0, .r1, .r2) { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #a9d8ff, #4f7ac9) border-box; box-shadow: 0 0 30px rgba(120, 170, 255, .45), 0 18px 40px rgba(0, 0, 0, .35); animation: lgpop .45s ease-out; }
.rwcard.r3 .lgkick { color: var(--rar3-fg); }
.rwcard:is(.r0, .r1, .r2) .lgkick { color: var(--accent); }
.rwper { margin: 4px 0 0; font-size: 18px; font-weight: 800; line-height: 1.35; text-wrap: balance; }
.rwav { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 10px auto 4px; }
.rwav .avatar.lg { width: 112px; height: 112px; }
.rwmo { position: absolute; right: calc(50% - 74px); top: 0; font-size: 28px; filter: drop-shadow(0 0 6px rgba(255, 200, 120, .8)); }
.rwwhy { margin: 0 0 8px; font-size: 14px; line-height: 1.6; font-weight: 700; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .rwcard { animation: none !important; } }
html.nomotion .rwcard { animation: none !important; }

/* ===== v98：お祝いの演出（celebrate）=====
   全画面（#cfx）：暗い背景に色の光の筋がひと回りして止まり、紙吹雪が 1 回はじける（約 1.5 秒）。まん中のカードに手に入れた物を大きく。
   色は 3 つ（gold：部屋・称号／violet：遊びが増えた／sky：町）。動きを減らす設定（OS・?motion=off）では .still（光も紙吹雪も数え上げも止める） */
.cfx { --fx1: #ffb020; --fx2: #ffd23f; --fx3: #ff7a59; --fxk: #8a5600; --fxsoft: #fff4d6;
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--fx1) 34%, rgba(20, 16, 40, .62)), rgba(8, 9, 22, .86) 70%); animation: cfxfade .25s ease-out; }
.cfx.t-violet { --fx1: #a78bfa; --fx2: #ff7ac6; --fx3: #5ab9ff; --fxk: #5b2fc2; --fxsoft: #f1eaff; }
.cfx.t-sky { --fx1: #38bdf8; --fx2: #6ee7a8; --fx3: #ffd23f; --fxk: #075f94; --fxsoft: #e2f5ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cfx { --fxk: #ffd27a; --fxsoft: #3a2f16; } :root:not([data-theme="light"]) .cfx.t-violet { --fxk: #cdb8ff; --fxsoft: #2c2347; } :root:not([data-theme="light"]) .cfx.t-sky { --fxk: #8fd6ff; --fxsoft: #14334a; } }
:root[data-theme="dark"] .cfx { --fxk: #ffd27a; --fxsoft: #3a2f16; } :root[data-theme="dark"] .cfx.t-violet { --fxk: #cdb8ff; --fxsoft: #2c2347; } :root[data-theme="dark"] .cfx.t-sky { --fxk: #8fd6ff; --fxsoft: #14334a; }
.cfxrays { position: absolute; left: 50%; top: 40%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%) rotate(14deg); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--fx2) 34%, transparent) 0 6deg, transparent 6deg 15deg, color-mix(in srgb, var(--fx1) 26%, transparent) 15deg 20deg, transparent 20deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 9%, transparent 28%); mask: radial-gradient(circle, #000 0, #000 9%, transparent 28%); animation: cfxrays 2.2s cubic-bezier(.2, .7, .2, 1) both; }
.cfxglow { position: absolute; left: 50%; top: 40%; width: 110vmin; height: 110vmin; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--fx2) 48%, transparent), color-mix(in srgb, var(--fx1) 18%, transparent) 40%, transparent 68%); animation: cfxglow 1.6s ease-out both; }
@keyframes cfxfade { from { opacity: 0; } }
@keyframes cfxrays { from { transform: translate(-50%, -50%) rotate(-50deg) scale(.5); opacity: 0; } to { transform: translate(-50%, -50%) rotate(14deg) scale(1); opacity: 1; } }
@keyframes cfxglow { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 45% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes cfxpop { 0% { transform: scale(.7) translateY(24px); opacity: 0; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: none; } }
.cfxcard { position: relative; z-index: 1; box-sizing: border-box; width: 100%; max-width: 340px; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 20px 18px 12px; border-radius: 24px; text-align: center; color: var(--fg);
  border: 3px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--fx2), var(--fx1) 45%, var(--fx3) 75%, var(--fx2)) border-box;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 48px color-mix(in srgb, var(--fx1) 60%, transparent), 0 20px 44px rgba(0, 0, 0, .4); animation: cfxpop .55s cubic-bezier(.2, 1.3, .4, 1) both; scrollbar-width: thin; }
.cfxkick { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--fxk); }
.cfxhero { position: relative; display: flex; flex-direction: column; align-items: center; margin: 12px 0 8px; }
.cfxtile { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; font-size: 60px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--fxsoft) 45%, color-mix(in srgb, var(--fx1) 40%, var(--fxsoft)) 100%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fx1) 70%, transparent), 0 0 0 6px color-mix(in srgb, var(--fx2) 22%, transparent), 0 0 34px color-mix(in srgb, var(--fx1) 65%, transparent);
  animation: cfxbounce .8s .12s cubic-bezier(.2, 1.5, .4, 1) both; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cfxtile { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fx2) 40%, var(--fxsoft)) 0, var(--fxsoft) 60%); } }
:root[data-theme="dark"] .cfxtile { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fx2) 40%, var(--fxsoft)) 0, var(--fxsoft) 60%); }
.cfxic { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18)); }
.cfxnew { position: absolute; right: -16px; top: -10px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 900; letter-spacing: .08em; color: #fff;
  background: linear-gradient(135deg, #ff4f7b, #ff7a3d); box-shadow: 0 0 0 2px var(--card), 0 4px 12px rgba(255, 79, 123, .55); transform: rotate(10deg); animation: cfxtag .45s .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes cfxbounce { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 55% { transform: scale(1.14) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes cfxtag { from { transform: rotate(10deg) scale(0); } to { transform: rotate(10deg) scale(1); } }
.cfxspark { position: absolute; font-style: normal; color: var(--fx2); text-shadow: 0 0 8px var(--fx1); pointer-events: none; opacity: 0; animation: cfxtw 1.1s ease-in-out 2 both; }
.cfxspark.s1 { left: calc(50% - 86px); top: 6px; font-size: 20px; animation-delay: .35s; }
.cfxspark.s2 { left: calc(50% + 70px); top: 54px; font-size: 16px; animation-delay: .6s; }
.cfxspark.s3 { left: calc(50% - 74px); top: 74px; font-size: 14px; animation-delay: .85s; }
@keyframes cfxtw { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(30deg); } }
.cfxh { margin: 6px 0 4px; font-size: 22px; font-weight: 800; line-height: 1.32; text-wrap: balance; }
.cfxsub { margin: 0 0 4px; font-size: 14px; line-height: 1.6; text-wrap: balance; }
.cfxsub b { color: var(--fxk); font-size: 15px; }
.cfxsub small { font-size: 12px; color: var(--sub); }
.cfxnote { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--sub); text-wrap: balance; }
.cfxbtns { display: flex; gap: 8px; margin-top: 16px; }
.cfxbtns .btn { flex: 1 1 0; width: auto; min-width: 0; margin-top: 0; padding: 12px 10px; white-space: nowrap; }
.cfxbtns .btn.ghost { flex: 0 0 auto; padding: 12px 16px; }
.cfxbtns .btn.cfxgo { flex: 1 1 auto; }
.cfxbtns.one .btn { flex: 1 1 auto; }
.cfxgo { font-weight: 800; }
.cfxtap { margin: 8px 0 0; font-size: 11px; color: var(--sub); opacity: .8; }
/* 部屋を広げた：前と後の間取り（上の帯は壁・下は床の台）。広げた分の台が光って順に出る */
.cfxroom { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.cfxplan { display: inline-flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.cfxwall { height: 12px; background: linear-gradient(#f3e6cf, #e2cfae); border-bottom: 2px solid #b98e5c; }
.cfxfloor { display: grid; grid-template-columns: repeat(var(--cols), 11px); gap: 3px; padding: 5px; background: repeating-linear-gradient(90deg, #c99a66 0 13px, #bd8d59 13px 14px); }
.cfxfloor i { width: 11px; height: 11px; border-radius: 2.5px; background: rgba(255, 255, 255, .42); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
.cfxplan.before { opacity: .75; transform: scale(.9); transform-origin: bottom center; }
.cfxfloor i.nw { background: #ffe066; box-shadow: 0 0 6px 1px rgba(255, 210, 60, .9), inset 0 -1px 0 rgba(160, 110, 0, .3); animation: cfxcell .45s calc(.55s + var(--i) * .16s) cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes cfxcell { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.cfxarrow { align-self: center; font-size: 20px; color: var(--fxk); margin-top: 10px; }
.cfxcount { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.cfxcount small { font-size: 12.5px; font-weight: 700; color: var(--sub); }
.cfxfrom { font-size: 18px; font-weight: 700; color: var(--sub); }
.cfxto { font-size: 16px; color: var(--sub); }
.cfxnum { font-size: 44px; font-weight: 900; line-height: 1; color: var(--fxk); text-shadow: 0 2px 0 color-mix(in srgb, var(--fx2) 50%, transparent); }
.cfxnum.done { animation: cfxthump .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cfxthump { 40% { transform: scale(1.22); } }
.cfxplus { align-self: center; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #22b26b, #1a9a5a); box-shadow: 0 2px 8px rgba(34, 178, 107, .4); }
/* 町のレベル：建った物＋「Lv2 ➜ Lv3」 */
.cfxlv { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.cfxlv span { font-size: 16px; font-weight: 700; color: var(--sub); }
.cfxlv i { font-style: normal; font-size: 15px; color: var(--sub); }
.cfxlv .cfxnum { font-size: 34px; }
/* 遊びが増えた：増えた物の一覧（それぞれ NEW） */
.cfxfeats { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.cfxfeats li { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 7px 10px; border-radius: 12px; background: color-mix(in srgb, var(--fx1) 10%, var(--bg2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx1) 28%, transparent); animation: cfxrow .4s cubic-bezier(.2, 1.2, .4, 1) both; }
.cfxfeats li:nth-child(1) { animation-delay: .5s; } .cfxfeats li:nth-child(2) { animation-delay: .62s; } .cfxfeats li:nth-child(3) { animation-delay: .74s; } .cfxfeats li:nth-child(4) { animation-delay: .86s; } .cfxfeats li:nth-child(5) { animation-delay: .98s; }
@keyframes cfxrow { from { transform: translateX(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.cfxfeats .fic { flex: none; font-size: 24px; line-height: 1; }
.cfxfeats .grow { min-width: 0; }
.cfxfeats b { display: block; font-size: 14px; line-height: 1.3; }
.cfxfeats small { display: block; font-size: 11.5px; line-height: 1.45; color: var(--sub); overflow-wrap: anywhere; }
.cfxtag { flex: none; padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #ff4f7b, #ff7a3d); }
.unlockfx .cfxtile { width: 92px; height: 92px; font-size: 52px; }

.cfxcard:has(.cfxfeats) .cfxtile { width: 76px; height: 76px; font-size: 42px; border-radius: 22px; } .cfxcard:has(.cfxfeats) .cfxhero { margin: 10px 0 4px; } .cfxcard:has(.cfxfeats) .cfxtap { display: none; }
.popupcard .popcos .pill { font-size: 11.5px; }
/* 紙吹雪（DOM の小片。1 回飛んで消える） */
.cfxbits { position: fixed; width: 0; height: 0; z-index: 2; pointer-events: none; }
.cfxbits i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); animation: cfxbit var(--du) cubic-bezier(.12, .7, .3, 1) var(--dl) both; }
.cfxbits i.st { width: 4px; height: 12px; }
.cfxbits i.ci { border-radius: 50%; width: 7px; height: 7px; }
.cfxring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--fx2, #ffd23f); animation: cfxring .8s ease-out both; }
@keyframes cfxbit { 0% { transform: translate(0, 0) rotate(0) scale(.5); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rt)) scale(1); opacity: 0; } }
@keyframes cfxring { from { transform: scale(.4); opacity: .9; } to { transform: scale(7); opacity: 0; } }
.cfx.still, .cfx.still *, html.nomotion .cfx, html.nomotion .cfx * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .cfx, .cfx * { animation: none !important; } }
.cfx.still .cfxspark, html.nomotion .cfxspark { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .cfxspark { opacity: .9; } }
@media (max-width: 370px) { .cfxcard { padding: 18px 14px 10px; } .cfxh { font-size: 20px; } .cfxtile { width: 92px; height: 92px; font-size: 52px; } .cfxnum { font-size: 40px; } }
@media (max-height: 640px) { .cfxhero { margin: 8px 0 4px; } .cfxtile { width: 80px; height: 80px; font-size: 44px; border-radius: 24px; } .cfxtap { display: none; } }
/* 福引きが開いた「さっそく引く ›」で開いた福引きのカードに、ひととき輪 */
.fukucard.cfxhl { box-shadow: 0 0 0 3px #a78bfa, 0 0 18px rgba(167, 139, 250, .55); transition: box-shadow .3s; }
/* 小さなお祝い：光るトースト（金の縁と光。光の筋は 1 回だけ流れる） */
.toast.glow, .sheettoast.glow { box-shadow: 0 0 0 2px #ffcf4d, 0 0 0 4px rgba(255, 207, 77, .28), 0 0 22px rgba(255, 185, 40, .65), 0 8px 24px rgba(20, 23, 32, .22); }
.toast.glow { overflow: hidden; }
.toast.glow.glowgo::after, .sheettoast.glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 236, 160, .75) 48%, rgba(255, 255, 255, .9) 50%, rgba(255, 236, 160, .75) 52%, transparent 70%); background-size: 260% 100%; background-position: 130% 0; animation: glowsweep 1.15s .2s ease-out 1 both; }
.sheettoast.glow { position: relative; overflow: hidden; }
@keyframes glowsweep { from { background-position: 130% 0; opacity: 1; } to { background-position: -30% 0; opacity: 0; } }
html.nomotion .toast.glow::after, html.nomotion .sheettoast.glow::after { display: none; }
@media (prefers-reduced-motion: reduce) { .toast.glow::after, .sheettoast.glow::after { display: none; } }
.cfxnote .nw, .cfxsub .nw { white-space: nowrap; }
.cfxh.ka { word-break: keep-all; overflow-wrap: anywhere; }
.cfxsub .cfxname { display: block; font-size: 16px; }
.cfxsub .cfxdesc { display: block; text-wrap: balance; }
.cfxsub .cfxdesc { word-break: keep-all; overflow-wrap: anywhere; }
.k-room .cfxspark.s1 { left: calc(50% - 132px); top: 2px; } .k-room .cfxspark.s2 { left: calc(50% + 116px); top: 8px; } .k-room .cfxspark.s3 { left: calc(50% - 124px); top: 96px; }
/* 光るトースト：出たときに金の輪が 1 回ふくらむ */
.toast.glow.glowgo { animation: toastup .2s ease, glowpulse 1s .1s ease-out 1; }
@keyframes glowpulse { 0% { box-shadow: 0 0 0 2px #ffcf4d, 0 0 0 4px rgba(255, 207, 77, .28), 0 0 22px rgba(255, 185, 40, .65); } 35% { box-shadow: 0 0 0 3px #ffd966, 0 0 0 10px rgba(255, 207, 77, .22), 0 0 34px rgba(255, 185, 40, .9); } 100% { box-shadow: 0 0 0 2px #ffcf4d, 0 0 0 4px rgba(255, 207, 77, .28), 0 0 22px rgba(255, 185, 40, .65); } }
html.nomotion .toast.glow.glowgo { animation: none; }
@media (prefers-reduced-motion: reduce) { .toast.glow.glowgo { animation: none; } }
/* ===== v97：飾りのお知らせのカード（🔔 の行・トースト・ホームのニュース） =====
   レア度で光る：レア＝紫の光、Sレア＝金のふちに金の光が走る、SSレア＝虹のふちが回る。左に「自分の分身に着せた見本」。
   動きは CSS だけ（光が横切る・虹が回る・残りの札が脈打つ・動きの飾りが舞う）。動きを減らす設定では止まった光だけ */
:root { --cnsw: rgba(255, 255, 255, .62); --cnchip-fg: #8a3d00; --cnchip-bg: #ffe8cc; --cnchip-line: #f0a24a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cnsw: rgba(255, 255, 255, .16); --cnchip-fg: #ffd2a6; --cnchip-bg: rgba(247, 107, 21, .2); --cnchip-line: rgba(255, 160, 90, .6); } }
:root[data-theme="dark"] { --cnsw: rgba(255, 255, 255, .16); --cnchip-fg: #ffd2a6; --cnchip-bg: rgba(247, 107, 21, .2); --cnchip-line: rgba(255, 160, 90, .6); }
/* 見本：丸い台・光の輪・右下に品の絵文字 */
.cnav { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; box-sizing: border-box;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc, #888) 26%, var(--card)), color-mix(in srgb, var(--rc, #888) 6%, var(--card)) 72%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc, #888) 75%, transparent), 0 0 16px -2px color-mix(in srgb, var(--rc, #888) 85%, transparent); }
.cnav .avatar.md { width: 54px; height: 54px; }
.cnav .cnring { position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; }
.cnav.r3 { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rar3-hi) 70%, var(--card)), color-mix(in srgb, var(--rar3) 14%, var(--card)) 72%);
  box-shadow: 0 0 0 2px var(--rar3), 0 0 0 3.5px var(--rar3-deep), 0 0 18px 1px color-mix(in srgb, var(--rar3) 75%, transparent); }
.cnav.r4 { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, #fff 70%, var(--lgin)), var(--lgin) 72%); box-shadow: 0 0 20px 0 rgba(180, 110, 255, .6); }
.cnav.r4 .cnring { background: conic-gradient(from var(--cosa), var(--lgrb)); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); animation: cosspin 4s linear infinite; }
.cnbadge { position: absolute; right: -5px; bottom: -5px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; font-size: 14px; font-style: normal; line-height: 1; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc, #888) 85%, transparent), 0 2px 6px rgba(0, 0, 0, .2); }
.cnav .cntag { position: absolute; left: 50%; bottom: -7px; z-index: 1; transform: translateX(-50%); max-width: 66px; font-size: 9px; padding: 1px 6px; }
.cnav.lg .lgbig { font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(140, 80, 230, .45)); }
/* 動きの飾り：分身のまわりに絵文字が舞う（止めると 3 つ並んだまま） */
.cnmo { position: absolute; inset: 0; z-index: 1; pointer-events: none; font-style: normal; overflow: hidden; border-radius: 50%; }
.cnmo b { position: absolute; font-size: 13px; font-weight: 400; line-height: 1; animation: cnfall 2.8s linear infinite; }
.cnmo b:nth-child(1) { left: 6px; top: 10px; animation-delay: -.2s; }
.cnmo b:nth-child(2) { left: 41px; top: 18px; animation-delay: -1.1s; }
.cnmo b:nth-child(3) { left: 22px; top: 40px; animation-delay: -2s; }
@keyframes cnfall { 0% { transform: translateY(-26px) rotate(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateY(30px) rotate(150deg); opacity: 0; } }
/* 🔔 の行：カード */
.newssheet .arow.cnrow.cnfx { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "av txt" "av btn"; column-gap: 12px; row-gap: 6px; align-items: start;
  padding: 11px 12px 9px 14px; overflow: hidden; isolation: isolate; border: 1.5px solid color-mix(in srgb, var(--rc) 60%, var(--line));
  background: linear-gradient(118deg, color-mix(in srgb, var(--rc) calc(var(--rt) + 6%), var(--card)) 0%, var(--card) 72%);
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--rc) 90%, transparent), var(--rglow); }
.newssheet .cnfx > .cnav { grid-area: av; align-self: center; }
.newssheet .cnfx > .grow { grid-area: txt; }
.newssheet .cnrow.cnfx .cnbtns { grid-area: btn; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-left: 0; }
.newssheet .cnrow.cnfx .cnbtns .retbtn { min-height: 40px; margin: 0; }
.newssheet .cnrow.cnfx .cnbtns .retbtn:first-child { margin-left: 0; }
.newssheet .cnfx .newdot { left: 5px; top: 12px; margin: 0; width: 7px; height: 7px; background: #e5484d; box-shadow: 0 0 0 2px var(--card); }
.newssheet .cnrow.cnfx.r3 { border-color: var(--rar3); background: linear-gradient(118deg, color-mix(in srgb, var(--rar3-hi) 46%, var(--card)) 0%, color-mix(in srgb, var(--rar3) 8%, var(--card)) 46%, var(--card) 80%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rar3-deep) 45%, transparent), 0 0 18px -4px color-mix(in srgb, var(--rar3) 80%, transparent), 0 8px 20px -12px color-mix(in srgb, var(--rar3) 90%, transparent); }
.newssheet .cnrow.cnfx.r4 { border: 2px solid transparent; background: linear-gradient(118deg, var(--lgin), var(--card) 75%) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box;
  box-shadow: 0 0 18px -4px rgba(180, 110, 255, .7); animation: cosspin 6s linear infinite; }
/* 光が横切る（文字の下・背景の上） */
.cnfx::after, .hmnitem.hmncos::after, .toast.cosnews::after { content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 42%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0, var(--cnsw) 50%, transparent 100%); transform: translateX(-140%) skewX(-12deg); animation: cnsweep 4.6s ease-in-out 1.2s infinite; }
.cnfx.r3::after, .hmnitem.hmncos.r3::after, .toast.cosnews.r3::after { background: linear-gradient(105deg, transparent 0, color-mix(in srgb, var(--rar3-hi) 75%, transparent) 45%, var(--cnsw) 52%, transparent 100%); animation-duration: 3.6s; }
@keyframes cnsweep { 0% { transform: translateX(-140%) skewX(-12deg); } 42%, 100% { transform: translateX(340%) skewX(-12deg); } }
/* 札：出来事・レア度・残り */
.cnkick { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-bottom: 3px; }
.cnk { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--rcf, var(--fg2)); }
.cnkick .pill.rar { font-size: 10.5px; padding: 1px 7px; line-height: 1.5; }
.cnchip { position: relative; display: inline-block; font-size: 11px; font-weight: 800; line-height: 1.5; padding: 0 8px; border-radius: 999px; color: var(--cnchip-fg); background: var(--cnchip-bg); box-shadow: inset 0 0 0 1px var(--cnchip-line); white-space: nowrap; }
.cnchip.hot { color: #fff; background: linear-gradient(90deg, #d93036, #e8590c); box-shadow: 0 0 10px -1px rgba(229, 72, 77, .7); }
.cnchip.hot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px #e5484d; animation: cnpulse 1.6s ease-out infinite; pointer-events: none; }
@keyframes cnpulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.4, 1.7); opacity: 0; } }
.cnmsg { display: block; font-size: 13px; line-height: 1.5; color: var(--fg); }
.cnmsg b { font-weight: 800; color: var(--fg); }
/* 「試着 ›」：いちばん目立つボタン（レア度の色） */
.cntry { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 44px; padding: 0 18px; border: 0; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #4f5bd5, #7c3aed); box-shadow: 0 4px 12px -4px rgba(79, 91, 213, .75), inset 0 1px 0 rgba(255, 255, 255, .28); }
.r2 .cntry, .cntry.r2 { background: linear-gradient(135deg, #6d28d9, #9333ea); box-shadow: 0 4px 14px -4px rgba(147, 51, 234, .8), inset 0 1px 0 rgba(255, 255, 255, .28); }
.r3 .cntry, .cntry.r3 { color: #3d2a00; background: linear-gradient(135deg, #f8d977, #e3b341 48%, #f6cf62); box-shadow: 0 0 0 1px #a87b00, 0 4px 14px -4px rgba(212, 165, 20, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.r4 .cntry, .cntry.r4 { background: linear-gradient(120deg, #7c3aed, #c026d3 55%, #db2777); box-shadow: 0 4px 16px -4px rgba(192, 38, 211, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.cntry:active { transform: translateY(1px); }
/* トースト：見本つきの小さなカード（押すと試着） */
.toast.cosnews { width: min(400px, calc(100% - 24px)); max-width: none; padding: 8px 10px 8px 8px; border-radius: 18px; white-space: normal; overflow: hidden; isolation: isolate; color: var(--fg);
  background: linear-gradient(118deg, color-mix(in srgb, var(--rc) calc(var(--rt) + 10%), var(--card)), var(--card) 75%); border: 1.5px solid color-mix(in srgb, var(--rc) 70%, transparent);
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--rc) 80%, transparent), 0 10px 28px rgba(20, 23, 32, .28); }
.toast.cosnews.r3 { border-color: var(--rar3); background: linear-gradient(118deg, color-mix(in srgb, var(--rar3-hi) 52%, var(--card)), var(--card) 78%); }
.toast.cosnews.r4 { border: 2px solid transparent; background: linear-gradient(118deg, var(--lgin), var(--card) 78%) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box; animation: toastup .2s ease, cosspin 6s linear infinite; }
.cntoast { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cntoast .cnav.sm { width: 48px; height: 48px; }
.cntoast .cnav.sm .avatar.md { width: 40px; height: 40px; }
.cntoast .cnav.sm .cnbadge { width: 20px; height: 20px; font-size: 12px; right: -4px; bottom: -4px; }
.cntoast .cnmo b { font-size: 11px; }
.cntoast .tcx { flex: 1 1 auto; min-width: 0; }
.cntoast .cnkick { margin-bottom: 1px; }
.cntoast .tmt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.cntoast .tmore { display: block; font-size: 11px; color: var(--sub); }
.cntoast .cntry { flex: none; min-height: 36px; padding: 0 12px; font-size: 12.5px; }
.sheettoast.cosnews { overflow: hidden; isolation: isolate; color: var(--fg); background: linear-gradient(118deg, color-mix(in srgb, var(--rc) calc(var(--rt) + 8%), var(--card)), var(--card) 75%); border: 1.5px solid color-mix(in srgb, var(--rc) 70%, transparent); padding: 6px 8px; }
/* ホームのニュース：飾り・幻の品の記事 */
.hmnitem.hmncos { position: relative; overflow: hidden; isolation: isolate; margin: 8px; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--rc) 60%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, var(--rc) calc(var(--rt) + 6%), var(--card)), var(--card) 62%); box-shadow: 0 0 20px -6px color-mix(in srgb, var(--rc) 80%, transparent); }
.hmnitem.hmncos + .hmnitem { border-top: 0; }
.hmnitem.hmncos.r3 { border-color: var(--rar3); background: linear-gradient(150deg, color-mix(in srgb, var(--rar3-hi) 46%, var(--card)), color-mix(in srgb, var(--rar3) 6%, var(--card)) 50%, var(--card) 80%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rar3-deep) 40%, transparent), 0 0 22px -6px color-mix(in srgb, var(--rar3) 85%, transparent); }
.hmnitem.hmncos.r4 { border: 2px solid transparent; background: linear-gradient(150deg, var(--lgin), var(--card) 65%) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box; box-shadow: 0 0 22px -6px rgba(180, 110, 255, .75); animation: cosspin 8s linear infinite; }
.hmnshow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.hmnshow.n1 { grid-template-columns: minmax(0, 160px); }
.hmnshow.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hmnsi { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 12px 4px 8px; border: 1px solid color-mix(in srgb, var(--rc) 45%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--card) 80%, transparent); font: inherit; color: var(--fg); text-align: center; }
button.hmnsi { cursor: pointer; }
button.hmnsi:hover { border-color: var(--rc); }
.hmnsi .hmnsn { font-size: 12px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.hmnsi .pill.rar { font-size: 10px; padding: 1px 7px; }
.hmntry { margin: 8px 0 2px; }
/* 動きを減らす設定：光は止まったまま（虹のふち・光の帯・脈・舞う絵文字を止める） */
@media (prefers-reduced-motion: reduce) {
  .cnfx::after, .hmnitem.hmncos::after, .toast.cosnews::after, .cnchip.hot::after { animation: none; display: none; }
  .newssheet .cnrow.cnfx.r4, .hmnitem.hmncos.r4, .cnav.r4 .cnring, .cnmo b, .toast.cosnews.r4 { animation: none; }
}
html.nomotion :is(.cnfx, .hmnitem.hmncos, .toast.cosnews)::after, html.nomotion .cnchip.hot::after { display: none; }
/* Sレア・SSレアのカードの右上にきらめき（動きを減らす設定では止まったまま） */
:is(.newssheet .cnrow.cnfx, .hmnitem.hmncos):is(.r3, .r4)::before { content: '✦'; position: absolute; top: 5px; right: 26px; z-index: -1; font-size: 15px; line-height: 1; pointer-events: none; color: var(--rar3); text-shadow: 14px 12px 0 color-mix(in srgb, var(--rar3) 60%, transparent), -10px 18px 0 color-mix(in srgb, var(--rar3-hi) 80%, transparent); animation: cntwinkle 2.4s ease-in-out infinite; }
:is(.newssheet .cnrow.cnfx, .hmnitem.hmncos).r4::before { color: #c084fc; text-shadow: 14px 12px 0 rgba(96, 165, 250, .75), -10px 18px 0 rgba(244, 114, 182, .8); }
@keyframes cntwinkle { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { :is(.newssheet .cnrow.cnfx, .hmnitem.hmncos):is(.r3, .r4)::before { animation: none; opacity: .9; } }
/* アプリの「動きを減らす」（html.nomotion）でも同じく止める：虹のふちが回る・舞う絵文字・きらめき */
html.nomotion :is(.newssheet .cnrow.cnfx.r4, .hmnitem.hmncos.r4, .cnav.r4 .cnring, .cnmo b, .toast.cosnews.r4) { animation: none; }
html.nomotion :is(.newssheet .cnrow.cnfx, .hmnitem.hmncos):is(.r3, .r4)::before { animation: none; opacity: .9; }

/* ===== v101 飾りのセット（お金で買う見た目の飾り）===== */
.cf-frost { --cfb: radial-gradient(circle at 18% 22%, #fff 0 1.6px, transparent 2.4px), radial-gradient(circle at 82% 30%, #fff 0 1.4px, transparent 2.2px), radial-gradient(circle at 50% 96%, #fff 0 1.6px, transparent 2.4px), conic-gradient(#f4fbff, #9fd3f2, #ffffff, #6fa8d8, #f4fbff); }
.avatar.cf-frost:not(.sm):not(.xs), .avatar.cfx-frost:not(.sm):not(.xs) { filter: drop-shadow(0 0 4px rgba(140,200,250,.6)); }
.payset { position: relative; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, #6fa8d8 14%, var(--card)), var(--card) 55%); border: 1px solid color-mix(in srgb, #6fa8d8 35%, var(--line)); }
.payset .head h3 { margin: 0; }
.payset .pslim { background: #e6f2fc; color: #23527e; font-size: var(--fs-cap); font-weight: 700; }
.payset .psbody { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; } /* v121：施設のシートの .psbody（縦に並ぶ）と名前が同じなので、セットのカードの中だけに */
.payset .psbody .grow { min-width: 0; flex: 1; }
.pshero { position: relative; flex: none; }
.pshero .avatar.lg { width: 92px; height: 92px; }
.pstry { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--card); color: var(--fg2); border: 1px solid var(--line2); border-radius: 999px; font-size: var(--fs-cap); padding: 0 8px; line-height: 18px; white-space: nowrap; }
.psname { display: block; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.psblurb { margin: 4px 0 6px; font-size: var(--fs-sub); color: var(--fg2); line-height: 1.55; }
.psitems { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.psitems li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.psic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, #9fd3f2 30%, var(--card)); font-size: 15px; }
.pst { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px; }
.pst small { color: var(--sub); font-size: var(--fs-cap); }
.psbuyrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 12px 0 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.psprice b { font-size: 22px; letter-spacing: .01em; }
.psprice small { color: var(--sub); margin-left: 2px; }
.pswin { font-size: var(--fs-sub); color: var(--fg2); }
.pswin b { color: #2f6fb0; }
.psbtns { margin: 0; }
.psbtns .psbuy { flex: 1; min-height: 44px; }
.psnote { margin: 8px 0 0; }
.psfine { margin: 8px 0 0; font-size: var(--fs-cap); }
.paysheet .pcbody { display: flex; gap: 12px; align-items: center; margin: 4px 0 8px; }
.paysheet .pcbody .grow { min-width: 0; }
.pcget { margin: 0 0 2px; font-size: var(--fs-sub); color: var(--sub); font-weight: 700; }
.pcitems { margin: 0; padding-left: 1.1em; font-size: 14px; line-height: 1.6; }
.pcitems small { color: var(--sub); }
.pctot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 6px 0 8px; padding: 10px 12px; border-radius: var(--r-md); background: var(--me); }
.pctot b { font-size: 20px; }
.pctot span { flex-basis: 100%; font-size: var(--fs-sub); color: var(--fg2); }
.pcrules { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 1.6; color: var(--fg2); }
.pcrules li { margin: 3px 0; }
.pcag { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: var(--r-md); line-height: 1.55; }
.pcag a { white-space: nowrap; }
.pcnote { margin: 8px 0 0; text-align: center; }
.paycel { position: relative; overflow: hidden; text-align: center; }
.pcfx { position: absolute; inset: 0; pointer-events: none; }
.pcfx i { position: absolute; top: -10px; width: var(--sz); height: var(--sz); border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(130,190,245,.9); animation: pcsnow 3.2s linear infinite; }
.pcfx.still i { animation: none; top: auto; bottom: 20%; opacity: .7; }
@keyframes pcsnow { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(330px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pcfx i { animation: none; top: auto; bottom: 20%; opacity: .7; } }
.pcelav { display: flex; justify-content: center; margin: 6px 0 8px; }
.pcelav .avatar.xl { width: 120px; height: 120px; }
.pcelitems { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .payset .pslim { background: #1d3550; color: #cfe6fb; } :root:not([data-theme="light"]) .pswin b { color: #8cc4f5; } }
:root[data-theme="dark"] .payset .pslim { background: #1d3550; color: #cfe6fb; }
:root[data-theme="dark"] .pswin b { color: #8cc4f5; }
@media (max-width: 370px) {
  .pshero .avatar.lg { width: 76px; height: 76px; }
  .payset .psbody { gap: 10px; }
}
/* ===== v100：評判（記憶 › 評判）と、ほかの人のプロフィールの「町での評判」 ===== */
.repcard .repcloud { margin: 2px 0 4px; gap: 6px; }
.repcard .chip.rep { font-size: 13px; padding: 5px 11px; }
.repcard .chip.rep.top { background: var(--accent); color: var(--accent-fg); }
.repcard .chip.rep.top small { color: inherit; opacity: .8; }
.reppubme { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 10px 0 2px; padding: 8px 10px; border-radius: var(--r-md); background: var(--bg); font-size: var(--fs-sub); }
.reppubme .flabel { margin: 0; font-size: var(--fs-sub); color: var(--fg2); font-weight: 600; flex: 0 0 100%; }
.reppubme .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip.rep.pub { background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); font-size: 12px; padding: 3px 9px; }
.replist { list-style: none; margin: 10px 0 4px; padding: 0; }
.replist li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.replist li:first-child { border-top: 0; }
.replist li small { display: block; margin-top: 2px; font-size: var(--fs-cap); }
.replist .fictb { margin: 0 4px 0 0; vertical-align: 1px; }
.repmore { margin: 2px 0 6px; }
.reppub { margin: 10px 0 0; }
.reppub .reppubh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.reppub .flabel { margin: 0; display: inline; }
.reppub .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.reppub .note { margin: 4px 0 0; font-size: var(--fs-cap); color: var(--sub); }
/* ===== v106 地図の 🛍️ ショップ（± の上）・ショップ（着せ替え／持ち物）・着せ替えの大きな見本 ===== */
/* v108：± と同じ白い丸い札（袋の絵）。売っている・新しいお知らせは右上の小さな点だけ（光らない・揺れない） */
.mapctl .shopfab { position: relative; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--r-md); cursor: pointer; color: var(--fg); font: inherit; display: grid; place-items: center;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.mapctl .shopfab .sfdot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px var(--card); font-style: normal; }
.mapctl .shopfab.new .sfdot { background: var(--accent); }
.mapctl .shopfab:active { transform: translateY(1px); }
body.mapfull .mapctl .shopfab { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: color-mix(in srgb, var(--card) 96%, transparent); }
/* ショップの見出し：「🛍️ ショップ」・お金・×（マップへ）。下の切り替えは上に張り付く */
.storehead { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.storehead h2 { flex: 1; min-width: 0; margin: 0; }
.storehead .storecoin { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; box-shadow: var(--shadow-xs); }
.storehead .storecoin b { font-size: 15px; }
.storehead .storex { position: relative; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--me); color: var(--fg2); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.storehead .storex::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.storeseg button { font-size: 14.5px; font-weight: 700; }
.storeseg button.on { color: var(--fg); }
.storeseg button.locked { opacity: .55; }
.store .storefine { margin: 4px 4px 14px; }
/* 着せ替えの大きな見本：背景の飾りの色の舞台・光の筋・きらめき・大きな分身・名札 */
.cshow { margin: -6px -6px 6px; padding: 6px; } /* 縁と光が切れない（シートの横の端で） */
.csstage { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: clamp(300px, 44vh, 390px); padding: 46px 12px 16px; border-radius: 26px; box-sizing: border-box; color: #fff;
  box-shadow: 0 14px 30px -14px rgba(20, 20, 50, .55); }
.csstage::before { content: ""; position: absolute; inset: 0; z-index: -3; border-radius: inherit;
  background: radial-gradient(70% 55% at 50% 40%, rgba(255, 255, 255, .5), transparent 70%), linear-gradient(170deg, var(--g1), var(--g2)); }
.csstage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -2; pointer-events: none; background: linear-gradient(transparent, rgba(10, 12, 30, .28)); }
.csrays { position: absolute; left: 50%; top: 42%; width: 170%; aspect-ratio: 1; z-index: -2; pointer-events: none; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .26) 0 5deg, transparent 5deg 17deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 18%, transparent 52%); mask: radial-gradient(circle, #000 0, #000 18%, transparent 52%); animation: csspin 48s linear infinite; }
@keyframes csspin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.csspk { position: absolute; inset: 0; z-index: -1; pointer-events: none; font-style: normal; }
.csspk b { position: absolute; font-size: 16px; line-height: 1; color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, .95), 0 0 2px rgba(0, 0, 0, .25); animation: cstwk 2.8s ease-in-out infinite; }
.csspk b:nth-child(1) { left: 12%; top: 26%; } .csspk b:nth-child(2) { left: 82%; top: 22%; font-size: 22px; animation-delay: -.7s; }
.csspk b:nth-child(3) { left: 20%; top: 64%; font-size: 12px; animation-delay: -1.4s; } .csspk b:nth-child(4) { left: 86%; top: 58%; font-size: 14px; animation-delay: -2.1s; }
.csspk b:nth-child(5) { left: 30%; top: 14%; font-size: 11px; animation-delay: -1s; } .csspk b:nth-child(6) { left: 70%; top: 74%; font-size: 18px; animation-delay: -1.8s; }
.csspk b:nth-child(7) { left: 8%; top: 46%; font-size: 13px; animation-delay: -.4s; } .csspk b:nth-child(8) { left: 92%; top: 40%; font-size: 11px; animation-delay: -2.4s; }
@keyframes cstwk { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
.cshow.r2 .csspk b { color: #f3e8ff; text-shadow: 0 0 10px #c084fc, 0 0 3px #7c3aed; }
.cshow.r3 .csspk b { color: #fff3b0; text-shadow: 0 0 10px #f7c948, 0 0 3px #a87b00; }
.cshow.r4 .csspk b:nth-child(4n+1) { color: #ffd1dc; text-shadow: 0 0 10px #ff5f6d; } .cshow.r4 .csspk b:nth-child(4n+2) { color: #fff7b0; text-shadow: 0 0 10px #f9c22e; }
.cshow.r4 .csspk b:nth-child(4n+3) { color: #c8f7e1; text-shadow: 0 0 10px #22c55e; } .cshow.r4 .csspk b:nth-child(4n) { color: #d6e4ff; text-shadow: 0 0 10px #5ab9ff; }
/* レア度の縁：レア＝紫の縁と光・Sレア＝濃い金の 2 重の縁と金の光（淡くしない）・SSレア＝回る虹の縁 */
.cshow.r2 .csstage { box-shadow: 0 0 0 2.5px var(--rar2), 0 0 26px -2px color-mix(in srgb, var(--rar2) 75%, transparent), 0 14px 30px -14px rgba(20, 20, 50, .55); }
.cshow.r3 .csstage { box-shadow: 0 0 0 2.5px var(--rar3-deep), 0 0 0 5px #f7d76a, 0 0 0 6px #a87b00, 0 0 30px 2px color-mix(in srgb, var(--rar3) 80%, transparent); }
.cshow.r4 .csstage { border: 3.5px solid transparent; background: conic-gradient(from var(--cosa), var(--lgrb)) border-box; animation: cosspin 6s linear infinite; box-shadow: 0 0 30px -2px rgba(180, 110, 255, .8); }
.cshow.r4 .csstage::before, .cshow.r4 .csstage::after { border-radius: 23px; }
.cstop { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cskick, .cshave { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.5; white-space: nowrap; color: #fff; background: rgba(12, 14, 34, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cshave { font-weight: 700; font-size: 12px; }
.csav { position: relative; display: grid; place-items: center; }
.csav::before { content: ""; position: absolute; width: 128%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 52%, transparent 70%); }
.cshow.r2 .csav::before { background: radial-gradient(circle, rgba(233, 213, 255, .75), rgba(168, 85, 247, .32) 50%, transparent 70%); }
.cshow.r3 .csav::before { background: radial-gradient(circle, rgba(255, 240, 170, .85), rgba(240, 190, 40, .4) 50%, transparent 70%); }
.cshow.r4 .csav::before { background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 179, 200, .35) 38%, rgba(169, 216, 255, .3) 52%, transparent 70%); }
.csav .avatar.xl { width: clamp(164px, 46vw, 208px); height: clamp(164px, 46vw, 208px); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.csname { margin-top: 10px; }
.csname .cntag { font-size: 14px; padding: 4px 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 3px 8px rgba(0, 0, 0, .25); }
.cswhat { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; max-width: 100%; box-sizing: border-box; margin-top: 10px; padding: 5px 12px; border-radius: 14px; color: var(--fg);
  background: color-mix(in srgb, var(--card) 90%, transparent); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); font-size: 13.5px; text-align: center; }
.cswhat b { font-weight: 800; overflow-wrap: anywhere; }
.cswhat small { flex-basis: 100%; font-size: 11.5px; color: var(--sub); }
.cshow.trying .cswhat { box-shadow: 0 0 0 2px var(--accent), 0 2px 10px rgba(0, 0, 0, .18); }
.cshow .costry { margin: 10px 0 0; }
/* 動きの飾り：舞台いっぱいに舞う（雪・紅葉は降る粒・ほかは上がる印）。動きを減らす設定では止まった粒 */
.csfx { position: absolute; inset: 0; z-index: -1; pointer-events: none; font-style: normal; overflow: hidden; border-radius: inherit; }
.csfx b { position: absolute; top: 70%; font-size: 18px; line-height: 1; opacity: .9; animation: csrise 4.2s ease-in infinite; }
.csfx.fall b { top: 8%; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 55%, #dbe9ff); box-shadow: 0 0 0 1px rgba(50, 80, 130, .45), 0 1px 3px rgba(20, 40, 80, .3); animation: csfall 5s linear infinite; }
.csfx.fall.leaf b { border-radius: 0 100% 0 100%; width: 12px; height: 12px; background: #e2572b; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.csfx.fall.leaf b:nth-child(2n) { background: #f0a030; }
.csfx b:nth-child(1) { left: 6%; animation-delay: -.2s; } .csfx b:nth-child(2) { left: 16%; top: 22%; animation-delay: -2.6s; } .csfx b:nth-child(3) { left: 27%; top: 52%; animation-delay: -1.3s; }
.csfx b:nth-child(4) { left: 38%; top: 12%; animation-delay: -3.4s; } .csfx b:nth-child(5) { left: 61%; top: 30%; animation-delay: -.9s; } .csfx b:nth-child(6) { left: 72%; top: 62%; animation-delay: -2.1s; }
.csfx b:nth-child(7) { left: 83%; top: 16%; animation-delay: -4s; } .csfx b:nth-child(8) { left: 92%; top: 44%; animation-delay: -1.7s; } .csfx b:nth-child(9) { left: 48%; top: 80%; animation-delay: -3s; }
.csfx b:nth-child(10) { left: 12%; top: 84%; animation-delay: -.5s; }
@keyframes csfall { 0% { transform: translate(0, -60px) rotate(0); opacity: 0; } 10%, 85% { opacity: 1; } 50% { transform: translate(10px, 60px) rotate(120deg); } 100% { transform: translate(-6px, 190px) rotate(260deg); opacity: 0; } }
@keyframes csrise { 0% { transform: translateY(30px) scale(.8); opacity: 0; } 20%, 70% { opacity: .95; } 100% { transform: translateY(-120px) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .csrays, .csspk b, .csfx b, .cshow.r4 .csstage { animation: none; } }
/* 注目の飾り：横に流れる札（飾りのセット・開催中・今週の飾り屋・SSレア）。札ごとに「試着」と「手に入れ方 ›」 */
.csfeat { margin-top: 14px; }
.csfh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 4px; }
.csfh b { font-size: 16px; font-weight: 800; }
.csfh .muted { font-size: 11.5px; }
.csrail { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; margin: 0 -6px; padding: 8px 6px 12px; scrollbar-width: thin; }
.csf { flex: 0 0 148px; box-sizing: border-box; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 8px; border-radius: 18px; text-align: center; min-width: 0;
  background: color-mix(in srgb, var(--rc, #888) calc(var(--rt, 8%) + 4%), var(--card)); box-shadow: inset 0 0 0 var(--rb, 1px) color-mix(in srgb, var(--rc, #888) var(--ra, 50%), transparent), var(--rglow, 0 0 0 0 transparent), var(--shadow-xs); }
.csf.r3 { background: linear-gradient(135deg, color-mix(in srgb, var(--rar3) var(--r3a), var(--bg2)), color-mix(in srgb, var(--rar3-hi) var(--r3b), var(--bg2)) 50%, color-mix(in srgb, var(--rar3) var(--r3c), var(--bg2)));
  box-shadow: inset 0 0 0 2px var(--rar3-deep), inset 0 0 0 3px color-mix(in srgb, var(--rar3-hi) 45%, transparent), var(--rglow); --sub: var(--rar3-sub); }
.csf.r4 { border: 2px solid transparent; background: linear-gradient(var(--lgin), var(--lgin)) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box; box-shadow: 0 0 14px -2px rgba(180, 110, 255, .6); }
.csf.on { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.csfpv { position: relative; display: grid; place-items: center; width: 72px; height: 72px; }
.csfpv .cprev { width: 72px; height: 72px; } .csfpv .avatar.md { width: 70px; height: 70px; } .csfpv .cprev.cmo { font-size: 34px; }
.csfic { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 15px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.csfn { font-size: 13px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; overflow-wrap: anywhere; }
.csfm .pill { font-size: 10.5px; padding: 1px 7px; }
.csftag { font-size: 11.5px; line-height: 1.35; color: var(--sub); font-weight: 600; }
.csftag.hot { color: #d93036; font-weight: 800; }
.csfb { display: flex; flex-direction: column; gap: 2px; width: 100%; margin-top: auto; padding-top: 4px; }
.csfb .cntry { width: 100%; min-height: 38px; padding: 0 10px; }
.csfhow { min-height: 32px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.csf.r3 .csfhow { color: #6b4c00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .csf.r3 .csfhow { color: #ffe08a; } }
/* 飾りのセットの札：雪の夜の紺に白い字・値段は大きく */
.csf.csset { flex-basis: 172px; color: #fff; background: radial-gradient(90% 60% at 50% 20%, rgba(159, 211, 242, .35), transparent 70%), linear-gradient(165deg, #1b2550, #41558f);
  box-shadow: 0 0 0 2px #9fd3f2, 0 0 18px -2px rgba(111, 168, 216, .8), var(--shadow-xs); --sub: #cfe6fb; }
.csf.csset .csfn { color: #fff; }
.csf.csset .pslim { background: #e6f2fc; color: #23527e; font-size: 10.5px; font-weight: 700; }
.csf.csset .csprice { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; }
.csf.csset .csprice small { font-size: 11px; font-weight: 600; color: #cfe6fb; }
.csf.csset .csfbuy { width: 100%; min-height: 38px; font-size: 13px; padding: 4px 8px; white-space: normal; line-height: 1.25; }
.csf.csset .csfbuy:disabled { opacity: 1; color: #23527e; background: #e6f2fc; border-color: transparent; }
.csf.csset .csfhow { color: #cfe6fb; }
/* ショップ › 持ち物：華やかな帯 */
.storehero { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 12px; padding: 16px 16px 14px; border-radius: 22px; color: #fff;
  background: radial-gradient(80% 70% at 85% 10%, rgba(255, 230, 150, .5), transparent 60%), linear-gradient(140deg, #f0623a, #e8407a 55%, #8b46d8); box-shadow: 0 12px 26px -12px rgba(232, 64, 122, .8); }
.storehero .csspk b { font-size: 14px; }
/* v174：きらめき ✦ は上の帯（見出しと説明）だけに。下のボタンや右上の町の札に重ねない */
.storehero .csspk { bottom: auto; height: 50%; }
.storehero .csspk b:nth-child(1) { left: 72%; top: 50%; } .storehero .csspk b:nth-child(2) { left: 90%; top: 62%; font-size: 16px; } .storehero .csspk b:nth-child(3) { left: 80%; top: 80%; }
.storehero .csspk b:nth-child(4) { left: 94%; top: 86%; } .storehero .csspk b:nth-child(5) { left: 69%; top: 90%; } .storehero .csspk b:nth-child(6) { left: 62%; top: 3%; font-size: 12px; }
.shtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shkick { font-size: 19px; font-weight: 800; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.shtown { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.shlead { margin: 8px 0 10px; font-size: 13.5px; line-height: 1.55; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.shjump { display: flex; flex-wrap: wrap; gap: 6px; }
.shjump .chip { color: #7a1f4a; background: rgba(255, 255, 255, .92); border-color: transparent; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
@media (prefers-reduced-motion: reduce) { .storehero .csspk b { animation: none; } }
.cswon { font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.cswon + .cswon::before { content: "・"; color: var(--sub); font-weight: 400; }
.shjump .chip { min-height: 34px; padding: 4px 10px; font-size: 12.5px; }
.shjump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.shjump .chip { justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== v108 着せ替え：控えめな「注目の飾り」（飾りのセットだけ）・飾りのシート（地図と同じ大きさの見本）・🔔 運営からの行 ===== */
.csfeat { margin: 4px 0 12px; }
.cssets { display: flex; flex-direction: column; gap: 6px; }
.cssetrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 10px; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.cssetrow .grow { display: flex; flex-direction: column; min-width: 0; }
.cssetrow b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cssetrow small { font-size: 12px; color: var(--sub); }
.cssetav { flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.cssetav .avatar { width: 38px; height: 38px; }
.cssetgo { flex: none; color: var(--sub); font-size: 18px; }
.payset.pshl { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); transition: box-shadow .3s; }
.cossheet .cssbody { display: flex; flex-direction: column; gap: 10px; }
.cpv { position: relative; height: 212px; margin: 4px 0 0; border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  --mapg: #e9ede6; --mapr: #fbfbf8; --mapl: #d6dccf; background: var(--mapg); border: 1px solid var(--line); }
.cpvroad { position: absolute; left: -10%; right: -10%; top: 62%; height: 26px; background: var(--mapr); border-top: 1px solid var(--mapl); border-bottom: 1px solid var(--mapl); transform: rotate(-8deg); }
.cpvme { position: relative; z-index: 1; display: grid; place-items: center; width: var(--av); height: var(--av); margin-top: 8px; }
.cpvme .avatar.cpvav { width: var(--av); height: var(--av); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.cpvme .avatar.cpvav.cosf { padding: 2px; }
.cpvtag { position: relative; z-index: 1; font-size: 13px; padding: 2px 10px; margin-top: 4px; }
.cpvroad { top: 66%; height: 40px; }
.cpvme .avatar.cpvav.cosf { padding: 4px; }
/* v112：セットの試着シートの中身の一覧・セットのカードの見本は押せる */
.pstryitems { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 13.5px; }
.pstryitems li { min-width: 0; line-height: 1.45; }
.pstryitems li > span { margin-right: 4px; }
.pstryitems small { color: var(--sub); font-size: 11px; margin-left: 4px; white-space: nowrap; }
button.pshero { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
button.pshero:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
.cpvme.hop { animation: cpvhop 2.6s ease-in-out infinite; }
@keyframes cpvhop { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-7px); } }
.cpvfx { position: absolute; left: -26px; right: -26px; top: -30px; bottom: -14px; pointer-events: none; font-style: normal; z-index: 2; }
.cpvfx b { position: absolute; bottom: 4px; font-size: 11px; line-height: 1; opacity: 0; animation: cpvrise 2.8s ease-out infinite; }
.cpvfx.fall b { top: 0; bottom: auto; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(40, 60, 100, .45); animation: cpvfall 3.2s linear infinite; }
.cpvfx.k-petal b { border-radius: 60% 0 60% 0; background: var(--m1, #f59ab9); box-shadow: none; }
.cpvfx.k-petal b:nth-child(2n) { background: var(--m2, #f59ab9); }
.cpvfx.k-leaf b { border-radius: 0 100% 0 100%; background: var(--m1, #e2572b); box-shadow: none; }
.cpvfx.k-leaf b:nth-child(2n) { background: var(--m2, #f0a030); }
.cpvfx.k-notes b { color: var(--m1, #6e5adc); font-weight: 700; font-size: 12px; }
.cpvfx.k-notes b:nth-child(2n) { color: var(--m2, #6e5adc); }
.cpvfx.k-coffee b { color: var(--m2, #f4dfb5); font-weight: 700; font-size: 15px; text-shadow: 0 1px 2px rgba(42,24,18,.45); }
.cpvfx.k-coffee b:nth-child(2n) { color: var(--m3, #fff3cf); font-size: 12px; }
/* v110：セットの色（--m1〜--m3。cosPvHTML の moVars。無ければ上の今までの色）・新しい動き（ハート・紙ふぶき） */
.cpvfx.k-snow b { background: var(--m1, #fff); } .cpvfx.k-snow b:nth-child(2n) { background: var(--m2, #fff); } .cpvfx.k-snow b:nth-child(3n) { background: var(--m3, #fff); }
.cpvfx.k-petal[style] b, .cpvfx.k-leaf[style] b { box-shadow: 0 0 0 1px rgba(40, 30, 70, .25); }
.cpvfx.k-heart b { color: var(--m1); font-size: 13px; text-shadow: 0 0 1px rgba(40, 30, 70, .55); } .cpvfx.k-heart b:nth-child(2n) { color: var(--m2); font-size: 10px; } .cpvfx.k-heart b:nth-child(3n) { color: var(--m3); }
.cpvfx.k-confetti b { width: 6px; height: 4px; border-radius: 1px; background: var(--m1); box-shadow: 0 0 0 1px rgba(40, 30, 70, .25); animation-name: cpvconf; }
.cpvfx.k-confetti b:nth-child(2n) { background: var(--m2); } .cpvfx.k-confetti b:nth-child(3n) { background: var(--m3); }
@keyframes cpvconf { 0% { transform: translate(0, 0) rotate(0) scaleY(1); opacity: 0; } 12%, 85% { opacity: 1; } 50% { transform: translate(5px, 38px) rotate(220deg) scaleY(.3); } 100% { transform: translate(-4px, 78px) rotate(440deg) scaleY(1); opacity: 0; } }
/* v109：きらめきの尾（SSレア）の見本。頭のうしろの金と虹の光が脈打ち、星は虹色に光りながら大きく舞い上がる */
.cpvfx.k-sparkle::before { content: ""; position: absolute; left: 50%; top: 52%; width: calc(var(--av) * 1.7); height: calc(var(--av) * 1.7); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,236,150,0) 30%, rgba(255,214,90,.55) 52%, rgba(255,140,220,.32) 70%, rgba(160,120,255,0) 76%); animation: cpvhalo 1.6s ease-in-out infinite; z-index: -1; }
.cpvfx.k-sparkle b { font-size: 15px; filter: drop-shadow(0 0 4px #ffd75a) drop-shadow(0 0 8px #ff8be0); animation: cpvrise 2.2s ease-out infinite, cpvhue 2.2s linear infinite; }
.cpvfx.k-sparkle b:nth-child(2n) { font-size: 11px; }
@keyframes cpvhalo { 0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes cpvhue { 0% { filter: hue-rotate(0) drop-shadow(0 0 4px #ffd75a) drop-shadow(0 0 8px #ff8be0); } 100% { filter: hue-rotate(360deg) drop-shadow(0 0 4px #ffd75a) drop-shadow(0 0 8px #ff8be0); } }
@media (prefers-reduced-motion: reduce) { .cpvfx.k-sparkle::before, .cpvfx.k-sparkle b { animation: none; } }
html.nomotion .cpvfx.k-sparkle::before, html.nomotion .cpvfx.k-sparkle b { animation: none; }
.cpvfx b:nth-child(1) { left: 6%; animation-delay: -.2s; } .cpvfx b:nth-child(2) { left: 24%; animation-delay: -1.4s; } .cpvfx b:nth-child(3) { left: 44%; animation-delay: -2.3s; }
.cpvfx b:nth-child(4) { left: 62%; animation-delay: -.8s; } .cpvfx b:nth-child(5) { left: 80%; animation-delay: -1.9s; } .cpvfx b:nth-child(6) { left: 92%; animation-delay: -2.7s; }
@keyframes cpvrise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes cpvfall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translate(-6px, 78px) rotate(140deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cpvme.hop, .cpvfx b { animation: none; } .cpvfx b { opacity: .9; } }
html.nomotion .cpvfx b { opacity: .9; }
.cossheet .cssinfo h2 { margin: 0 0 4px; }
.cossheet .cssmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 6px; font-size: 12px; }
.cossheet .ctwhy { margin: 0; font-size: 13.5px; line-height: 1.55; }
.cossheet .btns { margin: 0; }
.oplist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.oprow { display: flex; gap: 10px; padding: 10px 12px; align-items: flex-start; }
.oprow + .oprow { border-top: 1px solid var(--line); }
.opic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--me, var(--bg2)); font-size: 15px; line-height: 1; }
.oprow .grow { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.optop { display: flex; align-items: baseline; gap: 6px; }
.opt { font-size: 14px; font-weight: 700; line-height: 1.4; }
.opnew { flex: none; font-size: 10px; font-weight: 800; color: #d93036; letter-spacing: .03em; }
.opd { font-size: 11.5px; color: var(--sub); }
.opl { font-size: 13px; line-height: 1.5; color: var(--fg2, var(--fg)); }
.oplink { align-self: flex-start; margin: 0 0 -10px; padding: 0 2px; min-height: 40px; min-width: 44px; text-align: left; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cpv { --mapg: #2b3138; --mapr: #3a424c; --mapl: #48515c; } }
:root[data-theme="dark"] .cpv { --mapg: #2b3138; --mapr: #3a424c; --mapl: #48515c; }
/* 動きを減らす設定：粒は止めて、見本のまわりに散らして置く */
html.nomotion .cpvfx b:nth-child(1) { top: 18%; bottom: auto; } html.nomotion .cpvfx b:nth-child(2) { top: 52%; bottom: auto; } html.nomotion .cpvfx b:nth-child(3) { top: 8%; bottom: auto; }
html.nomotion .cpvfx b:nth-child(4) { top: 40%; bottom: auto; } html.nomotion .cpvfx b:nth-child(5) { top: 66%; bottom: auto; } html.nomotion .cpvfx b:nth-child(6) { top: 28%; bottom: auto; }
@media (prefers-reduced-motion: reduce) { .cpvfx b:nth-child(1) { top: 18%; bottom: auto; } .cpvfx b:nth-child(2) { top: 52%; bottom: auto; } .cpvfx b:nth-child(3) { top: 8%; bottom: auto; } .cpvfx b:nth-child(4) { top: 40%; bottom: auto; } .cpvfx b:nth-child(5) { top: 66%; bottom: auto; } .cpvfx b:nth-child(6) { top: 28%; bottom: auto; } }
/* v110：設定 › アカウントの「お金で買える飾り」（購入の記録） */
.payhist .phlist { display: flex; flex-direction: column; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.payhist .phrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.payhist .phrow + .phrow { border-top: 1px solid var(--line); }
.payhist .phrow .grow { display: flex; flex-direction: column; min-width: 0; }
.payhist .phrow b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payhist .phrow small { font-size: 12px; color: var(--sub); }
.payhist .phst { flex: none; }
.payhist .phst.wait { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

/* ---------- v113：部屋の品の光（キラキラ）・部屋を大きく見る・並べ替え ----------
   光は部屋のキャンバスの上に重ねた層（.rfxl）の .rit に CSS で付ける（品の数だけ JS で毎コマ描かない）。どの光かは品のデータ（fx か r）で決まる：
   fx-shim＝レア（紫のやわらかな光の輪）・fx-gold＝Sレア（金の光と、ときどききらめき）・fx-rainbow＝幻の品（回る虹の輪ときらめき）。
   動きを減らす設定では止まった光（輪の色・きらめきの形で段階は見分けられる）。画面の外（.off）では止める */
.roomcv { position: relative; }
.roomcv canvas { cursor: zoom-in; }
.rfxl { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rzroom .rfxl { overflow: visible; }
.rit { position: absolute; width: var(--s); height: var(--s); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.rit::before, .rit::after, .rit s { content: ''; position: absolute; pointer-events: none; }
.rit.fx-shim::before { inset: -16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(176, 110, 255, 0) 52%, rgba(176, 110, 255, .5) 74%, rgba(176, 110, 255, 0) 100%);
  animation: rfxbreath 3.4s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.rit.fx-gold::before { inset: -24%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 120, .16) 38%, rgba(255, 190, 30, .58) 68%, rgba(255, 190, 30, 0) 100%);
  animation: rfxbreath 2.8s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.rit.fx-rainbow::before { inset: -22%; border-radius: 50%; background: conic-gradient(from var(--cosa), #ff5f6d, #ffc371, #f9f871, #6ee7a8, #5ab9ff, #a78bfa, #ff7ac6, #ff5f6d);
  -webkit-mask: radial-gradient(closest-side, transparent 60%, #000 68%, #000 84%, transparent 100%); mask: radial-gradient(closest-side, transparent 60%, #000 68%, #000 84%, transparent 100%);
  opacity: .9; animation: cosspin 4s linear infinite; }
/* きらめき（4 つの角の星）。Sレアは金、幻の品は白とピンク */
.rit:is(.fx-gold, .fx-rainbow)::after, .rit s { width: 46%; height: 46%; right: -14%; top: -16%; transform: scale(.85);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  background: radial-gradient(circle, #fff 0 18%, #ffe27a 42%, #f0b000 100%); animation: rfxtwinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.rit.fx-rainbow::after, .rit.fx-rainbow s { background: radial-gradient(circle, #fff 0 26%, #ffd0f2 55%, #b98cff 100%); }
.rit s:nth-of-type(1) { width: 32%; height: 32%; right: auto; left: -14%; top: 34%; animation-delay: calc(var(--d) * -1 - 1.1s); }
.rit s:nth-of-type(2) { width: 26%; height: 26%; right: 0; top: auto; bottom: -10%; animation-delay: calc(var(--d) * -1 - 2.1s); }
@keyframes rfxbreath { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes rfxtwinkle { 0%, 62%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 76% { opacity: 1; transform: scale(1) rotate(45deg); } 88% { opacity: .55; transform: scale(.5) rotate(90deg); } }
/* 大きく見るの中は光を強く */
.rfxl.big .rit.fx-shim::before { inset: -26%; background: radial-gradient(closest-side, rgba(176, 110, 255, .1) 40%, rgba(176, 110, 255, .62) 70%, rgba(176, 110, 255, 0) 100%); }
.rfxl.big .rit.fx-gold::before { inset: -32%; background: radial-gradient(closest-side, rgba(255, 226, 120, .22) 36%, rgba(255, 190, 30, .7) 66%, rgba(255, 190, 30, 0) 100%); }
.rfxl.big .rit.fx-rainbow::before { inset: -28%; filter: drop-shadow(0 0 3px rgba(255, 140, 220, .7)); }
.rfxl.off .rit::before, .rfxl.off .rit::after, .rfxl.off .rit s { animation-play-state: paused; }
html.nomotion .rit s { display: none; }
@media (prefers-reduced-motion: reduce) { .rit::before, .rit::after, .rit s { animation: none; } .rit s { display: none; } }
/* 品の名前の札（大きく見るで 1.5 倍から。拡大しても文字は同じ大きさ） */
.rnm { display: none; position: absolute; left: 50%; top: 100%; transform: translate(-50%, 1px) scale(calc(1 / var(--z, 1))); transform-origin: 50% 0; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 1.4; text-decoration: none; color: var(--fg); background: color-mix(in srgb, var(--bg) 84%, transparent); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.rzstage.zin .rnm { display: block; }
/* 部屋の右下の「🔍 大きく見る」 */
.rzbtn { position: absolute; right: 8px; bottom: auto; top: 8px; /* v174：右下は床の家具に重なるので、右上（部屋の絵の外の空き）へ */ z-index: 1; border: 0; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer;
  color: var(--fg); background: color-mix(in srgb, var(--bg) 86%, transparent); box-shadow: 0 2px 8px rgba(0, 0, 0, .16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.roomcard.arranging .rzbtn { display: none; }
.roombtns { flex-wrap: wrap; }
/* 並べ替え：置き場所の印・つかめる品・選んだ品・持ち上げた品の影 */
.rfxl.arr .rit, .rfxl.arr .rsp { pointer-events: auto; touch-action: none; cursor: grab; }
.rfxl.arr .rit { min-width: 34px; min-height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.rsp { position: absolute; width: max(var(--s), 30px); height: max(var(--s), 30px); transform: translate(-50%, -50%); border-radius: 50%; box-sizing: border-box;
  border: 1.5px dashed color-mix(in srgb, var(--fg2) 50%, transparent); background: color-mix(in srgb, var(--bg) 25%, transparent); }
.rsp.over { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 25%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.rfxl.arr .rit.sel { box-shadow: 0 0 0 2.5px var(--accent), 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.rfxl.arr .rit.lift { opacity: .3; }
.rfxl.dragging, .rfxl.dragging .rit { cursor: grabbing; }
.rghost { position: fixed; z-index: 45; pointer-events: none; width: 54px; height: 54px; display: grid; place-items: center; font-size: 34px; line-height: 1; border-radius: 16px;
  transform: translate(-50%, calc(-100% - 14px)) rotate(-4deg); /* 指より上に出して、置き先の印を隠さない */ background: color-mix(in srgb, var(--bg) 82%, transparent); box-shadow: 0 0 0 2px var(--accent), 0 12px 26px rgba(0, 0, 0, .28); }
.rghost.fx-gold { box-shadow: 0 0 0 2px var(--rar3), 0 0 16px rgba(255, 190, 30, .6), 0 12px 26px rgba(0, 0, 0, .28); }
.rghost.fx-shim { box-shadow: 0 0 0 2px var(--rar2), 0 0 14px rgba(176, 110, 255, .55), 0 12px 26px rgba(0, 0, 0, .28); }
.arrbar { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 9%, var(--bg2)); }
.arrnote { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: var(--fg2); }
.arrbar .btns { justify-content: flex-end; margin: 0; }
/* 部屋を大きく見る（全画面。シートより上・トーストより下） */
.rzv { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; background: var(--bg); transition: transform .2s ease; }
.rzv.drag { transition: none; }
.rzhead { position: relative; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 20px) 12px 8px 16px; touch-action: none; }
.rzgrip { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top); height: 20px; padding: 8px 0 0; border: 0; background: none; display: flex; justify-content: center; align-items: flex-start; cursor: grab; }
.rzgrip i { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line2); }
.rzhead h2 { flex: 1; min-width: 0; margin: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rzacts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rzacts .btn[hidden] { display: none; }
.rzx { width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--fg2); background: var(--me); cursor: pointer; }
.rzstage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg2)), var(--bg2)); }
.rzstage:active { cursor: grabbing; }
.rzroom { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rzstage.moving .rzroom { will-change: transform; } /* 指で動かしている間だけ（止まったら拡大した大きさで描き直させて、ぼやけない） */
.rzroom.anim { transition: transform .22s ease; }
.rzroom canvas { display: block; }
.rzbar { padding: 8px 16px 0; }
.rzbar .arrbar { margin: 0; }
.rzhint { margin: 0; text-align: center; font-size: 12px; color: var(--fg2); }
.rzctl { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px calc(env(safe-area-inset-bottom) + 14px); }
.rzb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; }
.rzb:disabled, .rzreset:disabled { opacity: .4; cursor: default; }
.rzpct { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.rzpop { position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 118px); z-index: 2; max-width: 520px; margin: 0 auto; padding: 12px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-lg); }
.rzpop[hidden] { display: none; }
.rzpin { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-right: 30px; }
.rzpop .icbig { flex-shrink: 0; width: 58px; height: 58px; margin: 0; display: grid; place-items: center; font-size: 34px; line-height: 1; border-radius: 15px; }
.rzpt { min-width: 0; }
.rzpt b { display: block; font-size: 16px; line-height: 1.35; }
.rzpm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12px; color: var(--fg2); }
.rzpt .note { margin: 4px 0 0; }
.rzpx { position: absolute; top: -4px; right: -4px; width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--fg2); background: var(--me); cursor: pointer; }
body.rzcard #sheet .sheet-bg { z-index: 27; }
@media (prefers-reduced-motion: reduce) { .rzroom.anim, .rzv { transition: none; } }

/* v115：フォロー相手の居場所（📍 町・施設 何分前）と「会いに行く」 */
.fwrow { flex-wrap: wrap; row-gap: 4px; }
.fwrow > .fwloc { flex: 0 0 calc(100% - 54px); margin: 0 0 0 54px; box-sizing: border-box; }
.fwloc { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; padding: 4px 4px 4px 8px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--fg); }
.fwloc .lt { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.fwloc .lt b { font-size: 12.5px; font-weight: 700; }
.fwloc .lhere { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-size: 11px; white-space: nowrap; }
.fwloc .lago { white-space: nowrap; font-size: 11px; }
.fwloc.old .lt b { font-weight: 600; color: var(--fg2); }
.fwloc.off { background: var(--me); color: var(--sub); padding: 5px 8px; }
.fwloc .fwgo { flex: none; width: auto; margin: 0; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.npcsheet .fwloc { margin: 0 0 6px; }
.meetsheet .meetwhere { margin: 2px 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.meetsheet .meetsub { margin: 0 0 8px; font-size: 12.5px; }
.meetsheet .meetwhy { margin: 0 0 8px; }
.meetsheet .infochips { margin: 8px 0 12px; }
.trchain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin: 0 0 4px; }
.trchain .trtown { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--me); color: var(--fg); border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); white-space: nowrap; }
.trchain .trtown.now { background: var(--accent); color: var(--accent-fg); border-style: solid; border-color: var(--accent); }
.trchain .trtown.goal { border-style: solid; border-color: var(--accent); }
.trchain .trtown.goal::before { content: '📍'; margin-right: 2px; font-size: 11px; }
.trchain .trar { color: var(--accent); font-weight: 700; padding: 0 2px; }
.tripbar { flex-wrap: wrap; row-gap: 0; }
.tripbar .rtxt { flex: 1 1 0; }
.tripbar .treta { font-weight: 600; }
.tripbar .trchain.sm { flex: 1 0 100%; margin: 0 0 4px; gap: 2px 1px; }
.tripbar .trchain.sm .trtown { padding: 2px 7px; font-size: 11.5px; border-width: 1px; }
.tripbar.met .chip { flex: none; font-size: 12px; padding: 5px 10px; }
/* v121：町の施設の常連（施設のシートの 1 行・常連の記録・名札の印） */
.regline { margin: 0 0 8px; padding: 7px 10px; border-radius: var(--r-md); background: color-mix(in srgb, #d4a72c 12%, var(--bg2)); font-size: 13px; line-height: 1.5; }
.regline a { font-size: 12px; white-space: nowrap; }
.regsheet .reglist { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.regrow { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); }
.regrow.zero { opacity: .62; }
.regrow .regic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.regrow .grow { min-width: 0; }
.regrow .regt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.regrow .regt b { font-size: 14px; }
.regrow .regd { margin-left: auto; font-size: 12px; }
.regrow .lvbar { margin: 4px 0 2px; height: 5px; }
.regrow small { display: block; font-size: 11.5px; line-height: 1.4; }
.regrow .regmk { flex: none; padding: 5px 9px; font-size: 12px; }
.regmkrow { gap: 6px; margin: 4px 0 2px; }
.regmkrow .chip { padding: 5px 10px; font-size: 12px; }
.regpill { font-size: 11px; padding: 1px 7px; }
.regpill.t1 { background: color-mix(in srgb, #4caf7a 18%, var(--card, #fff)); color: #2f7a52; }
.regpill.t2 { background: color-mix(in srgb, #4f6fd5 18%, var(--card, #fff)); color: #3a52a8; }
.regpill.t3 { background: linear-gradient(135deg, #f6d77a, #d4a72c); color: #5a3e00; }
.pill.regmark { background: color-mix(in srgb, #d4a72c 14%, var(--card, #fff)); color: var(--fg); font-size: 12px; }
.pill.regmark .rmk { margin-left: 3px; font-size: 11px; color: var(--fg2); }
@media (prefers-color-scheme: dark) {
  .regpill.t1 { color: #8fe0b2; } .regpill.t2 { color: #a9bbff; }
}
.decotile.r3:not(.lock)::after { background: #d4a72c; } /* v121：主の金の家具 */
/* v122：家具のセット（持ち物のお店の「🛋️ 家具のセット」・部屋の見本・購入の確かめと届いたお祝いの部屋の絵・ほかの人の部屋の小さなカード） */
.payfx { margin: 0 0 12px; }
.payfx .pfxh { margin: 4px 4px 8px; font-size: 16px; }
.payfxset .pfxhero { position: relative; display: block; width: 100%; margin: 8px 0 10px; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, #f3b07a 14%, var(--bg2)), var(--bg2)); }
.payfxset .pfxhero img { display: block; width: 100%; height: auto; }
.payfxset .pfxhero .pstry { bottom: 8px; }
.payfxset .psname { display: block; font-size: 15px; }
.pfxsheet .pfxroom { margin: 8px 0 10px; }
.pfxsheet .pfxroom canvas { cursor: default; }
.pfxsheet .pfxitems { margin: 0 0 10px; }
.cssetav.fxroom { width: 52px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--bg2); flex: none; }
.cssetav.fxroom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcav.pcroom { width: 112px; flex: none; border-radius: 10px; overflow: hidden; background: var(--bg2); }
.pcav.pcroom img, .pcelav.pcroom img { display: block; width: 100%; height: auto; }
.pcelav.pcroom { width: min(300px, 86%); margin: 4px auto 8px; border-radius: 12px; overflow: hidden; background: var(--bg2); }
.pill.pfxpill { background: linear-gradient(135deg, #ffe1c7, #ffd0dc); color: #8a3b4a; font-size: 11px; }
.icbig.pfxic { box-shadow: 0 0 0 3px rgba(255, 190, 150, .45), 0 0 18px rgba(255, 170, 160, .55); }
.rzshop { margin: 6px 0 0; font-size: 13px; }
.rzshop a { font-weight: 700; }
@media (prefers-color-scheme: dark) { .pill.pfxpill { background: linear-gradient(135deg, #5a3a34, #5a3446); color: #ffd6c8; } }
/* v123：施設のにぎわい（活気度）。見出しの札（にぎやか ♪・大にぎわい 🔥・お祭り 🎉）とシートの行 */
body.mapfull #placehead .maphead.inplace .livepill { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.livepill.lv1 { background: color-mix(in srgb, #3d8fe0 14%, var(--card)); color: var(--fg); }
.livepill.lv2 { background: #ff6d2e; color: #fff; }
.livepill.lv3 { background: #f2b705; color: #3a2600; box-shadow: 0 0 0 1px #b8860b inset; }
@media (max-width: 479px) { body.mapfull #placehead .maphead.inplace .livepill { padding: 2px 6px; } body.mapfull #placehead .maphead.inplace .livepill .lvw { display: none; } } /* スマホの幅では絵だけ（施設の名前に幅をゆずる。段の名前はシートの「にぎわい：」の行と読み上げに） */
.liveline { margin: 0 0 8px; padding: 7px 10px; border-radius: var(--r-md); background: var(--bg2); font-size: 13px; line-height: 1.5; }
.liveline.lv1 { background: color-mix(in srgb, #3d8fe0 12%, var(--bg2)); }
.liveline.lv2 { background: color-mix(in srgb, #ff6d2e 16%, var(--bg2)); font-weight: 600; }
.liveline.lv3 { background: color-mix(in srgb, #f2b705 26%, var(--bg2)); font-weight: 600; }
.liveline .lvsub { display: block; font-size: 11px; font-weight: 400; color: var(--fg2); }
/* ---- v124：住人のめずらしい出来事（頼まれごと・落とし物・三人の立ち話） ---- */
:root { --ev-req: #c9861a; --ev-lost: #2f8fb8; --ev-trio: #8a5bd6; --ev-heart: #e2557c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ev-req: #f0b453; --ev-lost: #6cc3e8; --ev-trio: #b796ff; --ev-heart: #ff7fa0; } }
:root[data-theme="dark"] { --ev-req: #f0b453; --ev-lost: #6cc3e8; --ev-trio: #b796ff; --ev-heart: #ff7fa0; }
.ev-req { --evc: var(--ev-req); } .ev-lost { --evc: var(--ev-lost); } .ev-trio { --evc: var(--ev-trio); }
.evscene { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.evsys { text-align: center; }
.evpill { background: color-mix(in srgb, var(--evc, var(--accent)) 16%, var(--card)); color: color-mix(in srgb, var(--evc, var(--accent)) 70%, var(--fg)); border: 1px solid color-mix(in srgb, var(--evc, var(--accent)) 35%, transparent); font-weight: 700; }
.evok { background: color-mix(in srgb, var(--ev-heart) 14%, var(--card)); color: color-mix(in srgb, var(--ev-heart) 75%, var(--fg)); border: 1px solid color-mix(in srgb, var(--ev-heart) 35%, transparent); font-weight: 700; white-space: normal; }
.evgain { text-align: center; }
.evmsg .bubble { border-color: color-mix(in srgb, var(--evc, var(--accent)) 30%, var(--line)); }
.evscene.ev-trio .evmsg:not(.right) .bubble { background: color-mix(in srgb, var(--ev-trio) 7%, var(--card)); }
.evscene.ev-trio .evmsg.c3 .bubble { background: color-mix(in srgb, var(--ev-lost) 9%, var(--card)); border-color: color-mix(in srgb, var(--ev-lost) 30%, var(--line)); }
.evwho { display: block; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--ev-trio) 75%, var(--fg)); margin-bottom: 1px; }
.evmsg.c3 .evwho { color: color-mix(in srgb, var(--ev-lost) 75%, var(--fg)); }
.evcard { border: 1px solid color-mix(in srgb, var(--evc) 40%, var(--line)); border-left: 4px solid var(--evc); border-radius: var(--r-md); background: color-mix(in srgb, var(--evc) 7%, var(--card)); padding: 10px 12px; box-shadow: var(--shadow-xs); }
.evcard.over { opacity: .85; border-left-color: color-mix(in srgb, var(--evc) 50%, var(--line2)); }
.evtop { display: flex; align-items: center; gap: 8px; }
.evtop .evic { font-size: 20px; line-height: 1; }
.evtop b { font-size: 15px; min-width: 0; }
.evst { flex: none; font-size: 12px; font-weight: 700; color: var(--sub); padding: 2px 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); white-space: nowrap; }
.evst.left { color: color-mix(in srgb, var(--evc) 70%, var(--fg)); border-color: color-mix(in srgb, var(--evc) 35%, transparent); }
.evst.ok { color: color-mix(in srgb, var(--ev-heart) 80%, var(--fg)); border-color: color-mix(in srgb, var(--ev-heart) 35%, transparent); }
.evgoal { margin: 6px 0 6px; font-size: 14px; font-weight: 600; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.evsteps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; padding: 0; font-size: 12.5px; color: var(--fg2); }
.evsteps li { display: inline-flex; align-items: center; gap: 5px; }
.evsteps li + li::before { content: "→"; color: var(--sub); margin-right: 8px; }
.evck { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--sub) 55%, transparent); font-size: 10px; font-weight: 800; color: #fff; }
.evsteps li.ok .evck { background: var(--evc); border-color: var(--evc); }
.evsteps li.ok { color: var(--fg); font-weight: 600; }
.evhint { margin: 4px 0 0; font-size: 12px; color: var(--sub); line-height: 1.5; }
.evbtns { margin-top: 8px; }
/* 施設の中のシートの 1 行 */
.evrow { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 6px 8px 6px 10px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--evc) 40%, var(--line)); background: color-mix(in srgb, var(--evc) 10%, var(--card)); pointer-events: auto; }
.evric { font-size: 20px; flex: none; }
.evrtx { display: flex; flex-direction: column; min-width: 0; }
.evrtx b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evrtx small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evrow .btn { flex: none; }
/* 地図の「いまの出来事」の帯（下の出来事の 1 行の上・左。「○○に入る」があるときはその上） */
.mapevent { position: absolute; left: 12px; bottom: 12px; z-index: 2; max-width: min(calc(100% - 92px), 330px); min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 6px; border: 1px solid color-mix(in srgb, var(--evc, var(--accent)) 45%, var(--ov-line)); border-radius: 22px; background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--fg); font: inherit; text-align: left; box-shadow: var(--shadow); cursor: pointer; }
.mapevent .evsic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--evc, var(--ev-req)) 20%, var(--card)); }
.mapevent .evstx { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mapevent .evstx small { font-size: 10.5px; font-weight: 700; color: var(--sub); }
.mapevent .evstx b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapevent .evsleft { flex: none; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--evc, var(--ev-req)) 75%, var(--fg)); white-space: nowrap; }
.mapevent .evsgo { flex: none; color: var(--accent); font-weight: 700; }
.mapwrap.enteron .mapevent { bottom: 64px; }
body.mapfull:not(.mapscroll) .mapevent { bottom: calc(var(--feed-h, 54px) + 10px); }
body.mapfull:not(.mapscroll) .mapwrap.enteron .mapevent { bottom: calc(var(--feed-h, 54px) + 62px); }
body.mapfull.sheet-open.sheet-cover .mapevent { opacity: 0; transition: opacity .15s ease; }
body.tsopen .mapevent { opacity: 0; pointer-events: none; }
/* やりとげたお祝い（v98 のお祝いの形。顔＋♥＋思い出の品） */
.evfx { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; min-height: 96px; }
.evfxface { display: inline-grid; place-items: center; border-radius: 50%; box-shadow: 0 0 0 4px var(--card), 0 6px 18px rgba(20,23,32,.18); }
.evfxface.f2 { margin-left: -14px; }
.evfxheart { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font-size: 30px; color: var(--ev-heart); text-shadow: 0 2px 8px color-mix(in srgb, var(--ev-heart) 45%, transparent); animation: evbeat 1.2s ease-in-out 2; }
.evfx .kpic { margin-left: 12px; width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; border-radius: 18px; background: var(--bg2); box-shadow: var(--shadow-xs); }
@keyframes evbeat { 0%, 100% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .evfxheart { animation: none; } }
html.nomotion .evfxheart { animation: none; }
.cfx.still .evfxheart { animation: none; }
.cfxh .evh { color: var(--ev-heart); }
/* ---- v125：にぎわう施設の限定の出来事（大にぎわい＝小さな版・お祭り＝豪華な版） ---- */
:root { --fest2: #ff6d2e; --fest3: #e0a000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fest2: #ff9a5c; --fest3: #ffcf4a; } }
:root[data-theme="dark"] { --fest2: #ff9a5c; --fest3: #ffcf4a; }
.festrow { --evc: var(--fest2); display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 6px 8px 6px 10px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--evc) 45%, var(--line)); background: color-mix(in srgb, var(--evc) 11%, var(--card)); pointer-events: auto; }
.festrow.lv3 { --evc: var(--fest3); background: linear-gradient(100deg, color-mix(in srgb, var(--fest3) 22%, var(--card)), color-mix(in srgb, #ff7ac6 12%, var(--card))); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fest3) 30%, transparent), 0 4px 14px color-mix(in srgb, var(--fest3) 25%, transparent); }
.festrow .btn { flex: none; }
.festrow.lv3 .festbtn { background: linear-gradient(135deg, #f5b400, #ff7a59); color: #fff; }
.festrow.done { opacity: .9; }
/* お祭りの行の説明（残り時間・限定の品・分身が中にいると…）は 2 行まで折り返す（1 行だと狭い画面で大事な所が切れる） */
.festrow .evrtx small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.35; }
/* 今週の飾り点の行：項目ごとに折り返さず、区切りの点は前の項目の後ろ（行の頭に点が来ない） */
.weekpts .wpi { white-space: nowrap; }
.weekpts .wpi.wpw { white-space: normal; }
.weekpts .wpi:not(:last-child)::after { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; margin: 0 3px 0 6px; vertical-align: middle; }
.festrow .festok { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--evc); color: #fff; font-weight: 800; }
.festmark { margin: 0 0 8px; padding: 6px 10px; border-radius: var(--r-md); background: color-mix(in srgb, var(--fest3) 16%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--fest3) 40%, transparent); font-size: 13px; font-weight: 600; }
.festmark small { font-weight: 400; margin-left: 4px; }
.mapevent.fest { --evc: var(--fest2); }
.mapevent.fest.lv3 { --evc: var(--fest3); background: linear-gradient(100deg, color-mix(in srgb, var(--fest3) 18%, var(--card)), color-mix(in srgb, #ff7ac6 10%, var(--card))); border-color: color-mix(in srgb, var(--fest3) 60%, transparent); }
.festfx { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto; border-radius: 28px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, #b77cff 26%, var(--card)), var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, #8a5bd6 55%, transparent), 0 10px 30px rgba(20,23,32,.18); }
.festfx.gold { background: radial-gradient(circle at 50% 40%, #fff3c2, #ffd23f 70%); box-shadow: 0 0 0 3px #f5b400, 0 0 26px rgba(255,190,40,.7); }
.festfxic { font-size: 60px; line-height: 1; }
.festfxtag { position: absolute; right: -10px; top: -10px; padding: 2px 8px; border-radius: 999px; background: #8a5bd6; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.festfx.gold .festfxtag { background: linear-gradient(135deg, #f5b400, #ff7a59); }
/* v126：クリスマス・お正月のセットの専用の見た目 */
/* 枠：ヒイラギのリース（wreath）・紅白の水引（mizuhiki）。絵は app.js の CFX_SVG（::after の背景は app.js が style#cfxsvg で入れる。地図も同じ絵） */
.avatar.cfx-wreath, .avatar.cfx-mizuhiki, .avatar.cfx-cafe, .avatar.cfx-brass, .avatar.cfx-usagi, .avatar.cfx-hinoki, .avatar.cfx-mug, .avatar.cfx-medal, .avatar.cfx-weekly { position: relative; }
.avatar.cfx-wreath::after, .avatar.cfx-mizuhiki::after, .avatar.cfx-cafe::after, .avatar.cfx-brass::after, .avatar.cfx-usagi::after, .avatar.cfx-hinoki::after, .avatar.cfx-mug::after, .avatar.cfx-medal::after, .avatar.cfx-weekly::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.avatar.cfx-wreath:not(.sm):not(.xs) { filter: drop-shadow(0 1px 2px rgba(10, 40, 20, .35)); }
.avatar.cfx-mizuhiki:not(.sm):not(.xs) { filter: drop-shadow(0 0 3px rgba(232, 194, 90, .6)); }
.avatar.cfx-cafe:not(.sm):not(.xs) { filter: drop-shadow(0 0 4px rgba(232, 190, 80, .65)); }
/* 名札：キャンディケイン（cane：札の色に白い斜めのしま・緑の縁）・金の縁（gold：上下のつやと金の縁どり） */
.cntag.ntfx-cane { background: linear-gradient(90deg, transparent 0 10px, var(--ntc) 10px calc(100% - 10px), transparent calc(100% - 10px)), repeating-linear-gradient(-45deg, var(--ntc) 0 4px, rgba(255, 255, 255, .95) 4px 7px), var(--ntc); box-shadow: inset 0 0 0 1.5px #1f6b45, 0 1px 3px rgba(0, 0, 0, .2); text-shadow: 0 0 2px rgba(70, 10, 20, .95), 0 1px 1px rgba(70, 10, 20, .8); padding-left: 12px; padding-right: 12px; }
.cntag.ntfx-gold { background: linear-gradient(180deg, color-mix(in srgb, var(--ntc) 80%, #fff), color-mix(in srgb, var(--ntc) 88%, #000)); box-shadow: inset 0 0 0 1.5px #f0cf6a, 0 0 0 1px rgba(120, 80, 10, .35), 0 1px 4px rgba(120, 80, 10, .3); text-shadow: 0 1px 1px rgba(70, 10, 20, .5); }
/* 動きの見本：雪と星（xmas）・紅白梅と小判（fuku）。飾りのシートは 10 粒（雪・金の星・プレゼント・オーナメント／花びら・金のきらめき・小判） */
.cpvfx.k-xmas b { background: var(--m1, #fff); }
.cpvfx.k-xmas b:nth-child(3n+2), .cpvfx.k-fuku b:nth-child(3n+2) { width: auto; height: auto; background: none; box-shadow: none; font-size: 11px; line-height: 1; color: var(--m2, #f2c14e); text-shadow: 0 0 3px rgba(255, 200, 60, .95), 0 0 1px rgba(90, 60, 10, .9); }
.cpvfx.k-xmas b:nth-child(3n+2)::before { content: "★"; }
.cpvfx.k-fuku b:nth-child(3n+2) { color: var(--m3, #e8b84a); font-size: 12px; } .cpvfx.k-fuku b:nth-child(3n+2)::before { content: "✦"; }
.cpvfx.k-xmas b:nth-child(4) { width: 8px; height: 8px; border-radius: 1px; background: linear-gradient(90deg, transparent 38%, #f2c14e 38% 62%, transparent 62%), linear-gradient(0deg, transparent 38%, #f2c14e 38% 62%, transparent 62%), var(--m3, #d42a3c); box-shadow: 0 0 0 1px rgba(60, 20, 20, .4); }
.cpvfx.k-xmas b:nth-child(9) { width: 7px; height: 7px; background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--m3, #d42a3c) 22%); box-shadow: 0 0 0 1px rgba(60, 20, 20, .4), 0 -2px 0 -1px #f2c14e; }
.cpvfx.k-fuku b { width: 6px; height: 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--m1, #d6336c); box-shadow: 0 0 0 1px rgba(80, 20, 30, .3); }
.cpvfx.k-fuku b:nth-child(2n) { background: var(--m2, #fff5f7); }
.cpvfx.k-fuku b:nth-child(4), .cpvfx.k-fuku b:nth-child(9) { width: 7px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #fff1b0, #e8b84a 55%, #b8862a); box-shadow: 0 0 0 1px rgba(110, 70, 10, .6), 0 0 4px rgba(255, 205, 80, .8); }
.cpvfx b:nth-child(7) { left: 15%; animation-delay: -2.1s; } .cpvfx b:nth-child(8) { left: 34%; animation-delay: -.5s; }
.cpvfx b:nth-child(9) { left: 71%; animation-delay: -1.1s; } .cpvfx b:nth-child(10) { left: 53%; animation-delay: -3s; }
html.nomotion .cpvfx b:nth-child(7) { top: 74%; bottom: auto; } html.nomotion .cpvfx b:nth-child(8) { top: 12%; bottom: auto; } html.nomotion .cpvfx b:nth-child(9) { top: 46%; bottom: auto; } html.nomotion .cpvfx b:nth-child(10) { top: 4%; bottom: auto; }
@media (prefers-reduced-motion: reduce) { .cpvfx b:nth-child(7) { top: 74%; bottom: auto; } .cpvfx b:nth-child(8) { top: 12%; bottom: auto; } .cpvfx b:nth-child(9) { top: 46%; bottom: auto; } .cpvfx b:nth-child(10) { top: 4%; bottom: auto; } }
/* 小さな見本（タイル）：雪と星は 2 つめ・4 つめが金の星、紅白梅は金のきらめき */
.cmofall.cust.k-fuku .cmofx b { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.cmofall.cust.k-xmas .cmofx b:nth-child(2n), .cmofall.cust.k-fuku .cmofx b:nth-child(2n) { width: auto; height: auto; background: none; box-shadow: none; font-size: 11px; line-height: 1; color: #f2c14e; text-shadow: 0 0 3px rgba(255, 200, 60, .95), 0 0 1px rgba(90, 60, 10, .9); }
.cmofall.cust.k-xmas .cmofx b:nth-child(2n)::before { content: "★"; } .cmofall.cust.k-fuku .cmofx b:nth-child(2n)::before { content: "✦"; }
.cmofall.cust.k-xmas .cmofx b:nth-child(3) { border-radius: 1px; background: linear-gradient(90deg, transparent 38%, #f2c14e 38% 62%, transparent 62%), linear-gradient(0deg, transparent 38%, #f2c14e 38% 62%, transparent 62%), var(--m3); }

/* ===== v129：SSレア（虹）をいちばん豪華に。レア（紫）＜Sレア（金）＜SSレア（虹＋金の縁＋宝石＋光の筋＋きらめき）=====
   動きは CSS だけ（JS で毎コマ描くのは地図の虹の枠・名札だけ）。アプリの「動きを減らす」（html.nomotion）は全体の決まりで止まり、OS の設定は下でまとめて止める。
   止めた絵でも金の縁・宝石・きらめきの形は残る（いちばん上の段と分かる） */
@keyframes ssrpill { 0% { background-position: 170% 0, 0 0; } 45% { background-position: -70% 0, 90% 0; } 100% { background-position: -70% 0, 200% 0; } }
@keyframes ssrtw { 0%, 100% { opacity: .55; transform: scale(.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes ssrsweep { 0%, 58% { transform: translateX(-160%) skewX(-16deg); } 100% { transform: translateX(360%) skewX(-16deg); } }
/* 札「SSレア」：ホログラム（虹の板の上を白い光が走る）・金の細い縁・右上のきらめき */
.pill.rar.r4, .itemrow .pill.rar.r4, .lgshelfit .pill.rar.r4 { position: relative; overflow: visible;
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%), linear-gradient(90deg, #ffb3b3, #ffd59a, #fff59a, #b5f5cf, #a9d8ff, #d4c2ff, #ffb3c8, #ffb3b3);
  background-size: 260% 100%, 200% 100%; box-shadow: inset 0 0 0 1px #c9a227, inset 0 0 0 2px rgba(255, 255, 255, .55), 0 0 9px rgba(180, 110, 255, .6); animation: ssrpill 4.2s linear infinite; }
.pill.rar.r4::after { content: '✦'; position: absolute; top: -6px; right: -5px; font-size: 10px; line-height: 1; color: #fff; text-shadow: 0 0 3px #f5b400, 0 0 6px #c084fc; pointer-events: none; animation: ssrtw 2.2s ease-in-out infinite; }
/* 着せ替えのタイル：回る虹の縁＋金の細い外の縁＋紫の光、白い光がときどき走り、左上に虹色のきらめき */
:root { --ssrbg: linear-gradient(150deg, #fff0f6, #fff9e0 28%, #eafff3 52%, #e6f2ff 74%, #f2e9ff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ssrbg: linear-gradient(150deg, #3a2448, #3a3326 28%, #1f3a33 52%, #1f2c48 74%, #33244e); } }
:root[data-theme="dark"] { --ssrbg: linear-gradient(150deg, #3a2448, #3a3326 28%, #1f3a33 52%, #1f2c48 74%, #33244e); }
.ctile.r4 { overflow: hidden; border: 2.5px solid transparent; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .4), transparent 60%) padding-box, var(--ssrbg) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .85), 0 0 18px -1px rgba(180, 110, 255, .75); animation: cosspin 5s linear infinite; }
.ctile.r4.on, .ctile.r4.try { box-shadow: 0 0 0 1px rgba(201, 162, 39, .85), 0 0 18px -1px rgba(180, 110, 255, .75); }
.ctile.r4::before, .costry.r4::before { content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%; pointer-events: none; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75) 45%, rgba(255, 210, 250, .45) 60%, transparent); animation: ssrsweep 4.6s ease-in-out infinite; transform: translateX(-160%) skewX(-16deg); }
.ctile.r4::after { content: '✦'; position: absolute; top: 5px; left: 7px; z-index: 2; font-size: 12px; line-height: 1; color: #fff; pointer-events: none;
  text-shadow: 0 0 3px #c084fc, 0 0 6px #f5b400, 9px 7px 0 #ff9ad5, 3px 15px 0 #7cc4ff; animation: ssrtw 2.6s ease-in-out infinite; }
.costry.r4 { position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(201, 162, 39, .8), 0 0 16px -2px rgba(180, 110, 255, .7); animation: cosspin 6s linear infinite; }
/* 持ち物・品のカード・部屋のトレイなどの小さな枠：Sレアの ✦ と同じ場所に、白・ピンク・青の 3 つのきらめきと、虹がかった光の筋 */
.itemrow.r4 .iic, :is(.icbig, .kpic, .tile, .rcell.on, .kzs.on).r4 { position: relative; overflow: hidden; }
.itemrow.r4 .iic::after, :is(.icbig, .kpic, .tile, .rcell.on, .kzs.on).r4::after { content: '✦'; position: absolute; top: 1px; right: 3px; font-size: 10px; line-height: 1; color: #fff; pointer-events: none;
  text-shadow: 0 0 3px #c084fc, 0 0 5px #f5b400, -8px 6px 0 #ff9ad5; }
.itemcard .icbig.r4::after, .keepcard .kpic.r4::after { font-size: 14px; top: 6px; right: 8px; text-shadow: 0 0 4px #c084fc, 0 0 7px #f5b400, -12px 9px 0 #ff9ad5, -3px 20px 0 #7cc4ff; }
.itemrow.r4 .iic::before, :is(.icbig, .kpic, .tile, .rcell.on).r4::before { content: ''; position: absolute; inset: -20% auto -20% -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), rgba(255, 200, 250, .4), transparent); transform: translateX(-120%) skewX(-12deg); animation: rarshine 3.8s ease-in-out infinite; }
.itemcard .icbig.r4 { box-shadow: 0 0 0 1.5px rgba(201, 162, 39, .9), 0 0 26px 2px rgba(180, 110, 255, .65), 0 0 40px rgba(255, 210, 120, .35); }
/* 自慢の棚・幻の品の一覧：金の細い縁と強い光・左上のきらめき（棚は止まった虹のまま） */
.lgshelfit.r4 { position: relative; box-shadow: 0 0 0 1px rgba(201, 162, 39, .8), 0 0 18px -2px rgba(180, 110, 255, .75); }
.lgshelfit.r4::after { content: '✦'; position: absolute; top: 5px; left: 7px; font-size: 12px; line-height: 1; color: #fff; pointer-events: none; text-shadow: 0 0 3px #c084fc, 0 0 6px #f5b400, 9px 7px 0 #ff9ad5; }
/* プロフィールのごほうびの札（SSレア）：札と同じホログラム */
.rwaw.r4 { background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%), linear-gradient(90deg, #ffb3b3, #ffd59a, #fff59a, #b5f5cf, #a9d8ff, #d4c2ff, #ffb3c8, #ffb3b3);
  background-size: 260% 100%, 200% 100%; box-shadow: inset 0 0 0 1px #c9a227, 0 0 8px rgba(180, 110, 255, .55); animation: ssrpill 5s linear infinite; }
/* 伝説の虹の枠：太い虹の輪（顔は 85%）の内と外に金の縁・8 つの宝石（app.js の CFX_SVG.legend）。輪の上を白い光がひと回りし、上のダイヤと右の宝石がまたたく */
.avatar.cosf.cfx-legend { position: relative; padding: 0 !important; }
.avatar.cfx-legend > svg, .avatar.cfx-legend > img { width: 85%; height: 85%; margin: 7.5%; }
.avatar.cfx-legend::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 50%; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.avatar.cfx-legend::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from var(--cosa), transparent 0 282deg, rgba(255, 255, 255, 0) 282deg, rgba(255, 255, 255, .9) 328deg, rgba(255, 255, 255, 0) 350deg);
  -webkit-mask: radial-gradient(closest-side, transparent 84%, #000 85.5%, #000 97%, transparent 98.5%); mask: radial-gradient(closest-side, transparent 84%, #000 85.5%, #000 97%, transparent 98.5%); animation: cosspin 3.2s linear infinite; }
.avatar.cf-rainbow.cfx-legend:not(.sm):not(.xs) { filter: drop-shadow(0 0 5px rgba(190, 120, 255, .7)) drop-shadow(0 0 2px rgba(255, 210, 110, .6)); }
.cflgtw { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cflgtw::before, .cflgtw::after { content: ''; position: absolute; width: 17%; height: 17%; left: 41.5%; top: -4.5%; opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); background: radial-gradient(circle, #fff 0 30%, #fff6c2 60%, #ffd76a 100%); animation: rfxtwinkle 2.8s ease-in-out infinite; }
.cflgtw::after { width: 13%; height: 13%; left: 89.5%; top: 43.5%; animation-delay: -1.4s; background: radial-gradient(circle, #fff 0 30%, #d8f8e4 60%, #7ee8b0 100%); }
.avatar.xs .cflgtw, .avatar.sm .cflgtw { display: none; }
html.nomotion .cflgtw { display: none; }
/* 虹の名札：ホログラム（濃い虹の上を光の帯が流れる）・金の縁・右のきらめき */
.cntag.rb { position: relative; padding-right: 16px;
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 48%), linear-gradient(90deg, #d94f6a, #d9822b, #b9a019, #2f9e6e, #2f7fd0, #7d55d6, #d94f6a);
  background-size: 260% 100%, 100% 100%, 200% 100%; box-shadow: inset 0 0 0 1.5px #f3cf62, inset 0 0 0 2.5px rgba(110, 60, 0, .3), 0 0 10px rgba(180, 110, 255, .55), 0 1px 3px rgba(0, 0, 0, .2);
  text-shadow: 0 1px 1px rgba(40, 10, 70, .55); animation: ssrtag 4.6s linear infinite; }
@keyframes ssrtag { 0% { background-position: 170% 0, 0 0, 0 0; } 45% { background-position: -70% 0, 0 0, 90% 0; } 100% { background-position: -70% 0, 0 0, 200% 0; } }
.cntag.rb::after { content: '✦'; position: absolute; right: 5px; top: 50%; margin-top: -.42em; font-size: .78em; line-height: 1; color: #fff8d0; text-shadow: 0 0 4px #ffd76a, 0 0 2px #fff; pointer-events: none; animation: ssrtw 2.4s ease-in-out infinite; }
.cntag.rb.sm { padding-right: 13px; }
/* 飾りのシート（SSレア）：見本の後ろに虹の光の筋と白い光の輪・回る虹の縁 */
.cossheet.r4 .cpv { border: 2px solid transparent; background: linear-gradient(var(--mapg), var(--mapg)) padding-box, conic-gradient(from var(--cosa), var(--lgrb)) border-box; box-shadow: 0 0 0 1px rgba(201, 162, 39, .6), 0 0 22px -4px rgba(180, 110, 255, .75); animation: cosspin 6s linear infinite; }
.cossheet.r4 .cpv::before { content: ''; position: absolute; left: 50%; top: 42%; width: 560px; height: 560px; margin: -280px 0 0 -280px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 95, 109, .3) 0 4deg, transparent 4deg 10deg, rgba(255, 170, 60, .3) 10deg 14deg, transparent 14deg 20deg, rgba(240, 210, 40, .32) 20deg 24deg, transparent 24deg 30deg, rgba(60, 200, 130, .28) 30deg 34deg, transparent 34deg 40deg, rgba(70, 160, 255, .3) 40deg 44deg, transparent 44deg 50deg, rgba(160, 110, 250, .32) 50deg 54deg, transparent 54deg 60deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 40%); mask: radial-gradient(circle, #000 8%, transparent 40%); animation: lgspin 30s linear infinite; }
.cossheet.r4 .cpv::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .85), rgba(255, 240, 190, .45) 16%, rgba(210, 160, 255, .2) 32%, transparent 50%); }
.cossheet.r4 .cpvme, .cossheet.r4 .cpvtag { z-index: 2; }
/* 部屋の幻の品：虹の輪を明るく、外へ白と金の光、まわりに虹の光の筋とめぐる光の粒（u）。Sレアの金より一段強い */
.rit.fx-rainbow { box-shadow: 0 0 calc(var(--s) * .3) calc(var(--s) * .06) rgba(205, 150, 255, .55), 0 0 calc(var(--s) * .6) rgba(255, 220, 140, .35); }
.rit.fx-rainbow::before { opacity: 1; filter: saturate(1.25) drop-shadow(0 0 2px rgba(255, 255, 255, .9)); }
.rit.fx-rainbow u { position: absolute; inset: -55%; border-radius: 50%; pointer-events: none; animation: lgspin0 10s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0 9deg, rgba(255, 214, 120, .55) 11deg, rgba(255, 255, 255, 0) 13deg 29deg, rgba(150, 200, 255, .5) 31deg, rgba(255, 255, 255, 0) 33deg 49deg, rgba(255, 150, 220, .5) 51deg, rgba(255, 255, 255, 0) 53deg 60deg);
  -webkit-mask: radial-gradient(closest-side, transparent 44%, #000 54%, transparent 100%); mask: radial-gradient(closest-side, transparent 44%, #000 54%, transparent 100%); }
.rit.fx-rainbow u::before, .rit.fx-rainbow u::after { content: ''; position: absolute; left: 47%; top: 21%; width: 6%; height: 6%; border-radius: 50%; background: radial-gradient(circle, #fff 0 35%, #ffd0f2 70%, transparent); box-shadow: 0 0 6px 2px rgba(255, 255, 255, .85); }
.rit.fx-rainbow u::after { top: auto; bottom: 21%; left: 47%; background: radial-gradient(circle, #fff 0 35%, #fff2a6 70%, transparent); box-shadow: 0 0 6px 2px rgba(255, 230, 150, .85); }
@keyframes lgspin0 { to { transform: rotate(360deg); } }
.rfxl.big .rit.fx-rainbow { box-shadow: 0 0 calc(var(--s) * .4) calc(var(--s) * .08) rgba(205, 150, 255, .6), 0 0 calc(var(--s) * .8) rgba(255, 220, 140, .4); }
.rfxl.off .rit u { animation-play-state: paused; }
html.nomotion .rit.fx-rainbow s { display: block; opacity: .9; transform: scale(.8) rotate(45deg); }
/* お祝い（幻の品・SSレアのごほうび）：7 色の光の筋＋逆回りの白い筋・強い光・星の紙ふぶき・「SSレア」の判 */
.lgfx.ssr .lgrays { background: repeating-conic-gradient(from 0deg, rgba(255, 95, 109, .26) 0 3.5deg, transparent 3.5deg 10deg, rgba(255, 170, 60, .26) 10deg 13.5deg, transparent 13.5deg 20deg, rgba(249, 230, 80, .26) 20deg 23.5deg, transparent 23.5deg 30deg, rgba(90, 220, 150, .24) 30deg 33.5deg, transparent 33.5deg 40deg, rgba(90, 185, 255, .26) 40deg 43.5deg, transparent 43.5deg 50deg, rgba(170, 120, 255, .28) 50deg 53.5deg, transparent 53.5deg 60deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 9%, transparent 28%); mask: radial-gradient(circle, #000 0, #000 9%, transparent 28%); }
.ssrrays { position: absolute; left: 50%; top: 42%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(from 3deg, rgba(255, 255, 255, .16) 0 1.4deg, transparent 1.4deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 6%, transparent 20%); mask: radial-gradient(circle, #000 0, #000 6%, transparent 20%); animation: lgspin 40s linear infinite reverse; }
.lgfx.ssr .lgglow { background: radial-gradient(circle, rgba(255, 255, 255, .42), rgba(255, 225, 140, .32) 18%, rgba(200, 120, 255, .24) 40%, transparent 68%); }
.lgfx.ssr .lgcard { padding-top: 40px; border-width: 4px; box-shadow: 0 0 0 2px rgba(243, 207, 98, .9), 0 0 54px rgba(190, 120, 255, .75), 0 0 90px rgba(255, 210, 120, .35), 0 18px 40px rgba(0, 0, 0, .35); }
.lgfx.ssr .lgic { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .9)) drop-shadow(0 0 18px rgba(200, 130, 255, .8)); }
.ssrconf { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ssrconf b { position: absolute; left: var(--x); top: var(--y); font-size: 18px; line-height: 1; font-weight: 400; color: var(--c); text-shadow: 0 0 8px var(--c), 0 0 2px #fff;
  animation: ssrfall 1.9s cubic-bezier(.22, .7, .35, 1) var(--dl) both, ssrtw 2.4s ease-in-out calc(var(--dl) + 1.9s) infinite; }
.ssrconf b:nth-child(3n) { font-size: 24px; } .ssrconf b:nth-child(4n+1) { font-size: 13px; }
@keyframes ssrfall { from { transform: translateY(-60vh) rotate(var(--r)) scale(.5); opacity: 0; } 18% { opacity: 1; } to { transform: none; opacity: 1; } }
.ssrstamp { position: absolute; top: 9px; right: 10px; z-index: 2; padding: 3px 10px 2px; border: 2px solid #c9a227; border-radius: 9px; font-size: 13.5px; font-weight: 900; letter-spacing: .05em; line-height: 1.3; color: #5b1a99;
  background: linear-gradient(120deg, #fff7c9, #ffe08a 35%, #ffd0f2 62%, #c7e3ff); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 0 16px rgba(255, 200, 90, .85), 0 0 26px rgba(190, 120, 255, .6);
  transform: rotate(-12deg); animation: ssrstamp .6s cubic-bezier(.2, 1.5, .45, 1) .3s both; }
.ssrstamp::after { content: '✦'; position: absolute; right: -8px; top: -9px; font-size: 12px; color: #fff; text-shadow: 0 0 4px #f5b400, 0 0 7px #c084fc; }
@keyframes ssrstamp { from { transform: rotate(-12deg) scale(2.8); opacity: 0; } 55% { opacity: 1; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
/* OS の「視差効果を減らす」：v129 の動きをまとめて止める（止めた絵：光の筋は左上・星は散らばったまま・判は押したあと） */
@media (prefers-reduced-motion: reduce) {
  .pill.rar.r4, .pill.rar.r4::after, .ctile.r4, .ctile.r4::after, .costry.r4, .rwaw.r4, .cntag.rb, .cntag.rb::after, .avatar.cfx-legend::before, .cossheet.r4 .cpv, .cossheet.r4 .cpv::before,
  .rit.fx-rainbow u, .ssrrays, .ssrconf b, .ssrstamp, .itemrow.r4 .iic::before, :is(.icbig, .kpic, .tile, .rcell.on).r4::before { animation: none; }
  .ctile.r4::before, .costry.r4::before, .itemrow.r4 .iic::before, :is(.icbig, .kpic, .tile, .rcell.on).r4::before, .cflgtw { display: none; }
}
html.nomotion .ctile.r4::before, html.nomotion .costry.r4::before, html.nomotion .itemrow.r4 .iic::before, html.nomotion :is(.icbig, .kpic, .tile, .rcell.on).r4::before { display: none; }/* ほかの人の飾りのカード：SSレアの行は絵文字に虹の縁と金の細い縁・きらめき（Sレアの金の丸より一段上） */
.cwrow.r4 .ctic { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 22px; box-sizing: border-box; border: 2px solid transparent;
  background: var(--ssrbg) padding-box, conic-gradient(var(--lgrb)) border-box; box-shadow: 0 0 0 1px rgba(201, 162, 39, .8), 0 0 12px -2px rgba(180, 110, 255, .75); }
.cwrow.r4 .ctic::after { content: '✦'; position: absolute; top: -5px; right: -4px; font-size: 10px; line-height: 1; color: #fff; text-shadow: 0 0 3px #c084fc, 0 0 5px #f5b400; pointer-events: none; }
/* v159：月灯りの喫茶店（描き直し）。枠 brass は app.js の CFX_SVG（::after）。大きい絵では月の光のような金のにじみ */
.avatar.cfx-brass:not(.sm):not(.xs) { filter: drop-shadow(0 0 3px rgba(255, 214, 120, .55)) drop-shadow(0 1px 2px rgba(40, 20, 8, .35)); }
/* 動きの見本 brew：立ちのぼる湯気（S の字の 2 本の弧）・珈琲豆・金のきらめき・三日月。飾りのシートは 10 粒 */
.cpvfx.k-brew b { width: 9px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20'%3E%3Cpath d='M5 19 C0 14 10 9 5 1' fill='none' stroke='%235a3020' stroke-opacity='.45' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M5 19 C0 14 10 9 5 1' fill='none' stroke='%23fff6e0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; animation-duration: 3.2s; }
.cpvfx.k-brew b:nth-child(3n+2) { width: 7px; height: 10px; border: 0; border-radius: 50%; background: radial-gradient(ellipse at 35% 30%, #b57a4a 0 18%, var(--m1, #6b3a1f) 55%, #2a130a); box-shadow: 0 0 0 1px rgba(40, 18, 8, .55); transform: rotate(25deg); }
.cpvfx.k-brew b:nth-child(3n+2)::after { content: ""; position: absolute; left: 3px; top: 1px; width: 0; height: 8px; border: 0; border-left: 1px solid #e8c08a; border-radius: 0; }
.cpvfx.k-brew b:nth-child(3n) { width: auto; height: auto; border: 0; background: none; filter: none; font-size: 12px; line-height: 1; color: var(--m3, #f4c95d); text-shadow: 0 0 4px rgba(255, 210, 90, .95), 0 0 1px rgba(90, 60, 10, .9); }
.cpvfx.k-brew b:nth-child(3n)::before { content: "✦"; } .cpvfx.k-brew b:nth-child(3n)::after { display: none; }
.cpvfx.k-brew b:nth-child(5), .cpvfx.k-brew b:nth-child(10) { width: 10px; height: 10px; border: 0; border-radius: 50%; background: none; box-shadow: 3px -2px 0 0 var(--m3, #f4c95d); filter: drop-shadow(0 0 3px rgba(255, 214, 110, .9)); transform: rotate(-20deg); }
.cpvfx.k-brew b:nth-child(5)::after, .cpvfx.k-brew b:nth-child(10)::after { display: none; }
/* 小さな見本（タイル）：豆と金のきらめき */
.cmofall.cust.k-brew .cmofx b { width: 6px; height: 8px; border-radius: 50%; background: radial-gradient(ellipse at 35% 30%, #b57a4a 0 18%, var(--m1) 60%, #2a130a); top: 60%; animation-name: cmorise; }
.cmofall.cust.k-brew .cmofx b:nth-child(2n) { width: auto; height: auto; background: none; box-shadow: none; font-size: 11px; line-height: 1; color: var(--m3); text-shadow: 0 0 3px rgba(255, 200, 60, .95), 0 0 1px rgba(90, 60, 10, .9); }
.cmofall.cust.k-brew .cmofx b:nth-child(2n)::before { content: "✦"; }
/* v166：ゆめかわうさぎのセット。枠 usagi は app.js の CFX_SVG（::after）。大きい絵ではパステルのやわらかい光 */
.avatar.cfx-usagi:not(.sm):not(.xs) { filter: drop-shadow(0 0 3px rgba(255, 170, 214, .7)) drop-shadow(0 1px 2px rgba(120, 60, 120, .25)); }
/* 名札 pearl：札の色の上につや、白いパールの縁どりとピンクのにじみ */
.cntag.ntfx-pearl { background: linear-gradient(180deg, color-mix(in srgb, var(--ntc) 70%, #fff), var(--ntc) 55%, color-mix(in srgb, var(--ntc) 88%, #6a1f55)); box-shadow: inset 0 0 0 1.5px #fff4fa, 0 0 0 1px rgba(214, 120, 170, .5), 0 1px 5px rgba(230, 110, 170, .45); text-shadow: 0 1px 1px rgba(110, 20, 70, .55); }
/* 動きの見本 yume：ハート・星のきらめき・シャボン玉が昇る。飾りのシートは 10 粒 */
.cpvfx.k-yume b { color: var(--m1, #ff8fbf); font-size: 14px; text-shadow: 0 0 1px rgba(150, 50, 110, .8), 0 0 4px rgba(255, 255, 255, .8); }
.cpvfx.k-yume b::before { content: "♥"; }
.cpvfx.k-yume b:nth-child(3n+2) { color: var(--m2, #b99cff); font-size: 12px; text-shadow: 0 0 4px rgba(255, 255, 255, .95), 0 0 6px var(--m2, #b99cff); }
.cpvfx.k-yume b:nth-child(3n+2)::before { content: "✦"; }
.cpvfx.k-yume b:nth-child(4n) { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff 0 16%, rgba(255, 255, 255, .25) 30%, color-mix(in srgb, var(--m3, #8fdcc6) 55%, transparent) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m3, #8fdcc6) 80%, #4a3a7a); }
.cpvfx.k-yume b:nth-child(4n)::before { content: none; }
/* 小さな見本（タイル）：ハートと星 */
.cmofall.cust.k-yume .cmofx b { width: auto; height: auto; background: none; box-shadow: none; font-size: 11px; line-height: 1; color: var(--m1); text-shadow: 0 0 1px rgba(150, 50, 110, .7); top: 60%; animation-name: cmorise; }
.cmofall.cust.k-yume .cmofx b::before { content: "♥"; }
.cmofall.cust.k-yume .cmofx b:nth-child(2n) { color: var(--m2); text-shadow: 0 0 3px #fff, 0 0 4px var(--m2); } .cmofall.cust.k-yume .cmofx b:nth-child(2n)::before { content: "✦"; }
/* 温泉街の湯けむりセット・ホットココアの屋台セット。枠 hinoki・mug は app.js の CFX_SVG（::after）。大きい絵では湯けむりのような白いにじみ／ココアのあたたかい光 */
.avatar.cfx-hinoki:not(.sm):not(.xs) { filter: drop-shadow(0 0 3px rgba(255, 250, 240, .85)) drop-shadow(0 1px 2px rgba(90, 60, 30, .35)); }
.avatar.cfx-mug:not(.sm):not(.xs) { filter: drop-shadow(0 0 3px rgba(255, 196, 130, .65)) drop-shadow(0 1px 2px rgba(60, 30, 10, .4)); }
/* 名札 noren：上に木の棒、札の色ののれんを 3 枚に分ける白い切れ目、下のすそはやわらかく／choco：板チョコの区切りとつや、上にクリームのたれ */
.cntag.ntfx-noren { border-radius: 2px 2px 7px 7px; padding-top: 4px; background: linear-gradient(180deg, #7a4a2a 0 3px, rgba(0, 0, 0, .25) 3px 4px, transparent 4px),
  linear-gradient(90deg, transparent calc(33.3% - .75px), rgba(255, 255, 255, .7) calc(33.3% - .75px) calc(33.3% + .75px), transparent calc(33.3% + .75px) calc(66.6% - .75px), rgba(255, 255, 255, .7) calc(66.6% - .75px) calc(66.6% + .75px), transparent calc(66.6% + .75px)),
  linear-gradient(180deg, color-mix(in srgb, var(--ntc) 88%, #fff), var(--ntc) 60%, color-mix(in srgb, var(--ntc) 82%, #000)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 1px 3px rgba(20, 30, 60, .3); text-shadow: 0 1px 1px rgba(10, 20, 40, .6); }
.cntag.ntfx-choco { border-radius: 5px; padding-top: 5px; background: radial-gradient(circle at 50% 0, #fff3df 0 3.2px, transparent 3.7px) 1px 0 / 9px 6px repeat-x, linear-gradient(180deg, #fff3df 0 2px, transparent 2px),
  repeating-linear-gradient(90deg, rgba(255, 220, 180, .28) 0 1px, transparent 1px 13px, rgba(30, 10, 0, .5) 13px 14px), linear-gradient(180deg, transparent 0 calc(50% + 2px), rgba(30, 10, 0, .35) calc(50% + 2px) calc(50% + 3px), transparent calc(50% + 3px)),
  linear-gradient(180deg, color-mix(in srgb, var(--ntc) 80%, #fff), var(--ntc) 55%, color-mix(in srgb, var(--ntc) 78%, #000));
  box-shadow: inset 0 0 0 1.5px #3a1e10, inset 0 -2px 0 rgba(0, 0, 0, .22), 0 1px 4px rgba(60, 30, 10, .35); text-shadow: 0 1px 1px rgba(30, 10, 0, .75); }
/* 動きの見本 yuge：白い湯けむりのすじ・柚子・湯のしずく。mallow：マシュマロ・ココアのしずく・湯気。飾りのシートは 10 粒 */
.cpvfx.k-yuge b, .cpvfx.k-mallow b:nth-child(5n+1) { width: 10px; height: 20px; border-radius: 0; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20'%3E%3Cpath d='M5 19 C0 14 10 9 5 1' fill='none' stroke='%23705040' stroke-opacity='.35' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M5 19 C0 14 10 9 5 1' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; animation-duration: 3.4s; }
.cpvfx.k-yuge b:nth-child(3n+2) { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff6c8 0 18%, var(--m2, #f2b632) 50%, color-mix(in srgb, var(--m2, #f2b632) 75%, #8a4a00)); box-shadow: 0 0 0 1px rgba(110, 70, 0, .45); }
.cpvfx.k-yuge b:nth-child(4n) { width: 6px; height: 8px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 40% 60%, #fff 0 18%, var(--m3, #9fd8d2) 55%); box-shadow: 0 0 0 1px rgba(30, 80, 90, .4); transform: rotate(180deg); }
.cpvfx.k-mallow b { width: 9px; height: 8px; border-radius: 3px; background: linear-gradient(180deg, #fff, var(--m1, #fff6ec)); box-shadow: 0 0 0 1px rgba(120, 80, 60, .45), 0 1px 1px rgba(60, 30, 10, .25); }
.cpvfx.k-mallow b:nth-child(3n+2) { width: 7px; height: 9px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 38% 62%, #c8946a 0 16%, var(--m2, #8a5232) 55%, #3a1e10); box-shadow: 0 0 0 1px rgba(40, 18, 8, .5); transform: rotate(180deg); }
.cpvfx.k-mallow b:nth-child(4), .cpvfx.k-mallow b:nth-child(9) { background: linear-gradient(180deg, #fff, var(--m3, #f2c79a)); }
/* 小さな見本（タイル）：柚子と湯けむり／マシュマロとココアのしずく */
.cmofall.cust.k-yuge .cmofx b, .cmofall.cust.k-mallow .cmofx b { top: 60%; animation-name: cmorise; }
.cmofall.cust.k-yuge .cmofx b { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff6c8 0 18%, var(--m2) 55%); }
.cmofall.cust.k-yuge .cmofx b:nth-child(2n) { width: 7px; height: 13px; border-radius: 0; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 20'%3E%3Cpath d='M5 19 C0 14 10 9 5 1' fill='none' stroke='%23705040' stroke-opacity='.35' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M5 19 C0 14 10 9 5 1' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.cmofall.cust.k-mallow .cmofx b { width: 7px; height: 6px; border-radius: 2px; background: linear-gradient(180deg, #fff, var(--m1)); }
.cmofall.cust.k-mallow .cmofx b:nth-child(2n) { width: 6px; height: 7px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--m2); transform: rotate(180deg); }

/* v165：拾い物の使い道 */
.pill.use { font-size: 11.5px; padding: 1px 7px; margin-left: 4px; background: color-mix(in srgb, #e0a020 16%, transparent); color: inherit; }
.icuse { margin: -4px 0 8px; font-size: 13px; line-height: 1.55; }
.icuse .pill.use { margin: 0 4px 0 0; font-weight: 700; }
.icwish { margin: -2px 0 8px; padding: 6px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, #e7739c 14%, transparent); font-size: 13px; font-weight: 700; }
.btn.usebtn { background: #d9891c; border-color: #d9891c; color: #fff; }
.tkrow { margin-top: 8px; }
.btn.ticketbtn { width: 100%; background: #2f7d6d; border-color: #2f7d6d; color: #fff; }
/* v168：ほかの人が着けているお金で買う飾り → 「ショップで見る ›」（プロフィールの 1 行と、飾りのカードの中） */
.cospaid { margin: 8px 0 0; font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.cospaid a, .cwshop a { font-weight: 700; white-space: nowrap; }
.cwshop { margin: 2px 0 0; font-size: 13px; }
/* v168：ホームの「✨ 期間限定のセット ›」の 1 行（控えめ・バッジなし・× で閉じる） */
.hmsets { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px auto 0; max-width: 420px; padding: 0 16px; font-size: 13.5px; }
.hmsets .hmsetsgo { padding: 8px 6px; font-weight: 700; }
.hmsets .hmsetsx { min-width: 32px; min-height: 32px; border: 0; background: none; color: var(--sub); font-size: 16px; line-height: 1; border-radius: 50%; cursor: pointer; }
/* ===== v171：月替わりのかけら集め（ホームの小さな行・ショップ › かけら）===== */
.hmshards { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
.shsw { position: static; margin: 0 0 10px; }
.shsw button { font-size: 13px; }
.shsw button b { margin-left: 3px; font-variant-numeric: tabular-nums; color: var(--accent); }
.hmshard { display: inline-flex; align-items: center; gap: 6px; margin: 7px 0 0; padding: 5px 10px 5px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--card)); color: var(--fg2); font: inherit; font-size: 12.5px; cursor: pointer; }
.hmshard b { color: var(--fg); font-variant-numeric: tabular-nums; }
.hmshard i { font-style: normal; color: var(--sub); margin-left: 1px; }
.shcard { margin: 0 0 12px; padding: 14px 14px 12px; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 85%, var(--card)), var(--card) 70%); }
.shrow { display: flex; align-items: center; gap: 10px; }
.shrow .grow { min-width: 0; }
.shrow .grow b { display: block; font-size: 15px; }
.shrow .grow small { display: block; color: var(--sub); font-size: 12px; margin-top: 1px; }
.shic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; font-size: 21px; background: var(--card); border: 1px solid var(--line); }
.shbal { flex: none; text-align: right; line-height: 1; }
.shbal b { font-size: 24px; font-variant-numeric: tabular-nums; color: var(--accent); }
.shbal small { color: var(--sub); font-size: 12px; }
.shbar { height: 6px; margin: 11px 0 0; border-radius: 999px; background: color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden; }
.shbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9fd3f2, var(--accent)); }
.shhow { margin: 8px 0 0; font-size: 12px; color: var(--sub); line-height: 1.5; }
.shgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.shitem { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); text-align: center; min-width: 0; }
.shitem.own { background: color-mix(in srgb, var(--ok) 6%, var(--card)); }
.shpv { border: 0; background: none; padding: 0; cursor: pointer; }
.shnm { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.shitem small.muted { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; }
.shex { margin-top: 4px; min-width: 104px; }
.shex .shexic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: rgba(0,0,0,.25); font-size: 12px; line-height: 1; vertical-align: -4px; }
.shex small { margin-left: 6px; font-weight: 500; opacity: .85; }
/* かけらが足りない交換のボタン：薄くせず（opacity .4 だと暗い画面で読めない）、落ち着いた地の色に文字の色。「あと N」の N だけアクセント色 */
.shex:disabled { opacity: 1; background: var(--bg2); color: var(--fg); border-color: var(--line); box-shadow: none; }
.shex:disabled small { color: var(--sub); opacity: 1; }
.shex:disabled small b { color: var(--accent); font-weight: 700; margin-left: 1px; }
.shdone { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
/* v172：称号・ランキングの Sレア（docs/ITEM-RULES.md）。町の顔の枠 medal・今週の町の顔の枠 weekly は金の光、県代表の名札 crest は紺の深いつや・金の二重の縁・ゆっくり流れる光 */
.avatar.cfx-medal:not(.sm):not(.xs) { filter: drop-shadow(0 0 4px rgba(246, 207, 98, .75)); }
.avatar.cfx-weekly:not(.sm):not(.xs) { filter: drop-shadow(0 0 4px rgba(120, 170, 255, .7)) drop-shadow(0 0 1.5px rgba(227, 179, 65, .7)); }
.cntag.ntfx-crest { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--ntc) 68%, #fff), var(--ntc) 50%, color-mix(in srgb, var(--ntc) 70%, #0a0f3a));
  box-shadow: inset 0 0 0 1.5px #f3cf62, inset 0 0 0 2.5px rgba(10, 15, 58, .6), inset 0 0 0 3px rgba(255, 240, 180, .55), 0 0 6px rgba(243, 207, 98, .6), 0 1px 3px rgba(0, 0, 0, .3); text-shadow: 0 1px 1px rgba(5, 10, 40, .7); }
.cntag.ntfx-crest::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 200, .55) 48%, transparent 60%); background-size: 250% 100%; animation: ntcrest 3.6s ease-in-out infinite; }
@keyframes ntcrest { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .cntag.ntfx-crest::after { animation: none; opacity: 0; } }
/* v173：会話の自動再生（#replay）。ふだんの色の変数だけを使うので、明るい・暗いの両方に合う */
.rp { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(12,14,24,.46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); --rpk: 1; animation: rpfade .22s ease-out; }
@keyframes rpfade { from { opacity: 0; } }
.rpcard { width: 100%; max-width: 440px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.rptop { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 14px; }
.rptitle { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rptitle small { font-weight: 500; color: var(--sub); font-size: var(--fs-sub); margin-left: 6px; }
.rptag { display: inline-block; font-size: var(--fs-cap); font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }
.rpx { flex: none; border: 0; background: var(--bg); color: var(--fg2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rpstage { position: relative; height: 270px; overflow: hidden; --pc: #4f5bd5; --prog: 0; }
.rpstage::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--prog) * 100%); background: var(--accent); transition: width .4s; z-index: 6; }
/* 施設の中：壁と床（施設の色をうすく） */
.rpwall { position: absolute; inset: 0 0 44% 0; background: color-mix(in srgb, var(--pc) 16%, var(--card)); }
.rpfloor { position: absolute; inset: 56% 0 0 0; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--pc) 26%, var(--card)) 0 38px, color-mix(in srgb, var(--pc) 20%, var(--card)) 38px 40px); border-top: 3px solid color-mix(in srgb, var(--pc) 40%, var(--card)); }
.rpwin { position: absolute; top: 18px; left: 9%; width: 62px; height: 52px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #cfe9ff, #eaf6ff); border: 4px solid color-mix(in srgb, var(--pc) 35%, var(--card)); }
.rpwin.r { left: auto; right: 9%; }
.rpsign { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; max-width: 44%; background: var(--card); border-radius: 999px; padding: 3px 10px; box-shadow: var(--shadow-xs); font-size: 11.5px; }
.rpsign b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rptable { position: absolute; left: 50%; bottom: 46px; width: 58px; height: 30px; transform: translateX(-50%); background: linear-gradient(#a57a55, #a57a55) 50% 100% / 6px 20px no-repeat; }
.rptable::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 50%; background: #c99a6e; box-shadow: inset 0 -3px 0 #a57a55; }
.rptable::after { content: ''; position: absolute; left: 22px; top: -7px; width: 12px; height: 10px; border-radius: 2px 2px 5px 5px; background: #fff; box-shadow: 0 0 0 1.5px #d9cfc4; }
.rp3 .rptable { display: none; }
/* 道：空と地面 */
.rpsky { position: absolute; inset: 0 0 44% 0; background: linear-gradient(180deg, #bfe3ff, #e8f5ff); }
.rpground { position: absolute; inset: 56% 0 0 0; background: #b9e2a6; }
.rproad { position: absolute; left: 0; right: 0; top: 22px; height: 40px; background: #e9e2d2; border-top: 2px solid #d8cfba; border-bottom: 2px solid #d8cfba; }
.rptree { position: absolute; top: -66px; left: 6%; width: 46px; height: 46px; border-radius: 50%; background: #6cc46e; box-shadow: 14px 10px 0 -4px #5bb45f; }
.rptree::after { content: ''; position: absolute; left: 20px; top: 40px; width: 8px; height: 24px; background: #9b7350; border-radius: 3px; }
.rptree.r { left: auto; right: 8%; }
.rpcloud { position: absolute; top: 22px; left: 18%; width: 54px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.9); }
.rpcloud.b { top: 46px; left: 64%; width: 40px; }
@media (prefers-color-scheme: dark) {
  .rpsky { background: linear-gradient(180deg, #1b2347, #2c3566); }
  .rpcloud { background: rgba(255,255,255,.18); }
  .rpground { background: #2f4a33; }
  .rproad { background: #3d3b36; border-color: #4a463f; }
  .rptree { background: #3f7a45; box-shadow: 14px 10px 0 -4px #35693b; }
  .rpwin { background: linear-gradient(180deg, #27315e, #3a4580); }
}
/* 人：x の位置に立つ。歩いて来る前は画面の外（施設では相手が先に座っている） */
.rpchar { position: absolute; bottom: 30px; left: var(--x); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 2; transition: left calc(1.3s * var(--rpk)) ease-out, opacity .3s; --face: 0; }
.rpstage:not(.rparrive):not(.rpwalking) .rp-A, .rpstage.rpcardon .rp-A { left: -20%; }
.rpout:not(.rparrive):not(.rpwalking) .rp-B, .rpout.rpcardon .rp-B { left: 120%; }
.rpstage.rpwalking .rpbody { animation: rpstep calc(.36s * var(--rpk)) ease-in-out infinite alternate; }
.rpout.rpwalking .rp-B .rpbody { animation-delay: -.18s; }
.rpin.rpwalking .rp-B .rpbody, .rpin.rpwalking .rp-C .rpbody { animation: none; }
@keyframes rpstep { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-6px) rotate(4deg); } }
.rpstage.rpbye .rp-A { left: -20%; transition-duration: calc(1.6s * var(--rpk)); }
.rpstage.rpbye .rp-B { left: 120%; transition-duration: calc(1.6s * var(--rpk)); }
.rpstage.rpbye .rp-C { left: 120%; transition-duration: calc(1.9s * var(--rpk)); }
.rpbody { position: relative; transition: transform .3s; transform: rotate(calc(var(--face) * 5deg)); }
.rpchar .avatar.rpav { width: 74px; height: 74px; box-shadow: 0 4px 0 rgba(0,0,0,.08), var(--shadow); border: 3px solid var(--card); }
.rp3 .rpchar .avatar.rpav { width: 62px; height: 62px; }
.rpchar.mine .avatar.rpav { border-color: var(--accent); }
.rpname { font-size: 11px; font-weight: 700; background: var(--card); color: var(--fg2); border-radius: 999px; padding: 0 8px; box-shadow: var(--shadow-xs); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpchar.talk .rpbody { animation: rptalk calc(.5s * var(--rpk)) ease-in-out 2 alternate; }
@keyframes rptalk { from { transform: translateY(0) rotate(calc(var(--face) * 5deg)); } to { transform: translateY(-5px) rotate(calc(var(--face) * 7deg)); } }
.rpchar.listen .rpbody { transform: rotate(calc(var(--face) * 6deg)); }
.rpchar.e-hop .rpbody { animation: rphop calc(.45s * var(--rpk)) ease-out 2; }
@keyframes rphop { 50% { transform: translateY(-12px); } }
.rpchar.e-shake .rpbody { animation: rpshake calc(.14s * var(--rpk)) linear 5; }
@keyframes rpshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.rpchar.e-droop .rpbody { transform: translateY(4px) rotate(calc(var(--face) * 3deg)); filter: saturate(.75); }
.rpemo { position: absolute; top: -8px; right: -16px; font-size: 24px; line-height: 1; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.rpemo.on { opacity: 1; transform: scale(1); transition-delay: calc(.35s * var(--rpk)); }
/* 吹き出し：話し手の上。端の人は端に寄せる */
.rpbub { position: absolute; bottom: 150px; left: var(--x); max-width: 72%; width: max-content; background: var(--card); color: var(--fg); border-radius: 16px; padding: 8px 12px; font-size: 14px; line-height: 1.5; box-shadow: var(--shadow); border: 1.5px solid var(--line2); z-index: 4; opacity: 0; transform: translateX(-50%); --tail: 50%; }
.rp3 .rpbub { bottom: 136px; }
.rpbub.l { transform: translateX(-34px); --tail: 34px; }
.rpbub.r { transform: translateX(calc(-100% + 34px)); --tail: calc(100% - 34px); }
.rpbub.on { opacity: 1; animation: rpbub .28s cubic-bezier(.3,1.4,.5,1); }
.rpbub.mine { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.rpbub::after { content: ''; position: absolute; left: var(--tail); bottom: -8px; width: 12px; height: 12px; background: inherit; border-right: inherit; border-bottom: inherit; transform: translateX(-50%) rotate(45deg); }
@keyframes rpbub { from { opacity: 0; translate: 0 6px; scale: .92; } }
.rpwho { display: block; font-size: 11px; color: var(--accent); }
.rpcap { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); max-width: 86%; font-size: 12.5px; color: var(--fg2); background: color-mix(in srgb, var(--card) 88%, transparent); border-radius: 999px; padding: 3px 12px; opacity: 0; transition: opacity .3s; z-index: 3; text-align: center; }
.rpcap.on { opacity: 1; }
/* 会話の扉（相手の名前・場所・日時） */
.rptc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; pointer-events: none; }
.rptc:empty { display: none; }
.rptcin { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--card); border-radius: var(--r); padding: 14px 22px; box-shadow: var(--shadow-lg); animation: rpbub .35s cubic-bezier(.3,1.4,.5,1); max-width: 84%; text-align: center; }
.rptcin b { font-size: 17px; }
.rptcin span { font-size: 13px; color: var(--fg2); }
.rptcin small { font-size: 12px; color: var(--sub); }
.rptcfaces { display: flex; gap: 4px; margin-bottom: 4px; }
/* おわりの札 */
.rpendst { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.rpend { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px; }
.rpendic { font-size: 40px; }
.rpend b { font-size: 17px; }
.rpendbtns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
/* 操作：いつも見える */
.rpctl { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 10px 12px; border-top: 1px solid var(--line); }
.rpb { border: 0; background: var(--bg); color: var(--fg); border-radius: 999px; min-width: 40px; height: 38px; padding: 0 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rpb:disabled { opacity: .4; cursor: default; }
.rpplay { background: var(--accent); color: var(--accent-fg); padding: 0 12px; white-space: nowrap; font-size: 13px; }
.rpspd { display: flex; background: var(--bg); border-radius: 999px; padding: 2px; }
.rpspd .rpb { height: 34px; min-width: 38px; padding: 0 6px; font-size: 13px; background: transparent; color: var(--fg2); }
.rpspd .rpb.on { background: var(--card); color: var(--accent); box-shadow: var(--shadow-xs); }
.rppaused .rpchar .rpbody, .rppaused .rpbub { animation-play-state: paused; }
.chip.rpgo { margin-left: 6px; flex: none; font-size: 11.5px; padding: 1px 9px; color: var(--accent); background: var(--accent-soft); border: 0; cursor: pointer; }
@media (max-width: 370px) { .rpb { min-width: 34px; padding: 0 8px; } .rpplay { padding: 0 9px; } .rpspd .rpb { min-width: 34px; } }
/* 動きを減らす：歩く・弾む・揺れるをやめ、置くだけ */
.rp.rpstill, .rp.rpstill * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .rp, .rp * { animation: none !important; transition: none !important; } }

/* v175：分身の紹介（紹介のシート・QR・公開のカード） */
.invbtncard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.invbtncard .note { margin: 0; font-size: 12px; }
.invsheet .invh { margin: 0 0 6px; font-size: 20px; }
.invsheet .invsub { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; }
.invqr { width: min(220px, 62vw); margin: 4px auto 6px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-sizing: border-box; }
.invqr svg { display: block; width: 100%; height: auto; }
.invcode { text-align: center; margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.invcode b { font-size: 18px; letter-spacing: .18em; color: var(--fg); font-family: ui-monospace, Menlo, Consolas, monospace; }
.invurl { display: flex; gap: 6px; align-items: center; margin: 0 0 10px; }
.invurl input { flex: 1; min-width: 0; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg); }
.invbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.invbtns .btn { flex: 1 1 140px; }
.invsheet .note { font-size: 12px; line-height: 1.55; margin: 10px 0 0; }
.invcard { text-align: center; padding: 4px 4px 2px; }
.invfrom { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.invav { display: flex; justify-content: center; margin: 4px 0 8px; }
.invname { margin: 0 0 4px; font-size: 22px; }
.invsan { font-size: 14px; font-weight: 500; margin-left: 2px; color: var(--sub); }
.invmeta { margin: 0 0 8px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 13px; }
.invbio { margin: 0 auto 10px; max-width: 30em; font-size: 14px; line-height: 1.6; }
.invlead { font-size: 12.5px; line-height: 1.6; margin: 0 0 12px; }
.invgo { width: 100%; }
.invnone { text-align: center; padding: 8px 0 4px; }
.invnone h2 { margin: 0 0 6px; }
.invnic { font-size: 36px; margin: 0; }
/* v176：人のシート・会話の履歴の「▶ 会話を再生」（目立つ横いっぱいのボタン） */
.btn.rpnpc { display: block; width: 100%; margin: 10px 0 2px; font-weight: 700; }
/* v177：予定の結果の問い（会話の終わり）・予告・思い出のひとコマ */
.planask { margin: 10px 0; padding: 12px; border-radius: var(--r); background: var(--accent-soft); border: 1px dashed var(--accent-2); display: flex; flex-direction: column; gap: 8px; }
.planq { display: flex; align-items: center; gap: 8px; } .planq b { font-size: var(--fs-body); color: var(--fg); }
.planask > small { font-size: var(--fs-sub); }
.planchs { display: flex; flex-wrap: wrap; gap: 6px; }
.planch { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 6px 11px; min-height: 36px; }
.planch.ghost { background: transparent; color: var(--sub); }
.planask.kept { background: var(--card); border-style: solid; border-color: var(--line2); }
.plankeep { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow-xs); transform: rotate(-1deg); margin-top: 6px; font-size: 13px; color: var(--fg); }
.plankeep small { display: block; color: var(--sub); font-size: var(--fs-cap); }
.plankeepic { font-size: 22px; flex: none; }
.plantease { margin-top: 4px; font-size: var(--fs-sub); color: var(--sub); }
.rpask { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; margin: 0; box-shadow: var(--shadow-lg); background: var(--card); }
/* v179：分身の手帳（📒）。カレンダー・結果を待つ予定・いつもの習慣・思い出。色はいつもの印（明・暗とも） */
.tdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 4px; vertical-align: 2px; box-shadow: 0 0 0 2px var(--card); }
.tabbar button.tdue::after { content: ""; position: absolute; top: 7px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.techo h3 { margin-top: 0; }
.techo .tsub { margin: 12px 0 6px; font-size: var(--fs-sub); color: var(--sub); font-weight: 600; }
.techo .tempty { margin: 6px 0 0; font-size: var(--fs-sub); }
.tcal { margin-top: 10px; }
.tcalh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tcalh .chip { min-width: 36px; justify-content: center; }
.tcgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tcw { text-align: center; font-size: var(--fs-cap); color: var(--sub); padding: 2px 0; }
.tcd { min-height: 40px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; color: var(--fg); font: inherit; padding: 3px 0; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tcd b { font-size: 12px; font-weight: 500; }
.tcd i { font-style: normal; font-size: 14px; line-height: 1; }
.tcd.blank { visibility: hidden; }
.tcd.today { border-color: var(--line2); }
.tcd.today b { font-weight: 700; color: var(--accent); }
.tcd.has { background: var(--accent-soft); cursor: pointer; }
.tcd.due { border-color: var(--accent); border-style: dashed; }
.tcd.sel { border-color: var(--accent); border-style: solid; box-shadow: var(--shadow-xs); }
.tplan { padding: 8px 0; border-top: 1px solid var(--line2); }
.tplan:first-of-type { border-top: 0; }
.tplan.due { background: var(--accent-soft); border: 1px dashed var(--accent-2); border-radius: var(--r-md); padding: 8px 10px; margin: 6px 0; }
.tprow, .tmemo { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg); }
.tprow small, .tmemo small { display: block; font-size: var(--fs-cap); }
.tpic { font-size: 20px; flex: none; line-height: 1.2; }
.tpq { margin: 8px 0 6px; font-size: 14px; font-weight: 600; }
.tpq small { font-weight: 400; display: block; }
.tmemo { padding: 8px 0; border-top: 1px solid var(--line2); }
.tmemo:first-of-type { border-top: 0; }
.thabit { padding: 8px 0; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.thabit:first-of-type { border-top: 0; }
.thabit .chip.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.rdiary { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); border-left: 3px solid var(--accent); }
.rdiary p { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--fg); }
.rdiary .flabel { margin: 0; }
/* v179：いま着けている物をはっきり（色の地＋上に「✓ 着用中」の札） */
.ctile.on { background: color-mix(in srgb, var(--accent) 13%, var(--bg)); border-color: var(--accent); }
.ctile.on::before { content: '✓ 着用中'; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; }
.cgrid { padding-top: 6px; }
/* v179：飾り屋の行の見本（分身の絵）には、レア度の四角い地（絵文字のアイコン用）を付けない（分身の左上に「┌」の角が見えていた） */
.itemrow .iic.cosshopic { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; overflow: visible; }
.itemrow .iic.cosshopic::before, .itemrow .iic.cosshopic::after { content: none; display: none; }
/* v179：分身ノート（成長タブ） */
.nbook { margin: 0 0 4px; }
.nbhead { margin: 4px 2px 8px; font-size: 16px; }
.nbh { margin: 0 0 6px; font-size: 14px; color: var(--accent); }
.nb4 > .card { margin-top: 0; }
.nb4 { margin-bottom: 12px; }
.nb4 > .nbh { margin: 0 2px 6px; }
.nbwhy { margin: 6px 0; padding: 6px 10px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; }
.selffb { margin: 8px 0 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.selffb .sfq { margin: 0 0 6px; font-size: 13px; }
.sfbtns { display: flex; gap: 8px; margin-bottom: 8px; }
.sfbtns .chip { min-height: 40px; padding: 0 16px; }
.sfnote { display: flex; gap: 8px; align-items: center; }
.sfnote input { flex: 1; min-width: 0; }
.sfnote .btn { flex: none; width: auto; margin: 0; }
.nbplan .tpic { flex: none; }
.nblink { margin: 6px 2px 0; font-size: 13px; }
.memit { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.memit .grow { min-width: 0; overflow-wrap: anywhere; }
/* v180：案内係トコのひとこと（小さな顔＋吹き出し）。はじめの画面・はじめの目標・ホームのニュース */
.tokosay { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: var(--fs-cap); color: var(--fg); line-height: 1.5; }
.tokosay .avatar { width: 36px; height: 36px; flex: none; }
.tokosay > span:last-child { position: relative; background: var(--accent-soft); color: var(--fg); border-radius: var(--r-md); padding: 6px 10px; font-weight: 600; }
.tokosay > span:last-child::before { content: ''; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--accent-soft); }
.obtoko { justify-content: center; margin: 12px 0 22px; }
.hmntoko { margin: 0 0 8px; }
/* v181：耳打ちと話しかけのボタンに短い文字（絵だけだと違いが分からなかった）。角の丸い四角に、絵と 2 行の文字 */
.composer .icb.lbl { width: auto; height: 44px; min-width: 52px; padding: 0 8px; border-radius: 14px; display: flex; align-items: center; gap: 4px; }
.composer .icb.lbl span { font-size: 10px; font-weight: 700; line-height: 1.15; text-align: left; white-space: nowrap; }
.composer .icb.lbl svg { width: 18px; height: 18px; flex: none; }
/* v182：トコの出番（くわしく・はじめのひとこと・空っぽ・報告・つながらない）と、家の顔（読み込み中・マイルーム・おかえり） */
details.more > .tokosay { align-items: flex-start; margin: 6px 0 2px; }
details.more > .tokosay .avatar { width: 28px; height: 28px; }
details.more > .tokosay > span:last-child { font-weight: 400; font-size: var(--fs-cap); color: var(--fg); background: var(--accent-soft); }
details.more > .tokosay > span:last-child::before { top: 14px; margin-top: -5px; }
.tokosay.tkempty { margin: 6px 0; }
.tokosay.tkempty > span:last-child, .tokosay.tkerr > span:last-child { font-weight: 500; }
.empty.tkemptybox { padding: 14px 0 8px; align-items: stretch; text-align: left; }
.empty.tkemptybox > .chip { align-self: center; }
.tokosay.tkplain .avatar { display: none; }
.tokosay.tkplain > span:last-child { background: none; padding: 0; font-weight: 400; color: var(--sub); }
.tokosay.tkplain > span:last-child::before { display: none; }
.tokosay.tkfirst { margin: 4px 0 10px; }
.tokosay.rptoko { margin: 2px 0 8px; }
.roomhouse { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: var(--fs-cap); font-weight: 600; color: var(--sub); }
.housef { width: 22px; height: 22px; flex: none; }
.tkico { display: inline-flex; flex: none; align-items: center; margin-right: 8px; vertical-align: middle; }
.tkico .avatar, .tkico .housef { width: 24px; height: 24px; }
#toast:has(> .tkico), .sheettoast:has(> .tkico) { display: flex; align-items: center; }
.boothouse { width: 40px; height: 40px; margin-bottom: -10px; animation: boothop 1.4s ease-in-out infinite; filter: drop-shadow(0 3px 6px rgba(61,71,184,.22)); }
@keyframes boothop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } 60% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .boothouse { animation: none; } }
/* v186：枠の飾りを着けているときは、ホームの顔などに付ける青い輪を出さない（枠の外にもう 1 本の輪が出て二重に見えていた） */
.hmbackav .avatar.cosf, .avatar.framed.cosf { box-shadow: none; }

/* v187：人のページ（顔・名前の下にアイコンの 1 列。会話の履歴は新しい順・未読に区切り） */
/* v187 の .picon（枠つきの四角いボタン）は v193 で丸いボタンに置きかえた（下の v193 の欄） */
.plive { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; min-height: 40px; padding: 6px 12px; border: 0; border-radius: var(--r-md); background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--fg); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.plive .amore { margin-left: auto; color: var(--accent); font-size: 12px; white-space: nowrap; }
.plive .livedotin { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.pwait { margin-top: 8px; font-size: 13px; color: var(--fg2); }
.pwpanel { margin-top: 10px; }
.pwpanel .composer { position: static; margin: 0; }
.pwpanel .ufoot { margin: 0; box-shadow: none; border: 1px solid var(--line); }
.pwhelp, .pwpanel .endnext { font-size: 12px; margin-top: 4px; }
.pprof { margin-top: 10px; }
.pprof > summary { cursor: pointer; font-size: 13px; color: var(--sub); min-height: 32px; display: flex; align-items: center; }
.phead .rpnpc { display: none; }
.undiv { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; color: var(--accent); font-size: 12px; font-weight: 600; }
.undiv::before, .undiv::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.chapter.unread { background: var(--accent-soft); border-radius: var(--r-md); padding: 0 10px 8px; }
.unpill { background: var(--accent); color: var(--accent-fg); font-size: 10.5px; padding: 1px 7px; margin-left: 6px; }
.chapter.folded[data-act] { cursor: pointer; }
.chapopen { flex: none; color: var(--sub); font-size: 18px; padding: 0 6px; }
.hmore { margin-top: 6px; }
.phempty { margin: 12px 4px; }
/* 架空の住人の名字（プロフィールの見出しで小さく） */
.nsur { font-size: .6em; font-weight: 500; margin-right: .3em; opacity: .75; }

/* v191：人のページ：右上の小さな ⋯（その他・通報など。アイコンの列からは外した） */
.card.phead { position: relative; }
.phead > .row { padding-right: 22px; }
.pdots { position: absolute; top: 6px; right: 6px; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--fg2); font: inherit; font-size: 18px; line-height: 1; letter-spacing: 1px; cursor: pointer; }
.pdots::before { content: ""; position: absolute; inset: -6px; }
.pdots[aria-expanded="true"] { background: var(--bg2); color: var(--fg); }
.pdots:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* v191：人のページの下に張り付く耳打ちの欄（1 列・約 52px）。キーボードが出たらシートごとその上へ（tsKbSync） */
.composer.pcomp { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
body.tson .composer.pcomp { padding-top: 6px; padding-bottom: 6px; margin-top: auto; }
body.tson main#view:has(> .composer.pcomp) { display: flex; flex-direction: column; } /* 短いページでも欄はいちばん下 */
.composer.pcomp input { height: 40px; }
.composer.pcomp .icb.lbl { height: 40px; }
.composer.pcomp .help { width: 28px; height: 28px; }
/* v191：地図のショップのボタンを派手に（大きさ・絵はそのまま）。色が流れるグラデーション＋ときどき光の筋が横切る＋ときどき小さく揺れる。動きを減らす設定では止める */
@keyframes sfGrad { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes sfShine { 0%, 70% { transform: translateX(-130%) rotate(20deg); } 100% { transform: translateX(130%) rotate(20deg); } }
@keyframes sfWiggle { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-12deg) scale(1.06); } 92% { transform: rotate(10deg) scale(1.06); } 95% { transform: rotate(-6deg); } 98% { transform: rotate(3deg); } }
.mapctl .shopfab, body.mapfull .mapctl .shopfab { overflow: hidden; color: #fff; background: linear-gradient(120deg, #ff5f9e, #ffb03a, #7c5cff, #3ab4ff, #ff5f9e); background-size: 300% 300%; animation: sfGrad 6s ease-in-out infinite; box-shadow: 0 2px 10px color-mix(in srgb, #ff5f9e 45%, transparent), inset 0 0 0 1.5px rgba(255,255,255,.55); }
.mapctl .shopfab svg { animation: sfWiggle 5s ease-in-out infinite; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.mapctl .shopfab::after { content: ''; position: absolute; top: -20%; left: 0; width: 45%; height: 140%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: sfShine 3.2s ease-in-out infinite; pointer-events: none; }
.mapctl .shopfab .sfdot { z-index: 1; box-shadow: 0 0 0 2px #fff; }
@media (prefers-reduced-motion: reduce) { .mapctl .shopfab, .mapctl .shopfab svg, .mapctl .shopfab::after { animation: none; } .mapctl .shopfab::after { display: none; } }
.nomotion .mapctl .shopfab, .nomotion .mapctl .shopfab svg, .nomotion .mapctl .shopfab::after { animation: none; }
/* フリマのボタンは光らせない・動かさない（オーナー 2026-11-21）。ほかの地図のボタンと同じ落ち着いた見た目 */
.mapctl .shopfab.mktfab, body.mapfull .mapctl .shopfab.mktfab { animation: none; background: var(--card); color: var(--fg); box-shadow: var(--sh-sm, 0 1px 3px rgba(0,0,0,.15)); }
.mapctl .shopfab.mktfab::after { display: none; animation: none; }

/* v193：人のページ（案 B：左に小さめの顔、右に名前・様子・関係。チップの 1 段、線の絵の丸いボタンの 1 列、⋯ は右上に浮かぶメニュー） */
.card.phead { padding: 16px 16px 12px; border-radius: 18px; }
.phead .phtop { display: flex; align-items: center; gap: 14px; padding-right: 30px; }
.phead .phtop > .avatar, .phead .phtop > .cosav { flex: none; }
.phead .phtop .avatar.lg { width: 68px; height: 68px; }
.phead .cosav { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.phead .phid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.phead .phname { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.phead .phname .pill, .phead .phname .fictb { font-size: 11px; margin: 0; vertical-align: 0; }
.phead .phname .fictb { padding: 1px 7px; }
.pmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; font-size: 12.5px; color: var(--sub); line-height: 1.4; }
.pmeta .lifechip { background: none; padding: 0; color: inherit; font: inherit; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: #9aa0ad; flex: none; margin-right: 2px; }
.pdot.on { background: var(--ok); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 25%, transparent); }
.phead .relrow { margin-top: 0; }
.phead .relline { gap: 2px 8px; }
.phead .relline .rc { background: none; padding: 0; height: 20px; font-size: 13px; color: var(--fg2); }
.phead .relline .rc.hearts { color: var(--hc); }
.phead .relline .rc.rnext { color: var(--accent); }
.phead .relline .rc .ic { width: 14px; height: 14px; stroke-width: 2; }
.phaff { flex: none; align-self: flex-start; margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.phaff small { font-size: 10.5px; color: var(--sub); }
.phead .phaff .ring b { font-size: 12.5px; }
.phead .reltags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.phead .reltags > * { margin: 0; }
.phead .reltags .pill, .phead .reltags .cntag, .phead .reltags .fwic, .phead .reltags .fwloc { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 1; background: var(--bg2); border: 1px solid var(--line); color: var(--fg2); box-shadow: none; }
.phead .reltags .pill.realtag { color: #0b7a55; }
.phead .reltags .cntag { background: color-mix(in srgb, var(--ntc, #ccc) 30%, var(--bg2)); border-color: transparent; color: var(--fg); }
.phead .reltags .fwloc { width: auto; min-height: 0; margin: 0; }
.phead .reltags .fwloc .grow { flex: none; }
.phead .reltags .fwloc small { font-size: inherit; }
/* 丸いボタンの 1 列（絵は線・タブバーと同じ太さ。主な 1 つだけ色を塗る） */
.phead .picons { display: flex; gap: 2px; margin-top: 16px; justify-content: space-between; }
.phead .picons > .pmsg { display: contents; }
.picon { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.picon .pic { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); transition: transform .12s; }
.picon:active .pic { transform: scale(.94); }
.picon .pic .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.picon .pic .ic .fill { fill: currentColor; stroke: none; }
.picon .plb { font-size: 10.5px; letter-spacing: -.04em; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
.picon.on .pic { background: var(--accent-soft); box-shadow: none; color: var(--accent); }
.picon.on .pic .sf { fill: currentColor; }
.picon.on .plb, .picon.pri .plb { color: var(--accent); font-weight: 600; }
.picon.pri .pic { background: var(--accent); color: var(--accent-fg, #fff); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.picon.locked .pic { color: var(--sub); }
.picon.hl .pic { box-shadow: 0 0 0 2px var(--accent); }
.picon:disabled { opacity: .4; cursor: default; }
.picon:focus-visible { outline: none; }
.picon:focus-visible .pic { outline: 2px solid var(--accent); outline-offset: 2px; }
.picon .pbadge { position: absolute; top: -3px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.picon .plock { position: absolute; right: -3px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.picon .plock .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.vhid { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* メッセージの 1 行 */
.pprev { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.pprev .ellipsis { flex: 1; min-width: 0; }
.pprev .ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.pprev .ic:last-child:not(:first-child) { color: var(--sub); }
.pprev.locked { background: none; box-shadow: none; padding: 0 2px; min-height: 30px; color: var(--sub); }
.pprev.locked .ic { color: var(--sub); width: 14px; height: 14px; }
.phead .plantease, .phead .plankeep { margin-top: 12px; }
.phead .plantease { font-size: 12.5px; }
.phead .pwait { font-size: 12.5px; color: var(--sub); }
/* くわしいプロフィール（矢印つきの行）と趣味のチップ */
.phead .pprof { margin-top: 12px; border-top: 1px solid var(--line); }
.phead .pprof > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 14px; color: var(--fg); }
.phead .pprof > summary::-webkit-details-marker { display: none; }
.phead .pprof > summary .ic { width: 18px; height: 18px; fill: none; stroke: var(--sub); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.phead .pprof[open] > summary .ic { transform: rotate(90deg); }
.phead .pprof[open] { padding-bottom: 8px; }
.phead .phob { gap: 6px; margin-top: 2px; }
.phead .phob .chip { min-height: 26px; padding: 2px 10px; font-size: 12px; }
/* ⋯ と浮かぶメニュー */
.phead > .row { padding-right: 0; }
.pdots { position: absolute; top: 10px; right: 10px; z-index: 6; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fg2); display: grid; place-items: center; cursor: pointer; }
.pdots .ic { width: 20px; height: 20px; fill: none; stroke: none; }
.pdots .ic .fill { fill: currentColor; }
.pdots[aria-expanded="true"] { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); }
.phead .npcmenus { position: absolute; top: 50px; right: 10px; left: auto; z-index: 7; width: 248px; max-width: calc(100% - 20px); margin: 0; padding: 6px; border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 20, 40, .18), 0 2px 6px rgba(15, 20, 40, .08); animation: pmenuin .14s ease-out; transform-origin: top right; }
.phead .npcmenus::before { content: ""; position: absolute; top: -6px; right: 12px; width: 10px; height: 10px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.phead .npcmenus button { min-height: 42px; font-size: 14px; }
@keyframes pmenuin { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .phead .npcmenus { animation: none; } }
@media (prefers-color-scheme: dark) {
  .phead .reltags .pill.realtag { color: #4fd1a1; }
  .phead .npcmenus { box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
}.phead .reltags .ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.phead .reltags .fwic { width: 24px; padding: 0; justify-content: center; color: var(--accent); }
.phead .reltags .fwic .ic { width: 14px; height: 14px; }
.phead .reltags .regmark .rmk { margin: 0; }
/* v193 調整：名前は 19px・印は名前の行に収める／相性の列は細く／ボタンが少ないときは真ん中に寄せる */
.phead .phname { font-size: 19px; }
.phead .phname .pill { padding: 1px 7px; height: 20px; display: inline-flex; align-items: center; }
.phead .phtop { align-items: flex-start; gap: 12px; padding-right: 26px; }
.phead .phtop > .avatar, .phead .phtop > .cosav { margin-top: 2px; }
.phaff { margin-top: 28px; margin-right: -22px; }
.pmeta { gap: 0; }
.pmeta .pdot { margin-right: 6px; }
.phead .relline { gap: 0 10px; }
.phead .relline .rc { font-size: 12.5px; }
.phead .picons { justify-content: center; gap: 4px; }
.phead .picon { max-width: 64px; }
.phead .picon.on, .phead .picon.pri, .phead .picon.locked { background: none; border: 0; }.pmeta { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; font-size: 12px; }
.pmeta .dj:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.phead .npcmenus { width: 276px; }
.phead .npcmenus button { display: flex; align-items: center; line-height: 1.3; }

/* v195：🔨 工房 */
.kslots { display: flex; align-items: center; justify-content: center; gap: 6px; }
.kslots i { font-style: normal; color: var(--sub); }
.kslot { width: 76px; height: 76px; border-radius: 14px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--card); color: var(--sub); font-size: 22px; padding: 4px; }
.kslot:not(.empty) { border-style: solid; border-color: currentColor; color: var(--fg); }
.kslot span { font-size: 28px; line-height: 1.1; }
.kslot small, .kitem small { font-size: 10.5px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kout { text-align: center; margin: 8px 0; color: var(--sub); }
.kmake { display: block; width: 100%; }
.kitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.kitem { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); min-width: 0; }
.kitem span { font-size: 24px; }
.kitem.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.kslot.r1, .kitem.r1 { border-color: #3b82f6; } .kslot.r0 { border-color: #8a94a6; }
/* v196：工房のレシピと手帳 */
.khead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 40px; }
.kitem .ktag { color: var(--sub); font-size: 9.5px; }
.kslot.empty small { font-size: 10px; }
.kobosheet h4 { margin: 12px 0 4px; font-size: 14px; }
.kbrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.kbrow > span:first-child { width: 32px; text-align: center; font-size: 22px; color: var(--sub); }
.kbrow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kbrow small { color: var(--sub); font-size: 12px; }
.kbrow:not(.have) b { color: var(--sub); }
.kslot.r2, .kitem.r2 { border-color: #a855f7; }
/* v198：工房のタブ */
.kobotab h4 { margin: 12px 0 4px; font-size: 14px; }
.kobotab .khead { padding-right: 0; }
.klock { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
/* v200：📸 シェア */
.sharesheet .cardprev img { width: 100%; border-radius: 14px; display: block; margin: 8px 0; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.sharebtns { display: flex; flex-wrap: wrap; gap: 8px; }
.sharebtns .btn { flex: 1 1 30%; }
.invbtncard .invopen + .invopen { margin-top: 8px; }
.cfxshare { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 15px; padding: 6px 12px; cursor: pointer; }
/* v202：工房の設計図 */
.kchips { display: flex; gap: 6px; }
.kplan .kmiss { color: var(--sub); }
.kplan .kok { color: #1e7046; font-weight: 600; }
.kplan .chip { flex: none; }
.kneed { list-style: none; margin: 4px 0 6px; padding: 0; }
.kneed li { font-size: 14px; padding: 2px 0; }
.kneed li.kok { font-weight: 600; }
.kneed li small { display: block; margin-left: 22px; font-size: 12px; color: var(--sub); font-weight: 400; }
.kplan > span:first-child { align-self: flex-start; padding-top: 2px; }
.kplan b .pill { font-size: 11px; vertical-align: middle; }
/* v205：部屋の魅力度ランキング */
.rrcard .seg { margin: 6px 0 8px; }
.rrrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; }
button.rrrow { cursor: pointer; }
.rrrow.me { background: color-mix(in srgb, var(--accent, #4f5bd5) 10%, transparent); border-radius: 8px; }
.rrno { width: 28px; text-align: center; font-weight: 700; color: var(--sub); }
.rrname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrpt { font-variant-numeric: tabular-nums; }
.rrme { margin: 8px 2px 4px; font-size: 14px; }

/* v206 🛒 フリマ */
.mktcard { margin-bottom: 10px; }
.mktsearch { display: flex; gap: 8px; margin: 6px 0 8px; }
.mktsearch input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line, #d8d2c8); border-radius: 12px; background: var(--card, #fff); color: inherit; font: inherit; font-size: 16px; }
.mktsearch .btn { min-height: 44px; min-width: 64px; }
.mktlist { display: flex; flex-direction: column; gap: 6px; }
.mktrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line, #e6e0d6); }
.mktrow:first-child { border-top: 0; }
.mktrow .grow { min-width: 0; }
.mktrow b { overflow-wrap: anywhere; }
.mkic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; border-radius: 12px; background: var(--bg2, rgba(0, 0, 0, .05)); }
.mktmeta { font-size: 12px; color: var(--sub); margin-top: 2px; }
.mktbuy, .mktbtn { flex: none; min-height: 44px; min-width: 64px; line-height: 1.25; }
.mktgot { flex: none; font-weight: 700; color: #1e7046; white-space: nowrap; }
.mktrow.sold { opacity: .85; }
.mktlock p { margin: 4px 0 0; }
.mktrules { line-height: 1.6; }
.mktfind { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px 0 -4px 2px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 15px; line-height: 1; cursor: pointer; vertical-align: middle; opacity: .8; } /* 品の名前の横の小さな 🛒（オーナー） */
.mktsheet .mktstep { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0; }
.mktsheet .mktstep .btn { flex: none; width: 50px; min-height: 44px; min-width: 44px; padding: 0 4px; }
.mktsheet .mktpv { flex: 1; text-align: center; font-size: 20px; min-width: 0; }
.mktchips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mktchips .chip { min-height: 44px; }
.mktsheet .ichead { display: flex; align-items: center; gap: 12px; }
.mktsheet .icbig { flex: none; width: 48px; height: 48px; display: grid; place-items: center; font-size: 30px; border-radius: 12px; background: var(--bg2, rgba(0, 0, 0, .05)); }
.mktsheet .mktpv { white-space: nowrap; }
/* 工房の設計図：作ったことのある設計図は、緑の印と左の線で分かるように */
.kplan.made { border-left: 4px solid #2a7d50; }
.pill.kmade { background: #2a7d50; color: #fff; font-weight: 700; }
@media (prefers-color-scheme: dark) { .kplan .kok, .mktgot { color: #5fd49a; } }
/* v211：工房の一覧の絞り込みと、たためるまとまり */
.kfilt { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.kgrp { border-bottom: 1px solid var(--line); }
.kgrp > summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: 15px; list-style: none; }
.kgrp > summary::-webkit-details-marker { display: none; }
.kgrp > summary::before { content: '▸ '; color: var(--sub); }
.kgrp[open] > summary::before { content: '▾ '; }
/* v212：会話の再生の背景を施設ごとに（小物・床の柄・外の場所） */
.rpprop { position: absolute; transform: translateX(0); font-style: normal; line-height: 1; z-index: 1; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.08)); }
.rpprop.bk { z-index: 0; opacity: .92; }
.rpsignout { position: absolute; inset: 0; }
.rpsky.far { background: linear-gradient(180deg, #9fd0ff, #ffe6c7); }
.rpground.water { background: linear-gradient(180deg, #8fc9f0 0 46%, #b9e2a6 46%); }
.rpground.water .rproad { top: auto; bottom: 8px; }
.rpwall.dark { background: color-mix(in srgb, var(--pc) 30%, #1d1f33); }
.rpwall.dark .rpsign { box-shadow: 0 0 10px color-mix(in srgb, var(--pc) 60%, transparent); }
.rpfloor.fl-wood { background: repeating-linear-gradient(90deg, #d8b48a 0 46px, #c9a27a 46px 48px); border-top-color: #a98058; }
.rpfloor.fl-tile { background: repeating-conic-gradient(#eef2f5 0 25%, #dfe6ec 0 50%) 0 0 / 28px 28px; border-top-color: #c3ccd4; }
.rpfloor.fl-carpet { background: color-mix(in srgb, var(--pc) 45%, #6b2b3a); border-top-color: color-mix(in srgb, var(--pc) 50%, #3b1520); }
.rpfloor.fl-mat { background: #5b8ac9; border-top-color: #40699f; }
.rpfloor.fl-stone { background: repeating-linear-gradient(90deg, #e3e0da 0 58px, #d2cec6 58px 60px); border-top-color: #b8b2a8; }
.rpfloor.fl-tatami { background: repeating-linear-gradient(90deg, #cfd79a 0 70px, #8c7a4b 70px 73px); border-top-color: #8c7a4b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rpprop { filter: brightness(.85); } :root:not([data-theme="light"]) .rpfloor[class*="fl-"] { filter: brightness(.55) saturate(.8); } :root:not([data-theme="light"]) .rpsky.far { background: linear-gradient(180deg, #1b2347, #4a3a5c); } :root:not([data-theme="light"]) .rpground.water { background: linear-gradient(180deg, #1f3c5c 0 46%, #2f4a33 46%); } }
:root[data-theme="dark"] .rpprop { filter: brightness(.85); } :root[data-theme="dark"] .rpfloor[class*="fl-"] { filter: brightness(.55) saturate(.8); } :root[data-theme="dark"] .rpsky.far { background: linear-gradient(180deg, #1b2347, #4a3a5c); } :root[data-theme="dark"] .rpground.water { background: linear-gradient(180deg, #1f3c5c 0 46%, #2f4a33 46%); }
/* v213：工房のレシピを探す */
.ksrch { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; }
.ksrch .ksearch { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text, inherit); }
.ksrch .chip { white-space: nowrap; text-decoration: none; }
/* v215：スタンプ帳のカードの背景＝その町の特色（名産の絵を大きく薄く・地方の色） */
.stamp.feat { position: relative; overflow: hidden; color: var(--stc); border-color: color-mix(in srgb, var(--stc) 50%, transparent); background: color-mix(in srgb, var(--stc) 8%, var(--card)); }
.stamp.feat > :not(.stbg) { position: relative; z-index: 1; }
.stamp .stbg { position: absolute; right: -10px; bottom: -12px; font-size: 58px; line-height: 1; font-style: normal; opacity: .22; transform: rotate(-12deg); pointer-events: none; }
.stamp .stft { font-size: 10.5px; color: var(--sub); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp.feat { color: color-mix(in srgb, var(--stc) 60%, #fff); background: color-mix(in srgb, var(--stc) 14%, var(--card)); } }
:root[data-theme="dark"] .stamp.feat { color: color-mix(in srgb, var(--stc) 60%, #fff); background: color-mix(in srgb, var(--stc) 14%, var(--card)); }
/* v216：町の木（右下）と町の花（左上）を薄く敷く */
.stamp .stbg.fl { right: auto; bottom: auto; left: -8px; top: -8px; font-size: 40px; transform: rotate(14deg); }
/* v219：会話の再生の背景を、施設を真横から描いた絵に */
.rpside { position: absolute; inset: 0; pointer-events: none; }
.rpside svg { width: 100%; height: 100%; display: block; }
