/* KIGO COMMUNITY
   色はサーバーアイコンの「むらさき → 水色」から。スマホを先に作り、広い画面で並びを増やす。
   端末がダークモードなら自動で暗い色にする。 */

:root {
  --brand-1: #ac8bfc;            /* むらさき(アイコンの左下) */
  --brand-2: #44c0fe;            /* 水色(アイコンの右上) */
  --brand-mid: #a7c3fc;
  --brand-grad: linear-gradient(45deg, var(--brand-1) 0%, var(--brand-mid) 50%, var(--brand-2) 100%);
  --brand-ink: #6a5ae0;          /* 文字に使うむらさき(白地で読める濃さ) */
  --brand-ink-2: #1588c9;

  --bg: #f4f5ff;
  --bg-tint: radial-gradient(1200px 600px at 100% -10%, #dff3ff 0%, transparent 60%),
             radial-gradient(900px 500px at -10% 10%, #efe7ff 0%, transparent 60%);
  --card: #ffffff;
  --card-2: #f7f8ff;
  --line: #e4e7f6;
  --text: #23253d;
  --sub: #5c6283;
  --faint: #9399b8;
  --shadow: 0 1px 2px rgba(60, 64, 140, .06), 0 6px 20px rgba(60, 64, 140, .07);
  --shadow-lift: 0 2px 4px rgba(60, 64, 140, .08), 0 12px 32px rgba(60, 64, 140, .12);

  --orange: #ff8a3d; --teal: #19b9a5; --blue: #3d8bfd; --gold: #e0a400;
  --r1: #9aa0a6; --r2: #3fae5a; --r3: #2f86eb; --r4: #9b4fd6; --r5: #e8a100;

  --radius: 18px;
  --radius-s: 12px;
  --tabbar-h: 64px;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #b9a6ff;
    --brand-ink-2: #7fd3ff;
    --bg: #11132a;
    --bg-tint: radial-gradient(1200px 600px at 100% -10%, rgba(68, 192, 254, .16) 0%, transparent 60%),
               radial-gradient(900px 500px at -10% 10%, rgba(172, 139, 252, .18) 0%, transparent 60%);
    --card: #1a1d3a;
    --card-2: #20244a;
    --line: #2c3160;
    --text: #eef0ff;
    --sub: #aab0d6;
    --faint: #6f76a3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --r1: #b5bac4; --r2: #63d17f; --r3: #6aaeff; --r4: #c48bff; --r5: #ffc94a;
  }
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-tint), var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: .1em .35em;
       border-radius: 6px; background: var(--card-2); }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
     stroke-linejoin: round; flex: none; }

.page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-title { font-size: 26px; font-weight: 800; letter-spacing: .02em; padding-top: 4px;
              display: flex; align-items: baseline; gap: 10px; }
.page-title small { font-size: 14px; font-weight: 700; color: var(--sub); }
.note { font-size: 13px; color: var(--sub); }
.note--center { text-align: center; }
.empty { color: var(--faint); font-size: 14px; padding: 8px 0; }

/* ---------- 上のバー ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { max-width: 1080px; margin: 0 auto; height: 56px; padding: 0 12px;
                 display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 8px rgba(106, 90, 224, .3); }
.logo__text { font-weight: 800; font-size: 18px; letter-spacing: .06em; line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-size: 9px; letter-spacing: .32em; color: var(--sub); margin-top: 3px; }
.topnav { display: none; }
.topbar__right { margin-left: auto; display: flex; align-items: center; }
.icon-btn { border: 0; background: none; color: var(--text); width: 40px; height: 40px; border-radius: 12px;
            display: grid; place-items: center; cursor: pointer; }
.icon-btn:active { background: var(--card-2); }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
           background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13px; max-width: 180px; }
.me-chip img { width: 28px; height: 28px; border-radius: 50%; }
.me-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* メニュー(スマホで左から出る) */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 50, .45); }
.drawer[hidden] { display: none; }
.drawer__panel { width: min(300px, 84vw); height: 100%; background: var(--card); padding: 12px 12px 24px;
                 display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
                 animation: slide-in .18s ease-out; padding-top: max(12px, env(safe-area-inset-top)); }
