/* ============================================================
 * rinka-expedition.css — 遠征 v2「りんかの旅ちず」（2026-09-26）
 * rinka-expedition.js が描く .rx-* だけを飾る（ほかのページには影響しない）。
 * 旧 v1 の .rinka-fs-exp* の飾りは fansite.css に残っているが、v2 では使っていない。
 * スマホ縦持ち最優先 → 700px 以上で2列。絵文字は使わず、共通アイコン（icons/*.webp）で表す。
 * ========================================================== */

.rx {
  --rx-ink: #5a3a66;
  --rx-ink2: #8a7092;
  --rx-pink: #ff7fa8;
  --rx-pink-d: #e2578a;
  --rx-lav: #c9b3ff;
  --rx-lav-d: #9b83e8;
  --rx-cream: #fff8ef;
  --rx-card: #ffffff;
  --rx-line: #f2d8e6;
  --rx-gold: #ffcf4a;
  --rx-mint: #7fe0b0;
  --rx-r: 22px;
  --rx-shadow: 0 10px 28px rgba(122, 64, 120, .12);
  position: relative;
  color: var(--rx-ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
.rx *, .rx *::before, .rx *::after { box-sizing: border-box; }
.rx button { font: inherit; color: inherit; }
.rx-lead { text-align: center; }

/* 共通アイコン */
.rx-ic { width: 1.5em; height: 1.5em; object-fit: contain; flex: none; vertical-align: middle; display: inline-block; }

.rx-h4 {
  display: flex; align-items: center; gap: .4em;
  margin: 0 0 .6em; font-size: .95rem; font-weight: 900; color: var(--rx-ink);
}
.rx-h4 .rx-ic { width: 1.6em; height: 1.6em; }

/* ── HUD ─────────────────────────────── */
.rx-hudwrap { margin-bottom: 12px; }
.rx-hud {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.rx-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  padding: 6px 4px 5px; border-radius: 16px; text-align: center;
  background: var(--rx-card); border: 2px solid var(--rx-line);
  box-shadow: 0 3px 0 var(--rx-line);
  min-width: 0;
}
.rx-chip .rx-ic { width: 28px; height: 28px; }
.rx-chip__k { font-size: .62rem; font-weight: 800; color: var(--rx-ink2); line-height: 1.2; white-space: nowrap; }
.rx-chip__v { font-size: 1.15rem; font-weight: 900; line-height: 1.15; color: var(--rx-pink-d); font-variant-numeric: tabular-nums; }
.rx-chip__v small { font-size: .62rem; font-weight: 800; color: var(--rx-ink2); margin-left: 1px; }
.rx-chip.is-hot { border-color: #ffb3c9; background: linear-gradient(180deg, #fff, #fff0f5); }
.rx-titlebar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 8px 0 0; font-size: .8rem; font-weight: 800; color: #a0721a;
}
.rx-titlebar .rx-ic { width: 22px; height: 22px; }
.rx-titlebar span { padding: 2px 12px; border-radius: 999px; background: #fff6d8; border: 1.5px solid #f5d98a; }
.rx-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px;
  border-radius: 16px; background: linear-gradient(135deg, #fff4c9, #ffe0ee);
  border: 2px solid #ffd28a; font-size: .84rem; line-height: 1.5;
}
.rx-banner .rx-ic { width: 34px; height: 34px; }
.rx-banner b { display: block; font-size: .92rem; color: #b8570f; }
.rx-banner--usagi { background: linear-gradient(135deg, #ffe7f0, #efe6ff); border-color: #ffb3cf; }
.rx-banner--usagi b { color: var(--rx-pink-d); }
.rx-banner--warn { background: #fff1f1; border-color: #f3a3a3; }

/* ── ステージ ────────────────────────── */
.rx-stage { position: relative; }
.rx-stage.is-depart .rx-trip__hero { animation: rx-depart .9s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes rx-depart { 0% { transform: scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
.rx-empty { text-align: center; padding: 28px; border-radius: var(--rx-r); background: var(--rx-cream); color: var(--rx-ink2); }

/* ── 旅ちず ─────────────────────────── */
.rx-map {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 26px; border: 3px solid #fff;
  box-shadow: var(--rx-shadow), inset 0 0 0 1px rgba(90, 58, 102, .08);
  background:
    radial-gradient(120% 60% at 50% 110%, #b5e6a4 0%, transparent 60%),
    linear-gradient(180deg, #2f2d6e 0%, #5d4fa3 12%, #b9a4f0 24%, #ffd3e4 38%, #fff1dc 52%, #dff3c8 68%, #b8e3a2 100%);
  isolation: isolate;
}
.rx-map--p { aspect-ratio: 4 / 5; max-height: 76vh; min-height: 340px; }
.rx-map--l {
  aspect-ratio: 2 / 1; max-height: 78vh; min-height: 250px;
  background:
    radial-gradient(60% 90% at 95% 10%, #3a3580 0%, #6d5fb6 30%, transparent 62%),
    radial-gradient(40% 50% at 40% 88%, #9fd8f5 0%, transparent 70%),
    linear-gradient(100deg, #dff3c8 0%, #fff1dc 40%, #ffd9e8 62%, #d9c8ff 80%, #8f80d6 100%);
}
.rx-map__sky {
  position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 60%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 30%, #fff8c9 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 20% 78%, #fff8c9 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 72%, #fff 50%, transparent 51%);
  animation: rx-twinkle 4s ease-in-out infinite alternate;
}
.rx-map--l .rx-map__sky { inset: 0 0 auto auto; width: 38%; height: 70%; }
@keyframes rx-twinkle { from { opacity: .55; } to { opacity: 1; } }
.rx-map__cloud {
  position: absolute; z-index: 1; width: 78px; height: 36px; left: -90px; pointer-events: none; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 36'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='22' cy='22' r='13'/%3E%3Ccircle cx='40' cy='15' r='14'/%3E%3Ccircle cx='57' cy='22' r='12'/%3E%3Crect x='12' y='22' width='56' height='13' rx='6.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(150, 120, 170, .18));
  animation: rx-cloud 38s linear infinite;
}
.rx-map__cloud--1 { top: 36%; }
.rx-map__cloud--2 { top: 58%; width: 56px; height: 26px; animation-duration: 52s; animation-delay: -24s; opacity: .7; }
@keyframes rx-cloud { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 120px)); } }
.rx-map { contain: paint; }

/* 目的地のまわりの地形（ぼかした色だまり） */
.rx-terr {
  position: absolute; z-index: 0; width: 44%; aspect-ratio: 1.4 / 1; border-radius: 50%;
  transform: translate(-50%, -50%); filter: blur(14px); opacity: .7; pointer-events: none;
}
.rx-terr--park   { background: radial-gradient(#9be08f, transparent 70%); }
.rx-terr--beach  { background: radial-gradient(#7fd0f6, #b9e9ff 45%, transparent 72%); opacity: .95; }
.rx-terr--forest { background: radial-gradient(#3f9a5f, #7fcf8f 45%, transparent 72%); }
.rx-terr--town   { background: radial-gradient(#ffb0cf, #ffd9a8 45%, transparent 72%); }
.rx-terr--star   { background: radial-gradient(#8b7cff, #3c3a8a 45%, transparent 72%); opacity: .8; }

.rx-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.rx-map__road {
  fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: .1 13; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(90, 58, 102, .25));
}
.rx-map__trip {
  fill: none; stroke: var(--rx-pink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 8;
  vector-effect: non-scaling-stroke; animation: rx-dash 1.2s linear infinite;
}
@keyframes rx-dash { to { stroke-dashoffset: -18; } }

.rx-map__home {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.rx-map__home .rx-ic { width: 46px; height: 46px; filter: drop-shadow(0 3px 3px rgba(90, 58, 102, .25)); }
.rx-map__home-label {
  margin-top: -4px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: .64rem; font-weight: 900; color: var(--rx-ink);
}

.rx-node {
  position: absolute; z-index: 4; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation;
}
.rx-node__img {
  display: block; width: 66px; height: 66px; border-radius: 50%;
  background: #fff center / cover no-repeat;
  border: 4px solid #fff; box-shadow: 0 6px 14px rgba(90, 58, 102, .28), 0 0 0 2px rgba(90, 58, 102, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rx-node__label {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 4px; margin-top: -8px; padding: 2px 8px 2px 10px;
  border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(90, 58, 102, .18);
  font-size: .68rem; font-weight: 900; white-space: nowrap; color: var(--rx-ink);
}
.rx-node__lv { padding: 0 6px; border-radius: 999px; background: #f1ebff; color: var(--rx-lav-d); font-size: .6rem; }
.rx-node__today {
  position: absolute; z-index: 1; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 1px 8px; border-radius: 999px; font-size: .6rem; font-weight: 900; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, #ff9ec2, var(--rx-pink-d)); box-shadow: 0 2px 6px rgba(226, 87, 138, .35);
}
.rx-node:hover .rx-node__img, .rx-node:focus-visible .rx-node__img { transform: scale(1.06); }
.rx-node:focus-visible { outline: none; }
.rx-node:focus-visible .rx-node__img { box-shadow: 0 0 0 4px var(--rx-pink), 0 6px 14px rgba(90, 58, 102, .28); }
.rx-node.is-sel .rx-node__img {
  border-color: var(--rx-pink); transform: scale(1.12);
  animation: rx-pulse 1.8s ease-out infinite;
}
.rx-node.is-sel .rx-node__label { background: var(--rx-pink-d); color: #fff; }
.rx-node.is-sel .rx-node__lv { background: rgba(255, 255, 255, .25); color: #fff; }
@keyframes rx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 127, 168, .55), 0 6px 14px rgba(90, 58, 102, .28); }
  100% { box-shadow: 0 0 0 16px rgba(255, 127, 168, 0), 0 6px 14px rgba(90, 58, 102, .28); }
}
.rx-map--travel .rx-node, .rx-map--ready .rx-node { cursor: default; }
.rx-map--travel .rx-node:not(.is-act), .rx-map--ready .rx-node:not(.is-act) { opacity: .55; filter: saturate(.6); }
.rx-node.is-act .rx-node__img { border-color: var(--rx-pink); }

.rx-map__marker {
  position: absolute; z-index: 5; width: 42px; height: 42px; transform: translate(-50%, -60%);
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 30%, rgba(255, 207, 74, .45) 60%, transparent 72%);
  transition: left 1s linear, top 1s linear;
  animation: rx-hop 1s ease-in-out infinite;
}
.rx-map__marker .rx-ic { width: 32px; height: 32px; }
.rx-map__marker.is-ready { animation: rx-hop .5s ease-in-out infinite; }
@keyframes rx-hop { 0%, 100% { margin-top: 0; } 50% { margin-top: -7px; } }
.rx-map__tip {
  position: absolute; right: 10px; bottom: 8px; z-index: 3; margin: 0;
  padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .88);
  font-size: .7rem; font-weight: 800; color: var(--rx-ink2); white-space: nowrap;
}
.rx-map--l .rx-map__tip { bottom: auto; top: 8px; left: 12px; right: auto; }

/* ── 目的地シート ───────────────────── */
.rx-idle { display: grid; gap: 14px; }
.rx-sheet {
  background: var(--rx-card); border-radius: var(--rx-r); overflow: hidden;
  border: 2px solid var(--rx-line); box-shadow: var(--rx-shadow);
}
.rx-sheet__hero {
  position: relative; min-height: 150px; display: flex; align-items: flex-end;
  background: #eee center / cover no-repeat;
}
.rx-sheet__hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 20, 50, 0) 35%, rgba(40, 20, 50, .66) 100%);
}
.rx-sheet__title { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; width: 100%; padding: 12px 14px; }
.rx-sheet__name { margin: 0; font-size: 1.35rem; font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); line-height: 1.25; }
.rx-sheet__dur {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: .8rem; font-weight: 900; color: var(--rx-ink);
}
.rx-sheet__dur .rx-ic { width: 24px; height: 24px; }
.rx-sheet__today {
  position: absolute; z-index: 1; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 10px 2px 4px; border-radius: 999px; font-size: .74rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff9ec2, var(--rx-pink-d)); box-shadow: 0 3px 8px rgba(226, 87, 138, .35);
}
.rx-sheet__today .rx-ic { width: 22px; height: 22px; }
.rx-rar {
  position: absolute; z-index: 1; top: 10px; left: 10px;
  min-width: 38px; text-align: center; padding: 2px 8px; border-radius: 10px;
  font-size: .72rem; font-weight: 900; letter-spacing: .04em; color: #fff; background: #9aa5b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.rx-rar--r { background: #6fb5e8; }
.rx-rar--sr { background: linear-gradient(135deg, #b99cff, #8a6be0); }
.rx-rar--ssr { background: linear-gradient(135deg, #ffcf4a, #f09a2d); }
.rx-rar--ur { background: linear-gradient(135deg, #ff8fc0, #b99cff 50%, #7fd6ff); }

.rx-sheet__info { padding: 12px 14px 4px; }
.rx-sheet__trait {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0 0 6px; font-size: .86rem; font-weight: 800;
}
.rx-sheet__trait .rx-ic { width: 26px; height: 26px; }
.rx-sheet__trait b {
  padding: 0 8px; border-radius: 999px; background: #eaf8e4; color: #3f8a4f; font-size: .72rem;
}
.rx-sheet__desc { margin: 0 0 6px; font-size: .86rem; color: var(--rx-ink2); }
.rx-sheet__note { margin: 0 0 6px; font-size: .8rem; color: var(--rx-pink-d); font-weight: 700; }
.rx-lv {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 8px;
  margin: 8px 0 10px; padding: 8px 10px; border-radius: 14px; background: #f7f2ff;
}
.rx-lv__k { font-size: .72rem; font-weight: 800; color: var(--rx-ink2); }
.rx-lv__v { font-size: 1rem; font-weight: 900; color: var(--rx-lav-d); }
.rx-lv__bar { height: 10px; border-radius: 999px; background: #e6dcff; overflow: hidden; }
.rx-lv__bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rx-lav), var(--rx-lav-d)); }
.rx-lv__next { grid-column: 1 / -1; font-size: .72rem; color: var(--rx-ink2); text-align: right; }

.rx-tools { padding: 4px 14px 6px; }
.rx-tool {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; width: 100%;
  margin-bottom: 8px; padding: 8px 12px 8px 8px; text-align: left; cursor: pointer;
  border-radius: 18px; border: 2px solid var(--rx-line); background: #fff;
  box-shadow: 0 3px 0 var(--rx-line); transition: transform .12s ease, border-color .15s ease, background .15s ease;
  touch-action: manipulation;
}
.rx-tool:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rx-line); }
.rx-tool__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff5f9; }
.rx-tool__ic .rx-ic { width: 42px; height: 42px; }
.rx-tool__txt b { display: block; font-size: .95rem; font-weight: 900; }
.rx-tool__txt small { display: block; font-size: .74rem; color: var(--rx-ink2); line-height: 1.4; }
.rx-tool__medals { display: flex; gap: 5px; }
.rx-tool.is-on { border-color: var(--rx-pink); background: linear-gradient(180deg, #fff, #fff1f6); box-shadow: 0 3px 0 #ffb8cf; }
.rx-tool.is-on .rx-tool__ic { background: #ffe3ee; }
.rx-tool.is-on .rx-tool__txt b::after {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px;
  border-radius: 50%; background: var(--rx-pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* 発見のメダル */
.rx-medal {
  position: relative; display: inline-block; width: 54px; height: 54px; flex: none; border-radius: 50%;
  background: #f4eef8; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(90, 58, 102, .2);
}
.rx-medal__art {
  position: absolute; inset: 0; border-radius: 50%; background: #e9e1f1 center / cover no-repeat;
}
.rx-medal:not(.has-img) .rx-medal__art::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), transparent 55%);
}
.rx-medal--view   { border-color: #ffe7a8; }
.rx-medal--secret { border-color: #e3d6ff; }
.rx-medal--friend { border-color: #cdf0da; }
.rx-medal--s3 { border-color: var(--rx-gold); box-shadow: 0 0 0 2px #fff4c9, 0 3px 10px rgba(240, 170, 40, .4); }
.rx-medal__tool {
  position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: 0 1px 4px rgba(90, 58, 102, .25);
}
.rx-medal__tool .rx-ic { width: 22px; height: 22px; }
.rx-medal__stars { position: absolute; left: 50%; top: -5px; transform: translateX(-50%); display: flex; gap: 2px; }
.rx-medal__stars i {
  display: block; width: 8px; height: 8px; background: #fff;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
}
.rx-medal__stars i:not(.on) { display: none; }
.rx-medal__stars i.on { background: var(--rx-gold); filter: drop-shadow(0 0 1px #b8860b); }
.rx-medal:not(.is-found) .rx-medal__art { filter: grayscale(1) brightness(.35) contrast(.8); opacity: .55; }
.rx-medal.is-locked .rx-medal__art { opacity: .25; }
.rx-medal--mini { width: 26px; height: 26px; border-width: 2px; box-shadow: 0 1px 3px rgba(90, 58, 102, .2); }
.rx-medal--mini .rx-medal__tool, .rx-medal--mini .rx-medal__stars { display: none; }
.rx-medal--mini.is-locked::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='2' fill='%23b8a6c8'/%3E%3Cpath d='M5 7V5.5a3 3 0 016 0V7' fill='none' stroke='%23b8a6c8' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rx-medal--big { width: 92px; height: 92px; border-width: 4px; }
.rx-medal--big .rx-medal__tool { width: 34px; height: 34px; }
.rx-medal--big .rx-medal__tool .rx-ic { width: 28px; height: 28px; }
.rx-medal--big .rx-medal__stars i { width: 13px; height: 13px; }

/* 出発ボタン */
.rx-go { padding: 6px 14px 16px; text-align: center; }
.rx-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 56px; width: 100%; max-width: 420px; padding: 10px 20px; cursor: pointer;
  border: 0; border-radius: 999px; color: #fff !important; font-weight: 900; font-size: 1.08rem; letter-spacing: .02em;
  background: linear-gradient(180deg, #ff86b0 0%, #f0608f 50%, #d9467c 100%);
  box-shadow: 0 5px 0 #b33568, 0 12px 22px rgba(217, 70, 124, .32), inset 0 2px 0 rgba(255, 255, 255, .4);
  text-shadow: 0 1px 2px rgba(120, 20, 60, .45);
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
  touch-action: manipulation;
}
.rx-btn small { font-size: .72rem; font-weight: 700; opacity: .95; }
.rx-btn:hover { filter: brightness(1.04); }
.rx-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b33568, 0 5px 12px rgba(226, 87, 138, .3), inset 0 2px 0 rgba(255, 255, 255, .45); }
.rx-btn:focus-visible { outline: 3px solid var(--rx-lav-d); outline-offset: 3px; }
.rx-btn[disabled] {
  cursor: default; filter: none; transform: none; text-shadow: none;
  background: linear-gradient(180deg, #e8e1ec, #cfc4d8); box-shadow: 0 4px 0 #b3a6be; color: #6d5d78 !important;
}
.rx-go__rare { margin: 10px 0 0; font-size: .74rem; color: var(--rx-ink2); }

/* ── 遠征中 ─────────────────────────── */
.rx-travel { display: grid; gap: 14px; }
.rx-trip {
  background: var(--rx-card); border-radius: var(--rx-r); overflow: hidden;
  border: 2px solid var(--rx-line); box-shadow: var(--rx-shadow);
}
.rx-trip__hero {
  position: relative; min-height: 120px; display: flex; align-items: flex-end;
  background: #ddd center / cover no-repeat;
}
.rx-trip__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 20, 50, .05), rgba(40, 20, 50, .7)); }
.rx-trip__meta { position: relative; z-index: 1; padding: 12px 14px; color: #fff; width: 100%; }
.rx-trip__eyebrow {
  display: inline-block; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9);
  color: var(--rx-pink-d); font-size: .72rem; font-weight: 900;
}
.rx-trip__name { margin: 4px 0 2px; font-size: 1.3rem; font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.rx-trip__tool { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; }
.rx-trip__tool .rx-ic { width: 24px; height: 24px; }
.rx-trip__body { padding: 16px 14px 18px; display: grid; justify-items: center; }
.rx-trip__duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 12px; width: 100%; }
.rx-trip__duo.is-solo { grid-template-columns: 1fr; justify-items: center; }
.rx-trip__duo .rx-window { width: 100%; }

.rx-ring { position: relative; width: 100%; max-width: 230px; aspect-ratio: 1; justify-self: center; }
.rx-ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rx-ring__bg { fill: #fff7fb; stroke: #f6e3ee; stroke-width: 9; }
.rx-ring__fg {
  fill: none; stroke: var(--rx-pink); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 4px rgba(255, 127, 168, .5));
}
.rx-ring__txt {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.rx-ring__txt span { font-size: .78rem; font-weight: 800; color: var(--rx-ink2); }
.rx-ring__txt b { font-size: clamp(1.5rem, 7.4vw, 2.5rem); font-weight: 900; line-height: 1.1; color: var(--rx-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rx-ring__txt small { font-size: .72rem; color: var(--rx-ink2); }

.rx-travel__side { display: grid; gap: 14px; }
.rx-window {
  margin: 0; justify-self: center; width: min(62%, 240px); padding: 8px 8px 10px; background: #fff; border-radius: 14px;
  box-shadow: 0 8px 22px rgba(90, 58, 102, .18); transform: rotate(-2deg);
}
.rx-window img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.rx-letterbox {
  padding: 14px; border-radius: var(--rx-r); background: var(--rx-cream);
  border: 2px dashed #f2cfa8;
}
.rx-letters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rx-letter {
  display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start;
  padding: 10px 12px; border-radius: 14px; background: #fff; border: 1.5px solid #f4e1cc;
}
.rx-letter .rx-ic { width: 30px; height: 30px; }
.rx-letter p { margin: 0; font-size: .88rem; line-height: 1.6; }
.rx-letter__when { display: block; font-size: .66rem; font-weight: 900; color: #c08a4a; letter-spacing: .04em; }
.rx-letter:not(.is-open) { background: rgba(255, 255, 255, .55); border-style: dashed; }
.rx-letter:not(.is-open) p { color: var(--rx-ink2); font-size: .8rem; font-variant-numeric: tabular-nums; }
.rx-letter.is-open { animation: rx-letter-in .5s ease both; }
@keyframes rx-letter-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rx-travel__note { margin: 10px 0 0; font-size: .74rem; color: var(--rx-ink2); text-align: center; }

/* 帰還待ち：宝箱 */
.rx-ready { display: grid; justify-items: center; gap: 10px; text-align: center; }
.rx-ready__lead { margin: 0; font-weight: 900; font-size: 1rem; }
.rx-chest { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.rx-chest__ic { position: relative; z-index: 2; width: 132px; height: 132px; animation: rx-wiggle 1.6s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(90, 58, 102, .25)); }
.rx-chest__glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 200, .95), rgba(255, 190, 220, .5) 55%, transparent 70%); animation: rx-breathe 1.6s ease-in-out infinite; }
.rx-chest__rays {
  position: absolute; inset: -10%; border-radius: 50%; z-index: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 200, 225, .55) 0 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
  animation: rx-spin 12s linear infinite;
}
@keyframes rx-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 82% { transform: rotate(6deg); } 88% { transform: rotate(-4deg); } 94% { transform: rotate(2deg); } }
@keyframes rx-breathe { 0%, 100% { transform: scale(.92); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes rx-spin { to { transform: rotate(360deg); } }
.rx-btn--open { max-width: 320px; animation: rx-beckon 1.6s ease-in-out infinite; }
@keyframes rx-beckon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ── 帰還：開封 ─────────────────────── */
.rx-result { position: relative; }
.rx-open {
  position: relative; display: none; min-height: 360px; place-items: center; overflow: hidden; cursor: pointer;
  border-radius: var(--rx-r); background: radial-gradient(circle at 50% 45%, #fff6fb 0%, #ffe3ef 45%, #e9dcff 100%);
}
.rx-result.is-opening .rx-open { display: grid; }
.rx-result.is-opening .rx-result__body { display: none; }
.rx-open .rx-chest { width: 220px; height: 220px; }
.rx-open .rx-chest__ic { width: 170px; height: 170px; animation: rx-shake .9s ease-in-out both; }
.rx-open__rays {
  position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 170, 205, .35) 0 8deg, transparent 8deg 22deg);
  animation: rx-spin 8s linear infinite;
}
.rx-result--great .rx-open__rays, .rx-result--great .rx-open { background-color: #fff6da; }
.rx-result--great .rx-open__rays { background: repeating-conic-gradient(from 0deg, rgba(255, 207, 74, .5) 0 8deg, transparent 8deg 22deg); }
.rx-result--jackpot .rx-open__rays { background: repeating-conic-gradient(from 0deg, rgba(255, 127, 168, .5) 0 6deg, rgba(255, 207, 74, .5) 6deg 12deg, rgba(127, 214, 255, .5) 12deg 18deg, rgba(185, 156, 255, .5) 18deg 24deg, transparent 24deg 30deg); animation-duration: 4s; }
.rx-result--empty .rx-open__rays { background: repeating-conic-gradient(from 0deg, rgba(200, 190, 220, .35) 0 8deg, transparent 8deg 22deg); }
.rx-chest--great .rx-chest__glow { background: radial-gradient(circle, #fff7c2, rgba(255, 207, 74, .7) 55%, transparent 72%); }
.rx-chest--jackpot .rx-chest__glow { background: radial-gradient(circle, #fff, rgba(255, 207, 74, .8) 40%, rgba(255, 127, 168, .5) 60%, transparent 74%); }
.rx-open__flash { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; pointer-events: none; }
.rx-result.is-burst .rx-open__flash { animation: rx-flash .45s ease-out both; }
.rx-result.is-burst .rx-chest__ic { animation: rx-pop .4s ease-out both; }
.rx-open__hint { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; font-size: .72rem; color: var(--rx-ink2); z-index: 2; }
@keyframes rx-shake {
  0% { transform: scale(.6); opacity: 0; } 20% { transform: scale(1.05); opacity: 1; }
  30% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 50% { transform: rotate(-10deg) scale(1.05); }
  60% { transform: rotate(10deg) scale(1.08); } 70% { transform: rotate(-12deg) scale(1.1); } 80% { transform: rotate(12deg) scale(1.12); }
  100% { transform: rotate(0) scale(1.15); }
}
@keyframes rx-pop { to { transform: scale(1.6); opacity: 0; } }
@keyframes rx-flash { 0% { opacity: 0; } 30% { opacity: .95; } 100% { opacity: 0; } }

.rx-result__body {
  padding: 16px 14px 20px; border-radius: var(--rx-r); background: var(--rx-card);
  border: 2px solid var(--rx-line); box-shadow: var(--rx-shadow);
}
.rx-result--great .rx-result__body { border-color: #ffd98a; background: linear-gradient(180deg, #fffaf0, #fff 30%); }
.rx-result--jackpot .rx-result__body { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #ff8fc0, #ffcf4a, #7fd6ff, #b99cff) border-box; }
.rx-banner-big {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 6px;
  font-size: 1.5rem; font-weight: 900; color: var(--rx-pink-d); letter-spacing: .04em;
}
.rx-banner-big .rx-ic { width: 44px; height: 44px; }
.rx-result--great .rx-banner-big, .rx-result--jackpot .rx-banner-big { color: #d98a00; font-size: 1.7rem; }
.rx-result__dest { margin: 0 0 12px; text-align: center; font-size: .86rem; color: var(--rx-ink2); font-weight: 700; }
.rx-result__main { display: grid; gap: 14px; }
.rx-photo {
  margin: 0; justify-self: center; width: min(56%, 250px); padding: 8px 8px 4px; background: #fff; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(90, 58, 102, .2); transform: rotate(2deg);
}
.rx-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.rx-photo figcaption { text-align: center; font-size: .72rem; font-weight: 800; color: var(--rx-ink2); padding: 4px 0 2px; }
.rx-result__right { display: grid; gap: 12px; align-content: start; }

.rx-loots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rx-loot { perspective: 800px; }
.rx-loot__inner { position: relative; transform-style: preserve-3d; height: 100%; }
.rx-loot__face, .rx-loot__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; }
.rx-loot__face {
  position: relative; height: 100%; padding: 10px 10px 12px; text-align: center; overflow: hidden;
  background: #fff; border: 2.5px solid #ffd0e0; box-shadow: 0 6px 16px rgba(90, 58, 102, .14);
}
.rx-loot__back {
  position: absolute; inset: 0; display: grid; place-items: center; transform: rotateY(180deg);
  background: repeating-linear-gradient(45deg, #ffb9d2 0 10px, #ffc9dc 10px 20px); border: 2.5px solid #fff;
}
.rx-loot__back .rx-ic { width: 56px; height: 56px; }
.rx-loot__tier {
  position: absolute; top: 6px; left: 6px; z-index: 2; padding: 0 7px; border-radius: 8px;
  font-size: .62rem; font-weight: 900; color: #fff; background: #f3a0bf;
}
.rx-loot__art { aspect-ratio: 1; margin: 0 auto 6px; width: 86%; border-radius: 14px; overflow: hidden; background: #fff4f8; display: grid; place-items: center; }
.rx-loot__img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.rx-loot__ph { width: 60%; height: 60%; }
.rx-loot__name { display: block; font-size: .86rem; font-weight: 900; line-height: 1.35; }
.rx-loot__desc { display: block; font-size: .7rem; color: var(--rx-ink2); line-height: 1.45; margin-top: 2px; }
.rx-loot--r .rx-loot__face { border-color: #c9b3ff; background: linear-gradient(180deg, #fbf8ff, #fff 40%); }
.rx-loot--r .rx-loot__tier { background: var(--rx-lav-d); }
.rx-loot--sr .rx-loot__face { border-color: var(--rx-gold); background: linear-gradient(180deg, #fff8dc, #fff 45%); box-shadow: 0 0 0 3px #fff4c9, 0 8px 22px rgba(240, 170, 40, .35); }
.rx-loot--sr .rx-loot__tier { background: linear-gradient(135deg, #ffcf4a, #f09a2d); }
.rx-loot--sr .rx-loot__face::after, .rx-loot--r .rx-loot__face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 48%, transparent 60%);
  background-size: 260% 100%; background-position: 200% 0;
  animation: rx-shine 3.2s ease-in-out 1.2s infinite;
}
@keyframes rx-shine { 0%, 60% { background-position: 200% 0; } 100% { background-position: -80% 0; } }

.rx-result.is-revealed .rx-loot__inner { animation: rx-flip .7s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(var(--i, 0) * 260ms + 150ms); }
@keyframes rx-flip { 0% { transform: rotateY(180deg) scale(.6); opacity: 0; } 25% { opacity: 1; } 100% { transform: rotateY(0) scale(1); opacity: 1; } }
.rx-result.is-revealed .rx-banner-big { animation: rx-banner .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes rx-banner { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.rx-result.is-revealed .rx-photo { animation: rx-photo .7s ease .1s both; }
@keyframes rx-photo { from { transform: rotate(-8deg) translateY(20px); opacity: 0; } to { transform: rotate(2deg); opacity: 1; } }
.rx-result.is-revealed .rx-found,
.rx-result.is-revealed .rx-perks li { animation: rx-rise .5s ease both; animation-delay: calc(var(--i, 0) * 260ms + 300ms); }
@keyframes rx-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.rx-result.is-instant *, .rx-result.is-instant { animation: none !important; }

.rx-found {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 12px; border-radius: 18px; background: linear-gradient(135deg, #f5f0ff, #fff5fa); border: 2px solid #e6dcff;
}
.rx-found__txt b { display: block; font-size: 1rem; font-weight: 900; }
.rx-found__txt p { margin: 2px 0 0; font-size: .8rem; color: var(--rx-ink2); }
.rx-found__k { display: flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 900; color: var(--rx-lav-d); }
.rx-found__k .rx-ic { width: 22px; height: 22px; }
.rx-new {
  margin-left: 4px; padding: 0 7px; border-radius: 8px; font-style: normal; font-size: .64rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff8fb5, var(--rx-pink-d)); animation: rx-breathe 1.2s ease-in-out infinite;
}
.rx-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx-perks li {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 14px;
  background: #fff9f0; border: 1.5px solid #f6e3c6; font-size: .84rem; font-weight: 700;
}
.rx-perks .rx-ic { width: 28px; height: 28px; }
.rx-log { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--rx-cream); border: 2px dashed #f2cfa8; }
.rx-log p { margin: 0 0 4px; font-size: .86rem; }
.rx-log p.is-pet { color: var(--rx-pink-d); font-weight: 800; }
.rx-result__actions { margin-top: 16px; text-align: center; }

/* ── きょうのおだい ─────────────────── */
.rx-quests {
  margin-top: 14px; padding: 14px; border-radius: var(--rx-r); background: #fff; border: 2px solid var(--rx-line);
  box-shadow: 0 4px 0 var(--rx-line);
}
.rx-quests__head { display: flex; align-items: center; justify-content: space-between; }
.rx-quests__head .rx-h4 { margin: 0; }
.rx-quests__n { font-weight: 900; color: var(--rx-pink-d); font-size: 1.05rem; }
.rx-quests ul { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 6px; }
.rx-quest { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 14px; background: #fbf7fd; font-size: .86rem; font-weight: 700; }
.rx-quest .rx-ic { width: 28px; height: 28px; }
.rx-quest.is-done { background: #ecfbf2; color: #3c8a5b; }
.rx-quest.is-done span { text-decoration: line-through; text-decoration-color: rgba(60, 138, 91, .5); }
.rx-quests__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0; font-size: .74rem; color: var(--rx-ink2); }
.rx-quests__foot .rx-ic { width: 22px; height: 22px; margin-right: 4px; }
.rx-quests__foot b { color: var(--rx-ink); }

/* ── 遠征ノート（タブ）──────────────── */
.rx-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.rx-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; cursor: pointer;
  border-radius: 16px; border: 2px solid var(--rx-line); background: #fff; font-size: .72rem; font-weight: 900; color: var(--rx-ink2);
  box-shadow: 0 3px 0 var(--rx-line); touch-action: manipulation;
}
.rx-tab .rx-ic { width: 30px; height: 30px; }
.rx-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rx-tab.is-on { border-color: var(--rx-pink); color: var(--rx-pink-d); background: #fff3f8; box-shadow: 0 3px 0 #ffb8cf; }
.rx-panel { min-height: 120px; }
.rx-panel__lead { margin: 0 0 10px; font-size: .84rem; color: var(--rx-ink2); }
.rx-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 14px; font-size: .84rem; font-weight: 700; }
.rx-meter b { color: var(--rx-pink-d); font-size: 1rem; }
.rx-meter__bar { flex: 1 1 100%; height: 10px; border-radius: 999px; background: #fde3ee; overflow: hidden; }
.rx-meter__bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffa9c8, var(--rx-pink-d)); transition: width .6s ease; }

.rx-dchips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.rx-dchip {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; cursor: pointer;
  border-radius: 16px; border: 2px solid var(--rx-line); background: #fff; box-shadow: 0 3px 0 var(--rx-line); touch-action: manipulation;
}
.rx-dchip__img { width: 40px; height: 40px; border-radius: 50%; background: #eee center / cover; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(90, 58, 102, .2); }
.rx-dchip__n { font-size: .66rem; font-weight: 900; color: var(--rx-ink2); font-variant-numeric: tabular-nums; }
.rx-dchip.is-on { border-color: var(--rx-pink); background: #fff3f8; box-shadow: 0 3px 0 #ffb8cf; }
.rx-dchip.is-on .rx-dchip__n { color: var(--rx-pink-d); }
.rx-dgroup { margin-bottom: 14px; padding: 12px; border-radius: 20px; background: #fff; border: 2px solid var(--rx-line); }
.rx-dgroup header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rx-dgroup header b { font-size: .95rem; font-weight: 900; flex: 1; min-width: 0; }
.rx-dgroup__img { width: 38px; height: 38px; border-radius: 50%; background: #eee center / cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(90, 58, 102, .2); flex: none; }
.rx-dgroup__lv { padding: 0 8px; border-radius: 999px; background: #f1ebff; color: var(--rx-lav-d); font-size: .7rem; font-weight: 900; }
.rx-dgroup__n { font-size: .78rem; font-weight: 900; color: var(--rx-pink-d); }
.rx-dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; }
.rx-dcell {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px 4px; cursor: pointer;
  border: 0; border-radius: 14px; background: none; touch-action: manipulation;
}
.rx-dcell.is-sel { background: #fff1f6; }
.rx-dcell__name { font-size: .68rem; font-weight: 800; line-height: 1.3; text-align: center; color: var(--rx-ink); min-height: 2.6em; }
.rx-dcell:not(.is-found) .rx-dcell__name { color: #b9a6c4; }
.rx-ddetail { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: #fbf7fd; font-size: .82rem; }
.rx-ddetail b { display: block; font-weight: 900; }
.rx-ddetail p { margin: 2px 0; color: var(--rx-ink2); }
.rx-ddetail small { color: var(--rx-lav-d); font-weight: 800; }

.rx-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rx-item {
  position: relative; margin: 0; padding: 8px 8px 10px; text-align: center; border-radius: 18px;
  background: #fff; border: 2px solid #ffd0e0; box-shadow: 0 3px 0 #ffe1ec;
}
.rx-item--r { border-color: #d9c9ff; box-shadow: 0 3px 0 #e9e0ff; }
.rx-item--sr { border-color: #ffd98a; box-shadow: 0 3px 0 #ffeebf; }
.rx-item__count { position: absolute; top: 6px; right: 6px; z-index: 1; padding: 0 7px; border-radius: 999px; background: var(--rx-pink-d); color: #fff; font-size: .68rem; font-weight: 900; }
.rx-item__art { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff4f8; display: grid; place-items: center; }
.rx-item__img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.rx-item__ph { width: 60%; height: 60%; }
.rx-item figcaption { margin-top: 6px; font-size: .7rem; font-weight: 800; line-height: 1.3; }
.rx-item.is-zero .rx-item__img, .rx-item.is-zero .rx-item__ph { filter: brightness(0) opacity(.2); }
.rx-item.is-zero figcaption { color: #b9a6c4; }
.rx-item.is-zero .rx-item__count { background: #d9cde2; }

.rx-titles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rx-title { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: #faf7fc; border: 2px solid #eee4f3; }
.rx-title .rx-ic { width: 32px; height: 32px; }
.rx-title b { display: block; font-size: .82rem; font-weight: 900; line-height: 1.3; }
.rx-title small { display: block; font-size: .66rem; color: var(--rx-ink2); line-height: 1.3; }
.rx-title.is-got { background: linear-gradient(135deg, #fff9e6, #fff); border-color: #f5d98a; }
.rx-title:not(.is-got) b { color: #b9a6c4; }

.rx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.rx-stats div { padding: 10px 6px; border-radius: 16px; background: #fff; border: 2px solid var(--rx-line); text-align: center; }
.rx-stats small { display: block; font-size: .64rem; font-weight: 800; color: var(--rx-ink2); }
.rx-stats b { display: block; font-size: 1.15rem; font-weight: 900; color: var(--rx-pink-d); }
.rx-rec { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.rx-rec li { display: grid; grid-template-columns: 7.5em 1fr 2.5em; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; }
.rx-rec b { text-align: right; color: var(--rx-ink); }
.rx-rec__bar { height: 12px; border-radius: 999px; background: #f5eef8; overflow: hidden; }
.rx-rec__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--rx-pink); min-width: 4px; }
.rx-rec__bar.rx-tone--park > span { background: #8fd694; }
.rx-rec__bar.rx-tone--beach > span { background: #7cc8f0; }
.rx-rec__bar.rx-tone--forest > span { background: #4fa36b; }
.rx-rec__bar.rx-tone--town > span { background: #ff9ec4; }
.rx-rec__bar.rx-tone--star > span { background: #7a6fd8; }
.rx-hists { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx-hist { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--rx-line); font-size: .78rem; }
.rx-hist__when { grid-row: 1 / 3; font-size: .68rem; color: var(--rx-ink2); font-variant-numeric: tabular-nums; align-self: center; }
.rx-hist__dest { display: flex; align-items: center; gap: 4px; font-weight: 900; }
.rx-hist__dest .rx-ic { width: 20px; height: 20px; }
.rx-hist__dest em { font-style: normal; padding: 0 6px; border-radius: 6px; background: #fff1c2; color: #b37700; font-size: .62rem; }
.rx-hist__loot { color: var(--rx-ink2); font-size: .72rem; }
.rx-hist.is-great { border-color: #ffd98a; }

.rx-toast { font-weight: 800; }

/* ── 横長・大きい画面（700px〜）──────── */
@media (min-width: 700px) {
  .rx { font-size: 15.5px; }
  .rx-hud { grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; }
  .rx-idle { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); align-items: start; }
  .rx-idle .rx-map--l { aspect-ratio: 4 / 3; }
  .rx-node__img { width: 74px; height: 74px; }
  .rx-travel { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
  .rx-travel .rx-map { grid-column: 1 / -1; aspect-ratio: 5 / 2; }
  .rx-result__main { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); align-items: start; }
  .rx-photo { width: 100%; }
  .rx-loots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .rx-items { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .rx-titles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .rx-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* スマホ横持ち（高さが低い）：ちずと宝箱を小さめに */
@media (max-height: 480px) and (orientation: landscape) {
  .rx-node__img { width: 52px; height: 52px; border-width: 3px; }
  .rx-node__label { font-size: .6rem; }
  .rx-map__home .rx-ic { width: 36px; height: 36px; }
  .rx-idle .rx-map--l { aspect-ratio: auto; height: 78vh; min-height: 250px; }
  .rx-travel .rx-map { aspect-ratio: auto; height: 70vh; min-height: 220px; }
  .rx-ring { width: 170px; }
  .rx-open { min-height: 280px; }
  .rx-open .rx-chest { width: 170px; height: 170px; }
  .rx-open .rx-chest__ic { width: 130px; height: 130px; }
  .rx-window { width: 150px; }
}
@media (max-width: 380px) {
  .rx-chip { padding: 6px 5px; }
  .rx-chip .rx-ic { width: 24px; height: 24px; }
  .rx-chip__v { font-size: 1rem; }
  .rx-node__img { width: 58px; height: 58px; }
  .rx-tab { font-size: .64rem; }
  .rx-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .rx *, .rx *::before, .rx *::after { animation: none !important; transition: none !important; }
}