@keyframes slide-in { from { transform: translateX(-24px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.drawer__link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 700;
                width: 100%; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.drawer__link.is-active { background: var(--card-2); color: var(--brand-ink); }
.drawer__logout { color: var(--sub); margin-top: 8px; }

/* 下のタブ(スマホ) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
                font-size: 10.5px; font-weight: 700; color: var(--faint); }
.tabbar__item .i { width: 24px; height: 24px; }
.tabbar__item.is-active { color: var(--brand-ink); }
.tabbar__item.is-active .i { stroke-width: 2.4; }
.tabbar__avatar { width: 26px; height: 26px; border-radius: 50%; }
.tabbar__item.is-active .tabbar__avatar { box-shadow: 0 0 0 2px var(--brand-1); }

.footer { text-align: center; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .1em;
          padding: 0 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); margin-top: -8px; }
.footer__sub { font-weight: 400; letter-spacing: 0; margin-top: 2px; }

/* ---------- 部品 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 16px; }
.card__title { font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.card__title small { font-size: 12px; color: var(--sub); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
       border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; border: 0; cursor: pointer;
       transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--accent { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 14px rgba(106, 90, 224, .35); }
.btn--ghost { background: var(--card-2); color: var(--brand-ink); border: 1px solid var(--line); }
.btn--white { background: #fff; color: #5b4bd6; box-shadow: 0 4px 14px rgba(40, 30, 120, .2); }
.btn--glass { background: rgba(255, 255, 255, .22); color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); }
.btn--discord { background: var(--brand-grad); color: #fff; }
.btn--discord .i { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chips { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px;
         scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
        font-weight: 700; font-size: 14px; color: var(--sub); scroll-snap-align: start; }
.chip.is-active { background: var(--brand-grad); color: #fff; border-color: transparent;
                  box-shadow: 0 3px 10px rgba(106, 90, 224, .3); }

.flash { padding: 12px 14px; border-radius: var(--radius-s); font-size: 14px; font-weight: 700;
         background: var(--card); border: 1px solid var(--line); }
.flash--error { border-color: #ffb4b4; background: #fff0f0; color: #b42318; }
.flash--ok { border-color: #a6e9c9; background: #ecfbf3; color: #0d7a4b; }
.flash--info { border-color: var(--brand-mid); color: var(--brand-ink); }
@media (prefers-color-scheme: dark) {
  .rank-chip { color: var(--rank, var(--brand-ink)); }
  .flash--error { background: #3a1c25; border-color: #7a2c3c; color: #ffb4b4; }
  .flash--ok { background: #16352a; border-color: #23694d; color: #8ff0c1; }
}

.sec-head { display: flex; align-items: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sec-head h2 { font-size: 19px; font-weight: 800; }
.sec-head p { font-size: 12px; color: var(--sub); }
.sec-head__more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand-ink); display: flex;
                  align-items: center; gap: 2px; }
.sec-head__more .i { width: 16px; height: 16px; }

.stars { font-size: 11px; letter-spacing: -.05em; }
.stars.r1, .r1 > .stars { color: var(--r1); } .stars.r2 { color: var(--r2); } .stars.r3 { color: var(--r3); }
.stars.r4 { color: var(--r4); } .stars.r5 { color: var(--r5); }

.rank-chip { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
             padding: 1px 8px; border-radius: 999px; color: color-mix(in srgb, var(--rank, var(--brand-ink)) 62%, #1b1d33);
             border: 1.5px solid var(--rank, var(--brand-ink)); background: color-mix(in srgb, var(--rank, #888) 12%, transparent);
             line-height: 1.6; }

.bar { height: 10px; border-radius: 999px; background: var(--card-2); overflow: hidden; border: 1px solid var(--line); }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-grad); min-width: 4px; }
.bar--thin { height: 8px; }

.badge-dot { width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
             background: var(--brand-grad); color: #fff; font-size: 14px; }

/* 枠つきアイコン */
.ava { position: relative; width: var(--s); height: var(--s); flex: none; display: inline-block; }
.ava__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--card-2); }
.ava__frame { position: absolute; width: 153%; height: 153%; left: -26.5%; top: -26.5%; max-width: none; pointer-events: none; }

/* ---------- ネームプレート ---------- */
.plate {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  min-height: 112px; padding: 18px 16px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  color: #fff; background: var(--bg-plate, #2a2f5a) center / cover no-repeat;
  background-image: var(--bg, var(--brand-grad));
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
a.plate:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.plate--plain { background-image: var(--brand-grad); }
.plate__shade { position: absolute; inset: 0; z-index: -1;
                background: linear-gradient(90deg, rgba(14, 14, 36, .62) 0%, rgba(14, 14, 36, .35) 60%, rgba(14, 14, 36, .15) 100%); }
.plate--plain .plate__shade { background: linear-gradient(90deg, rgba(40, 30, 110, .28), rgba(40, 30, 110, 0)); }
.plate .ava { margin: 6px; }
.plate__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.plate__title { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 1px 10px; border-radius: 999px;
                background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .55); text-shadow: none;
                max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate__name { font-size: 19px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate__meta { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.plate .rank-chip { color: #fff; border-color: var(--rank); background: color-mix(in srgb, var(--rank) 55%, rgba(0, 0, 0, .25));
                    text-shadow: none; }
.plate__badges { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 2px; }
.plate__partner { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
                  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.plate--lg .plate__partner { width: 64px; height: 64px; border-radius: 14px; }
.plate:has(.plate__partner) .plate__info { padding-right: 52px; }
.plate--lg:has(.plate__partner) .plate__info { padding-right: 76px; }
.plate__badges img, .plate__badges .badge-dot { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.plate__badges .badge-dot { font-size: 11px; }
.plate--lg { min-height: 168px; padding: 24px 18px; gap: 18px; }
.plate--lg .plate__name { font-size: 26px; }
.plate--lg .plate__title { font-size: 12px; }
.plate--lg .plate__badges { bottom: 12px; right: 14px; }
.plate--lg .plate__badges img, .plate--lg .plate__badges .badge-dot { width: 44px; height: 44px; }
.plates { display: grid; gap: 12px; }

/* ---------- トップ ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; color: #fff;
  background: var(--brand-grad); padding: 22px 20px 22px; box-shadow: 0 10px 30px rgba(106, 90, 224, .28);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 14px;
}
.hero__body { display: contents; }
.hero__lead, .hero__actions { grid-column: 1 / -1; }
.bokeh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bokeh i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.bokeh i:nth-child(1) { width: 90px; height: 90px; right: 8%; top: -20px; }
.bokeh i:nth-child(2) { width: 46px; height: 46px; right: 34%; top: 22px; }
.bokeh i:nth-child(3) { width: 120px; height: 120px; left: -30px; bottom: -40px; }
.bokeh i:nth-child(4) { width: 34px; height: 34px; left: 38%; bottom: 18px; }
.bokeh i:nth-child(5) { width: 70px; height: 70px; right: -16px; bottom: 30px; }
.bokeh i:nth-child(6) { width: 22px; height: 22px; left: 22%; top: 30px; }
.hero__logo { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 8px 24px rgba(40, 30, 120, .3);
              border: 3px solid rgba(255, 255, 255, .7); }
.hero__title { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: .04em;
               text-shadow: 0 2px 12px rgba(60, 40, 160, .25); display: flex; flex-direction: column; }
.hero__title span { font-size: 12px; letter-spacing: .48em; margin-top: 6px; }
.hero__lead { font-size: 14px; font-weight: 700; line-height: 1.8; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; min-width: 0; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tile, var(--brand-1)); }
.tile--orange { --tile: var(--orange); } .tile--teal { --tile: var(--teal); }
.tile--blue { --tile: var(--blue); } .tile--gold { --tile: var(--gold); }
.tile__icon { position: absolute; right: 12px; top: 12px; color: var(--tile); opacity: .9; }
.tile__label { font-size: 12px; font-weight: 700; color: var(--sub); }
.tile__value { font-size: 24px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.tile__value small { font-size: 12px; margin-left: 2px; color: var(--sub); }
.tile__sub { font-size: 11px; color: var(--faint); font-weight: 700; }

.weather__now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.weather__icon { font-size: 40px; line-height: 1; }
.weather__label { font-size: 12px; color: var(--sub); font-weight: 700; }
.weather__value { font-size: 20px; font-weight: 800; }
.weather__value span { font-size: 13px; color: var(--sub); }
.weather__link { margin-left: auto; }
.forecast { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px; scrollbar-width: none; }
.forecast::-webkit-scrollbar { display: none; }
.forecast--card { margin: 0; padding: 12px; }
.forecast__item { flex: none; width: 64px; padding: 8px 0; border-radius: 14px; background: var(--card-2);
                  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.forecast__item.is-now { background: var(--brand-grad); color: #fff; border-color: transparent; }
.forecast__time { font-size: 11px; font-weight: 800; }
.forecast__icon { font-size: 22px; line-height: 1.2; }
.forecast__name { font-size: 11px; font-weight: 700; }

.mvp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mvp__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
             padding: 16px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
             position: relative; min-width: 0; }
.mvp__card::after { content: "1"; position: absolute; left: 10px; top: 8px; font-weight: 800; font-size: 13px;
                    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
                    background: linear-gradient(135deg, #ffe17a, #f2b417); color: #7a5200; }
.mvp__label { font-size: 12px; font-weight: 800; color: var(--brand-ink); }
.mvp__card .ava { margin: 8px; }
.mvp__name { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvp__score { font-weight: 800; font-size: 17px; }
.mvp__score small { font-size: 11px; color: var(--sub); margin-left: 2px; }
.mvp__empty { color: var(--faint); font-size: 13px; padding: 24px 0; }

.shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shortcut { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
            padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.shortcut .i { color: var(--brand-ink); margin-bottom: 6px; }
.shortcut b { font-size: 15px; }
.shortcut span { font-size: 11.5px; color: var(--sub); }
.news { display: flex; flex-direction: column; gap: 4px; }
.news__date { font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.news__title { font-weight: 800; font-size: 16px; }
.news__text { font-size: 13px; color: var(--sub); }

/* ---------- ランキング ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--card);
            border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 64px; }
.rank-row__no { width: 30px; text-align: center; font-weight: 800; font-size: 16px; color: var(--sub); flex: none; }
.rank-row .ava { margin: 0 4px; }
.rank-row__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rank-row__name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row__sub { font-size: 11px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row__score { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.rank-row__score b { font-size: 17px; font-weight: 800; }
.rank-row__score small { font-size: 11px; color: var(--sub); font-weight: 700; }
.rank-row--top1, .rank-row--top2, .rank-row--top3 { border-width: 1.5px; }
.rank-row--top1 { border-color: #f2c14e; background: linear-gradient(90deg, rgba(255, 214, 90, .18), var(--card) 55%); }
.rank-row--top2 { border-color: #b9c3d6; background: linear-gradient(90deg, rgba(190, 200, 220, .22), var(--card) 55%); }
.rank-row--top3 { border-color: #d39a6a; background: linear-gradient(90deg, rgba(214, 150, 100, .18), var(--card) 55%); }
.rank-row--top1 .rank-row__no, .rank-row--top2 .rank-row__no, .rank-row--top3 .rank-row__no {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; }
.rank-row--top1 .rank-row__no { background: linear-gradient(135deg, #ffd85e, #e6a300); }
.rank-row--top2 .rank-row__no { background: linear-gradient(135deg, #d6dde9, #9aa6bb); }
.rank-row--top3 .rank-row__no { background: linear-gradient(135deg, #e6b085, #b8743f); }

.nushi__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nushi__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "fish size" "holder holder";
              gap: 2px 8px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.nushi__row:first-child { border-top: 0; padding-top: 0; }
.nushi__fish { grid-area: fish; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.nushi__holder { grid-area: holder; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); font-weight: 700; }
.nushi__holder img { width: 22px; height: 22px; border-radius: 50%; }
.nushi__size { grid-area: size; font-weight: 800; font-size: 16px; }
.nushi__size small { font-size: 11px; color: var(--sub); margin-left: 1px; }
.nushi__none { grid-area: holder; font-size: 12px; color: var(--faint); }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px 0; }
.pager__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card);
              border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--brand-ink); }
.pager__btn.is-off { opacity: .35; box-shadow: none; }
.pager__now { font-weight: 800; color: var(--sub); }

/* ---------- 図鑑 ---------- */
.zukan-sec { display: flex; flex-direction: column; gap: 10px; }
.zukan-sec__title { font-size: 17px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; }
.zukan-sec__title small { font-size: 12px; color: var(--sub); }
.zukan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.zcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
         display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow); position: relative; overflow: hidden; min-width: 0; }
.zcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rc, var(--r1)); }
.zcard.r2 { --rc: var(--r2); } .zcard.r3 { --rc: var(--r3); } .zcard.r4 { --rc: var(--r4); } .zcard.r5 { --rc: var(--r5); }
.zcard__no { font-size: 10.5px; font-weight: 800; color: var(--faint); letter-spacing: .05em; }
.zcard__name { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zcard__info { font-size: 11px; color: var(--sub); line-height: 1.45; }
.zcard__finders { font-size: 11px; color: var(--brand-ink); font-weight: 700; margin-top: 2px; }
.zcard.is-unknown { background: var(--card-2); box-shadow: none; }
.zcard.is-unknown .zcard__name { color: var(--faint); letter-spacing: .2em; }
.zcard.is-unknown .zcard__finders { color: var(--faint); }
.zcard.is-event { border-style: dashed; }

/* ---------- 今釣れる魚 ---------- */
.cond { display: flex; align-items: center; gap: 14px; }
.cond__icon { font-size: 44px; line-height: 1; }
.cond__main { font-weight: 800; font-size: 18px; }
.cond__sub { font-size: 12.5px; color: var(--sub); }
.spots { display: grid; gap: 12px; }
.spot__name { font-size: 17px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.spot__name small { font-size: 11.5px; color: var(--sub); font-weight: 700; }
.fish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fish-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px 5px 10px; border-radius: 999px;
             background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.fish-chip.r3 { border-color: color-mix(in srgb, var(--r3) 45%, var(--line)); }
.fish-chip.r4 { border-color: color-mix(in srgb, var(--r4) 55%, var(--line)); background: color-mix(in srgb, var(--r4) 8%, var(--card-2)); }
.fish-chip.r5 { border-color: color-mix(in srgb, var(--r5) 70%, var(--line)); background: color-mix(in srgb, var(--r5) 10%, var(--card-2)); }
.fish-chip.is-event { border-style: dashed; }

/* ---------- メンバー ---------- */
.search { position: relative; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 20px; height: 20px; }
.search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line);
                background: var(--card); color: var(--text); font: inherit; font-size: 16px; box-shadow: var(--shadow); }
.search input:focus { outline: 2px solid var(--brand-1); outline-offset: 1px; }

.level__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.level__lv { font-weight: 800; color: var(--sub); }
.level__lv b { font-size: 26px; color: var(--text); margin-left: 2px; }
.level__xp { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--sub); }
.tiles--4 .tile__value { font-size: 21px; }
.streak { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.streak__icon { color: var(--orange); width: 26px; height: 26px; }
.streak b { font-size: 18px; color: var(--orange); }
.streak__sub { font-size: 12px; color: var(--sub); margin-left: auto; }
.bio { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; margin-bottom: 4px; }
.card .btn--small { margin-top: 10px; }
.progress-list { display: flex; flex-direction: column; gap: 10px; }
.progress { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.progress__label { font-size: 13px; font-weight: 800; }
.progress__num { font-size: 12px; font-weight: 700; color: var(--sub); min-width: 56px; text-align: right; }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.ach { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.ach img, .ach .badge-dot { width: 56px; height: 56px; }
.ach__name { font-size: 10.5px; font-weight: 700; line-height: 1.3; color: var(--sub); overflow-wrap: anywhere; }
.ach.is-locked img, .ach.is-locked .badge-dot { filter: grayscale(1) brightness(.75) opacity(.35); }
.ach.is-locked .ach__name { color: var(--faint); }

/* ---------- 統計・お知らせ ---------- */
.chart { position: relative; height: 220px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline__date { font-size: 12px; font-weight: 800; color: var(--brand-ink); }
.timeline__title { font-size: 18px; font-weight: 800; margin: 2px 0 8px; }
.timeline__list { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--sub); }

.error { text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.error__code { font-size: 72px; font-weight: 800; line-height: 1; background: var(--brand-grad);
               -webkit-background-clip: text; background-clip: text; color: transparent; }
.error__msg { font-size: 18px; font-weight: 800; }

/* ---------- 広い画面(タブレット・PC) ---------- */
@media (min-width: 600px) {
  .tiles, .mvp, .shortcuts { grid-template-columns: repeat(4, 1fr); }
  .zukan-grid { grid-template-columns: repeat(3, 1fr); }
  .plates { grid-template-columns: repeat(2, 1fr); }
  .spots { grid-template-columns: repeat(2, 1fr); }
  .ach-grid { grid-template-columns: repeat(6, 1fr); }
  .hero { grid-template-columns: auto 1fr; padding: 36px 32px; gap: 0 28px; }
  .hero__logo { grid-row: span 3; }
  .hero__body { display: flex; flex-direction: column; gap: 14px; }
  .hero__title span { font-size: 15px; }
  .hero__logo { width: 132px; height: 132px; border-radius: 30px; }
  .hero__title { font-size: 52px; }
  .nushi__row { grid-template-columns: 1fr 1fr auto; grid-template-areas: "fish holder size"; }
}
@media (min-width: 900px) {
  :root { --tabbar-h: 0px; }
  body { font-size: 15.5px; }
  .tabbar { display: none; }
  .topbar__inner { height: 64px; padding: 0 16px; }
  .topnav { display: flex; gap: 2px; margin-left: 20px; }
  .topnav__link { padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--sub); white-space: nowrap; }
  .topnav__link:hover { color: var(--text); background: var(--card-2); }
  .topnav__link.is-active { color: var(--brand-ink); background: var(--card); box-shadow: var(--shadow); }
  .page { padding: 24px 24px 48px; gap: 20px; }
  .footer { padding-bottom: 32px; }
  .zukan-grid { grid-template-columns: repeat(5, 1fr); }
  .plates { grid-template-columns: repeat(3, 1fr); }
  .spots { grid-template-columns: repeat(3, 1fr); }
  .chips { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
  .forecast { margin: 14px 0 0; padding: 2px 0; }
  .chart { height: 280px; }
  .plate--lg { min-height: 200px; padding: 32px 28px; }
  .plate--lg .plate__name { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- マイページ ---------- */
.me-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.me-head .btn .i { width: 16px; height: 16px; }
a.tile:active { transform: scale(.98); }
.tile__value--text { font-size: 16px; }
.btn--danger { color: #d63c4f; }

.form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pick { position: relative; }
.form textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line);
                 background: var(--card-2); color: var(--text); font: inherit; font-size: 16px; resize: vertical; }
.form textarea:focus { outline: 2px solid var(--brand-1); outline-offset: 1px; }
.form__hint { font-size: 12px; color: var(--sub); }
.form .btn--accent { align-self: flex-start; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative;
              transition: background .15s; }
.switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
                     background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch__ui { background: var(--brand-grad); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.switch__text { display: flex; flex-direction: column; font-size: 14px; }
.switch__text small { font-size: 12px; color: var(--sub); }

.picker { min-width: 0; }
.picker__label { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.picker__label small { font-size: 11px; color: var(--sub); margin-left: 6px; }
.picker__grid { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.pick { flex: none; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__box { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 14px;
             border: 2px solid var(--line); background: var(--card-2); width: 96px; transition: border-color .12s; }
.pick input:checked + .pick__box { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 25%, transparent);
                                   background: var(--card); }
.pick input:disabled + .pick__box { opacity: .45; }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--brand-2); }
.pick__img { width: 100%; height: 48px; object-fit: cover; border-radius: 8px; display: grid; place-items: center;
             font-size: 12px; font-weight: 800; color: var(--sub); }
.pick__img--none { background: var(--card); border: 1px dashed var(--line); }
.picker__grid--frame .pick__img, .picker__grid--badge .pick__img { width: 56px; height: 56px; object-fit: contain; }
.picker__grid--title .pick__box { width: auto; min-width: 96px; }
.pick__img--title { width: auto; height: auto; padding: 8px 12px; color: var(--text); white-space: nowrap; }
.pick__name { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3; max-width: 100%;
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gacha__head { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.gacha__head .card__title { margin-bottom: 4px; }
.gacha__balance { font-size: 12px; color: var(--sub); font-weight: 700; display: flex; align-items: baseline; gap: 4px; }
.gacha__balance b { font-size: 22px; color: var(--text); }
.gacha__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.gacha__buttons .btn { min-height: 52px; font-size: 16px; }
.gacha-result { border-width: 2px; }
.gacha-result.r3 { border-color: var(--r3); }
.gacha-result.r4 { border-color: var(--r4); background: linear-gradient(160deg, color-mix(in srgb, var(--r4) 12%, var(--card)), var(--card) 60%); }
.gacha-result__big { font-size: 15px; color: var(--r4); }
.gacha-result__mid { font-size: 14px; color: var(--r3); }
.gacha-result__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.prize { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px;
         background: var(--card-2); border: 1.5px solid var(--line); text-align: center; position: relative;
         animation: pop .35s both; animation-delay: calc(var(--i) * 70ms); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.prize.r3 { border-color: color-mix(in srgb, var(--r3) 60%, var(--line)); }
.prize.r4 { border-color: var(--r4); box-shadow: 0 0 0 3px color-mix(in srgb, var(--r4) 22%, transparent); }
.prize__img { width: 100%; height: 44px; object-fit: cover; border-radius: 8px; }
.prize__img--frame { object-fit: contain; }
.prize__img--title { display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--card);
                     border: 1px solid var(--line); padding: 0 6px; }
.prize__name { font-size: 11.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.prize__tag { font-size: 10.5px; font-weight: 800; color: var(--brand-ink); }
.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lineup__item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.lineup__img { width: 100%; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.lineup__img--frame { object-fit: contain; border: 0; height: 56px; }
.lineup__img--title { display: grid; place-items: center; height: 44px; font-size: 11px; font-weight: 800; background: var(--card-2); padding: 0 4px; }
.word-blank { display: inline-block; width: 1.6em; margin: 0 2px; border-bottom: 2px dotted var(--faint); vertical-align: -1px; }
.word-pair { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.25; }
.word-pair b { font-weight: 800; }
.word-pair b:first-child { font-size: .82em; opacity: .85; }
.lineup__name { font-size: 11px; font-weight: 700; color: var(--sub); }
.lineup__item.is-missing .lineup__img { filter: grayscale(1) opacity(.45); }
.lineup__item.is-missing .lineup__name { color: var(--faint); }

.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.item-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.item-row__img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.item-row__name { flex: 1; font-weight: 700; font-size: 14px; }
.item-row__qty { font-weight: 800; color: var(--sub); }

.plots { display: grid; gap: 10px; }
.plot { display: flex; flex-direction: column; gap: 6px; }
.plot__no { font-size: 11px; font-weight: 800; color: var(--faint); }
.plot__name { font-size: 17px; font-weight: 800; }
.plot__name--empty { color: var(--faint); font-size: 14px; }
.plot__left { font-size: 13px; font-weight: 700; color: var(--sub); }
.plot.is-ready { border-color: var(--r2); }
.plot.is-ready .plot__left { color: var(--r2); }
.plot.is-empty, .plot.is-locked { background: var(--card-2); box-shadow: none; }

.mansion__grade { font-size: 12px; font-weight: 800; color: var(--brand-ink); }
.mansion__name { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.facts { margin: 0 0 8px; display: grid; gap: 6px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--sub); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; text-align: right; }
.people { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person img { width: 36px; height: 36px; border-radius: 50%; }
.person__name { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__name small { font-size: 11px; color: var(--sub); margin-left: 4px; }
.person form { margin: 0; }
.person .btn--small { margin-top: 0; }

.ledger { list-style: none; margin: 0; padding: 4px 16px; }
.ledger__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "what amount" "what after";
               padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.ledger__row:first-child { border-top: 0; }
.ledger__what { grid-area: what; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; }
.ledger__what small { font-size: 11px; color: var(--faint); font-weight: 400; }
.ledger__detail { font-style: normal; font-size: 12px; color: var(--sub); font-weight: 600; }
.ledger__amount { grid-area: amount; font-weight: 800; text-align: right; color: var(--r2); }
.ledger__amount.is-minus { color: #d63c4f; }
.ledger__after { grid-area: after; font-size: 11px; color: var(--sub); text-align: right; }

@media (min-width: 600px) {
  .gacha-result__grid { grid-template-columns: repeat(5, 1fr); }
  .lineup { grid-template-columns: repeat(5, 1fr); }
  .plots { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .plots { grid-template-columns: repeat(3, 1fr); }
  .picker__grid { flex-wrap: wrap; overflow: visible; }
}

/* ---------- お知らせ ---------- */
.kind-chip { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
             color: var(--kind, var(--brand-ink)); border: 1.5px solid var(--kind, var(--brand-ink));
             background: color-mix(in srgb, var(--kind, #888) 10%, transparent); }
.timeline__item { border-left: 4px solid var(--kind, var(--brand-1)); position: relative; }
.timeline__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; color: var(--text); line-height: 1.75; }
.timeline__edit { position: absolute; right: 14px; top: 12px; font-size: 12px; font-weight: 800; color: var(--brand-ink); }
.news { border-left: 4px solid var(--kind, var(--brand-1)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 800; font-size: 14px; }
.field input[type=text] { height: 46px; padding: 0 14px; border-radius: var(--radius-s); border: 1px solid var(--line);
                          background: var(--card-2); color: var(--text); font: inherit; font-size: 16px; }
.field input[type=text]:focus { outline: 2px solid var(--brand-1); outline-offset: 1px; }
.pick__box--wide { width: auto; }
.picker__grid--wrap { flex-wrap: wrap; overflow: visible; }
.field select { height: 46px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line);
                background: var(--card-2); color: var(--text); font: inherit; font-size: 16px; max-width: 100%; }
.field textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line);
                  background: var(--card-2); color: var(--text); font: inherit; font-size: 16px; resize: vertical; }
.person__date { font-weight: 800; color: var(--sub); font-size: 14px; }
.person__date.is-today { color: var(--orange); }
.birthday-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.birthday-row select { width: auto; }
.bday { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--orange); }
.field.birthday-row { flex-direction: row; justify-content: flex-start; }

/* ---------- 管理者用:称号・バッジ ---------- */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.item-badge { width: 40px; height: 40px; flex: none; }
.item-kind { flex: none; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
             background: var(--brand-grad); color: #fff; }
.item-kind--big { font-size: 14px; padding: 8px 14px; }
.item-head { display: flex; align-items: center; gap: 14px; }
.item-head > div { flex: 1; min-width: 0; }
.item-head__name { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
            background: var(--card-2); font-weight: 700; font-size: 13.5px; }
.seg input:checked + span { background: var(--brand-grad); color: #fff; border-color: transparent; }
.seg input:focus-visible + span { outline: 2px solid var(--brand-2); }
.badge-maker { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.badge-maker__preview { width: 128px; height: 128px; flex: none; border-radius: 16px;
                        background: repeating-conic-gradient(var(--card-2) 0 25%, var(--card) 0 50%) 0 0 / 16px 16px; }
.badge-maker__opts { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.field input[type=file] { font: inherit; font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- Wiki ---------- */
.wiki-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wiki-bar__home { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; color: var(--brand-ink); }
.wiki-bar__home .i { width: 20px; height: 20px; }
.wiki-search { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
               border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.wiki-search .i { width: 18px; height: 18px; color: var(--faint); flex: none; }
.wiki-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.wiki-bar__links { display: flex; gap: 14px; font-size: 13.5px; font-weight: 800; margin-left: auto; }
.wiki-bar__links a { color: var(--sub); }
.wiki-bar__links a.is-active, .wiki-bar__links .wiki-bar__new { color: var(--brand-ink); }
@media (max-width: 599px) { .wiki-search { order: 3; flex-basis: 100%; } }

.wiki { padding: 20px 18px; min-width: 0; }
.wiki__head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 4px; }
.wiki__head .kind-chip { margin-left: 0; }
.wiki__title { font-size: 26px; font-weight: 800; line-height: 1.35; margin: 4px 0; overflow-wrap: anywhere; }
.wiki__meta { font-size: 12px; color: var(--sub); }
.wiki__meta a { color: var(--brand-ink); font-weight: 700; }
.wiki__body { line-height: 1.85; font-size: 15.5px; overflow-wrap: anywhere; }
.wiki__body > :first-child { margin-top: 12px; }
.wiki__body h1, .wiki__body h2, .wiki__body h3, .wiki__body h4 { font-weight: 800; line-height: 1.4; scroll-margin-top: 80px; }
.wiki__body h1 { font-size: 22px; margin: 28px 0 10px; }
.wiki__body h2 { font-size: 20px; margin: 30px 0 10px; padding: 4px 0 6px 12px; border-left: 5px solid transparent;
                 border-image: var(--brand-grad) 1; border-bottom: 1px solid var(--line); }
.wiki__body h3 { font-size: 17px; margin: 22px 0 8px; color: var(--brand-ink); }
.wiki__body h4 { font-size: 15.5px; margin: 18px 0 6px; }
.wiki__body p { margin: 10px 0; }
.wiki__body ul, .wiki__body ol { padding-left: 1.4em; margin: 10px 0; }
.wiki__body li + li { margin-top: 2px; }
.wiki__body a { color: var(--brand-ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
                text-decoration-thickness: 1px; }
.wiki__body a.wiki-new { color: var(--orange); text-decoration-style: dashed; }
.wiki__body img { max-width: 100%; height: auto; border-radius: var(--radius-s); display: block; margin: 10px 0; }
.wiki__body blockquote { margin: 12px 0; padding: 8px 14px; border-left: 4px solid var(--brand-mid); background: var(--card-2);
                         border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--sub); }
.wiki__body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: 1px 6px;
                   border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); }
.wiki__body pre { overflow-x: auto; padding: 12px 14px; border-radius: var(--radius-s); background: var(--card-2);
                  border: 1px solid var(--line); }
.wiki__body pre code { padding: 0; border: 0; background: none; }
.wiki__body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.wiki__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.wiki__body th, .wiki__body td { border: 1px solid var(--line); padding: 6px 12px; text-align: left; vertical-align: top; }
.wiki__body th { background: var(--card-2); font-weight: 800; white-space: nowrap; }

.wiki-toc { margin: 14px 0 4px; padding: 10px 16px; border-radius: var(--radius-s); background: var(--card-2);
            border: 1px solid var(--line); font-size: 14px; }
.wiki-toc summary { font-weight: 800; cursor: pointer; }
.wiki-toc ol { list-style: none; margin: 6px 0 0; padding: 0; }
.wiki-toc li { padding: 2px 0; }
.wiki-toc a { color: var(--brand-ink); }
.wiki-toc__d2 { padding-left: 1.2em !important; font-size: 13.5px; }
.wiki-toc__d3 { padding-left: 2.4em !important; font-size: 13px; }

.wiki-group { padding: 16px 18px; }
.wiki-group__name { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.wiki-group__name small { font-size: 12px; color: var(--faint); }
.wiki-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wiki-links a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--card-2);
                border: 1px solid var(--line); font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.wiki-recent { list-style: none; margin: 0; padding: 0; }
.wiki-recent li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.wiki-recent li:first-child { border-top: 0; }
.wiki-recent a { font-weight: 700; color: var(--brand-ink); min-width: 0; overflow-wrap: anywhere; }
.wiki-recent span { flex: none; font-size: 12px; color: var(--sub); }
.wiki-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wiki-results li { padding: 14px 16px; }
.wiki-results__title { font-weight: 800; font-size: 16px; color: var(--brand-ink); overflow-wrap: anywhere; }
.wiki-results__snip { margin: 4px 0 0; font-size: 13.5px; color: var(--sub); overflow-wrap: anywhere; }
.wiki-revs { list-style: none; margin: 0; padding: 6px 16px; }
.wiki-revs li { border-top: 1px solid var(--line); }
.wiki-revs li:first-child { border-top: 0; }
.wiki-revs a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px 0; }
.wiki-revs__meta { font-size: 12.5px; color: var(--sub); width: 100%; }
.wiki-revs__note { font-size: 13.5px; width: 100%; }

.wiki-editor__row { display: grid; gap: 12px; }
@media (min-width: 600px) { .wiki-editor__row { grid-template-columns: 2fr 1fr; } }
.wiki-editor textarea[data-body] { font-family: ui-monospace, SFMono-Regular, Menlo, "Noto Sans JP", monospace; font-size: 15px;
                                    line-height: 1.7; min-height: 340px; }
.wiki-editor__tabs { margin-bottom: 2px; }
.wiki-editor__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.wiki-editor__tools .btn { flex: none; min-height: 36px; padding: 0 12px; font-size: 13px; }
.wiki-editor__tools .i { width: 16px; height: 16px; }
.wiki-editor__img { cursor: pointer; }
.wiki-editor__preview { min-height: 340px; box-shadow: none; }
.wiki-help { font-size: 13.5px; }
.wiki-help summary { font-weight: 800; cursor: pointer; color: var(--brand-ink); }
.wiki-help table { border-collapse: collapse; margin-top: 8px; width: 100%; }
.wiki-help td { border-top: 1px solid var(--line); padding: 6px 8px 6px 0; vertical-align: top; overflow-wrap: anywhere; }
.wiki-help td:first-child { width: 44%; }
.wiki-help code { font-size: 12.5px; background: var(--card-2); padding: 1px 5px; border-radius: 5px; }
.wiki-editor .btn--small, .wiki-bar .btn--small { margin-top: 0; }
.wiki-toc, .wiki-help { overflow-wrap: anywhere; }
.wiki-editor__row > * { min-width: 0; } .wiki-editor__row input { width: 100%; }

/* ---------- 名言・迷言集 ---------- */
.quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.quote { position: relative; padding: 16px 18px 14px; border-left: 4px solid #ffc94a; }
.quote__stars { position: absolute; right: 14px; top: 12px; display: flex; align-items: center; gap: 4px; font-size: 15px; }
.quote__stars b { font-size: 15px; color: var(--gold); }
.quote__text { margin: 0 64px 10px 0; padding: 0; font-size: 16.5px; font-weight: 700; line-height: 1.7;
               white-space: pre-wrap; overflow-wrap: anywhere; }
.quote__text::before { content: "“"; color: var(--brand-1); font-size: 28px; line-height: 0; vertical-align: -10px; margin-right: 2px; }
.quote__img { margin: 0 0 8px; font-size: 13px; color: var(--sub); }
.quote__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.quote__who { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.quote__who img { border-radius: 50%; flex: none; }
a.quote__who { color: var(--brand-ink); }
.quote__meta { color: var(--sub); }
.quote__jump { margin-left: auto; font-weight: 800; color: var(--brand-ink-2); }
.locked { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.admin-quotes { list-style: none; margin: 0; padding: 0; }
.admin-quotes li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-quotes li:first-child { border-top: 0; }
.admin-quotes__body { flex: 1; min-width: 0; font-size: 13.5px; }
.admin-quotes__body p { margin: 2px 0 0; color: var(--sub); overflow-wrap: anywhere; }
.admin-quotes .btn--small { margin-top: 0; flex: none; }

/* ---------- 遊び方 ---------- */
.guide-toc { position: sticky; top: 57px; z-index: 5; padding: 6px 0; background: color-mix(in srgb, var(--bg) 88%, transparent);
             backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.guide { padding: 18px 18px 16px; scroll-margin-top: 130px; min-width: 0; }
.guide__title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.guide__emoji { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 12px;
                background: var(--card-2); border: 1px solid var(--line); }
.guide__lead { margin: 0 0 10px; font-weight: 700; line-height: 1.75; overflow-wrap: anywhere; }
.guide__steps { margin: 0 0 12px; padding-left: 1.5em; line-height: 1.8; font-size: 14.5px; overflow-wrap: anywhere; }
.guide__steps--plain { list-style: disc; }
.guide__steps li + li { margin-top: 4px; }
.guide__steps li::marker { color: var(--brand-ink); font-weight: 800; }
.guide code, .note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; padding: 1px 6px;
                          border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); color: var(--brand-ink); }
.guide__cmds { margin: 0 0 10px; display: grid; gap: 6px; }
.guide__cmds div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--radius-s);
                   background: var(--card-2); }
.guide__cmds dt { flex: none; font-weight: 800; }
.guide__cmds dd { margin: 0; font-size: 13.5px; color: var(--sub); min-width: 0; }
.guide__tip { margin: 6px 0 0; font-size: 13px; color: var(--sub); overflow-wrap: anywhere; }
.guide--join { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (min-width: 900px) { .guide__cmds { grid-template-columns: 1fr 1fr; } }

/* ---------- イベント ---------- */
.sec-title { font-size: 18px; font-weight: 800; margin: 10px 0 0; }
.event-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .event-grid { grid-template-columns: 1fr 1fr; } }
.event-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-width: 0; position: relative;
              border-left: 4px solid var(--line); color: var(--text); }
.event-card--running { border-left-color: var(--orange); }
.event-card--before { border-left-color: var(--brand-2); }
.event-card__badge { align-self: flex-start; font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 999px;
                     background: var(--card-2); color: var(--sub); border: 1px solid var(--line); }
.event-card--running .event-card__badge, .event-head--running .event-card__badge { background: var(--orange); color: #fff; border-color: transparent; }
.event-card--before .event-card__badge, .event-head--before .event-card__badge { background: var(--brand-grad); color: #fff; border-color: transparent; }
.event-card__name { font-size: 18px; font-weight: 800; margin: 2px 0 0; overflow-wrap: anywhere; }
.event-card__meta { margin: 0; font-size: 13px; color: var(--sub); }
.event-card__note { margin: 4px 0 0; font-size: 13px; color: var(--sub); overflow-wrap: anywhere; }
.event-card__top { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.event-card__top li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.event-card__top img { border-radius: 50%; flex: none; }
.event-card__top b { margin-left: auto; flex: none; }
.event-rank { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 12px;
              font-weight: 800; background: var(--card-2); color: var(--sub); }
.event-rank--1 { background: #f5c542; color: #5a3d00; }
.event-rank--2 { background: #cfd6e4; color: #36404f; }
.event-rank--3 { background: #e6a170; color: #4a2410; }
.back-link { font-size: 13px; font-weight: 800; color: var(--brand-ink); }
.event-head { padding: 18px; display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--line); min-width: 0; }
.event-head--running { border-left-color: var(--orange); }
.event-head--before { border-left-color: var(--brand-2); }
.event-head__name { font-size: 24px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.event-head__meta { margin: 0; font-size: 14px; line-height: 1.8; }
.event-head__meta small { color: var(--sub); }
.event-head__desc { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.prizes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.prizes li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--radius-s);
             background: var(--card-2); font-size: 14px; overflow-wrap: anywhere; }
.prizes span { font-weight: 800; color: var(--brand-ink); flex: none; }
.admin-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-events li a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; color: var(--text); }
.admin-events small { width: 100%; color: var(--sub); }
.status-chip { font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--card-2);
               color: var(--sub); border: 1px solid var(--line); flex: none; }
.status-chip--running { background: var(--orange); color: #fff; border-color: transparent; }
.status-chip--scheduled { background: var(--brand-grad); color: #fff; border-color: transparent; }
.status-chip--cancelled { text-decoration: line-through; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.field-row { display: grid; gap: 12px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input[type=date], .field input[type=number], .prize-row input[type=number] {
  height: 46px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--card-2);
  color: var(--text); font: inherit; font-size: 16px; max-width: 100%; }
.sub-title { font-size: 16px; font-weight: 800; margin: 8px 0 0; }
.prize-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--radius-s);
             background: var(--card-2); }
.prize-row__label { font-weight: 800; width: 100%; }
.prize-row select { flex: 1 1 200px; min-width: 0; height: 44px; border-radius: var(--radius-s); border: 1px solid var(--line);
                    background: var(--card); color: var(--text); font: inherit; font-size: 15px; padding: 0 10px; }
.prize-row__coins { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.prize-row__coins input { width: 130px; background: var(--card); }

/* ---------- 名前の色(ガチャの景品) ---------- */
.nc { background: var(--nc); -webkit-background-clip: text; background-clip: text; color: transparent;
      -webkit-text-fill-color: transparent; filter: var(--nc-filter); }
.plate__name.nc { text-shadow: none; }
.nc-sample { font-weight: 800; font-size: 15px; }
.nc-sample .nc { display: inline-block; padding: 2px 4px; }

/* ---------- 称号(二つ名)を選ぶ ---------- */
.title-preview { margin: 4px 0 6px; padding: 12px 16px; border-radius: var(--radius-s); background: var(--brand-grad);
                 color: #fff; font-weight: 800; font-size: 18px; text-align: center; overflow-wrap: anywhere;
                 text-shadow: 0 1px 4px rgba(40, 24, 100, .35); }
.title-preview__none { opacity: .8; font-size: 14px; }
.titles__side { margin: 8px 0 4px; font-size: 13px; font-weight: 800; color: var(--sub); }
.word-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow-y: auto; padding: 2px; }
.word { position: relative; }
.word input { position: absolute; opacity: 0; pointer-events: none; }
.word__chip { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line);
              background: var(--card-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.word__chip--none { color: var(--sub); }
.word input:checked + .word__chip { background: var(--brand-grad); color: #fff; border-color: transparent; }
.word input:focus-visible + .word__chip { outline: 2px solid var(--brand-2); outline-offset: 1px; }

/* ---------- 管理者用:サーバーの様子 ---------- */
:root { --st-warn: #fab219; --st-crit: #d03b3b; --st-good: #0ca30c; }
.srv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.srv-head .note { margin: 0; }
.srv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
@media (min-width: 900px) { .srv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.srv-tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
            box-shadow: var(--shadow); padding: 12px 12px 10px; min-width: 0; }
.srv-tile__label { font-size: 12px; font-weight: 800; color: var(--sub); margin: 0; }
.srv-tile__value { font-size: 30px; font-weight: 800; line-height: 1.1; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.srv-tile__value small { font-size: 14px; color: var(--sub); margin-left: 2px; }
.srv-tile__sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; font-size: 11.5px;
                 color: var(--sub); margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.srv-meter { height: 8px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.srv-meter > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand-ink);
                    transition: width .4s ease; }
.srv-tile[data-level="warn"] .srv-meter > span { background: var(--st-warn); }
.srv-tile[data-level="crit"] .srv-meter > span { background: var(--st-crit); }
.srv-state { font-weight: 800; color: var(--text); }
.srv-tile[data-level="warn"] { border-color: var(--st-warn); }
.srv-tile[data-level="crit"] { border-color: var(--st-crit); }
.spark { display: block; width: 100%; height: 44px; margin-top: 8px; touch-action: none; cursor: crosshair; }
.spark__line { fill: none; stroke: var(--brand-ink); stroke-width: 2; vector-effect: non-scaling-stroke;
               stroke-linejoin: round; stroke-linecap: round; }
.spark__area { fill: color-mix(in srgb, var(--brand-ink) 14%, transparent); }
.spark__grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.spark__cursor { stroke: var(--sub); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-tip { position: absolute; bottom: 52px; padding: 3px 8px; border-radius: 6px; background: var(--text); color: var(--card);
             font-size: 11.5px; font-weight: 800; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.srv-procs { display: grid; gap: 12px; }
@media (min-width: 600px) { .srv-procs { grid-template-columns: 1fr 1fr; } }
.srv-proc { background: var(--card-2); border-radius: 12px; padding: 10px 12px; }
.srv-proc__name { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 6px; }
.srv-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
             background: var(--card); color: var(--text); }
.srv-badge--ok::before { content: "● "; color: var(--st-good); }
.srv-badge--warn::before { content: "● "; color: var(--st-warn); }
.srv-badge--crit { border-color: var(--st-crit); }
.srv-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.srv-kv dt { color: var(--sub); font-weight: 700; }
.srv-kv dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.srv-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .srv-grid { grid-template-columns: 1fr 1fr; } }
.srv-grid .card { margin: 0; }
.srv-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.srv-table caption { text-align: left; font-weight: 800; color: var(--sub); font-size: 12px; padding-bottom: 4px; }
.srv-table th, .srv-table td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.srv-table th:first-child, .srv-table td:first-child { text-align: left; }
.srv-table th { color: var(--sub); font-weight: 700; }

/* 図鑑:モ゜ィー */
.zcard__mozu { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; margin: 4px 0; }
.zcard__mozu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zcard__mozu--unknown { background: var(--card-2); display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--faint); }
.pick__img--mozu { height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #fff; }
.pick__hearts { color: #e0568a; font-size: 10px; letter-spacing: 1px; }

/* マイページ:モ゜ィーの庭 */
.mozu-head { display: grid; gap: 6px; }
@media (min-width: 600px) { .mozu-slots { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.bait-pick { display: grid; gap: 6px; margin: 4px 0 8px; }
.bait input { position: absolute; opacity: 0; pointer-events: none; }
.bait__box { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--card);
             cursor: pointer; font-size: 12px; color: var(--sub); }
.bait__box b { font-size: 14px; color: var(--text); }
.bait__box small { font-size: 11px; color: var(--faint); }
.bait input:checked + .bait__box { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 25%, transparent); }
.bait input:disabled + .bait__box { opacity: .45; cursor: not-allowed; }
.bait input:focus-visible + .bait__box { outline: 2px solid var(--brand-2); }
.mozu-result__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 240px)); gap: 12px; }
.mozu-card { margin: 0; display: grid; gap: 6px; animation: pop .4s ease both; animation-delay: calc(var(--i) * .15s); }
.mozu-card img { width: 100%; aspect-ratio: 1; border-radius: 14px; display: block; box-shadow: var(--shadow); }
.mozu-card figcaption { font-size: 13px; line-height: 1.5; }
.mozu-card.is-secret img { box-shadow: 0 0 0 3px #b06cff, 0 0 24px rgba(176, 108, 255, .7); }
.mozu-card .hearts { color: #e0568a; }
.mozu-bulk { display: grid; gap: 12px; }
.mozu-zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.mozu-zukan .pick__box { width: auto; height: 100%; box-sizing: border-box; }
.mozu-zukan .pick { display: block; }
.pick.is-unknown .pick__box { opacity: .6; cursor: default; }
.pick__img--unknown { display: grid; place-items: center; font-size: 26px; color: var(--faint); background: var(--card-2) !important; }
/* モ゜ィーの名前は長いので、4行まで折り返す(それより長いと…)。全部の名前は図鑑の下の欄に出す */
.pick__name--wrap { white-space: normal; overflow-wrap: anywhere; line-break: anywhere; font-size: 10.5px;
                    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; }
.mozu-detail { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 4px 0 12px; border-radius: 14px;
               background: var(--card-2); border: 1px solid var(--line); min-height: 64px; }
.mozu-detail__img { width: 64px; height: 64px; border-radius: 12px; background: #fff; object-fit: contain; flex: none; }
.mozu-detail__name { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.mozu-detail__meta { margin: 2px 0 0; font-size: 12px; color: var(--sub); overflow-wrap: anywhere; }

/* 管理者用ページ「釣り場」 */
.spot-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.spot-admin__item { margin: 0; }
.spot-admin__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.spot-admin__item figcaption { font-size: 13px; margin-top: 6px; line-height: 1.6; }
.spot-admin__item small { color: var(--sub); }
.note-list { margin: 0 0 14px; padding-left: 1.2em; font-size: 13px; color: var(--sub); line-height: 1.7; }

/* 管理者用ページ「初期ブースト」 */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tier-rows { display: grid; gap: 8px; }
.tier-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.tier-row select { min-width: 0; }
.tier-row__mult { display: flex; align-items: center; gap: 4px; font-weight: 800; }
.tier-row__mult input { width: 80px; }

/* マイページ:今のXP倍率 */
.xp-rate__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.xp-rate__total { font-size: 28px; font-weight: 900; color: var(--brand-ink); }
.xp-rate__list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 6px; }
.xp-rate__list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 12px; border-radius: 10px; background: var(--card-2); color: var(--sub); }
.xp-rate__list li.is-on { color: var(--text); }
.xp-rate__list li.is-on b { color: var(--teal); }
.xp-rate__list small { grid-column: 1 / -1; font-size: 11.5px; color: var(--sub); }
.tier-row--rank { grid-template-columns: 120px 1fr; }
.tier-row__label { display: flex; flex-direction: column; line-height: 1.3; }
.tier-row__label small { color: var(--sub); font-size: 11.5px; }
.tier-row--boost { grid-template-columns: minmax(0, 1fr) auto; }
.tier-row--boost select { grid-column: 1 / -1; }
.person__form { display: flex; gap: 6px; align-items: center; }
.person__form select { max-width: 130px; height: 36px; padding: 0 8px; border-radius: var(--radius-s); border: 1px solid var(--line);
                      background: var(--card-2); color: var(--text); font: inherit; font-size: 14px; }

/* 管理者用ページ「ロールパネル」 */
.role-group { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px 4px; margin: 0 0 12px; min-width: 0; }
.role-group input { width: 100%; box-sizing: border-box; }
.role-group legend { font-weight: 800; padding: 0 6px; }
.role-rows { display: grid; gap: 8px; }
.role-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 72px minmax(0, 1.4fr); gap: 6px; align-items: center; }
.role-row__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
@media (max-width: 640px) {
  .role-row { grid-template-columns: minmax(0, 1fr) 72px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .role-row__name { grid-column: 1 / -1; }
  .role-row input[name^="note_"] { grid-column: 1 / -1; }
}
.rank-grad { -webkit-background-clip: text; background-clip: text; color: transparent; }
code.copy { cursor: pointer; }
.tier-row--rank { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* 管理者用ページ「実績」 */
.form__sub { font-size: 15px; font-weight: 800; margin-top: 6px; }
.inline-input { display: flex; align-items: center; gap: 8px; }
.inline-input input { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--sub); margin-top: 6px; }

/* 管理者用ページ「メッセージ」:左に入力、右に Discord 風の見本(PCは横並び) */
.panel-editor { display: grid; gap: 16px; }
.panel-blocks { display: grid; gap: 10px; }
.panel-block textarea { width: 100%; box-sizing: border-box; margin-top: 6px; }
.panel-block input + input { margin-top: 6px; }
.panel-form__row { display: flex; gap: 8px; align-items: flex-end; }
.panel-form__row > * { flex: 1; min-width: 0; }
.panel-form__colour { flex: 0 0 88px; }
.panel-form__colour input { height: 46px; padding: 4px; }
.panel-form__emoji { flex: 0 0 90px !important; }
.panel-insert { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.panel-insert select { flex: 1 1 180px; min-width: 0; }
#panel-count.is-over { color: #ED4245; font-weight: 800; }
.panel-preview { display: grid; gap: 8px; align-content: start; }
.dc-msg { background: #313338; border-radius: 12px; padding: 12px; }
.dc-card { background: #2B2D31; border-left: 4px solid #8B7CF6; border-radius: 8px; padding: 12px 14px; color: #DBDEE1;
  font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.dc-card h2 { font-size: 22px; margin: 4px 0; color: #F2F3F5; }
.dc-card h3 { font-size: 19px; margin: 4px 0 6px; color: #F2F3F5; }
.dc-card h4 { font-size: 16px; margin: 12px 0 4px; color: #F2F3F5; }
.dc-card p { margin: 0; }
.dc-card .dc-gap { height: 8px; }
.dc-card ul { margin: 2px 0; padding-left: 20px; }
.dc-card li.lv1 { margin-left: 18px; list-style: circle; }
.dc-card li.lv2 { margin-left: 36px; list-style: square; }
.dc-card blockquote { margin: 4px 0; padding-left: 12px; border-left: 4px solid #4E5058; }
.dc-card code { background: #1E1F22; border-radius: 4px; padding: 0 4px; font-size: 13px; }
.dc-card a { color: #00A8FC; }
.dc-mention { background: rgba(88, 101, 242, .3); color: #C9CDFB; border-radius: 3px; padding: 0 2px; font-weight: 600; }
.dc-sub { font-size: 12.5px; color: #949BA4; }
.dc-faint { color: #80848E; }
.dc-sep { border: 0; border-top: 1px solid #3F4147; margin: 12px 0; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.dc-button { background: #4E5058; color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.dc-button:hover { background: #6D6F78; }
@media (min-width: 1000px) {
  .panel-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .panel-preview { position: sticky; top: 80px; }
}
.panel-block input[type=text], .panel-insert select {
  height: 42px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; }
.panel-block textarea { padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.panel-block input[type=text]:focus, .panel-block textarea:focus, .panel-insert select:focus { outline: 2px solid var(--brand-1); outline-offset: 1px; }
.panel-block .btn-row { margin-top: 6px; }

/* 管理者用ページ「釣りの設定」 */
.fs-grid { display: grid; gap: 10px; }
@media (min-width: 600px) { .fs-grid { grid-template-columns: 1fr 1fr; } }
.fs-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--card-2); }
.fs-item > span:first-child { font-weight: 800; font-size: 13px; }
.fs-num { display: inline-grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 2px 6px; }
.fs-num input { width: 92px; height: 38px; padding: 0 8px; border-radius: var(--radius-s); border: 1px solid var(--line);
                background: var(--card); color: var(--text); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.fs-num.is-changed input { border-color: var(--brand-1); box-shadow: 0 0 0 1px var(--brand-1); }
.fs-num__unit { font-size: 13px; color: var(--sub); }
.fs-num__base { grid-column: 1 / -1; font-size: 11px; color: var(--sub); }
.fs-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.fs-table { border-collapse: collapse; min-width: 100%; font-size: 13px; }
.fs-table th, .fs-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.fs-table thead th { color: var(--sub); font-size: 12px; }
.fs-table td .fs-num input { width: 70px; }
.fs-num--price input, .fs-table td .fs-num--price input { width: 110px; }
.fs-spot { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; }
.fs-spot summary { cursor: pointer; }
.fs-fish { display: grid; gap: 6px; margin-top: 8px; }
@media (min-width: 600px) { .fs-fish { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.fs-fish__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; font-size: 14px;
               padding: 4px 0; border-bottom: 1px dashed var(--line); }
.fs-fish__row .fs-num { width: 110px; }
.fs-stars { color: #f0a23b; font-size: 11px; letter-spacing: -1px; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
              padding: 10px 0; background: var(--card); z-index: 2; }
@media (min-width: 900px) { .fs-actions { bottom: 0; } }
.fs-pair { display: inline-flex; align-items: flex-start; gap: 4px; }
.fs-table td .fs-pair .fs-num input { width: 60px; }
.fs-calc { font-variant-numeric: tabular-nums; text-align: right !important; color: var(--sub); }

/* 管理者用ページ「チャンネル」 */
.ch-list { display: grid; gap: 4px 16px; }
@media (min-width: 600px) { .ch-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ch-list { grid-template-columns: 1fr 1fr 1fr; } }
.ch-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-s); font-size: 14px; cursor: pointer; }
.ch-item:hover { background: var(--card-2); }
.ch-item small { color: var(--sub); font-size: 11px; }
.ch-item input { width: 18px; height: 18px; accent-color: var(--brand-1); flex: none; }
.ch-xp { display: grid; gap: 8px; }
.ch-xp__row { display: flex; gap: 10px; align-items: center; }
.ch-xp__row select { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 10px; border-radius: var(--radius-s);
                     border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-size: 15px; }
.fs-fish__when { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 2px; font-size: 11.5px; color: var(--sub); line-height: 1.6; }
.fs-fish__when span { white-space: nowrap; }

/* ---------- 管理者用ページの枠(左のメニュー・スマホは開け閉め) ---------- */
.admin-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-side { display: none; }
.admin-crumb { display: none; }
.admin-menu { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-menu > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-menu > summary .i { color: var(--brand-ink); }
.admin-menu__here { display: flex; flex-direction: column; font-weight: 800; font-size: 17px; line-height: 1.3; min-width: 0; }
.admin-menu__here small { font-size: 11px; font-weight: 700; color: var(--sub); }
.admin-menu__open { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-ink); padding: 6px 12px;
                    border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); flex: none; }
.admin-menu[open] .admin-menu__open { color: var(--sub); }
.admin-menu[open] .admin-menu__open::after { content: "を閉じる"; }
.admin-menu > .admin-nav { padding: 4px 10px 12px; border-top: 1px solid var(--line);
                           display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.admin-nav__group { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.admin-nav__label { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--faint); padding: 0 10px 2px; }
.admin-nav__link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px;
                   font-size: 13.5px; font-weight: 700; color: var(--sub); }
.admin-nav__link .i { width: 17px; height: 17px; opacity: .8; }
.admin-nav__link:hover { background: var(--card-2); color: var(--text); }
.admin-nav__link.is-active { background: var(--brand-grad); color: #fff; box-shadow: 0 3px 10px rgba(106, 90, 224, .3); }
.admin-nav__link.is-active .i { opacity: 1; }
@media (max-width: 359px) { .admin-menu > .admin-nav { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .admin { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 24px; align-items: start; }
  .admin-side { display: block; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto;
                scrollbar-width: thin; padding-bottom: 12px; }
  .admin-side__title { font-size: 18px; font-weight: 800; padding: 4px 10px 6px; }
  .admin-side .admin-nav { display: flex; flex-direction: column; gap: 4px; }
  .admin-menu { display: none; }
  .admin-main { gap: 20px; }
  .admin-crumb { display: block; font-size: 12.5px; color: var(--sub); padding-top: 6px; }
  .admin-crumb span { color: var(--faint); margin: 0 4px; }
  .admin-crumb b { color: var(--text); }
}
.admin-group { display: flex; flex-direction: column; gap: 10px; }
.admin-group__title { font-size: 14px; font-weight: 800; color: var(--sub); letter-spacing: .06em; }
.shortcut__status { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--brand-ink); margin-top: 4px; }
@media (min-width: 600px) { .shortcuts--admin { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 見やすさの調整 ---------- */
.zcard__when { display: flex; flex-wrap: wrap; gap: 0 8px; }
.zcard__when > span { white-space: nowrap; }
.event-grid > :only-child { grid-column: 1 / -1; }
@media (max-width: 599px) {
  /* ヒーローのボタン:1つ目(サーバーに参加)を横いっぱい、残り2つを半分ずつ */
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__actions > .btn { width: 100%; padding: 0 10px; }
  .hero__actions > :first-child:nth-last-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 600px) { .shortcuts--3 { grid-template-columns: repeat(3, 1fr); } }
.btn--center { align-self: center; }
.btn--small .i { width: 16px; height: 16px; }
/* XP倍率:効いていない(+0%)ものは目立たせない */
.xp-rate__list li:not(.is-on) { background: transparent; border: 1px dashed var(--line); padding: 6px 12px; font-size: 13px; }
.xp-rate__list li:not(.is-on) b { font-weight: 700; color: var(--faint); }
@media (max-width: 599px) {
  /* 大きいネームプレート:バッジが名前やランクに重ならないよう、下をあける */
  .plate--lg { padding-bottom: 54px; }
  .plate--lg .plate__badges img, .plate--lg .plate__badges .badge-dot { width: 36px; height: 36px; }
}
.card-row { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .card-row { grid-template-columns: 1fr 1fr; gap: 20px; } }
.plot__hint { font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.place-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
/* 見出しの横の説明は、せまい画面では1行におさめる(「もっと見る」が下に落ちないように) */
.sec-head { flex-wrap: nowrap; }
.sec-head p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-head h2, .sec-head__more { flex: none; }
.crop-pick { display: grid; gap: 6px; }
@media (min-width: 760px) { .crop-pick { grid-template-columns: 1fr 1fr; } }
.crop-pick__season { font-size: 11px; color: var(--orange, #f0a23b); font-weight: 700; }
.plot__actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- マイページ「採掘」(地下へ掘り進む) ---------- */
.mine { --layer: #a67c52; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--layer); }
.mine__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.mine__layer { font-size: 12px; font-weight: 800; color: var(--layer); letter-spacing: .06em; }
.mine__depth { font-size: 40px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.mine__depth small { font-size: 16px; margin-left: 2px; color: var(--sub); }
.mine__sub { font-size: 12px; color: var(--sub); margin-top: 4px; }
.mine__picks { min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.mine__picks-label { font-size: 12px; font-weight: 800; color: var(--sub); }
.mine__picks b { font-size: 22px; font-variant-numeric: tabular-nums; }
.mine__picks small { font-size: 11.5px; color: var(--sub); min-height: 1em; }
.mine__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.mine-tool { border: 1px solid var(--line); background: var(--card-2); color: var(--text); border-radius: 999px; padding: 7px 14px;
             font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.mine-tool span { color: var(--sub); font-size: 12px; margin-left: 2px; }
.mine-tool.is-on { background: var(--brand-grad); color: #fff; border-color: transparent; }
.mine-tool.is-on span { color: #fff; }
.mine-tool[disabled] { opacity: .45; cursor: default; }
.mine-tool--use { margin-left: auto; }
.mine__hint { font-size: 12.5px; color: var(--sub); }
.mine.is-item .mine__hint { color: #ff8f7a; font-weight: 700; }
.mine__grid { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius-s);
              background: linear-gradient(180deg, color-mix(in srgb, var(--layer) 22%, var(--card-2)), var(--card-2)); }
.mine__row { display: grid; grid-template-columns: 38px repeat(5, 1fr); gap: 6px; align-items: center; }
.mine__m { font-size: 11px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.mine.is-busy .mine__grid { opacity: .7; pointer-events: none; }
.mine__log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mine__log li { padding: 6px 10px; border-radius: 8px; background: var(--card-2); }
.mine__log li:first-child { font-weight: 700; }
.mine__log li.is-error { color: #ff8f7a; }
.mine__log li.is-ach { color: var(--brand-ink); }
@media (max-width: 420px) { .mine__row { grid-template-columns: 28px repeat(5, 1fr); gap: 5px; } }
@media (min-width: 760px) { .shortcuts--4 { grid-template-columns: repeat(4, 1fr); } }
.mine__grid { width: 100%; max-width: 520px; align-self: center; }
.mine__log { width: 100%; max-width: 520px; align-self: center; }
@media (max-width: 599px) {
  .mine__picks { width: 100%; }
  .mine-tool--use { margin-left: 0; }
}

/* マス目:ドット絵(assets/mine)を敷いて、硬さはゲージで */
.mine-cell { position: relative; aspect-ratio: 1; max-height: 84px; border-radius: 6px; border: 2px solid transparent; padding: 0;
             background: #0b0910 center / cover no-repeat; image-rendering: pixelated; cursor: pointer;
             transition: transform .08s, box-shadow .12s, filter .12s; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.mine-cell.is-can { border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .35); }
.mine-cell.is-can:hover { transform: translateY(-1px); filter: brightness(1.12); }
.mine-cell.is-can:active { transform: scale(.94); }
.mine-cell.is-far { filter: brightness(.62) saturate(.8); cursor: default; }
.mine-cell.is-ore.is-can, .mine-cell.is-geode.is-can, .mine-cell.is-chest.is-can { border-color: #f2c14e; box-shadow: 0 0 12px rgba(242, 193, 78, .45); }
.mine-cell.is-dug { box-shadow: inset 0 4px 12px rgba(0, 0, 0, .7); cursor: default; }
.mine-cell.is-dark { cursor: default; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.mine.is-item .mine-cell.is-can { border-color: #ff6b57; box-shadow: 0 0 10px rgba(255, 107, 87, .45); }
.mine-gauge { position: absolute; left: 6%; right: 6%; bottom: 6%; height: 14%; max-height: 9px; min-height: 5px; border-radius: 3px;
              background: rgba(0, 0, 0, .65); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); overflow: hidden; }
.mine-gauge > span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #8ff07c, #3fbf4f); transition: width .25s; }
.mine-cell.is-hit .mine-gauge > span { background: linear-gradient(180deg, #ffd36b, #f08a2e); }
.mine-gauge::after { content: ""; position: absolute; inset: 0; pointer-events: none;   /* たたく回数の区切り */
                     background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--seg) - 1px), rgba(0, 0, 0, .7) calc(100% / var(--seg) - 1px) calc(100% / var(--seg))); }
.mine__found { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 10px; border-radius: var(--radius-s);
               background: radial-gradient(circle, rgba(242, 193, 78, .25), transparent 70%); }
.mine__found figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mine__found img { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.mine__found figcaption { font-size: 12px; font-weight: 800; }
.mine__found.is-pop img { animation: mine-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes mine-pop { from { transform: scale(.3) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.mine__light { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px;
               border-radius: var(--radius-s); background: var(--card-2); font-size: 13.5px; width: 100%; max-width: 520px; align-self: center; }
.mine__light small { color: var(--sub); }

/* ---------- 歌舞伎揚(匿名の質問箱)・シェア ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kb { --kb-edge: #ba6c26; --kb-paper: #fff9ec; --kb-ink: #42220e;
      position: relative; isolation: isolate; margin: 12px; padding: 18px; border-radius: 26px;
      align-self: center; width: calc(100% - 24px); max-width: 780px;
      display: flex; flex-direction: column; gap: 12px; border: 6px solid var(--kb-edge);
      background:
        radial-gradient(circle at 20% 30%, rgba(150, 80, 26, .28) 0 3px, transparent 4px) 0 0 / 46px 46px,
        radial-gradient(circle at 70% 60%, rgba(255, 220, 150, .5) 0 2px, transparent 3px) 0 0 / 38px 38px,
        linear-gradient(160deg, #e8ab57, #d08936);
      box-shadow: 0 0 0 3px #f6d9a6 inset, 0 14px 30px rgba(120, 60, 20, .3); }
.kb::before { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 34px;
              border: 9px dotted var(--kb-edge); }
.kb__head { display: flex; align-items: center; gap: 10px; }
.kb__mark { flex: none; width: 36px; height: 36px; filter: drop-shadow(0 2px 2px rgba(90, 40, 10, .3)); }
.kb__title { font-size: 24px; font-weight: 800; color: #fff9ec; letter-spacing: .04em;
             text-shadow: 0 2px 0 #7a3c12, 0 0 8px rgba(70, 30, 8, .45); }
.kb__to { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
          font-size: 14px; font-weight: 800; color: #fff3dc; text-shadow: 0 1px 0 #7a3c12; }
.kb__msg { background: rgba(255, 249, 236, .92); color: var(--kb-ink); border-radius: 14px; padding: 10px 14px;
           font-weight: 700; overflow-wrap: anywhere; }
.kb__paper { background: var(--kb-paper); color: var(--kb-ink); border-radius: 18px; padding: 16px;
             box-shadow: 0 4px 12px rgba(90, 40, 10, .25); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.kb__form { width: 100%; }
.kb__paper textarea { background: #fffdf7; color: var(--kb-ink); border-color: #efd7ad; line-height: 1.7; }
.kb__paper textarea:focus { outline-color: #d08936; }
.kb__paper textarea::placeholder { color: #b9946c; }
.kb__send { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kb__send .form__hint { color: #8a5a30; }
.kb__btn, .kb__paper .btn--accent { background: linear-gradient(180deg, #c8702a, #9c4f17); color: #fff;
                                     box-shadow: 0 4px 12px rgba(120, 60, 20, .35); }
.kb__state { line-height: 1.7; font-size: 14px; }
.kb__state b { display: block; font-size: 16px; }
.kb__note { font-size: 12.5px; font-weight: 700; line-height: 1.6; color: #4a240b; background: rgba(255, 249, 236, .6);
            border-radius: 12px; padding: 8px 12px; }

.kb-list { display: flex; flex-direction: column; gap: 10px; }
.kb-item { background: var(--card); border: 1px solid var(--line); border-left: 5px solid #d08936; border-radius: var(--radius);
           padding: 14px 16px; box-shadow: var(--shadow); }
.kb-item__body, .kb-q__body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; font-size: 15px; }
.kb-item__meta { margin-top: 8px; font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 4px; }
.kb-item__meta .i { width: 14px; height: 14px; color: var(--r2); }

.kb-status { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; color: var(--sub);
             background: var(--card-2); border: 1px solid var(--line); }
.kb-status.is-on { color: #a0521a; background: #fff1dc; border-color: #f0c98c; }
.kb-inbox { display: flex; flex-direction: column; gap: 12px; }
.kb-inbox .card__title { margin-bottom: 0; }
.kb-inbox .chips { margin: 0; padding: 2px 0; }
.chip b { margin-left: 4px; }
.kb-q { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--radius-s);
        border: 1px solid var(--line); border-left: 5px solid #d08936; background: var(--card-2); }
.kb-q.is-answered { border-left-color: var(--r2); }
.kb-q .btn, .kb-report .btn { margin-top: 0; }
.kb-report__ban input { flex: 1 1 180px; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px;
                                                  border: 1px solid var(--line); background: var(--card); color: var(--text);
                                                  font: inherit; font-size: 16px; }

.kb-link { display: flex; align-items: center; gap: 12px; color: #42220e; border-color: #f0c98c;
           background: linear-gradient(160deg, #fff4e2, #ffe3bb); }
.kb-link__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kb-link__text small { font-size: 12px; color: #8a5a30; overflow-wrap: anywhere; }
.kb-link .btn { margin-top: 0; flex: none; background: linear-gradient(180deg, #c8702a, #9c4f17); box-shadow: none; }

.kb-report { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.kb-report:first-of-type { border-top: 0; }
.kb-report .kb-q__body { background: var(--card-2); border-left: 4px solid #d63c4f; border-radius: 10px; padding: 10px 12px; }
.kb-report__info { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.kb-report__info dt { color: var(--sub); font-weight: 700; }
.kb-report__info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kb-report__info small { color: var(--faint); }
.kb-report__warn { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
                   color: #d63c4f; border: 1px solid #d63c4f; }
.kb-report__actions { display: flex; flex-direction: column; gap: 8px; }
.kb-report__actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.share { display: flex; flex-direction: column; gap: 14px; }
.share .card__title { margin-bottom: 0; align-items: center; }
.share .card__title .i { width: 18px; height: 18px; color: var(--brand-ink); }
.share__row { display: flex; flex-direction: column; gap: 6px; }
.share__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.share__head small { font-size: 12px; color: var(--sub); }
.share__line { display: flex; align-items: center; gap: 6px; }
.share__url { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
              background: var(--card-2); color: var(--sub); font: inherit; font-size: 13px; }
.share__line .btn { margin-top: 0; flex: none; }
.share__copy.is-done { background: var(--r2); box-shadow: none; }
.share__warn { font-size: 12px; color: #b5651d; }

@media (prefers-color-scheme: dark) {
  .kb-status.is-on { color: #ffd59a; background: rgba(208, 137, 54, .2); border-color: rgba(240, 201, 140, .45); }
  .kb-link { color: #ffe9c9; border-color: rgba(240, 201, 140, .35); background: linear-gradient(160deg, #3b2513, #4b2d15); }
  .kb-link__text small { color: #e0b98a; }
  .share__warn { color: #f2b36b; }
}

/* ---------- 画面の下に出る短いお知らせ(site.js の toast) ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); z-index: 60;
         width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 800;
         color: #fff; background: #2f3350; box-shadow: 0 8px 24px rgba(20, 20, 50, .3);
         opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast[data-kind="error"] { background: #c8384b; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.kb-q__dl.is-busy { opacity: .5; pointer-events: none; }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* 届いた歌舞伎揚の下のボタン:左に 通報・ブロック・保存 のアイコン、右に「確認済みにする」 */
.kb-q__date { font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kb-q__tag { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.kb-q__tag.is-red { color: #d63c4f; border-color: rgba(214, 60, 79, .4); }
.kb-q__bar { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.kb-q__icons { position: relative; display: flex; align-items: center; gap: 2px; }
.kb-q__icons form { display: contents; }
.kb-act { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
          border: 0; background: none; color: var(--faint); cursor: pointer; list-style: none; flex: none; }
.kb-act::-webkit-details-marker { display: none; }
.kb-act .i { width: 24px; height: 24px; stroke-width: 2.2; }
.kb-act:hover, .kb-menu[open] > .kb-act { color: var(--sub); background: var(--card); }
.kb-act.is-done { color: #d63c4f; cursor: default; }
.kb-q__right { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.kb-done { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 12px;
           background: none; color: var(--sub); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.kb-done .i { width: 24px; height: 24px; color: var(--faint); stroke-width: 2.2; }
.kb-done:hover { background: var(--card); color: var(--text); }
.is-answered .kb-done { font-size: 13px; padding: 0 6px; }
@media (max-width: 380px) { .kb-act { width: 40px; } .kb-done { font-size: 14px; padding: 0 6px; } }
.kb-menu { position: static; }
.kb-menu__panel { position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; width: min(280px, calc(100vw - 72px));
                  display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-s);
                  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.kb-menu__title { font-size: 13px; font-weight: 800; }
.kb-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kb-menu__open { font-size: 13px; font-weight: 700; color: var(--brand-ink); padding: 6px; }
.kb-menu__panel input { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2);
                        color: var(--text); font: inherit; font-size: 16px; }
.kb-menu__panel .btn { margin-top: 0; }
.kb-blocks { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.kb-blocks p { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.kb-blocks p small { color: var(--sub); font-size: 12px; }
.kb-blocks .i { width: 18px; height: 18px; color: var(--sub); }
.kb-blocks .btn { margin-top: 0; }

/* ---------- ミッション ---------- */
.ms { display: flex; flex-direction: column; gap: 10px; }
.ms.is-all { border-color: rgba(63, 174, 90, .45); }
.ms__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ms__head .card__title { margin-bottom: 0; }
.ms__left { font-size: 12px; color: var(--sub); font-weight: 700; }
.ms-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s);
           background: var(--card-2); border: 1px solid var(--line); }
.ms-item__check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
                  display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ms-item__check .i { width: 16px; height: 16px; stroke-width: 3; }
.ms-item.is-done .ms-item__check { background: var(--r2); border-color: var(--r2); }
.ms-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ms-item__name { font-weight: 800; font-size: 14.5px; }
.ms-item.is-done .ms-item__name { color: var(--sub); }
.ms-item__bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ms-item__bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand-grad); }
.ms-item.is-done .ms-item__bar span, .ms-item.is-ready .ms-item__bar span { background: var(--r2); }
.ms-item__sub { font-size: 12px; color: var(--sub); }
.ms-item.is-ready .ms-item__sub { color: var(--r2); font-weight: 700; }
.ms-item__coins { flex: none; font-weight: 800; font-size: 14px; color: var(--gold); }
.ms__bonus { font-size: 13px; padding: 10px 12px; border-radius: var(--radius-s); border: 1px dashed var(--line); color: var(--sub); }
.ms__bonus b { color: var(--text); }
.ms__bonus span { float: right; font-weight: 800; }
.ms__bonus.is-done { border-style: solid; border-color: rgba(63, 174, 90, .45); }
.ms__bonus.is-done span { color: var(--r2); }
.ms-pair { display: grid; gap: 16px; }
@media (min-width: 900px) { .ms-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.ms-now { display: grid; gap: 12px; }
@media (min-width: 700px) { .ms-now { grid-template-columns: 1fr 1fr; } }
.ms-table td .fs-num input { width: 92px; }  /* ミッションの目標は 30,000 などの5けたもある */

/* ---------- マイページ「今やること」 ---------- */
.todo__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s);
              background: var(--card-2); border: 1px solid var(--line); border-left: 4px solid var(--line); color: var(--text); }
a.todo__item:hover { border-color: var(--brand-1); }
a.todo__item:active { transform: scale(.99); }
.todo__item.is-warn { border-left-color: #d63c4f; background: color-mix(in srgb, #d63c4f 7%, var(--card-2)); }
.todo__item.is-ready { border-left-color: var(--r2); background: color-mix(in srgb, var(--r2) 8%, var(--card-2)); }
.todo__item.is-info { border-left-color: var(--brand-1); }
.todo__icon { flex: none; width: 32px; font-size: 22px; text-align: center; }
.todo__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo__text b { font-size: 14.5px; }
.todo__text small { font-size: 12px; color: var(--sub); overflow-wrap: anywhere; }
.todo__go { flex: none; width: 18px; height: 18px; color: var(--faint); }
.todo__more summary { cursor: pointer; margin-top: 8px; padding: 6px 2px; font-size: 13px; font-weight: 800; color: var(--brand-ink); }
.todo__more .todo__list { margin-top: 4px; }
.todo__empty { font-size: 14px; color: var(--sub); padding: 6px 0; }
@media (min-width: 900px) { .todo__list { display: grid; grid-template-columns: 1fr 1fr; } }

/* ---------- ショップ(マイページ) ---------- */
.shop-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.shop-jump a { font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--sub); text-decoration: none; }
.shop-jump a.is-ltd { color: #8a5a00; border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: color-mix(in srgb, var(--gold) 14%, var(--card)); }
.ltd { border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--card)) 0%, var(--card) 45%); }
.ltd__grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 10px 0 8px; }
.ltd-item { display: flex; flex-direction: column; gap: 10px; padding: 8px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--card); min-width: 0; }
.ltd-item__plate .plate { pointer-events: none; }
.ltd-item__plate .plate__badges img, .ltd-item__plate .plate__badges .badge-dot { width: 24px; height: 24px; }
.ltd-item__plate .plate:has(.plate__badges) .plate__meta { padding-right: 70px; }
.ltd-item__body { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 8px; }
.ltd-item__kind { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--sub); margin: 0; }
.ltd-item__name { font-size: 17px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.ltd-item__price { font-size: 18px; font-weight: 800; margin: 0; white-space: nowrap; }
.ltd-item__price small { font-size: 11px; color: var(--sub); margin-left: 2px; }
.ltd-item form .btn { width: 100%; }
.ltd-item__owned { display: block; text-align: center; font-size: 13px; font-weight: 800; color: var(--r2);
  padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--r2) 12%, var(--card)); }
.ltd-item.is-owned { opacity: .85; }
@media (prefers-color-scheme: dark) { .shop-jump a.is-ltd { color: #ffd77a; } }
@media (min-width: 700px) { .ltd__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ltd__grid { grid-template-columns: 1fr 1fr 1fr; } }

.shop-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.shop-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px;
  border-radius: var(--radius-s); background: var(--card-2); border: 1px solid var(--line); }
.shop-row__text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-row__text b { font-size: 14.5px; }
.shop-row__text small { font-size: 12px; color: var(--sub); overflow-wrap: anywhere; }
.shop-row__price { font-size: 12px; color: var(--sub); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.shop-row__buttons { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; width: 100%; }
.shop-row__buttons .btn { width: 100%; padding: 0 6px; white-space: nowrap; }
@media (min-width: 700px) {
  .shop-row__buttons { display: flex; width: auto; }
  .shop-row__buttons .btn { width: auto; padding: 0 14px; }
}

/* 管理者用ページ「限定ショップ」 */
.ls-pick { margin-top: 10px; }
.ls-pick summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--brand-ink); padding: 6px 2px; }
.ls-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ls-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--card-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.ls-check small { display: block; font-size: 11px; color: var(--sub); font-weight: 700; }
.ls-check.is-off { opacity: .5; cursor: not-allowed; }
.ls-check:has(input:checked) { border-color: var(--brand-1); background: color-mix(in srgb, var(--brand-1) 12%, var(--card)); }
.ls-table .fs-num input { width: 110px; }

/* 管理者用ページ「ログ」 */
.log-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.log-filter select, .log-filter input[type=search] { min-height: 36px; padding: 0 10px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-size: 13px; }
.log-filter input[type=search] { flex: 1 1 200px; min-width: 0; }
.log-filter__live { font-size: 13px; font-weight: 700; color: var(--sub); display: inline-flex; gap: 4px; align-items: center; }
.log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log { padding: 8px 4px 8px 10px; border-left: 3px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.log--30 { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.log--40, .log--50 { border-left-color: #d63c4f; background: color-mix(in srgb, #d63c4f 7%, transparent); }
.log__head { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--sub); font-weight: 700; }
.log__head time { font-variant-numeric: tabular-nums; }
.log__level { color: var(--text); }
.log--40 .log__level, .log--50 .log__level { color: #d63c4f; }
.log__logger { color: var(--faint); overflow-wrap: anywhere; }
.log__msg { margin: 2px 0 0; font-size: 13.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.log__more summary { cursor: pointer; }
.log__more pre { margin: 6px 0 0; padding: 8px; border-radius: 8px; background: var(--card-2); font-size: 11.5px;
  overflow-x: auto; white-space: pre; max-height: 360px; }
.log-more { text-align: center; margin-top: 12px; }

/* 管理者用ページ「コマンドのメモ」 */
.memo-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.memo-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s);
  background: var(--card-2); border: 1px solid var(--line); min-width: 0; }
.memo-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.memo-row__text small { font-size: 12px; color: var(--sub); overflow-wrap: anywhere; }
.memo-cmd { font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; background: none; padding: 0; color: var(--text); }
.memo-param { color: var(--brand-ink); }
.memo-param.is-opt { color: var(--faint); }
.memo-copy { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--brand-ink);
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.memo-copy .i { width: 14px; height: 14px; }
.memo-copy.is-done { color: var(--r2); border-color: var(--r2); }
.memo-all summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--brand-ink); padding: 8px 2px; }
